EmbeddedRelated.com
Forums

How to use IAR compiler to program a memory image

Started by lslonim2 July 10, 2008
Anders,

We have a slightly unusual problem. This is about an MSP430F148 using
IAR C tools.

We put a bootloader in our product, then download an application image
into it. The download takes a long time (20 minutes). The bootloader
and application are both C projects built on your compiler. The
download process builds various other structures and pointers in
program space, based on the download process.

We would like to copy out the memory image after the download, then
just program that complete image into more units.

I figured out how to upload the entire program memory space using the
memory window. That works well, and produces intel hex records.

So my question is, is there a way to use the IAR environment to take
an image and program an msp430F148 with it? We don't need to debug the
image, just to program it. It does not involve info memory, just
program space. It would be a project with no source code, just a
memory image.

Any suggestions appreciated.

Thanks,

Lloyd

Beginning Microcontrollers with the MSP430

I do something similar although your programming seems awfully slow. For
production programming I use a TI MSP-GANG430 programmer to suck the flash
image out of the programmed device and then the same tool to blow the image
into new devices. The image is also given to the component supplier for
programming large production quantities.

Ian

http://www.satamatics.com

2008/7/10 lslonim2 :

> Anders,
>
> We have a slightly unusual problem. This is about an MSP430F148 using
> IAR C tools.
>
> We put a bootloader in our product, then download an application image
> into it. The download takes a long time (20 minutes). The bootloader
> and application are both C projects built on your compiler. The
> download process builds various other structures and pointers in
> program space, based on the download process.
>
> We would like to copy out the memory image after the download, then
> just program that complete image into more units.
>
> I figured out how to upload the entire program memory space using the
> memory window. That works well, and produces intel hex records.
>
> So my question is, is there a way to use the IAR environment to take
> an image and program an msp430F148 with it? We don't need to debug the
> image, just to program it. It does not involve info memory, just
> program space. It would be a project with no source code, just a
> memory image.
>
> Any suggestions appreciated.
>
> Thanks,
>
> Lloyd
>
If I understand correctly what you're trying to do, the Olimex
MSP430-JTAG-ISO might be a very useful tool.
It has a Read and a Write buttons. If I'm not mistaken, this allows
you to 'copy' the program from one unit to another. It can be used
stand-alone, so all you need is a 12V power supply. You don't even
need a PC.
Here's the product link. http://www.olimex.com/dev/msp-jtag-iso.html

Regards,
Michael K.

--- In m..., "lslonim2" wrote:
>
> Anders,
>
> We have a slightly unusual problem. This is about an MSP430F148 using
> IAR C tools.
>
> We put a bootloader in our product, then download an application image
> into it. The download takes a long time (20 minutes). The bootloader
> and application are both C projects built on your compiler. The
> download process builds various other structures and pointers in
> program space, based on the download process.
>
> We would like to copy out the memory image after the download, then
> just program that complete image into more units.
>
> I figured out how to upload the entire program memory space using the
> memory window. That works well, and produces intel hex records.
>
> So my question is, is there a way to use the IAR environment to take
> an image and program an msp430F148 with it? We don't need to debug the
> image, just to program it. It does not involve info memory, just
> program space. It would be a project with no source code, just a
> memory image.
>
> Any suggestions appreciated.
>
> Thanks,
>
> Lloyd
>

The IAR compiler cannot do this. At least I do not see a way to read
out a memory image from a given microprocessor, store it in a
suitable format and then program it in a second microprocessor. To
accomplish this task you should use a tool as the elprotronic
fet-pro430 lite, which is free.
Have a look to www.elprotronic.com .
Regards
Antonio