EmbeddedRelated.com
Forums

how to download the code from MSP430?

Started by magzky02 August 14, 2008
I cant figure out from my IAR compiler how to read the code from the
MSP430 and save it. I have borrowed a board with MSP430 already
programmed. I need to reprogam it to test my code but i should return
the oroginal code afterwards. Anyone?

Beginning Microcontrollers with the MSP430

----- Original Message -----
From: magzky02
To: m...
Sent: Thursday, August 14, 2008 9:49 AM
Subject: [msp430] how to download the code from MSP430?
I cant figure out from my IAR compiler how to read the code from the
MSP430 and save it. I have borrowed a board with MSP430 already
programmed. I need to reprogam it to test my code but i should return
the oroginal code afterwards. Anyone?
.
try FETPro Lite SW from
http://www.elprotronic.com/files/FET-Pro430-Lite-Setup.zip
it works with FET programmers (paralell & USB) and support IAR's .d43 format and, of course, common Intel's .hex and TI's .txt formats.

Jarda


I'm not sure if this works, but in IAR you can say to the compiler that
it should not clear memory/information memory/both. Then write a one
line program that you will run in RAM. 'flash' this program to the
MSP430. When the program starts all values in the flash should still be
there and you see all the disassembly information as well.

Probably the only thing that is different afterwards in the interrupt
vector pointing to the RAM location of your program. You will have to
repair that which can be a bit tricky because you don't know the
original starting position anymore.

magzky02 wrote:
>
> I cant figure out from my IAR compiler how to read the code from the
> MSP430 and save it. I have borrowed a board with MSP430 already
> programmed. I need to reprogam it to test my code but i should return
> the oroginal code afterwards. Anyone?
>