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.

TM4c1294 Flashing MAC address

Other Parts Discussed in Thread: UNIFLASH

I read through this and I was able to flash MAC address to TM4C1294NCDPD without any problem. I was able to read MAC address back as well.

e2e.ti.com/.../1374136

But once I close the utility and try to flash the program through XDS200 it came back with error.

"Unable to stop device".

I reset device multiple time and still could not get it to work. After that I tried going back and forth between Uniflash and CCS and it always comes with same error.

Please provide help.

Tushar

  • It seems that there is some error in your code so that the debugger cannot halt CPU.

    (1) To recover the device, you can use LM programmer to completely erase the flash.

    (2) To prevent thsi situation from happening again, I would suggest adding the instruction "asm( " b #-4");" at the beginning of main(). After a reset, the CPU will start running. This instruction will force the CPU to loop around the address. In this way, you will always be able to halt the CPU. You will need to use the debugger to bypass this instruction to move on.

    Thanks and regards,

    Zhaohong
  • Thanks Zhaohong. I am struggling to use LM-flash programmer with my custom board.

    We have JTAG connector on the board with 10Mhz speed set in target configuration file.

    Please see setting below.

    When tried to erase entire memory it pops up with this error message.

    I have tried using Uniflash to do same. But then It pops up with error "enable to halt device". Please refer attached screen shot.

    Your help is realy appreciated in this matter,

    Thanks.

  • Tushar Patel40 said:
    I am struggling to use LM-flash programmer with my custom board.

    Try using the Debug Port Unlock utility in LMFlash Programmer - see https://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/t/310876 for details.

  • Looks like my screen shot images were filtered and were not included in my reply.

    LM flash programer: 

    Set to Manual confiuration and ICDI> JTAG> Speed: 10000000

     I am getting following message on LM flash programer when I try to erase flash:"**Error**: Unable to find target"

    On Uniflash:

    "Error connecting to the target:

    (Error -2062 @ 0x0)

    Unable to halt device. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK)."