I'm a bit puzzled about what I'm seeing. I've verified that the registers in my KL02Z32 MCU are set up as shown in the diagram below (BTW: love the Config Tool):
When I put the CPU into a very simple loop which toggles an output, it toggles at a rate of about 4kHz:
if (loopcounter & 1)
I'm guessing that the core is not running at 41MHz. Any suggestions?
Thanks in advance!