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.
各位TI的工程师:
大家好,我最近在用CC2538的芯片跑程序,用了TI的swrc271a\cc2538_foundation_firmware_1_0_1_0\driverlib\cc2538\examples\startup_files\startup_ccs.c和cx2538xf53_ccs.cmd来建立项目,当我下载程序到CC2538一开始程序在不断运行,出现如下提示:
Cortex_M3_0: GEL Output:
Memory Map Initialization Complete
Cortex_M3_0: Can't Run Target CPU: (Error -1268 @ 0x90001) 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.402.0)
Cortex_M3_0: Can't Run Target CPU: (Error -1268 @ 0x90001) 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.402.0)
Cortex_M3_0: Can't Run Target CPU: (Error -1268 @ 0x90001) 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.402.0)
Cortex_M3_0: Can't Run Target CPU: (Error -1268 @ 0x90001) 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.402.0)
IcePick_C: GEL: Error while executing GEL_Waiting = 1: identifier not found: GEL_Waiting at GEL_Waiting=1 .
IcePick_C: GEL: Error while executing WaitForSignal(): 'WaitForSignal()' not found at WaitForSignal() .
Cortex_M3_0: AutoRun: Target not run as breakpoint could not be set: Cannot enable while the target is free running
Cortex_M3_0: Trouble Halting Target CPU: (Error -2012 @ 0x0) Requested operation cannot be done while device is running. Halt the device, and retry the operation. (Emulation package 5.1.402.0)
Cortex_M3_0: GEL Output:
Still waiting for Reset to complete
1、我查了硬件电路,reset引脚上电时电压0.8V,仿真后下载程序进去再测reset引脚变成3.2V左右,拔出仿真器又变回0.8V。这是电压没有上拉还是给MCU拉低了电压导致复位?
2、出现这个错误的原因是什么?是内存映射出错还是硬件的问题
希望能够给我点提示和帮助,万分感谢。
J-X
你好,我是用CCS5.5里新创建CC2538的空项目,只有main.c和start_up.c文件,其他的初始化自己加。刚开始进行调试还能够下载进去调试,调到定时器的预分频时就出现这个问题,再用回一个简单的空程序也出现同样问题。还有那个GEL也是用TI提供的,不知这个文件的影响大不大,发现提示的信息就在这个文件里。不知我这个是属于上电启动的错误还是硬件或芯片上的错误?
谢谢了。
J-X,您好,我这边用到的仿真器不是smartrf06ebk上自带的,仿真器型号是TMS320-XDS100-V3
https://www.olimex.com/Products/DSP/Emulators/TMS320-XDS100-V3/
这个仿真器上的JTAG引脚不是标准的ARM的20pin,引脚排列如下图:
我觉得只要JTAG的几根信号线连对了就行的,所以我这边现在是用到14pin的接法,但是连上CC2538后提示
Cortex_M3_0: GEL Output:
Still waiting for Reset to complete
不知道问题出在哪里?谢谢
J-X
你好,可以帮忙看下我的内存映射正确吗?
.init_array
* 0 00200000 00000000 UNINITIALIZED
.intvecs 0 00200000 0000028c
00200000 0000028c startup_ccs.obj (.intvecs)
.text 0 0020028c 000002ec
0020028c 0000009c rtsv7M3_T_le_eabi.lib : memcpy_t2.obj (.text)
00200328 00000094 : auto_init.obj (.text)
002003bc 0000005e : copy_decompress_rle.obj (.text)
0020041a 00000002 --HOLE-- [fill = 0]
0020041c 0000005c startup_ccs.obj (.text)
00200478 00000044 rtsv7M3_T_le_eabi.lib : cpy_tbl.obj (.text)
002004bc 00000044 : exit.obj (.text)
00200500 00000034 : boot.obj (.text)
00200534 00000018 : args_main.obj (.text)
0020054c 00000014 : _lock.obj (.text)
00200560 0000000e : copy_decompress_none.obj (.text:decompress:none)
0020056e 00000006 : copy_decompress_rle.obj (.text:decompress:rle24)
00200574 00000004 main.obj (.text)
.cinit 0 00200578 00000020
00200578 00000010 (.cinit..data.load) [load image, compression = rle]
00200588 00000008 (__TI_handler_table)
00200590 00000008 (__TI_cinit_table)
.flashcca
* 0 0027ffd4 0000000c
0027ffd4 0000000c startup_ccs.obj (.flashcca:retain)
.stack 0 20004000 00000100 UNINITIALIZED
20004000 00000100 --HOLE--
.data 0 20004100 00000014 UNINITIALIZED
20004100 00000008 rtsv7M3_T_le_eabi.lib : _lock.obj (.data)
20004108 00000008 : exit.obj (.data)
20004110 00000004 : stkdepth_vars.obj (.data)
我的向量表.intvecs 0 00200000 0000028c
00200000 0000028c startup_ccs.obj (.intvecs)映射在了这个位置正确吗?
附件是我的map文件,上传格式的原因我改成.txt了。
****************************************************************************** TI ARM Linker PC v5.1.1 ****************************************************************************** >> Linked Mon Feb 24 17:17:44 2014 OUTPUT FILE NAME: <test-startup-files-empty-template.out> ENTRY POINT SYMBOL: "_c_int00" address: 002004fd MEMORY CONFIGURATION name origin length used unused attr fill ---------------------- -------- --------- -------- -------- ---- -------- FLASH 00200000 0007ffd4 00000596 0007fa3e R X FLASH_CCA 0027ffd4 0000000c 0000000c 00000000 R X SRAM_NON_RETENTION 20000000 00004000 00000000 00004000 RW X SRAM_RETENTION 20004000 00004000 00000114 00003eec RW X SEGMENT ALLOCATION MAP run origin load origin length init length attrs members ---------- ----------- ---------- ----------- ----- ------- 00200000 00200000 00000598 00000598 r-x 00200000 00200000 0000028c 0000028c r-- .intvecs 0020028c 0020028c 000002ea 000002ea r-x .text 00200578 00200578 00000020 00000020 r-- .cinit 0027ffd4 0027ffd4 0000000c 0000000c r-- 0027ffd4 0027ffd4 0000000c 0000000c r-- .flashcca 20004000 20004000 00000114 00000000 rw- 20004000 20004000 00000100 00000000 rw- .stack 20004100 20004100 00000014 00000000 rw- .data SECTION ALLOCATION MAP output attributes/ section page origin length input sections -------- ---- ---------- ---------- ---------------- .init_array * 0 00200000 00000000 UNINITIALIZED .intvecs 0 00200000 0000028c 00200000 0000028c startup_ccs.obj (.intvecs) .text 0 0020028c 000002ea 0020028c 0000009c rtsv7M3_T_le_eabi.lib : memcpy_t2.obj (.text) 00200328 00000094 : auto_init.obj (.text) 002003bc 0000005e : copy_decompress_rle.obj (.text) 0020041a 00000002 startup_ccs.obj (.text:FaultISR) 0020041c 00000058 startup_ccs.obj (.text:ResetISR) 00200474 00000044 rtsv7M3_T_le_eabi.lib : cpy_tbl.obj (.text) 002004b8 00000044 : exit.obj (.text) 002004fc 00000034 : boot.obj (.text) 00200530 00000018 : args_main.obj (.text) 00200548 00000014 : _lock.obj (.text) 0020055c 0000000e : copy_decompress_none.obj (.text:decompress:none) 0020056a 00000006 : copy_decompress_rle.obj (.text:decompress:rle24) 00200570 00000002 startup_ccs.obj (.text:IntDefaultHandler) 00200572 00000002 startup_ccs.obj (.text:NmiSR) 00200574 00000002 main.obj (.text:main) .cinit 0 00200578 00000020 00200578 00000010 (.cinit..data.load) [load image, compression = rle] 00200588 00000008 (__TI_handler_table) 00200590 00000008 (__TI_cinit_table) .flashcca * 0 0027ffd4 0000000c 0027ffd4 0000000c startup_ccs.obj (.flashcca:retain) .stack 0 20004000 00000100 UNINITIALIZED 20004000 00000100 --HOLE-- .data 0 20004100 00000014 UNINITIALIZED 20004100 00000008 rtsv7M3_T_le_eabi.lib : _lock.obj (.data) 20004108 00000008 : exit.obj (.data) 20004110 00000004 : stkdepth_vars.obj (.data) LINKER GENERATED COPY TABLES __TI_cinit_table @ 00200590 records: 1, size/record: 8, table size: 8 .data: load addr=00200578, load size=00000010 bytes, run addr=20004100, run size=00000014 bytes, compression=rle LINKER GENERATED HANDLER TABLE __TI_handler_table @ 00200588 records: 2, size/record: 4, table size: 8 index: 0, handler: __TI_decompress_rle24 index: 1, handler: __TI_decompress_none GLOBAL SYMBOLS: SORTED ALPHABETICALLY BY Name address name -------- ---- 002004b9 C$$EXIT UNDEFED SHT$$INIT_ARRAY$$Base UNDEFED SHT$$INIT_ARRAY$$Limit 20004100 __STACK_END 00000100 __STACK_SIZE 20004100 __STACK_TOP 00200590 __TI_CINIT_Base 00200598 __TI_CINIT_Limit 00200588 __TI_Handler_Table_Base 00200590 __TI_Handler_Table_Limit 00000001 __TI_args_main 00200329 __TI_auto_init 20004108 __TI_cleanup_ptr 0020055d __TI_decompress_none 0020056b __TI_decompress_rle24 2000410c __TI_dtors_ptr 00200578 __TI_static_base__ 0020028d __aeabi_memcpy 0020028d __aeabi_memcpy4 0020028d __aeabi_memcpy8 ffffffff __binit__ ffffffff __c_args__ 0027ffd4 __cca 20004000 __stack 00200531 _args_main 002004fd _c_int00 20004100 _lock 00200557 _nop 0020054f _register_lock 00200549 _register_unlock 20004104 _unlock 002004bd abort ffffffff binit 00200475 copy_in 002004c5 exit 00200000 g_pfnVectors 00200575 main 20004110 main_func_sp 0020028d memcpy GLOBAL SYMBOLS: SORTED BY Symbol Address address name -------- ---- 00000001 __TI_args_main 00000100 __STACK_SIZE 00200000 g_pfnVectors 0020028d __aeabi_memcpy 0020028d __aeabi_memcpy4 0020028d __aeabi_memcpy8 0020028d memcpy 00200329 __TI_auto_init 00200475 copy_in 002004b9 C$$EXIT 002004bd abort 002004c5 exit 002004fd _c_int00 00200531 _args_main 00200549 _register_unlock 0020054f _register_lock 00200557 _nop 0020055d __TI_decompress_none 0020056b __TI_decompress_rle24 00200575 main 00200578 __TI_static_base__ 00200588 __TI_Handler_Table_Base 00200590 __TI_CINIT_Base 00200590 __TI_Handler_Table_Limit 00200598 __TI_CINIT_Limit 0027ffd4 __cca 20004000 __stack 20004100 __STACK_END 20004100 __STACK_TOP 20004100 _lock 20004104 _unlock 20004108 __TI_cleanup_ptr 2000410c __TI_dtors_ptr 20004110 main_func_sp ffffffff __binit__ ffffffff __c_args__ ffffffff binit UNDEFED SHT$$INIT_ARRAY$$Base UNDEFED SHT$$INIT_ARRAY$$Limit [39 symbols]