4 ms·
No, "bin" explicitly has no format, but it's interpreted by the bootloader/whatever on the board - you can see the linker script setting this up manually here:
by kimixa 7y ago
No, "bin" explicitly has no format, but it's interpreted by the bootloader/whatever on the board - you can see the linker script setting this up manually here:
https://github.com/ferrous-systems/zero-to-main/blob/master/from-scratch/linker.ld#L31 https://github.com/ferrous-systems/zero-to-main/blob/master/...
- duskwuff 7y agoFWIW, this is a pretty unusual way of setting up vectors. A more typical approach in C is to declare the vector table entirely in C or assembly, and only use the linker script to position it: https://github.com/duskwuff/stm32f103-example/blob/master/ldscript.ld#L26 https://github.com/duskwuff/stm32f103-example/blob/master/ld...
- TickleSteve 7y ago...and what you're seeing is after the linker has positioned it. that is the defined format of the ARM vector table as it is laid out in memory.
- duskwuff 7y agoI'm referring to the linker script in kimixa's comment. Explicitly placing each vector table entry in the linker script, as this one does, is unusual.