-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example for writing flash #330
Comments
Hi @faulesocke, while I don't have the time to write such an example right now, I can try to quickly answer your questions. Maybe you can make an example or update the documentation from this :). You don't find out what flash areas are unused, but you actively specify that to the linker. Each embedded project has this
This file specifies where the linker may put code and where it may put variables. In this case, it specifies that the flash area that can be used for program code starts at 0x8000000 and has a length of 64KiB (that is 65536 bytes). Note that this only instructs the language toolchain to not use that memory. It will not instruct your flashing tool to actually not overwrite that area. For firmware updates, it depends on your flashing tool. If you use stm32flash, you must specify the (Also note that the flash module currently has a bug causing verification for erase to fail, see #362. To work around this, use |
In #257 flash write support was added. However, no example and only little documentation was provided on how to use it. Would it be possible that someone writes an example that reads/writes flash and maybe elaborates on the following topics:
The text was updated successfully, but these errors were encountered: