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.

Resetting F28027

Other Parts Discussed in Thread: TMS320F28027, CONTROLSUITE

Hi guys, I was debugging my F28027 and while the JTAG integrity test passed, the code I was gonna load into it returned this:

C28xx: Flash Programmer: Warning: The configured device (TMS320F28027), does not match the detected device (). Flash Programming operations could be affected. Please consider modifying your target configuration file.
C28xx: Failed Software Reset: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 5.0.520.0)
C28xx: Trouble Reading PC Register: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 5.0.520.0)
C28xx: Trouble Reading Register ST1: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 5.0.520.0)
C28xx: GEL: Error while executing OnReset(1): target access failed.
C28xx: Failed Software Reset: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 5.0.520.0)
C28xx: Trouble Reading PC Register: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 5.0.520.0)
C28xx: Trouble Reading Register ST1: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 5.0.520.0)
C28xx: GEL: Error while executing OnReset(1): target access failed.
C28xx: Flash Programmer: Error erasing flash memory. Device is locked or not connected. Operation cancelled
C28xx: Flash Programmer: Error erasing Flash memory.
C28xx: Error resuming a profile counter: (Error -1137 @ 0xAE8) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 5.0.520.0)
C28xx: Flash Programmer: Device is locked or not connected. Operation cancelled.
C28xx: Trouble Writing Memory Block at 0x3f6215 on Page 0 of Length 0x16: (Error -1137 @ 0xAE8) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 5.0.520.0)
C28xx: GEL: File: C:\TI\controlSUITE\development_kits\Piccolo controlSTICK\Timer - BlinkingLED\F2802x_FLASH\BlinkingLED.out: Load failed.

I did more reading on the datasheet, and figured out that the TRST pin needs to be pulled down. I did that, but still the same results. Is there anything else I need to cover?

Thanks guys.

  • Abdul,

    This sounds like a target configuration error, not necessarily an issue with the JTAG specifically.  Make sure that your device configuration is set up with your emulator and the F2802x device chosen is the one that is on your board.


    Thank you,
    Brett

  • Brett Larimore said:
    Make sure that your device configuration is set up with your emulator and the F2802x device chosen is the one that is on your board

    Hi Brett, thanks for the reply. I opened target config, the .ccmxl and made it to correspond to XDS100v2, and specifically chose TMS320F28027 from the list, and saved. 

    Also, the TRST pin is pulled down using a 1k resistor, since I don't have 2.2k, but that should be fine, shouldn't it?

    Anything else I should be concerned with?

    Thanks.

  • Based on the schematic you put on your previous post I would recommend taking a look at the F28027 controlCARD schematic in controlSUITE and adding some of the components there into your design.  Specifically:

    • you need to either power the C2000 core (VDD) with an external supply or tie VREGENZ to GND
    • the VDD pins need capacitors in order for the C2000 core to work properly
    • XRSn needs a pull-up to pull the device out of reset.


    Thank you,
    Brett

  • Brett Larimore said:
    • you need to either power the C2000 core (VDD) with an external supply or tie VREGENZ to GND
    • the VDD pins need capacitors in order for the C2000 core to work properly
    • XRSn needs a pull-up to pull the device out of reset.

    I see. I was reading the datasheet only, and missed a few points when I did. Now, As for point number 1, Vregenz is tied to GND. However, I bypassed the Vdda (pin 22) only, and missed the Vdd pins being needed to be bypassed.

    Also, I haven't pulled XRSn pin up too. I'll do it now, and update this post later. 

    Thanks Brett. That's a lot.

  • Hi Brett,

    I noticed that both Vdd pins are already internally connected to each other; this means I only need to tie one cap to one of the pins right? 

    Thanks.

  • Abdul,

    Good practice dictates putting individual capacitors for each VDD pin and then placing them as close to the power pin as possible.   1.2uF to around 2.2uF for each pin is recommended.


    Thank you,
    Brett

  • Hi Brett, 

    I've done all but this is the return report:

    C28xx: Flash Programmer: Warning: The configured device (TMS320F28027), does not match the detected device (). Flash Programming operations could be affected. Please consider modifying your target configuration file.
    C28xx: GEL Output:
    Device Calibration not complete, check if device is unlocked and recalibrate.C28xx: GEL Output:
    Device Calibration not complete, check if device is unlocked and recalibrate.C28xx: Flash Programmer: Error erasing flash memory. Device is locked or not connected. Operation cancelled
    C28xx: Flash Programmer: Error erasing Flash memory.
    C28xx: Flash Programmer: Device is locked or not connected. Operation cancelled.
    C28xx: Trouble Writing Memory Block at 0x3f6215 on Page 0 of Length 0x16
    C28xx: GEL: File: C:\TI\controlSUITE\development_kits\Piccolo controlSTICK\Timer - BlinkingLED\F2802x_FLASH\BlinkingLED.out: Load failed.

    What else could be the problem?

    Edit: Also, Am I on the right track now with regards of the connections to the JTAG pinouts, since the JTAG DR integrity test passed with 100 percent? Is there any other config I need to change?

    Thanks.

  • okay, I suppose the main cause is the solder flux, I haven't washed it, but somehow I think it's funny that the F28027 should respond to such a minor thing? I thought the flux couldn't be too significant to the performance.

    After scratching the spaces between all contacts using a sharp poker, I successfully programmed it and blinked the LED, but after a while it returned back into it's "not detected" state. I suppose the flux "recombined" or something. I'll wash it soon using alcohol or something. 

    Here's a video:

    http://www.youtube.com/watch?v=cXEc8kgnX3I

    but later it failed to program. Haha. I'll rest for a while and give it another go tomorrow. 

    thanks for all the help Brett.

  • Hi Brett, 

    I think I have a new problem. Sometimes my regulator heats up, and sometimes it doesn't. I checked the connections and it seems okay.

    However, successive plugging and unplugging the XDS100 shows varying results, sometimes it detects alright, but sometimes it heats up. So I suppose there's a problem with the JTAG connections, it may have triggered some sort of bypass or low impedance with the emulator pins, I suppose.

    Looking again at my design (after incorporating the changes you suggested earlier regarding the TRST pull down, and caps on Vdd) is there anything else I may have overlooked?

    Schematic is still according to the post here: http://e2e.ti.com/support/microcontrollers/tms320c2000_32-bit_real-time_mcus/f/171/p/190678/683638.aspx#683638

    Thanks.

  • Abdul,

    I would recommend comparing your schematic with the F28027 controlCARD schematic.  Note that some of the components included on the cCARD are optional like the diode protection on the ADC inputs, isolated UART/SCI connectivity, etc.  However, most of the components near the chip should be needed and are sized correctly.


    Thank you,
    Brett

  • Hi Brett,

    I've fossicked the controlSUITE folder but didn't manage to find the circuit. (C:\TI\controlSUITE\development_kits\Piccolo controlSTICK)

    Can you help me post the schematic? 

    Thanks.

  • Abdul,

    For me, the schematic (TMDS28027USBxxx_SCH.pdf) is located here:
    C:\TI\controlSUITE\development_kits\Piccolo controlSTICK\~controlSTICK_HWdevPkg\R4\

    I have attached it as well for convenience.


    Thank you,
    Brett

    TMDS28027USBxxx_SCH.pdf
  • Thanks Brett. I guess it takes more reading on the datasheet to start programming C2000s.