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.

TMS320F28234: C2000 Gang Programmer Error 23

Part Number: TMS320F28234


Hello,

I am getting an ERROR 23: MCU device init error when trying to read or program a TMS320F28234 with a C2000 Gang Programmer.

First, I am able to program the device with the gang programmer with passwords written to the password locations and  am successfully unlocking the CSM, writing to flash, and relocking the CSM during code execution. I am monitoring the STATUS_SUCCESS flags of the Example_CallFlashAPI routines to verify success.

I get the ERROR 23 when I reconnect the programmer to my device and try to read the memory contents.  However, I am able to reprogram the device.  This problem is very inconsistent. Sometimes I can read the memory contents 1 time and it fails the second time sometimes it fails the first attempt and never works until I close the programmer software and cycle power on the target.

I am using the interactive mode of the programmer and I have selected secure device from code.

I am calling csmpasswds and csm_rsvd in DSP2833x_CSMPasswords.asm to set my passwords. I call these functions from main.c.

I use CsmUnlock in DSP2833x_SysCtrl.c to perform dummy reads and set the key values and unlock,

  • Kevin,

    I think the device is not getting unlocked for the reads via GANG.

    I asked Elprotronic to work with you on passing the passwords to the tool to unlock for reads.

    Elprotronic will get back to you.

    Thanks and regards,

    Vamsi

  • Kevin,

    Another thing to check would be the boot mode pin configuration. Make sure they are not configured for flash boot mode.

    Thanks and regards,
    Vamsi

  • Vamsi,

    Thank you for responding.  I am relying on the internal pullups being enabled to select boot to flash.  Unfortunately my hardware is complete so  I don't have other boot options unless I rig circuitry to the boot pins.  Below is the excerpt from SPRU963A. 

    2.6 Internal Pullup Resitors

    Each GPIO pin has an internal pullup resistor that can be enabled or disabled in software. The pins that are read by the boot mode selection code to determine the boot mode selection have pull-ups enabled after reset by default. In noisy conditions it is still recommended that you configure each of the boot mode selection pins externally. The peripheral bootloaders all enable the pullup resistors for the pins that are used for control and data transfer. The bootloader leaves the resistors enabled for these pins when it exits. For example, the SCI-A bootloader enables the pullup resistors on the SCITXA and SCIRXA pins. It is your responsibility to disable them, if desired, after the bootloader exits

    I'll wait to hear from Elprotronic.  Otherwise, do I have any other options?

    Thank you,

    Kevin

  • Kevin,

    Please contact Elprotronic at support@elprotronic.com.
    Support team is back from vacation and should respond to you.

    Thanks and regards,
    Vamsi