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.

Debugger keeps overwriting flash storage

Other Parts Discussed in Thread: CC430F6137

So I'm storing some data in Flash on my cc430f6137, I thought I understood from the datasheet that the flash sectors were 512bytes long.  So I did this in my command file:

LNK_TBL : origin = 0x8000, length = 0x0200

FLASH : origin = 0x8200, length = 0x7D80

Now this works fine, main code is loaded at 0x8200 now, but every time the debugger loads new code to the device it erases the LNK_TBL section.  I have set "Erase and download necessary segments only" but it still happens.  Not sure what I'm missing here unless I misunderstood the size of the flash sectors that get erased?

Any help would be appreciated.

Thank you,

-Eric

  •  Perhaps any segment that you specifically mentioned (such as your LNK_TBL) is considered "necessary" and thus erased.

    Are all the Flash erased? If not, try give the un-erased part a name. I bet it will erase it when you do that.

**Attention** This is a public forum