Application doesn’t run after exiting Debug mode

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

Application doesn’t run after exiting Debug mode

ソリューションへジャンプ
933件の閲覧回数
adem_marangoz
Contributor II

Hello everyone,
I am using S32K311 with S32DS IDE
I’m facing an issue where my application works perfectly when running under the debugger, but it fails to start when I power-cycle the board.

Here’s what I’ve done:

  • I modified the linker script and placed the heap in the DTCM region under the name int_adem_dtcm.

  • During debugging, the program runs without any issues.

  • However, when I reset or restart the board without the debugger, the application does not run.

I’ve attached the modified linker script for reference.

Has anyone experienced a similar issue? Could it be related to startup code, memory initialization, or DTCM configuration?

Any insights or suggestions would be greatly appreciated!

タグ(1)
0 件の賞賛
返信
1 解決策
904件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

SWT0 is by default disabled.

petervlna_0-1752045693904.png

But this also depends on IVT configuration which you load into uC.

petervlna_1-1752045865338.png

petervlna_2-1752045874161.png

Best regards,

Peter

 

 

 

 

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
905件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

SWT0 is by default disabled.

petervlna_0-1752045693904.png

But this also depends on IVT configuration which you load into uC.

petervlna_1-1752045865338.png

petervlna_2-1752045874161.png

Best regards,

Peter

 

 

 

 

0 件の賞賛
返信
919件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

What comes to my mind is watchdog SWT.

Debuggers by default disable watchdog in debug mode, so you can perform debug.

Make sure your SWT is disabled / services correctly.

You can check RGM module DES and FES modules for any latched reset sources.

However, when I reset or restart the board without the debugger, the application does not run.

Also I am not sure what "does not run" means....

Is SW stuck in some loop,. reset, exception, etc..... ?

Additionally debuggers perform various initializations like RAM initialization to be able load binaries for communication with device via scripts, which are not always visible to user.

You can also check FCCU NCFSx registers to see if any fault is latched there, this will give you a good hint where to look.

Best regards,

Peter

 

0 件の賞賛
返信
916件の閲覧回数
adem_marangoz
Contributor II

This is the main program that I have attached.
I don’t know if it is entering an exception.
I check if the program is running by observing the LED that turns on and off in the while loop.
In the driver settings, I did not add the SWT. Is there a default SWT that gets enabled?

タグ(1)
0 件の賞賛
返信