Skip to main content
sne_123
Associate III
February 12, 2019
Question

Upload a config file.

  • February 12, 2019
  • 2 replies
  • 748 views

How can I upload a config text file to stm32 flash ??? what softwares do zi need to install and what will be the procedure to check the presence of config file and update the firmware accordingly with new settings????

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    February 12, 2019

    Files are just a collection of bytes.

    If you want flashing tools to manage this you'll need to translate the data to a .HEX, or rename/copy to a .BIN

    You'll need to decide the address you want this data to reside.

    On the program side you could facilitate the writing of data to a designated area of flash.

    The reading would be done like any other memory access, you can use pointers and structures, and you can inspect memory to see if it is erased vs containing configuration data.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    sne_123
    sne_123Author
    Associate III
    March 5, 2019

    Thank you for your reply @Community member​  .