Skip to main content
Vins
Associate III
September 14, 2021
Question

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).

  • September 14, 2021
  • 2 replies
  • 630 views

..

    This topic has been closed for replies.

    2 replies

    TDK
    Super User
    September 14, 2021

    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""."
    Tesla DeLorean
    Guru
    September 14, 2021

    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 VenmoUp vote any posts that you find helpful, it shows what's working..