LPC804 Is working in the Debugging Mode but not working in the release Mode

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

LPC804 Is working in the Debugging Mode but not working in the release Mode

Jump to solution
1,817 Views
PK_1114
Contributor II

Dear @nxp 

 

By using the LPC804 we develop the Board but it is working in the Debugging mode but when remove the the debugger the code is not running. please give any solution for Sort-out this issue.

Circuit is placed in the below attachment.

 

Thank you

B Pavan Kumar  

 

PK_1114_0-1639993623686.png

 

0 Kudos
Reply
1 Solution
1,802 Views
frank_m
Senior Contributor III

> We Verify that LED Toggle's in the Debug mode, But after the Releasing the Debugger it is not Blinking.

Are you sure you are not fooled ?  A blinking beyond 70...80Hz looks like a static state, better check it with a scope.

Many initialisation fails manifest in the startup code, before main is reached.

A simple instrumentation code could e.g. write successive byte values to a serial interface (UART), just attach a serial terminal.

An even simpler method would be to toggle a GPIO before or after each step, but you would need a scope to check that. I used this method in one of my former companies, for a project without debug access to the MCU.

View solution in original post

0 Kudos
Reply
4 Replies
1,810 Views
frank_m
Senior Contributor III

> ... it is working in the Debugging mode ...

This suggests you board is basically working. Unless you powered it via the debug pod and there is a supply problem on the board, the problem relates to your software. I guess you measured the 3.3V supply while powered and the debug adapter detached.

> ...but when remove the the debugger the code is not running.

Try adding instrumentation code, e.g. via serial interface or via GPIO in the simplest case. Check how far you get. Common issue are different debug/release toolchain settings, and clock init related issues.

0 Kudos
Reply
1,807 Views
PK_1114
Contributor II

Dear @frank_m,

Thank You MR.@frank_meyer for the valuable Suggestions.

*__This suggests you board is basically working. Unless you powered it via the debug pod and there is a supply problem on the board, the problem relates to your software. I guess you measured the 3.3V supply while powered and the debug adapter detached.

Already Check the Voltages and Its Noise on the Supply and its Vss Pin Voltage measured is 3.318V and Noise 80mV. after detaching the Supply.

 *__Try adding instrumentation code, e.g. via serial interface or via GPIO in the simplest case. Check how far you get. Common issue are different debug/release toolchain settings, and clock init related issues.

Yes Sir we already implement the Code for the LED toggle on the PIO0_20 Bus. We Verify that LED Toggle's in the Debug mode, But after the Releasing the Debugger it is not Blinking.

 

Thank You,

B Pavan Kumar

 

0 Kudos
Reply
1,803 Views
frank_m
Senior Contributor III

> We Verify that LED Toggle's in the Debug mode, But after the Releasing the Debugger it is not Blinking.

Are you sure you are not fooled ?  A blinking beyond 70...80Hz looks like a static state, better check it with a scope.

Many initialisation fails manifest in the startup code, before main is reached.

A simple instrumentation code could e.g. write successive byte values to a serial interface (UART), just attach a serial terminal.

An even simpler method would be to toggle a GPIO before or after each step, but you would need a scope to check that. I used this method in one of my former companies, for a project without debug access to the MCU.

0 Kudos
Reply
1,411 Views
PK_1114
Contributor II

Hi Sir @frank_m ,

 

Other Person replayed to you, As far as issue concerned, it is cleared, and it is not about Debugger issue, As there is Some bug in the code - which is related to memory management fault in Run time.

Thank you,

B Pavan Kumar

 

0 Kudos
Reply