cancel
Showing results for 
Search instead for 
Did you mean: 

Hi ST Community, In SAI example, an audio file is in .bin. This file is flashed directly at @0x08010000 using ST-Link utility. But, I wanted to write the hex file to the particular memory address by program (not using ST-Link utility).

Vins
Senior
 
2 REPLIES 2
TDK
Guru

Is there a question here? You can write to FLASH in your program using the various HAL_FLASH_* calls. There should be examples in the relevant CubeMX repository for your chip.

If you feel a post has answered your question, please click "Accept as Solution".

Do you plan on writing the Windows side application replacing the ST-LINK Utility?

How do you propose to do the download? Via serial? Using X/Y-MODEM type protocol?

You can implement the target side code via the HAL Flash calls to erase and write to the memory area to be used for the binary data.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..