MCUxpresso LPC804 redlib nohost uart0 will not run without debugger attached

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

MCUxpresso LPC804 redlib nohost uart0 will not run without debugger attached

跳至解决方案
2,209 次查看
stevenriedl
Contributor III

Looked over all of the posts and documentation. Seems to be something with semihost, but not using that and have semihost hard fault handler. Thought it might be watchdog configured, but insured that was disabled. Using a release build that uses 56% of flash, debug was over 100%.

Everything runs great with debugger attached, but nothing with it not. LED on GPIO port never initialized by pins, faintly on when not initialized.

Linkserver debugger 

SDK_DEBUGCONSOLE=0

Very little hair left at this time.....

 

标签 (1)
0 项奖励
回复
1 解答
2,100 次查看
stevenriedl
Contributor III

I think I found the reset issue, nice AN on the topic... Wish it was easier to find...

https://www.nxp.com/docs/en/application-note/AN12724.pdf

 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,101 次查看
stevenriedl
Contributor III

I think I found the reset issue, nice AN on the topic... Wish it was easier to find...

https://www.nxp.com/docs/en/application-note/AN12724.pdf

 

0 项奖励
回复
2,113 次查看
stevenriedl
Contributor III

Tried to attach to running target, but it wasn't running. There seems to be a problem with the power on reset. This board is an I2C target and provides power to the I2C master, If I unplug and plug the I2C master (QIIC connector) the chip starts up, sometimes after just waiting 30 seconds to a minute it just starts up. Have a scope trace below (yellow +5 supply, Green 3.3V regulated supply and blue is reset input. The 5V does run 2 relays through a relay driver IC, was concerned they were feeding voltage back in before the 3.3 V came up, but that is not the case. May try adding an external RC to delay the external reset.Screenshot 2023-11-26 at 7.55.33 PM.png

0 项奖励
回复
2,198 次查看
ErichStyger
Specialist I

Hi @stevenriedl ,

have you tried to attach to the running target to see where it is hanging?

I wrote an article about this here:

https://mcuoneclipse.com/2021/04/25/attach-with-the-debugger-to-a-running-target/

 

I hope this helps,

Erich

0 项奖励
回复