This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSPM0G3507: Request for sample programs

Part Number: MSPM0G3507

Tool/software:

Please give us a sample program that will help us to achieve the following.

When updating F/W, we would like to run the program on RAM and rewrite Flash via UART communication.

 

Example: For the first time, a program for F/W updater is written in Flash together with a normal program in the manufacturing process in advance.

(1) While the normal program is running, the prg for F/.W updater is copied to RAM by a communication instruction, and operation starts in RAM.

(2) Erase Flash by communication and write to Flash while receiving new F/W.

(3) Reset itself and boot from Flash.

  • Hi Masaki,

    I suppose there is no method to dynamically change the code running in RAM or in FLASH. It is defined by firmware and execute in the very first c code initial stage.

    In our driverlib, we have already set the flash programmer API function in SRAM, user could use the API to program the FLASH with the code running in SRAM. The reset of the code will run in FLASH.

    As for the sample code, please refer to SDK example code and check the source code. You can address at the flashctl example project.

    Please let me know if there is any further concern.

    B.R.

    Sal

  • Thanks for the advice.