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.
Tool/software:
BLAZAR Cortex M4F 0 core.
CPU reset has been done.
We had previously successfully run Hello World program, now trying to run our program (which runs successfully on a Linux server platform).
After successfully printing a couple of printf statements from a program, data structures within the program start getting accessed. After a few lines of code, we get the message:
BLAZAR_Cortex_M4F_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 12.7.0.00130)
Beginning of map file is:
******************************************************************************
TI ARM Clang Linker PC v3.2.2
******************************************************************************
>> Linked Mon Jul 22 10:07:10 2024
OUTPUT FILE NAME: <m3_tx.out>
ENTRY POINT SYMBOL: "_c_int00_noargs" address: 00004031
MEMORY CONFIGURATION
name origin length used unused attr fill
---------------------- -------- --------- -------- -------- ---- --------
RAM 00000020 ffffffe0 0000562e ffffa9b2 RWIX
SEGMENT ALLOCATION MAP
run origin load origin length init length attrs members
---------- ----------- ---------- ----------- ----- -------
00000020 00000020 0000234c 00000000 rw-
00000020 00000020 0000234c 00000000 rw- .bss
00002380 00002380 00001f0c 00001f0c r-x
00002380 00002380 00001f0c 00001f0c r-x .text
0000428c 0000428c 000001dd 00000000 rw-
0000428c 0000428c 000001dd 00000000 rw- .data
00004470 00004470 00001000 00000000 rw-
00004470 00004470 00000800 00000000 rw- .stack
00004c70 00004c70 00000800 00000000 rw- .sysmem
00005470 00005470 000001fc 000001fc r--
00005470 00005470 00000171 00000171 r-- .rodata
000055e4 000055e4 00000088 00000088 r-- .cinit
Not 100% sure, but at crash time, trgmsg.c opens up, with function:
_CODE_ACCESS void __TI_writemsg( unsigned char command,
register const unsigned char *parm,
register const char *data,
unsigned int length)
Hello Swaminathan,
Thanks for reaching out to Texas Instruments E2E support forum.
Can you please tell which example are you trying to run?
Also can you please provide details how can we replicate the issue at our end?
Can you please provide sample code for replicating the issue and faster debugging?
BLAZAR_Cortex_M4F_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 12.7.0.00130)
Can you please put a breakpoint on the code from where the control is going to Fault handler?
Regards,
Tushar