Error launching Debug\adc.axf

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Error launching Debug\adc.axf

1,103 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by orro on Tue Jul 19 01:07:55 MST 2011
Hello,

I'm new to programming with the lpcxpresso board (lpc1343) and was testing the adc example that was provided.

I was trying to modify it to poll rather than use interrupt, and removed the #ifdef __JTAG_DISABLED and the #ifdef __SWD_DISABLED check to see what would happen.

Since then, I am not able to debug any programs, and get the following error message:

Error Launching Debug\adc.axf
02: Failed on connect: Ee(07). Bad ACK returned from status - wire error.:

My question now is, how can I "reset" all registers so that I can debug programs again?

I thought I could use the reset value for the ADC IN0-4 pins, but I dont know how to run the code without the compiler (would that do it?).

Many thanks,
Navid
0 项奖励
回复
2 回复数

1,071 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by orro on Tue Jul 19 02:25:28 MST 2011
Many thanks for the help! Works now again, and lesson learned!
0 项奖励
回复

1,071 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Jul 19 01:17:05 MST 2011
With deleting #ifdef __SWD_DISABLED you have sucessfully disabled SWD :eek::eek:,

so switch to ISP as described in:

http://support.code-red-tech.com/CodeRedWiki/DebugAccessChipccessChip

#ifdef __SWD_DISABLED
  LPC_IOCON->SWDIO_PIO1_3   &= ~0x8F;    
  LPC_IOCON->SWDIO_PIO1_3   |= 0x02;  /* ADC IN4 */
#endif
Note: PIO1_3 (pin 39)  is used for debugging (SWDIO). If you switch it's function to AD4, your Debug connection isn't working any more.
0 项奖励
回复