Part Number: MSP430F2131
Hello, I’m Daniele Fingolo sfotware developer from SMH Technologies.
We produce and sell a universal programmers for microcontrollers and memories in general.
We have this important customer who wants to program 2 firmwares inside the memory of an MSP430, one for the final application and one for the functional test.
When the board is in the functional test station it should move to the program counter at the beginning of the test firmware code and execute the code. Once the functional test has been completed, the program counter must be replaced so that the firmware of the final application is always executed from here on.
Can you help us on this topic?
From the programming procedures and the various documents, there is no such procedure to change the Program Counter and execute two different firmwares.
What we have understood, however, is that the initial program counter is located in the reset vector, ie the final address of the memory 0xFFFE-0xFFFF. So our idea to change the program counter is to read the last memory sector, save the data in a buffer, delete the sector and rewrite the sector with the program counter you need.
Could this be a possible correct solution?