This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/F28M35H52C: Locked C28

Part Number: F28M35H52C


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

  • Hi Tomas,

    Sorry to hear that you have locked some devices. This could happen if there is power loss (or not enough current) during flash operation. So Ist think would be to check the power supply (current consumption) on your board during flash operation.

    Regards,

    Vivek Singh
  • Hi Vivek,

    Our control board power supply is at 24 V. During the flash operation the current consumption increases in 10 mA aproximately, unfortunaterly I cannot measure the current at the output of the 3.3 V power supply included in the control board. But it can be estimated that the increase of consumption is something around 70 mA if we take into account that there are no other peripherals in the control board operating when we are erasing and writing the flash memory.

    We have followed the recommended design rules and the power supply of the DSP is done using the same 3.3 V power supply you are using in the F28M35 DIM100 controlCARD and we place the same inductors and capacitors as close as possible to the VDDIO pins of the microprocessor. We have measured the voltage at the pin 17, which is the pin dedicated to supply the flash memory if I am not wrong, and the voltage is really stable during all the flash erase and write operation. The average value is 3.25 V with a voltage ripple of ±0.1 V, so the voltage is oscillating between 3.35 V and 3.15 V. This oscillation can cause a bad operation of the flash memory?

    Please note that the measure is done using a x10 probe and not in the best possible conditions, the measuring points are not really accessible, and this might be introducing some noise into the measure.

    Best regards,

    Tomàs
  • I repeated the measures in order to obtain the best results possible. Please find attached an oscilloscope capture.

    The oscillation is really low and it can be considered noise. If I measure the noise at the ambient wit the same probe with the terminals connected together the voltage oscillation measured is exactly the same.