Re:From Zero to Main(): Bare Metal Rust
by duskwuff on Tuesday December 17, 2019 @02:57PM
(#21818022)
FWIW, 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/ld...
Re:From Zero to Main(): Bare Metal Rust
by TickleSteve on Wednesday December 18, 2019 @01:49AM
(#21822476)
...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.
https://github.com/ferrous-systems/zero-to-main/blob/master/...