Hello,
I am writing a test to verify the forwarding of pll1 slip error to ESM module (so ESM group 1 channel 10 is activated).
I have copied function checkPLL1Slip() from file sys_selftest.c, generated by halcogen. Everything works as expected, I can see ESM group 1 channel 10 activated when the function runs.
In my test I am also using function tt_dbg_puts() to log data through serial cable (I am using a Hercules board). Before running function checkPLL1Slip() I can see logs in serial port correctly, but after running this function all I can see is some strange symbols.
My understanding is that for some reason the CPU does not switch back to run with the correct clock source (pll1) when the test is finished. And while running with wrong clock (lower frequency) logging speed is not correct.
I have setup my program to use PLL1 as clock source and configured to 180Mhz. As I said logging before this function works correctly and the problem is that serial logging after this function does not work anymore.
I would need to know why logging in serial port does not work correct after this test and fix it.
p.s.: function tt_dbg_puts() is our own function. Basically it uses sci to log using serial line (through USB).
Regards,
Francis.