2018-07-07 08:32 AM
Hello,
I have a custom board with the MCU STM32F769. We integrate the board inside a machine. To update the software, the user has access only to RS232 and power ON/OFF switch.
We use another controller (not from STM ) and we wanna change to STM controller. But we have to use our current flash procedure:Power ON --> the UART go into the Boot mode for few seconds.If the UART detects a flash command from the flash tool, the controller begins to update the software. If there no command from the Flash tool detected, the controller executes the user code.Is there a way to flash the STM32F769 through the UART without to set any jumper on the circuit.
Thank you for your help
2018-07-07 08:49 AM
You write the software placed on the F769, you can make it do whatever you want, right?
Use the first flash block for your own loader code, have it wait, have it check the integrity of the App portion of the flash, if that is missing or corrupt enter a recovery mode.
Look at IAP and DFU example code for the platform. Might also be able to jump into the ROM, but writing you own code is probably the most efficient method, and you could implement a standard protocol like X-MODEM-1K, or whatever.