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/UCD3138PFCEVM-026: After Download a Firmware with bug,Can I save the chip back?

Part Number: UCD3138PFCEVM-026

Tool/software: Code Composer Studio

Hi ,

   I just made a mistake when I was debugging .After I downloaded the Firmware into my PSU sample ,the device can't response any more. 

   I also tried the firmware on the second sample in order to confirm if the chip is crashed ,and certainly ,my second sample can't response either! 

 What can I do now to save the chip back from this kind of condition or do I have to replace the chip ?

  

  • seems like your UCD is in flash mode and executing code. to go back to ROM mode, click on "Device ID", then click on " Command Program to jump to ROM", UCD will go back to ROM mode, you can download new code again.
  • Hi  Bosheng

          I've tried both scan "ROM mode" and "flash mode". I 'm sure that the device is in executing mode ,but it may run to a trap  due to the I2C has no response at all .

         I noticed that It's not caused by the hardware or the USB Adapter because it work well on the other chip with my previous firmware.

        During this circumstance ,Is there is a way to save this chip back?

       Though I've replaced the chip to continue debugging ,but I want to figure out the way to solve this ,Please help!

  • Did you write checksum when you downloading the code? We do not recommend to write the checksum during the firmware development before you know that erase checksum function works well. If firmware has a bug and can not pass the control back to ROM, you will not be able to download a new firmware. And you will need to replace the UCD chip.
  • Hi Bosheng ,
    Thanks for your reply . If I don't write checksum when downloading ,how could I know if the firmware has a bug which may run into a trap ?
    Do you have any documents to describe the debug process ,because I always write checksum when downloading?
  • If you didn't write checksum, you should be able to go to ROM mode by reset the device (turn off VCC, then turn on). Do not write checksum if your are not sure the checksum can be cleared by your code. The following post tells the details:

  • Bi Bosheng ,got it ,thanks !