set pll0 as 240M and programbinary to s32k312 mcu as follow config:
after that it can not be connect by jlink, show error as below:
Solved! Go to Solution.
Hi @sf_en,
The idea is to keep the MCU in reset after POR, so that the clocks are not reconfigured at the time the debugger is establishing the connection.
Can you connect in the JTAG mode?
If so, instead of connecting the reset pin to the ground, you can use these commands:
r0
erase
It will ask you to establish the connection while the MCU is in reset (r0).
Once connected, it should erase the flash so that the clocks will not be reconfigured anymore.
I have tried to reproduce the issue by flashing and running a project with the same clock configuration, but I don't get the same results. I can simply reprogram the MCU with another project.
Anyway, the clock configuration is restricted to the 7 use cases listed in the RM.
23.7.2 Clocking use case examples
23.7.1 System clock frequency limitations
We can't guarantee functionality if the MCU if the requirements are not met.
Regards,
Daniel
Hi @sf_en,
Can you connect the J-link probe using J-link commander while the reset_b (PTA5) pin of the MCU is connected to the ground?
Thanks,
BR, Daniel
Hi, Daniel
Thanks for your rapid support!
I try to connect using jlink commander while hold reset_b to ground, it connect fail.
BTW, what the MCU will behavior when hold reset_b to ground? (MCU will stop execution?)
Hi @sf_en,
The idea is to keep the MCU in reset after POR, so that the clocks are not reconfigured at the time the debugger is establishing the connection.
Can you connect in the JTAG mode?
If so, instead of connecting the reset pin to the ground, you can use these commands:
r0
erase
It will ask you to establish the connection while the MCU is in reset (r0).
Once connected, it should erase the flash so that the clocks will not be reconfigured anymore.
I have tried to reproduce the issue by flashing and running a project with the same clock configuration, but I don't get the same results. I can simply reprogram the MCU with another project.
Anyway, the clock configuration is restricted to the 7 use cases listed in the RM.
23.7.2 Clocking use case examples
23.7.1 System clock frequency limitations
We can't guarantee functionality if the MCU if the requirements are not met.
Regards,
Daniel
Hi, Daniel
It works follow the steps.
Thanks for your support.