Hi Otavio Borges,
Thank you for your information update.
I also create a KE02 bare mental KDS project, without the PE.
In system_MKE02Z2.c, the FLL factor is 1280, it is wrong, it should be 1024, I will report it to the KDS department.
But in system_MKE02Z2.h, the default code is not like you, this is my code:

But, in this code,
The CPU_INT_CLK_HZ is not correct.
From the datahseet, we can find the internal trimmed IRC is 31.25, NOT 32.768KHZ.

Default_system_clock should be:31.25k*1024 /2=32000k/2=16Mhz.
Please take care of these two points.
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------