Skip to main content
RMhap.1
Associate
July 25, 2022
Question

How to keep program in flash memory

  • July 25, 2022
  • 4 replies
  • 1365 views

I am trying to use STEVAL-STWINKT1B for predictive maintenance application as an standalone device using Battery pack provided in the kit. But i need to flash the program everytime i remove the battery. I wanted to know if there is a way to keep it within the board and not requiring to flash the program everytime i restart the board.

Maybe i am missing something while programming the board. Any help would be much appreciated.

    This topic has been closed for replies.

    4 replies

    Tesla DeLorean
    Guru
    July 25, 2022

    Suspect you are missing something, program should be in flash, and should be able to recover from changing battery if NVRAM or RTC​ need reinitializing.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    RMhap.1
    RMhap.1Author
    Associate
    July 25, 2022

    Hi @Community member​  Thanks for the response, I was wrong in that term. The program stayed in the flash memory. I understood the problem.

    I need to connect it to the USB the first time whenever i start the board. So if the power supply is cut from the battery pack, and i reconnect the battery again the board doesn't start working but if i give it power through the laptop the code starts running and then i can keep it running as a standalone device on the battery.

    Is there a way to get the board running directly by connecting the battery after unplugging it instead of giving the initial power through the laptop?

    Tesla DeLorean
    Guru
    July 25, 2022

    This is not a board I'm using. Would suggest a review of the schematic in terms of power sources and flow.And then reviewing the code to understand what what the expectation and provisions are there for initial power up scenarios.

    Does it need the laptop, or does a USB juice-box type battery, or charger suffice?

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    MM..1
    Super User
    July 25, 2022

    Check BOOT0 setup