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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
1,251件の閲覧回数
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 件の賞賛
返信
1 解決策
1,236件の閲覧回数
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 件の賞賛
返信
4 返答(返信)
1,244件の閲覧回数
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 件の賞賛
返信
1,241件の閲覧回数
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 件の賞賛
返信
1,237件の閲覧回数
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 件の賞賛
返信
845件の閲覧回数
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 件の賞賛
返信