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.

CCS/TMS320F28035: Uniflash GEL: Error while executing OnFileLoaded( 0, 0)

Part Number: TMS320F28035
Other Parts Discussed in Thread: UNIFLASH, CONTROLSUITE, MSP430F6726, C2000WARE

Tool/software: Code Composer Studio

Hi,

These last days I met some wrong behaviour on my custom target with TMS320F28035 (used to work well the last weeks).

The first one is:

- TMS get stucked after RUN in debug mode, then I never reach to connect it anymore with any debug probes (like still in reset). I had to change boot mode selection from "GetMode" (Boot to Flash) to "Wait" to be able to connect again. Now I can load image through UniFlash or enter debug mode with CCS but the device is not working properly when I power-up the target for normal use...

The second is:

- I tried to flash another target (same design but boot mode is still GetMode) with UniFlash and I got the error message below

[30/8/2019 16:52:04] [SUCCESS] Program Load completed successfully.
[30/8/2019 16:52:04] [ERROR] C28xx: GEL: Error while executing OnFileLoaded( 0, 0): Could not read 0x003F7FFA@Data: target is not connected at XAR0=*(0x3F7FFA) [f28035.gel:567] at Device_Cal() [f28035.gel:67] at OnFileLoaded(0, 0)
or
[30/8/2019 17:56:11] [ERROR] C28xx: GEL: Error while executing OnFileLoaded( 0, 0): Could not read 0x003F7FF9@Data: target is not connected at XAR0=*(0x3F7FF9) [f28035.gel:566] at Device_Cal() [f28035.gel:67] at OnFileLoaded(0, 0)

CCS seems OK when going in debug mode. It seems some recent changes in my code or config made this but I still not find out what at the moment. Maybe something about password area (Data memory 0x003F7FFA).

Below a refresh bug ? There is no FFFF value for PWL_PWL0 and 1 but they appear once data representation changed..

Can anybody tel me more about the GEL error or any other idea ?

Thanks.

Romain

Config:

- Uniflash 4.5.0.2056

- CCS 8.3.1

- Debug probe XDS100v2 and XDS110

- GEL file \controlSUITE\device_support\f2803x\v130\DSP2803x_common\gel\ccsv5\f28035.gel

  • Additional informations:

    I tried to load previous version of firmware and then power-on the board.

    The main MCU (MSP430F6726) is starting but the TMS320 seems not... (MSP430 hold TMS320 XRS pin at start-up).

    This is an extract of UniFlash log when I tried to connect to the target after that:

    [30/8/2019 18:42:33] [ERROR] C28xx: Failed CPU Reset: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.0.27.9)
    [30/8/2019 18:42:33] [ERROR] C28xx: Trouble Reading Register PC: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.0.27.9)
    [30/8/2019 18:42:33] [ERROR] 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 8.0.27.9)
    [30/8/2019 18:42:33] [ERROR] C28xx: GEL: Error while executing OnReset(1): Target failed to read register ST1 at (ST1&~(0x0100)) [f28035.gel:292] at C28x_Mode() [f28035.gel:32] at OnReset(1)
    [30/8/2019 18:42:33] [INFO] C28xx: Flash Programmer: Warning: The configured device (TMS320F28035), does not match the detected device (). Flash Programming operations could be affected. Please consider modifying your target configuration file.
    [30/8/2019 18:42:34] [ERROR] C28xx: File Loader: Verification failed: Values at address 0x3F7FF6@Program do not match Please verify target memory and memory map.
    [30/8/2019 18:42:54] [ERROR] C28xx: Error connecting to the target: (Error -1015 @ 0x0) Device is not responding to the request. Device may be locked, or the debug probe connection may be unreliable. Unlock the device if possible (e.g. use wait in reset mode, and power-cycle the board). If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 8.0.27.9)
    [30/8/2019 18:42:57] [ERROR] C28xx: Error connecting to the target: (Error -1015 @ 0x0) Device is not responding to the request. Device may be locked, or the debug probe connection may be unreliable. Unlock the device if possible (e.g. use wait in reset mode, and power-cycle the board). If error persists, confirm configuration and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 8.0.27.9)
  • Hi Romain,

    You shouldn't be able to connect and run your program when in GetMode, like you are seeing. That is expected.

    What do you mean when you say the below?

    "Now I can load image through UniFlash or enter debug mode with CCS but the device is not working properly when I power-up the target for normal use..."

    Do you mean it does not seem to be running standalone from flash properly? Or you can't debug it in CCS?

    Have you checked the password locations using the memory browser in CCS to see if they are still in a cleared state? i.e. 0xFFFF

    Are you trying to program and test a SW program you created? Maybe try running and testing the below SW example in C2000ware for running standalone from flash:

    C:\ti\c2000\C2000Ware_2_00_00_02\device_support\f2803x\examples\c28\flash_f28035

    If this works, then compare your SW project to this one and see what may be missing.

    Best,

    Kevin

  • Hi Romain,

    Any update on debugging this issue?

    Best,

    Kevin

  • Hi Kevin,

    Yes I had a look to the password location (My pictures have not been loaded with past option but they were at 0xFFFF).

    GEL file error seems to be a UniFlash problem since I have no such message when flashing from CSS.

    Yes I use a custom code and the previous versions are working fine but not the last one. A part of the problem seems located at the MSP430 side, it stays stucked when setting its clock on power-up (needs a warm reset to start fine). But to come back at the TMS320 side what did you mean by "You shouldn't be able to connect and run your program when in GetMode" ? I always did that until now, I powered-up my target and let it boot to flash. I did not understand why you said that..

    PS: At this time the MSP430 start-up has been corrected and everything seems working as expected at both MSP and TMS sides

    Best regards,

    Romain

  • Hi Romain,

    RomainP said:

    Yes I had a look to the password location (My pictures have not been loaded with past option but they were at 0xFFFF).

    OK that's good, your device isn't locked.

    RomainP said:
    But to come back at the TMS320 side what did you mean by "You shouldn't be able to connect and run your program when in GetMode" ? I always did that until now, I powered-up my target and let it boot to flash. I did not understand why you said that..

    I was meaning when in GetMode, by default, you shouldn't be able to connect over JTAG using CCS (and Uniflash too, i think) for debugging your software. This is because the default behavior of GetMode is to boot to flash. Sorry for the confusion.

    best,

    Kevin