Skip to main content
Rstua.1
Senior
March 22, 2021
Question

Is the bin file created by the STM32CubeIDE compatible with the STMicro IAP coding example?

  • March 22, 2021
  • 2 replies
  • 777 views

I want to be able to copy the STM32CubeIDE bin file to an SDCard and have the IAP read that bin file directly to reprogram the STMicro processor's flash memory.

2 replies

Tesla DeLorean
Guru
March 22, 2021

Make sure the address basis you create the project/binary for in CubeIDE (ie linker script, SCB->VTOR setting) matches those expected by the IAP loader for the MCU you are using.

For example if the IAP takes 32KB, and it expects the firmware binary to start at 0x08008000, make sure you build using those expectations.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Robert.Ramon
Associate
January 10, 2025

I have the same doubts, but with the STM32F722RET6, there is not enough content on the web, and the functions to point to memory locations are much more advanced than common C code.
Does anyone know the link to a sample repository on Github that shows how to use these functions correctly?
Are there any courses that teach how to make a custom bootloader with CubeIDE? It is important knowledge to acquire and I would like this help here on the forum.