Tool/software: Code Composer Studio
Hi,
I am having trouble writing my code in the flash memory of the C28 processor of my F28M35H52C1 microprocessor.
I have locked several microprocessors and I cannot figure out how this is happening. I always write the same code in the C28 flash memory and in some occasions the writting process gets interrupted with the following error:
Can't Run Target CPU:
(Error -1156 @ 0x8050)
Device may be operating in low-power mode. Do you want to bring it out of this mode? Choose 'Yes' to force the device to wake up and retry the operation. Choose 'No' to retry the operation without waking the device.
(Emulation package 7.0.48.0)
I do not understand why I was able to load the same program 10 minutes before, multiple times, to be able to debug it and operate the system with the control board and when I try to load again I cannot do it. The only thing I modified was the value of the parameters of my control algorithms.
I can load the symbols in the locked C28 and it is possible to extract some information, for example:
The CMS.Z1_CR register has a value of 0x04C8. Bit 7 and bit 3 are 0. Meaning all the passwords have been set to 0.
The CMS.Z1_EXEONLYR register has a value of 0X0000. All the bits are 0 meaning that all the sectors of the C28 flash memory are locked to execute-only.
Can you give any idea on what to look at? If it is necessary I can share the memory map in order to make things easier.
Best regards,
Tomàs

