Skip to content

Commit 8f9f13c

Browse files
authored
Fix which sections of binary belong to Flash/ROM vs RAM
Supporting information for my fix is here https://docs.rs/cortex-m-rt/latest/cortex_m_rt/#sections-size Notice that —besides the mistake— as the text is written, it is unclear why the sum is 2008, since it is nowhere said that `vector_table` belongs to flash at least in this chip. I don't link it because it may break in the future; but I could include it I you want it.
1 parent 101b65d commit 8f9f13c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,12 @@ section size addr
242242
Total 555960
243243
```
244244

245-
Of the standard sections, `.text`, `.rodata` and `.data` will occupy Flash /
245+
Of the standard sections, `vector_table`, `.text`, `.rodata` will occupy Flash /
246246
ROM; `.bss` and `.data` will occupy RAM; `.debug_*`, `.ARM.attributes` and
247247
`.comments` can be ignored as they won't be loaded into the target device
248248
memory. For the other sections you'll have to check your dependencies' docs.
249249

250-
In this examples the program will occupy `2008` bytes of Flash.
250+
In these examples the program will occupy `2008` bytes of Flash.
251251

252252
Note that most (all?) runtime crates, like `cortex-m-rt`, will check at link
253253
time that the program fits in the target device memory. If it doesn't fit you'll

0 commit comments

Comments
 (0)