First experiments with embedded rust
By:
Tobi
Posted:
NUCLEO F446RE
To get started you can basically follow the rust embedded book.
As they use a different board, there are some small modifications that are necessary. They are listed below:
Openocd commands differs slightly:
openocd -f interface/stlink-v2-1.cfg -f target/stm32f4x.cfg
openocd.cfg:
# Revision C (newer revision)
source [find interface/stlink-v2-1.cfg]
source [find target/stm32f4x.cfg]
After reading the user manual of the STM32446 (obviously not carefully enough, i was under the impression that the flash memory is located at address 0x0000 0000. However, the value from the rust embedded book (0x0800 0000) is the correct one. The only thing that has to be adjusted in memory.x are the sizes.