MSP430 Programming problem using MSPGCC win32 pkg - help!

Hi guys - we are using the Win32 MSPGCC package from sourceforge and are having a little trouble programing the microcontroller (MSP430F149).

Via our JTAG programmer board we can connect to the micro, read the device identity, Vcc voltage and dump the register values etc ok. However when we try to download the binary program file we have problems.

The messages we receive are:

Debug window - "memory access error when loading section.txt". GDB Proxy Window - "Could not write to device memory"

If we try to erase the device using - "monitor erase all", we get a message back stating "received command erase, could not preserve/restore device memory (12)"

From the above it seems our JTAG programmer and the test board/connections are all working ok. The PC is running Win XP if this is of any relevance.Has any one any advice as to what our problem is?

TIA

regards rob

Reply to
Rob
Loading thread data ...

message

relevance.Has

I had all sorts of similar problems when I started using a setup like yours - MSP430F449, parallel port JTAG, mspgcc. My target hardware was powered by an external DC supply. When using the JTAG however the board was also getting power through the JTAG connector. I found that if I unplugged the external supply whenever I was using the JTAG then all the problems went away.

With the external power disconnected, and the JTAG connected I use the command:

"msp430-jtag -ep a.out"

to both erase then program the flash. Typing the command causes the board to power up through the jtag connector.

Don't know if this is relevant to your problem but maybe?

Regards, Richard.

formatting link

Reply to
Richard

////////////>

Hi Richard - thanks for the feedback, it could be the problem. I'll check it out during the week. regards rob

Reply to
Rob

A related question: I have a binary file produced by IAR EW (using a release build instead of a debug build). Can this hex-ish file be turned into a file that's compatible with msp430-jtag? I need to ship binary, not source, to someone and I can't work out how to get IAR to burn this file (alone) into the MSP430.

Reply to
Clifford Heath

What format is produced by IAR EW? If it is non proprietary then I think you should be able to convert to ihex using msp430-objcopy.

Regards, Richard.

formatting link

Reply to
Richard

Address lines look like: @ABCD Data lines look likez:

96 F1 3C 90 CC 00 02 20 5E 43 01 3C 4E 43 5E B3 and the closing line is: q

That's all - easy to convert, but what format would be easiest?

Reply to
Clifford Heath

Sounds as if the above is an absolute address format, with no checking whatsoever. Then the next question is "what is ihex format". After which the conversion sounds trivial.

--
Chuck F (cbfalconer@yahoo.com) (cbfalconer@worldnet.att.net)
   Available for consulting/temporary embedded and systems.
     USE worldnet address!
Reply to
CBFalconer

That was my guess.

If that means Intel Hex format, and msp430-jtag handles it, then I can do the rest.

Thanks for the help.

Clifford Heath.

Reply to
Clifford Heath

I think Intel Hex is default of msp430-jtag.

"msp430-jtag --help" for details.

ihex is objcopy speak for Intel Hex.

Regards, Richard.

formatting link

Reply to
Richard

The following exercpt from ppmanual (available in full at the URL in my sig below) may be useful. It is presented as a quotation to avoid line wrap at transmission, although the receiver may do funny things to it.

--
Chuck F (cbfalconer@yahoo.com) (cbfalconer@worldnet.att.net)
   Available for consulting/temporary embedded and systems.
     USE worldnet address!
Reply to
CBFalconer

Thanks guys, I'm writing a converter. I'll let you know how it goes. It only really depends on whether msg430-jtag needs more than just the binary data in the ihex file.

Reply to
Clifford Heath

Well, msp430-objdump seems to be able to disassemble my file after conversion. Just gotta try msp430-jtag now. Anyone want a copy of my converter? It's a bit cheap and cheerful, but seems to work.

Reply to
Clifford Heath

Clifford Heath wrote in news:427ff285$0$5175$ snipped-for-privacy@news.optusnet.com.au:

that is the TI-text format, msp430-jtag can read that (with the right file extension, or force it by a command line option)

the .a43 files that can be produced with IAR EW are intel hex format and msp430-jtag can handle them of course.

chris

--
GCC for MSP430: http://mspgcc.sf.net
Chris
Reply to
Chris Liechti

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.