LPC55S69 somehow stuck

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

LPC55S69 somehow stuck

2,858 次查看
markomarusic25
Contributor II

Hello everybody,

I have LPC55S69 devkit and I tried do debug Hello world project but didn't succeed. When I reset the board with opened terminal, it writes 'hello world' but I cannot debug it. The errors I get in console are:

"Warning - processor did not halt - gave up waiting", and

"chip initialization failed - Ep(08). Cannot access core regs when target running."

Interesting thing is that, if I select "Attach to running project..." in debug options for link server debugger, it works. Whatever I send to it from terminal, it writes it back like it is supposed to.

My idea is that the proccessor is running and I don't know how to stop it, does enyone have any Idea how to fix this?

4 回复数

2,640 次查看
lpcxpresso_supp
NXP Employee
NXP Employee

Would you please check whether the suggestions from LPCXpresso55s69 chip intitialization failed - Ep(08)  help in your case?

Greetings,
MCUXpresso IDE Support

2,640 次查看
markomarusic25
Contributor II

Thank you, this helped. The point was to change reset type in Run>Debug Configurations>LinkServer Debugger from SYSRESETREQ to VECTRESET.

0 项奖励
回复

2,640 次查看
bernhardfink
NXP Employee
NXP Employee

This type of problem happened to me on different platforms and also with different type of debuggers.

There is a kind of poor-man's-solution, which is easy to implement and is working normally for all platforms:

Add a simple delay loop of 1 second directly after startup, so before any board setup takes place and before any PLLs are switched on. In this 1s period the debugger can attach, silently to the running delay loop or with a reset and then running to main().

It stretches the debugger starting time by 1-2 seconds, but I was happy with this workaround.

Regards,

Bernhard

2,640 次查看
markomarusic25
Contributor II

Thank you for your response. I was able to fix this using suggestions from LPCXpresso55s69 chip intitialization failed - Ep(08) . The point was to change reset type in Run>Debug Configurations>LinkServer Debugger from SYSRESETREQ to VECTRESET.

0 项奖励
回复