This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F2131

Other Parts Discussed in Thread: CC1101, MSP430F2131

We use the MSP430F2131 with CC1101 for our wireless products.  We are releasing a new product that utilizes all the memory, including INFO A Segment.  I am able to write to this location using an Elprotronic USB Flash Pro 430 and a TI MSP-FET430UIF using Lite FET-Pro430 by Elprotronic.  When using our functional program, written in Visual Basic 6.0, we are unable to write to location 0x10C0.  It may be that we are not using the proper command to write to this location.  The commands we are using are ERASE_MAIN, ERASE_SEGMENT, ERASE_ALL, and ERASE_NONE.  If anyone can be of assistance, it would be much appreciated.

Thanks

Rich Willingham

rwillingham@dmp.com

  • Address location 0x10C0 holds the memory Segment-A (INFOA) and is separately locked.
    Prior to Erase or Write you need to clear the LOCKA bit.
  • Would you happen to know the command for Visual Basic to clear the LOCKA bit??

  • I’m sorry but I’m not familiar with these commands nor with Visual Basic, but they will not differ much from the way you already need to program the device.
  • When using the 'commands ERASE_MAIN...', your program performs a register write to an MSP hardware register.
    e.g. it writes (somehow) (FWKEY|MERAS) to the FCTL1 register.
    To enable writing to the INFOA segment, the FCTL3 register must be read, and if the LOCKA bit is set, (FWKEY|LOCKA) must be written to it. (note, writing the LOCKA bit, it will invert the current setting!). To allow flash writing at all, your program already needs to clear and then set again the LOCK bit in the same FCTL3 register.

**Attention** This is a public forum