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.

TM4C1290NCPDT: Erasing OTP memory

Part Number: TM4C1290NCPDT
Other Parts Discussed in Thread: UNIFLASH, SEGGER

Hi Amit.

I am back on this task and have a board with a button I can control the hardware reset line. The command you pointed me to does erase the TM4C1290 FLASH memory but leaves the contents of the OTP memory untouched.

I was under the impression the dbgjtag.exe command for the XDS100V2 module would also erase/reset OTP memory. Is there another command to use? Or possibly a newer dbgjtag.exe?

Marc.

  • Hi Marc,
    Do you have a custom board or you are using Launchpad?

    I tried to program some random data to the User Register 0. I then use the LM Flash Program to do an unlock. After the unlock I can see the User Register erased to all F's.

    This is what I did using LM Flash Programmer.

    1. Hold the reset pin
    2. Disconnect Power
    3. Connect the power while the reset is still held
    4. Click on the unlock button in LM Flash Programmer
    5. The LM Flash Programmer will ask to release the reset
    6. Release the reset button
    7. The LM Flash Programmer says the unlock is complete

    When I connect to the device in CCS I can see the User Regisgter 0 erased.
  • Hi Charles.

    As per what Amit suggested I am using DBGJTAG.EXE and a command line from the "Using TM4C12x Devices Over JTAG Interface" PDF for the DBGJTAG.EXE (from UNIFLASH 3.4) and an XDS100v2 debug module. (I tried an XDS200 module too with the same results: FLASH memory erased but the OTP memory remained intact.)

    Let me try the LM Flash programmer tool.

    Marc.

  • Sorry, I forgot to address you first question. I am using a custom board.

    Marc.

  • Charles,

    I have started the LM Flash Programmer tool ( Build 1613) and on the "Other Utilities" tab all of the radio buttons/text selection fields are greyed out.

    There is this: "The Utilities are disabled when the USB interface is chosen on the Configuration tab."

    All I have available me is a Blackhawk USB100v2 debug module, Spectrum Digital XDS200 module (USB), and a bunch of USB SEGGER JLINK Ultra+ modules.

    Marc.
  • Hi Marc,
    The LM Programmer only support ICDI not XDS100. I 'm not sure why the dbgjtag.exe does not erase the user registers. I need to check if the feature (OTP erase) is or is not supported by dbgjtag.exe. Did you try the Uniflash?
  • UNIFLASH version 4.1.0 1169 does not have a Settings & Utilities option to clear/reset OTP memory. I tried an "Erase Flash" operation and the OTP registers remain untouched.

    Is there a UNIFLASH command line to erase the OTP memory?
  • Charles,

    I think I have answered my own question. I created a standalone command line version of UNIFLASH (uniflash_windows_64) and after unzipping the file have run the "one_time_setup.bat" file and then used dslite.bat to print out the help and then used dslite.bat and the -n arg and then the -p arg and it would appear the available FLASH operations do *not* include resetting the user registers 0 or 1 nor resetting the MAC address register.

    Do you know of any thing else I can do with the GUI UNIFLASH (or LM Flash Programmer or the stand alone command line UNIFLASH tool or some other version of DBGJTAG.EXE or some other software tool) to erase the OTP (user0/user1) registers in the TM4C1290 part?

    Marc.
  • Marc,

      In the Unlflash you will find the Unlock button. Did you try this?

  • Hi Charles.

    There is no "Debug Port Unlock" button in the version of UNIFLASH I'm running. (Version: 4.1.0 1169.) "v4.1" is the latest version I find at the TI UNIFLASH download site.

    I'm launching it a shortcut which runs this executable:

    C:\TI\uniflash_4.1\node-webkit\nw.exe

    Marc.
  • Marc,

     I just downloaded Uniflash 4.1.0.1169 and I do see the Debug Port Unlock. Please see below in the setting & utilities tab.

  • Charles, there is no Unlock Debug Port button when using the 4.1.0 version of UNIFLASH at least with a XDS100v2 USB Debug probe.

    I switched to an older version (3.4?) version of UNIFLASH and the Unlock Debug Port button is there but when I tried it while it appeared to work the user registers were *not* erased.

    Just tried version 3.3 and while the unlock steps were followed the user registers were no erased.

    I have tried a XDS200 USB Debug probe (Spectrum Digital) but the 4.1.0 UNIFLASH is unable to communicate with it. A co-worker tried UNIFLASH 3.1 with a Digital Spectrum XDS200 USB Debug probe and he was able to connect with a board identical to mine. He did not try the reset user registers operation though because he doesn't want to render his board inoperable.

    Somehow I did manage to finally get the XDS200 USB Debug probe working long enough to do an unlock Debug Port operation but I'm no longer able to communicate with the debug probe.

    I'll switch back to the XDS100v2 probe....

    The user/MAC Address registers are still not erased.

    Tried to get the XDS200 probe working but it appears UNIFLASH killed it. The board won't boot up now with the XDS200 probe connected. It powers up ok with the XDS100v2 probe though.

    Marc.
  • Hi Marc,
    I only have a LaunchPad with the ICDI in it. If I use LM Flash Programmer it will work. The user register will be erase. I also tried Uniflash 4.1.0. Since my board does not have a JTAG connector for external emulator connection I can only select Stellaris ICDI as the debug probe. However, I can never get it to erase any using the Unlock button. Not only the user register is not erase but also the main flash is not erased. This is actually a different problem. I need to look for some boards that I can try with XDS100 or XDS200.
  • Hi Marc,

    I wanted to introduce myself as your local point of contact for the Bay area. Please feel free to reach out to me for all things Analog & if you ever need any assistance with pricing or supply chain.

    Our office is located in SF, not too far from Hayward. if you are free sometime in the next couple of weeks, would love to chat with you.

    Respectfully,
    Omid