Hi Larry,

on some MSP devices (I don't know the 448, but it is true for the 54xx), part 
of the info flash (namely the info segment A) is write protected and not erased 
even with the mass erase command.
This segment holds calibration data for the internal DCO and such.
To flash it, the LOCKA bit in the flash controller must be toggled (not set) to 
0 (writing a '0' will not clear the bit, a '1' will toggle it).
If this isn't done by the bootstrap loader (and I guess it isn't by default, as 
this would make the protection void)  the segment A will neither be erased nor 
written to and cause an error.
Write your data to the other segments and all will be well.

JMGross




----- Ursprüngliche Nachricht -----
Von: Larry Young
An: [email protected]
Gesendet am: 11 Jan 2010 19:38:05
Betreff: [Mspgcc-users] BSL InfoSegs Error

Thanks to this group, I have been using the msp430/gcc toolchain and the 
BSL updater "bsl-updater.nsi" successfully with an MSP430F448.  
Yesterday I added some fixed parameters to be stored in the information 
segments at 0x1000-0x10ff, by adding a const array of ints with the 
__attribute((section(".infomemA"))) syntax and adding this section to 
the linker command line.  The resulting hex file shows the new values 
correctly, and I can program the MSP430 with msp430-jtag through the 
JTAG hardware.  All good, so far.

Unfortunately, when I use the same hex file as the input to the 
bsl-updater and create the standalone updater.exe and run it, the update 
process dies after:
  Download on COM4...
  MSP430 Bootstrap Loader Version: 2.0
  Mass Erase...
  Transmit default password ...
  Invoking BSL...
  Transmit default password ...
  Current bootstrap loader version: 1.60 (Device ID: f449)
  Program ...
  40978 bytes programmed.
  Write InfoSegs ...

  An error occoured:
  NAK received (wrong password?)
  An error occurred, could not write target.
  Aborted.

Can anyone advise me as to why adding data in the 0x1000-0x10ff range 
would cause the BSL to fail?  What is happening at the line "Write 
InfoSegs"?

Larry



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users


Reply via email to