Please take a minute to review and accept our Terms of Use.
Welcome to the PLECS User Forum, where you can ask questions and receive answers from other members of the community.

Many technical questions regarding PLECS are answered on the Technical Solutions page of our website. Tutorial videos, specific application examples, and pre-recorded webinars are available on our YouTube page. Please follow us on LinkedIn for the latest Plexim news.

Launchpad cannot implement build process

0 votes
105 views
Dear specialist:

   Today I update the version of plecs as well as the version of c2000 tool, and I tried to build the plecs model, but I found out that the launchpad cannot be build as normal, the error occured as:

   So how to solve the problem since it indicates that my dsp controller is reset? I toggled the reset button of the DSP controller but still it doesn't work.

 

Error in build step #3 (Make): Make process exited with code 2:
"C:/ti/uniflash_6.0.0/dslite.bat" --flash --config=.\output_TI2837xS\uniflash.ccxml .\output_TI2837xS\Controller.out
Executing the following command:
> "C:\ti\uniflash_6.0.0\deskdb\content\TICloudAgent\win\ccs_base\DebugServer\bin\DSLite" flash --flash --config=.\output_TI2837xS\uniflash.ccxml .\output_TI2837xS\Controller.out

For more details and examples, please refer to the UniFlash Quick Start guide.

error: C28xx_CPU1: Trouble Reading Register PC: (Error -1137 @ 0x6) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 9.1.1.00002)
error: C28xx_CPU1: Trouble Writing Memory Block at 0x5f412 on Page 1 of Length 0x1: (Error -1137 @ 0x5F413) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 9.1.1.00002)
error: C28xx_CPU1: GEL: Error while executing OnTargetConnect(): Target failed to write 0x0005F412@Data
at *((int *) 0x5F412)=0x000F [f28377s.gel:77]
at OnTargetConnect()
error: C28xx_CPU1: Trouble Writing Memory Block at 0x5fb00 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 9.1.1.00002)
error: C28xx_CPU1: Error occurred during flash operation: Target failed to write 0x5FB00@Program
error: C28xx_CPU1: Trouble Writing Memory Block at 0x5f800 on Page 1 of Length 0x2: (Error -1137 @ 0x5F802) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 9.1.1.00002)
error: C28xx_CPU1: Error occurred during flash operation: Target failed to write 0x0005F800@Data
error: C28xx_CPU1: Trouble Writing Memory Block at 0x5fb00 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 9.1.1.00002)
error: C28xx_CPU1: Error occurred during flash operation: Target failed to write 0x5FB00@Program
error: C28xx_CPU1: Trouble Writing Memory Block at 0x5f800 on Page 1 of Length 0x2: (Error -1137 @ 0x5F802) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 9.1.1.00002)
error: C28xx_CPU1: Error occurred during flash operation: Target failed to write 0x0005F800@Data
error: C28xx_CPU1: Error initializing flash programming: Interface returned from dll, but flash is not available on this device.
error: C28xx_CPU1: Failed CPU Reset: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 9.1.1.00002)
error: C28xx_CPU1: Trouble Reading Register PC: (Error -1137 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 9.1.1.00002)
error: C28xx_CPU1: Trouble Writing Memory Block at 0x7029 on Page 1 of Length 0x1: (Error -1137 @ 0x702A) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 9.1.1.00002)
error: C28xx_CPU1: GEL: Error while executing OnReset(-1): Target failed to write 0x00007029@Data
at *((int *) 0x7029)=0x68 [f28377s.gel:27]
at OnReset(-(1))
error: C28xx_CPU1: GEL: Error calling OnPreFileLoaded(): Reset failed: retcode=-1
error: C28xx_CPU1: 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 9.1.1.00002)
error: C28xx_CPU1: File Loader: Verification failed: Target failed to write 0x00000@Program
Controller.mk:147: recipe for target 'download' failed

Failed: File: .\output_TI2837xS\Controller.out: Load failed.
make: *** [download] Error 1
asked Feb 3 by shichenseu (299 points)
Is your LaunchPad connected to any external hardware?  What are the position of the DIP switches in S1 - are they oriented towards or away from the MCU? Can you program the device if it's only connected to your computer?  Do you have a second LaunchPad you can use for testing?

TI has a debugging section on their website related to this error that describes other reasons you may see this error and potential resolutions: https://software-dl.ti.com/ccs/esd/documents/ccs_debugging_jtag_connectivity_issues.html#device-is-held-in-reset

1 Answer

0 votes
Were you able to fix it?

I would try the UniFlash GUI to connect to the LaunchPad. Once it works there, it will most probably work with PLECS.
answered Feb 3 by Falk Kyburz (253 points)
...