MCUxpresso LPC804 redlib nohost uart0 will not run without debugger attached

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCUxpresso LPC804 redlib nohost uart0 will not run without debugger attached

Jump to solution
2,003 Views
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.....

 

Labels (1)
0 Kudos
Reply
1 Solution
1,894 Views
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

 

View solution in original post

0 Kudos
Reply
3 Replies
1,895 Views
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 Kudos
Reply
1,907 Views
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 Kudos
Reply
1,992 Views
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 Kudos
Reply