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