Frederic Beaulieu wrote:
Hi all,
what is the fastest/elegant way to downlaod only a
serial number directly into the information memory. I
want to be able to put the serial number before of
after a program download into the main flash memory
wihtout corrupted it. Is there a fast way with
msp430-jtag?

there are several ways.

 - download an intel hex file (.a43). this format is
   easy to patch before downloading.

 - make a single line intel hex file with your serial number
   and write it with msp430-jtag. you must be sure that the
   memory you write to is erased.

 - otherwise you'd need to upload an entire flash segment, patch
   the values and download it again. that could be done with
   "msp430-jtag --ihex --upload 0x1000 --size 256" (output to a
   file or use pipes to connect the programs output to each other)

 - you could also use the python modules, which allow to call
   memory read/write/erase commands manually. that way you don't
   need to create intermediate files. that's probably what i'd do.

chris

Reply via email to