Hello,
I've been trying to use the self-test force error on the CCMr4 without success.
The code looks as follows:
sCCMR4Reg->CCMKEYR = 0xF;
if (sESMReg->ESMSR1 & (1<< 31) )
{
TestPass = TRUE;
}
When reading the ESM register, bit 31 never gets set. When the code is executed the system clock is at 16 Mhz and running in non-debug mode.
Can anybody tell me what have I done wrong ? Is there anything that must be set or initialized before initiating this test ?
Any available example code ?
Thanks for your help
Normand