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.

TMDSCNCD28388D: Getting Error connecting to the target: (Error -2131 @ 0x0) on TMDSCNCD28388D Control Card with TMS320F28388D

Part Number: TMDSCNCD28388D
Other Parts Discussed in Thread: TMS320F28388D

When I try to program the Flash on the TMDSCNCD28388D Control Card, I keep getting this error:

Error connecting to the target: (Error -2131 @ 0x0)

I can successfully load and run the program to RAM and debug with XDS100v2 Emulator on the TMDSCNCD28388D Control Card.

Bu I cannot program the Flash.

When I successfully program the RAM, I use the switch settings:

Switch S1:A with both positions ON (right)

Switch S2 with position 1 OFF (left) and position2 ON (right)

When I try to program the Flash, I use the switch settings:

Switch S1:A  both position 1 and position2 OFF (left). I also tried with position 2 ON (right), but it makes no difference.

Switch S2: both position 2 and position 2 are OFF (left).

I tried cycling power and pushing reset.

Still cannot get the Flash to program. Yet, I have no problems programming and running the RAM.

How can I fix this issue?

Thanks.

  • Hi,

    S1A --> Both PINS to the right

    S2 : You can try Wait-boot mode or default position (both pins right).

    I just tried on my controlCARD and it works fine. Please take a look at the switch here.

  • Thanks Santosh.

    I found the problem. I was trying to program the Flash with the switches set to the position to run from the Flash, and that is what was causing the Error -2131.

  • Solution to the problem (what is working for me) in case anybody else has this issue is that to program the Flash, the switches should be in the same position as for loading and running from RAM.

    Specifically, to load the program in RAM and execute in debug mode using the built-in XDS100v2 Emulator,
    OR
    to program the Flash memory, set:
    Switch S1:A both positions ON (right)
    Switch S2 position 1 OFF (left) and position 2 ON (right).

    AND

    To execute a program stored in Flash, set this way and then reset and/or cycle power:
    Switch S1:A both position 1 and position 2 are left. 
    Switch S2 both position 1 and position 2 are left.

    Error -2131 was caused by me trying to program the Flash using the switch settings for executing from Flash, which is wrong, as detailed above.

    Also, if you want to load and run from RAM, set Project | Build Configurations | Set Active | CPU1_RAM  at 2 places in the menu.

    If you want to load and run from Flash, set set Project | Build Configurations | Set Active | CPU1_FLASH  at 2 places in the menu.

    And also make sure that the Configuration File is set with the "Board or Device" set to "TMS320F28388D" and the "Connection" set to Texas Instruments "XDS100v2 USB Debug Probe."