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.

TMS320F2812: TMS320F2812 went into secure mode again!!!

Part Number: TMS320F2812
Other Parts Discussed in Thread: CODECOMPOSER

Tool/software:

Hi

I am using the TMS320F2812 for my hardware, Where My device went into locked state Again!!!

It was working fine when I replaced with new part and started working on flash images. 

I am using code composer studio 12.8.1.

I my test scenario, I will get continuous interrupt on INT13 external interrupt and I montioring a global variable increment in watch window.

Suddenly code composer studio got hanged and device is resetting contiuously and I tried stopping the debugging it was hanged. I tried loading the image again Code composer studio went into not responding state

and after closing the CCS and open again and I tried loading the Flash Image again and I got device is locked or not connected.

After that i loaded my non bios sample image where it uses only H0SARAM and i have seen the register window, it states like secure bit is set.

This is the second time I facing the Device locked issue .

I have attached the ccs hang log which was present in the path: C:\Users\sivakmu\AppData\Local\Texas Instruments\CCS\ccs1281\0\dmp

Kindly help me look dmp and what caused this issue

My Previous Issue:

TMS320F2812: By using the JTAG XDS200 - Facing the error '-233' (0xffffff17). The title is 'SC_ERR_PATH_BROKEN'. - C2000 microcontrollers forum - C2000Tm︎ microcontrollers - TI E2E support forums

  • Hi,

    I am not seeing the dmp log file, could you try attaching it again?

    Suddenly code composer studio got hanged and device is resetting contiuously and I tried stopping the debugging it was hanged. I tried loading the image again Code composer studio went into not responding state

    I think at this point, a reset occurs while you are erasing flash, which can cause the device to be locked. 

    Unfortunately, I do not think this device can be recovered.

    I my test scenario, I will get continuous interrupt on INT13 external interrupt and I montioring a global variable increment in watch window.

    I think the next step is to figure out why the continuous reset is caused in the first place. When this state occurs, I would recommend that you try to look for reset causes, and please do not try flash operations when the device is in this state. 

    Best Regards,

    Ben Collier

  • Hi
    Could you share email id, so that I can share the dump file. I am unable to share to documents here due to my company policy.

    Thanks
    Muruganandham S

  • hang_330_e43d02ee-5469-4b6c-94ed-4b68f0dc0d96.txt

    Hi

    I have changed the .dmp to .txt, Now I have uploaded the file.

    Kindly verify and help us find the rootcause for the hang in codecomposer.

    Thanks
    Muruganandham S

  • Hi,

    I am not sure if I will be able to determine why CCS hangs, but I am not convinced that CCS hanging is the cause of your problem.

    Again, you should not try to do flash operations when the MCU is in some unstable state. Are you planning to replace the MCU again?

    Best Regards,

    Ben Collier

  • Hi 

    How can we make sure, the MCU is in unstable state?

    Yes, We are planning to replace the MCU again.

    Without replacing the part is there any other way to make the part to come out of Secure state?

    Thanks
    Muruganandham S

  • Hi,

    Without replacing the part is there any other way to make the part to come out of Secure state?

    No, the device is permanently locked. 

    How can we make sure, the MCU is in unstable state?

    You said that it was continuously resetting, right? I am not sure what is causing this. It would be helpful to connect to the device without flashing, then read the CPU registers if possible.

    Best Regards,

    Ben Collier

  • Hi

    I have loaded the sample non bios image, where i am able to see the CSM Registers



    During the CCS Hang, I have observed the continous reset, and I am unable to find the root cause of it.

    Thanks 
    Muruganandham S

  • Hi,

    Do you see the continuous reset only when running certain software? If you run a simple GPIO toggle example, do you still see the resets?

    Thanks,

    Ben Collier

  • Hi

    In example image i haven't seen this issue. Below are the sequence When i faced the issue.

    1) In CCS in debug mode i monitor interrupt counts and XINTF Zone1 memory
    2) Suddenly CCS hangs while monitoring
    3) I tried closing the CCS and load the image
    4) During the image again CCS hanged - Dont which state in loading(configure / erase / flashing) not sure
    5) Till this time i have observed continuous reset - [ It's from DSP or other IC in my board not sure]
    6) At this point of time, Closed the CCS again and Power off and on the board - After this I haven't seen Continous reset
    7) After this I have opened the CCS and tried loading the image - Board went into secure mode.

    Thanks
    Muruganandham S

  • Hi,

    Advice so this doesn't happen again while you are debugging:

    1. Do not boot to flash.

    2. Only attempt to program the device after a power cycle when flash boot mode is not being used. 

    The above will ensure that your program is not running when you attempt to flash the device. If your software is the cause for continuous resets, then this should prevent you from locking the device.

    If you are not encountering this problem of continuous resets with the example software, then I think your software must being doing something incorrect. 

    1. Check watchdog settings.

    2. Check any memory writes where you are not using TI provided libraries. 

    3. Try to step through your code to see when the error occurs.

    Best Regards,

    Ben Collier