cancel
Showing results for 
Search instead for 
Did you mean: 

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

Rstua.1
Senior

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 2

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 Venmo
Up vote any posts that you find helpful, it shows what's working..
Robert.Ramon
Associate II

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.