Hi,
I'm using S32K312 EVB in default jumpeer settings.
In my SystemInit() I have set all clocks:
- configure FXOSC,
- wait stabilization time
- configure PLL
- configure MC_CGM (all dividers of MUX0)
If I use Debug perspective, I run my code without problem.
If I remove Debug e press Reset push button to see my code running, It happens that after 1s RESET_MCU pin is pulled-down.
I have seen that the reason of reset is when I try to write DIV bit of MUX_0_DC_2 register with a value different from 1.
I don't understand why reset happens after 1sec and not immediately since the setting of this register is performed during start-up phase.
Attach you can find my code (problem on 780 row) and image of reset.
Thank you.