Skip to content

Commit

Permalink
updated readme with note for static and global variables
Browse files Browse the repository at this point in the history
  • Loading branch information
itzandroidtab committed Apr 7, 2024
1 parent 293e35b commit cc9a158
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Readme.md → readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ To create a OFL executable you need the following:
* Way to feed the watchdog if enabled
* A way to restore modified registers after deinit

Note: When using the flash loader no startup code will run. Make sure to initialize any (non const) static and global variables at runtime as they will not be initialized when loading the flash loader.

## Stack usage
In the previous documentation Segger reserved 256 bytes of stack for Open flash loaders. In newer versions the documentation mentions 512 bytes of stack with a fallback to 256 bytes for devices with low amounts of memory (for testing, the linkerscript configures 256 bytes of stack).

Expand Down

0 comments on commit cc9a158

Please sign in to comment.