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.

How to solve this issue: CORTEX_M4_0: Can't Run Target CPU

Other Parts Discussed in Thread: TM4C129ENCPDT, UNIFLASH, LMFLASHPROGRAMMER

Dear all friends~

After I modified the flash address in tm4c129encpdt.cmd file, I cannot debug my code(XDS100v2), and the error message is CORTEX_M4_0: Can't Run Target CPU: (Error -1268 @ 0x1090001) Device is locked up in Hard Fault or in NMI. 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). (Emulation package 5.1.73.0)

how do I solve this issue? Thanks :-))

MEMORY
{
    FLASH (RX) : origin = 0x2800, length = 0xFD800
    SRAM (RWX) : origin = 0x20000000, length = 0x00040000
}

SECTIONS
{
    .intvecs:   > 0x2800
    .text   :   > FLASH
    .const  :   > FLASH
    .cinit  :   > FLASH
    .pinit  :   > FLASH
    .init_array : > FLASH

    .vtable :   > 0x20000000
    .data   :   > SRAM
    .bss    :   > SRAM
    .sysmem :   > SRAM
    .stack  :   > SRAM
}

  • Hi Tu,

    In Cortex M4 the Boot Vectors "must" be kept at 0x0 and not at some other location unless you have a code that is kept at 0x0 and allows the system to jump to 0xFD800 to a second code.

    At this point I would suggest you do a Unlock through the LMFlashProgrammer if you can connect back the ICDI or UNIFLASH if using CCS.

    Regards

    Amit

  • Hi Amit Ashara,

    Thanks your reply, because of I wanna use bootloader(from boot_demo_uart example) at flash address 0x0 and main code at flash address 0x2800, so I modified the tm4c129encpdt.cmd file.

    According to my understanding, when I use tm4c1236 chip, I could use stellaris library to debug, although I modify the Boot Vectors at 0x2800. This is why I cannot understand meet this issue.

    I'll take a try, thanks for your help:-)

  • If you haven't yet, please take the time to thoroughly read and comprehend the Boot Loader user's guide.

    http://www.ti.com/lit/ug/spmu301/spmu301.pdf

    It contains a lot of relevant information that will help you in achieving your goal.

    --Miles