Hello, I am using an S32K312 processor. I am running code with an RTOS on my processor. When I flash the code directly, I notice that it keeps resetting, but there is no problem when I connect in debug mode. I understand that it is resetting from the LEDs connected to my regulators. Where can I see the reason for the reset
Hi @rexoplans,
You could try to check the MC_RGM register and observe the functional reset register value.
This is usually a clock settings issue. Please check AIPS_SLOW_CLK and HSE_CLK values. Also check DCM record regarding HSE_CLK_MODE_OPTION. With this, you know the ratio (either 1:2 or 1:4) that those clocks shall comply with.
You can test configurations from the S32K3 Reference Manual chapter 24.7.2 (System clocking configurations) and confirm if the issue persists.
Best regards,
Julián
Hi @rexoplans,
Please make sure you are not going over the limitations from Table 144:
There are also some clock configuration options in Table 145. (System clocking configurations). I would suggest configuring one of these options and testing the code.
This community post may be relevant: Solved: S32K311 can not work normally without debugger - NXP Community. The solution was also the HSE_CLK configured incorrectly.
Best regards,
Julián
Hi @rexoplans,
Have you installed a new version for the IDE or RTD recently? Or maybe is there a configuration in Clock Tool that overwrites your configuration every time the code is updated? It is hard to tell from only this information.