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.

Help resetting c5515 eZdsp

I'm a bit of a novice, and I would appreciate if anyone could help me figure this out. Whenever I try to connect to the target from CCS, I get the following error: 

C55xx: Error connecting to the target: (Error -1143 @ 0x5F) Device core was hung. The debugger has forced the device to a ready state and recovered debug control, but your application's state is now corrupt. You should have limited access to memory and registers, but you may need to reset the device to debug further. (Emulation package 6.0.83.1) 

This started happening after I attempted to burn a boot image to the NOR flash using the  nor_writer project that was provided with the C5515 eZdsp. Obviously I did something wrong, and I don't know how to recover from it.

From reading the JTAG debugging wiki page , it looks like I need to perform a hardware reset. However, I can not figure out how to do this with the eZdsp USB stick.

 

 

  • Hi Tom,

    I have experienced this issue with the C5515 eZdsp before. It sounds like a program in flash is bootloading and preventing CCS from connecting.

    Unfortunately this board does not provide easy access to the chip select that connects to the Flash on this board, otherwise I would recommend holding CS high during boot.

    The solution I found is to temporarily short the power to GND for only the supply for the Flash (VDD_IO2) so that it cannot respond to the bootloader during the flash boot step in the bootloader. The bootloader will move on to the next boot source in the boot sequence, and you can release the power to GND short.

    Once the DSP is past the Flash boot, and has not booted from Flash, you can use CCS to erase the Flash (or just the first 2 bytes boot signature that tells the bootloader a valid boot image is in the Flash).

    You can short VDD_IO2 to GND by shorting both sides of C4 capacitor next to the flash. Dont leave it shorted for too long.

    PS - this is why we routed the SPI_CS0 on the C5535 eZdsp through a dip switch - you can open the switch to prevent the CS from going low, preventing the SPI boot from occuring on the C5535 eZdsp.

    Hope this helps,
    Mark

  • I'm still having the same problem. Maybe I'm doing something wrong, but when I short the C4 capacitor, it seems to disable the entire board, and not just the NOR. That is, all the LEDs turn off and I can not connect to it from CCS, as if it were not plugged in at all.

    UPDATE: While shorting the C4 capacitor didn't work, I was able to bypass the NOR by shorting S29AL032 Pin 26, as described here. Then I was able to load the programmer and rewrite the NOR.

  • Thanks for sharing your solution.