Part Number: TMS320F28388S
I used the dcsm_security_tool project to generate the dcsm settings for my processor. I set it up so all secure flash and ram (both CPU and CM) are locked in zone 1 and tried running my project. The CPU behaves as expected and I can run the processor both locked and unlocked without issue.
The CM will not run when the DCSM is locked though and my debugger immediately disconnects as soon as I execute this function:
// Configuring CM to run at 125MHz (AUX Raw = 500MHz).
SysCtl_setCMClk(SYSCTL_CMCLKOUT_DIV_4, SYSCTL_SOURCE_AUXPLL);
Once the debugger disconnects, I cannot reconnect unless I put the processor in SCI boot mode. Even if I comment out the line above, the next SysCtl call will have the same effect.
Why would running this function cause this behavior and what do I need to do to work around it? Is this caused by incorrect DCSM settings?