Application doesn’t run after exiting Debug mode

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

Application doesn’t run after exiting Debug mode

Jump to solution
931 Views
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!

Tags (1)
0 Kudos
Reply
1 Solution
902 Views
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

 

 

 

 

View solution in original post

0 Kudos
Reply
3 Replies
903 Views
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 Kudos
Reply
917 Views
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 Kudos
Reply
914 Views
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?

Tags (1)
0 Kudos
Reply