Hi Jacques Charreyron,
Did you use the same test code in your FRDM-K22 and your own board?
Besides, did you use the same debugger?
I think, you can configure your board with 24MHZ(the same code with FRDM-K22), then just download the code to your board without the debugger, or use the same debugger with FRDM-k22.
After download the code, then check the code function, whether it is correct.
We should make sure, it is not caused by debugger.
Besides this, I suggest you take care of some points:
1: Reset_b pin, add 4.7K to 10K pullup resistor , and add 0.1uf capacitor between reset_b to ground.
2: NMI_b pin, add 4.7K to 10K pullup resistor
3: SWD_DIO, add 10K pullup
Wish it helps you!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------