CC2640工程从IAR移植到CCS上,编译没有错误,断点调试时报错。

Cortex_M3_0: GEL Output: Memory Map Initialization Complete.
Cortex_M3_0: GEL Output: Board Reset Complete.
Cortex_M3_0: Error: (Error -1170 @ 0x0) Unable to access the DAP. 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 8.1.0.00007)
Cortex_M3_0: Trouble Halting Target CPU: (Error -2064 @ 0x0) Unable to read device status. 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 8.1.0.00007)
Cortex_M3_0: Error: (Error -1170 @ 0x0) Unable to access the DAP. 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 8.1.0.00007)

运行到串口输出,就会报这个错误。

//ADC串口输出

 TaskUARTdoWrite(NULL,NULL,"ADCpower:%.2fV\r\n,ADC3:%.2fV\r\n,ADC2:%.2fV\r\n,ADC1:%.2fV\r\n,ADC0:%.2fV\r\n,%d\r\n",adcValuepower*4.3/4095,adcValue3*4.3/4095,adcValue2*4.3/4095,adcValue1*4.3/4095,adcValue0*4.3/4095,k);

在IAR下,编译后可下到板子上,并正确运行。不知道是哪里出问题了。

3 个回复