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.
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.
Any insights or suggestions would be greatly appreciated!
已解决! 转到解答。
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
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?