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.

MSP430FR5994: Reading info memory / TLV data over SBW using a debug interface

Part Number: MSP430FR5994

Hi, 

Am i supposed to be able to read the information memory area in the MSP430 over a debub interface? (before its programmed).

I've tried the TI uniflasher tool, with the MSP-FET430UIF, and also Flashpro430 using the Elprotronic adapter. Both just read 0xFFs for the whole info section. 

Wasnt sure if im missing something about password protection or something but cant find anything in the user manual. 

thanks,

Michael.

  • Hi Hichaelmac,

    With these being un-programmed devices, were you expecting something besides 0xFF in the info memory area? Nothing is really guaranteed in terms of the memory contents on a blank part. 0xFF may be the default value.

    You should be able to read the info memory by default on a blank part, as I don't believe the memory protection unit / IP encapsulation features would block read access on a blank part (I may need to verify this). The User's Guide states that post-reset the information memory area has read-write-execute permissions.

    Walter
  • With regard to the TLV device descriptors, are you saying that you also get 0xFF's from 0x01A00 to 0x01AFF?

    Walter
  • Walter Schnoor said:
    With regard to the TLV device descriptors, are you saying that you also get 0xFF's from 0x01A00 to 0x01AFF?

    Walter

    Hi Walter, 

    thanks for the reply. I was getting mixed up because i misread that the info memory included the TLV descriptors, and thought the FR devices had scrapped having a user section, and was all non-writeable device descriptor info.  So when I read the section on the Elprotronic it reported that the whole area as being 0xFFs. Then on the FET430UIF it looked like all  0x1800 to 0x1AFF where 0xFFs, but tried again this morning and scrolling down, i do now see the TLV information from 0x1A00, great! Think it was a combination of things and a lack of coffee that confused me :)

    Tried again on the Elprotronic and it only reads to 0x19FF. I dont think it knows about the TLV section so i guess it needs an update for these newer devices. 

    Do you know of any programs or scripts for a PC to parse the TLV info? for example converts into a xml structure file or something similar? 

    Many thanks,

    Michael

  • Hi Michael,

    As an alternative, you can use MSP Flasher to read out specific address regions.  If you're using a PC, a batch file to read the TLV would look like this:

    CLS
    MSP430Flasher.exe -r [tlv.txt,0x1A00-0x1AFF]
    pause

    On an MSP430FR5994 device that I happen to have, you would get a text file output that looks like this:

    @1A00
    06 06 83 8D A1 82 10 10 08 0A 04 AB FB 29 31 00
    41 00 F0 FF 11 10 0B 80 00 00 9B 0A 71 0C 5A 06
    73 07 13 05 F3 05 12 06 AE 7F C8 7F F8 7F 15 10
    C2 8D DA 52 08 0B 96 6F 21 3F 6C C4 7B DE 3C FF
    1C 02 00 00 FF FF FF FF FF FF FF FF FF FF FF FF
    FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
    FF FF FF FF 10 01 02 96 16 01 9A 8C 18 01 30 BB
    1A 01 47 C0 1A 01 47 DC 1A 01 47 5C 10 01 02 96
    14 01 2D 40 10 01 01 96 14 01 00 01 10 01 D8 96
    12 01 09 12 1A 01 00 24 1C 01 00 40 10 01 1C 96
    16 01 00 90 18 01 22 22 1A 01 00 05 1C 01 63 03
    10 01 14 96 16 01 00 09 14 01 01 80 40 01 00 A5
    10 01 A0 96 12 01 22 C9 1A 01 7E 00 1C 01 10 00
    10 01 A8 96 12 01 09 00 8C 1A 74 1A AA 05 FF FF
    FF FF 94 00 04 00 C3 3C 00 00 18 81 30 02 FF FF
    q

    There aren't any hex to XML scripts ready-at-hand that I know of.  Python would be a good tool for this if you wanted to create something.  You could probably call the flasher utility from within a Python script, then have Python open the results and format them accordingly.

    You can download MSP Flasher here: www.ti.com/.../MSP430-FLASHER

    Regards,
    Walter

  • Thanks Walter that was the sort of thing i was after. I have MSP430_flasher and was thinking of calling it in a python script or similar, but it was the next bit - converting to readable format - i was hoping to steel from somewhere :) will look into creating something in python.
    regards,
    michael.

**Attention** This is a public forum