Running Rust code on CW1200 Pro with STM32F415 target


I am trying to get some Rust code to run on an STM32F415 target to do power analysis with the CW1200 Pro, however, I am having trouble getting any code to run.

I successfully got some Rust code to run on the STM32F303 using the Rust STM32F3xx HAL. However, due to the limited RAM of this device, I had to upgrade to the more powerful STM32F415. This uses the corresponding HAL implementation in Rust

As a start, I am just running their version of “Hello World”: Trying to blink an LED, namely the one connected to PC13, to test if the code runs at all. However, I see no results.

Has anyone had success with running rust code on this target?

My process is as follows:

  • I first compile the rust code to target “thumbv7em-none-eabihf” using cargo.
  • I then use “arm-none-eabi-objcopy -O ihex -R .eeprom target/thumbv7em-none-eabihf/debug/hello hello.hex” to convert the generated elf code to hex code
  • Finally, I upload the .hex file using python and the same procedure as used in the jupyter notebooks.

Let me know if I need to provide more information.