M3内核的CC2538用CCS下载程序就运行,停止不了,提示保持在复位

2019-03-24 11:52发布

各位工程师们:
        大家好,我最近在用CC2538的芯片跑程序,用了TI的swrc271acc2538_foundation_firmware_1_0_1_0driverlibcc2538examplesstartup_filesstartup_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、出现这个错误的原因是什么?是内存映射出错还是硬件的问题

希望能够给我点提示和帮助,万分感谢。 此帖出自小平头技术问答
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
1条回答
Study_Stellaris
1楼-- · 2019-03-24 21:44
< 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)
从提示来看,设备因为存在 HardFault 或者不可屏蔽中断导致仿真器无法让程序执行起来。让复位芯片,并重新连接仿真器仿真。如果错误仍然存在,检查配置,板子的供电或者尝试使用更稳定的 JTAG 设置(比如降低 TCLK 频率)。
下载一个简单的,确认无误的程序进去试试看。如果还是同样的问题。在检查一下硬件的电路,供电是否正常。

一周热门 更多>

相关问题

    相关文章