Hi,
I need to download the intel hex file from my bootloader into the CPU in order to update the firmware.
The intel hex file is generated by compiler. I am currently using IAR, and the version is listed below:
- IAR C/C++ Compiler for MSP430 5.10.6 (5.10.6.50180)
- IAR Assembler for MSP430 5.10.4 (5.10.4.50168)
The format of the intel hex has been set to intel-extended.
However, after downloading, i am not able to start the system with the new firmware.
I found that there is a start segment address record (:040000030000633264) before the end-of-file record (:00000001FF) in the intel hex file.
The start segment address record is used to specify the start address for Intel processors, namely, what values should be loaded into CS and IP registers.
So, for MSP430, I think the start segment address record should set the program counter (PC). But, I didn't find a way to modify the value of PC register.
So, here are my questions:
(1) Is my understanding for start segment address record correct?
(2) How do I change the value of PC register?
Thanks
Liu