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.

Compiler/TMS320F28069F: Load Program Error

Part Number: TMS320F28069F
Other Parts Discussed in Thread: TMS320F28027, C2000WARE, TMS320F28069,

Tool/software: TI C/C++ Compiler

when I program with given examples to my custom board F28069F through Launchpad  F28027F.

It shows error in debugger window

what should be the problem?

how fix it??

  • Hi,

    First of all it feels like you're project has some errors. Can you "Rebuild" your project and check your Console Window.

    Regards,
    Gautam
  • Hi,

    Please check if the location of .out is correct?
    Are there any build errors?

    Thanks and Regards
    Harshmeet
  • there is only 1 warning..!!

  • I don't understand .What is the location of .out.
    there is not any build errors
    Thankyou
  • There is location from where it is picking the .out that is shown in the error.

    Is that correct?

    Regards
    Harshmeet
  • i am sharing u a screenshot of location of .out file 

  • error showing in console:

    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)
    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)
    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)
    C28xx: GEL: Error while executing OnReset(1): Target failed to read register ST1
      at (ST1&~(0x0100)) [f28027.gel:283]
      at C28x_Mode() [f28027.gel:33]
      at OnReset(1)
    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 CPU Reset: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.0.27.9)
    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)
    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)
    C28xx: GEL: Error while executing OnReset(1): Target failed to read register ST1
      at (ST1&~(0x0100)) [f28027.gel:283]
      at C28x_Mode() [f28027.gel:33]
      at OnReset(1)
    C28xx: Trouble Writing Memory Block at 0x0 on Page 0 of Length 0x2: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.0.27.9)
    C28xx: File Loader: Verification failed: Target failed to write 0x00000@Program
    C28xx: GEL: File: C:\ti\C2000Ware_1_00_05_00_Software\device_support\f2806x\examples\c28\adc_soc\Debug\Example_2806xAdcSoc.out: Load failed.

    sir plz help me out??

  • Hi aash,

    Here are a few points:

    Is the target configuration correct. With the error it seems like the device doesn't match the ccxml.
    It seems you are loading the binary in F29069 but the device selected is F28027,
    I believe that is why you are getting the error.

    Please check this.

    Thanks and Regards
    Harshmeet Singh
  • I done all that it given error again.

    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)
    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)
    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)
    C28xx: GEL: Error while executing OnReset(1): Target failed to read register ST1
      at (ST1&~(0x0100)) [f28069.gel:312]
      at C28x_Mode() [f28069.gel:32]
      at OnReset(1)
    C28xx: Flash Programmer: Warning: The configured device (TMS320F28069), does not match the detected device (). Flash Programming operations could be affected. Please consider modifying your target configuration file.
    C28xx: Failed CPU Reset: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.0.27.9)
    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)
    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)
    C28xx: GEL: Error while executing OnReset(1): Target failed to read register ST1
      at (ST1&~(0x0100)) [f28069.gel:312]
      at C28x_Mode() [f28069.gel:32]
      at OnReset(1)
    C28xx: Trouble Writing Memory Block at 0x0 on Page 0 of Length 0x2: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.0.27.9)
    C28xx: File Loader: Verification failed: Target failed to write 0x00000@Program
    C28xx: GEL: File: C:\ti\C2000Ware_1_00_05_00_Software\device_support\f2806x\examples\c28\timed_led_blink\Debug\Example_2806xLEDBlink.out: Load failed.


    can you plz help me with how to do target configuration for TMS320F28069F .may be I done some mistake.

  • Hi,

    C28xx: Flash Programmer: Warning: The configured device (TMS320F28069), does not match the detected device (). Flash Programming operations could be affected. Please consider modifying your target configuration file.

    Can you check the device? See the error above it says device not matching the selected one.

    Regards
    Harshmeet
  • Since it's custom board, please check couple of things -

    1) Check the XRSn pin of device. If XRSn pin is permanently low then there is some issue with board which you need to debug.
    2) If XRSn pin is toggling then check the value of BOOTMODE pins on the board. If it's setot BOOT to flash then change it to some other value and try again after power cycling the board.

    Regards,
    Vivek Singh
  • Yes ,it is TMS320F28069F!!
    In target configuration, selected device is TMS320F28069
    And Selecting j tag XDS100V2
  • My target configuration is shown above,

    still I get 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)
    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)
    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)
    C28xx: GEL: Error while executing OnReset(1): Target failed to read register ST1
      at (ST1&~(0x0100)) [f28069.gel:312]
      at C28x_Mode() [f28069.gel:32]
      at OnReset(1)
    C28xx: Flash Programmer: Warning: The configured device (TMS320F28069), does not match the detected device (). Flash Programming operations could be affected. Please consider modifying your target configuration file.
    C28xx: Failed CPU Reset: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.0.27.9)
    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)
    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)
    C28xx: GEL: Error while executing OnReset(1): Target failed to read register ST1
      at (ST1&~(0x0100)) [f28069.gel:312]
      at C28x_Mode() [f28069.gel:32]
      at OnReset(1)
    C28xx: Trouble Writing Memory Block at 0x0 on Page 0 of Length 0x2: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 8.0.27.9)
    C28xx: File Loader: Verification failed: Target failed to write 0x00000@Program
    C28xx: GEL: File: C:\ti\C2000Ware_1_00_05_00_Software\device_support\f2806x\examples\c28\gpio_setup\Debug\Example_2806xGpioSetup.out: Load failed.

    plz help me out??

    and my schematics is 6303.file5B437296-MCU.pdf

  • Did you check Vivek's reply above?

    Regards
    Harshmeet
  • Hi,

    If you have some issues still. Please let us know otherwise i will close this thread.

    Regards
    Harshmeet