Hi,
Using S32K312, I found that when debugging on FLASH with a debugger, the program ran normally. Without a debugger, when running the ADC to initialize the operation on the MCR registers, the program runaway. After doing some debugging, I found that when operating the registers of PWM or SPI without a debugger, the program will also runaway, but with a debugger, the program runs normally.
The program are all running on FLASH, I don't know the difference between with and without a debuger? Do you know why the program runaway without a debugger?
Thank you
Solved! Go to Solution.
Hi @SethWang,
What does it actually do? Do you see a fault exception or a system reset?
The debugger can typically disable the WDOG or initialize SRAM ECC.
Can you double-check the SRAM ECC?
Thanks,
BR, Daniel
Hi @anakha,
What debugger do you have?
Multilink can be attached to the running MCU stuck in the exception handler.
Make sure the clocks are configured precisely to one of the clock options.
RM, 24.7.2 System clocking configurations
Regards,
Daniel
Can you tell me how you solved the problem?