Hi!
I have programmed a CSM password, and everything seemed to work fine (PWM frequency for example) until I've started the debugger and connect to the board, write the password and click unlock. The PWMs are not functional anymore, I mean the frequncy changed from 9KHz to 285Hz.
I've noticed that after I unlock it, PLLCR changes from 0x0010 to 0x0000. And CLKCTL from 0xA505 to 0x0000.
Also if I go in halt, unlock and then run it again I get a reset. The system runs again at the expected frequency, until I unlock it again.
If I change the GEL file and use Unlock_CSM() in OnTargetConnect(), I don't have these problems.
Can somebody explain what does actually the on-chip flash CSM unlock?
Thanks,
Monica