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.

AM335x failed Debug the second time

Other Parts Discussed in Thread: AM3358, AM3359

Hello,

I'm struggling with an issue using the AM335x StarterKit board. Every time I boot the board up for the first time, the software loads on it no problem when clicking the Debug button. If I stop and click Debug again, it comes up with the message below. I would like to fix this as I have to restart the board every time I want to re-upload the software on it.

The text appearing in the window on the left is:

############################### Console Output Begins ###################################

CortxA8: GEL: Error loading file 'C:\ti\ccsv6\ccs_base\emulation\boards\sk_am3358\gel\AM335x_PRU_ICSS.gel': unable to open GEL file 'C:\ti\ccsv6\ccs_base\emulation\boards\sk_am3358\gel\AM335x_PRU_ICSS.gel'
CortxA8: Output: **** AM3358_SK Initialization is in progress ..........
CortxA8: Output: **** AM335x ALL PLL Config for OPP == OPP100 is in progress .........
CortxA8: Output: Input Clock Read from SYSBOOT[15:14]: 24MHz
CortxA8: Output: **** Going to Bypass...
CortxA8: Output: **** Bypassed, changing values...
CortxA8: Output: **** Locking ARM PLL
CortxA8: Output: **** Core Bypassed
CortxA8: Output: **** Now locking Core...
CortxA8: Output: **** Core locked
CortxA8: Output: **** DDR DPLL Bypassed
CortxA8: Output: **** DDR DPLL Locked
CortxA8: Output: **** PER DPLL Bypassed
CortxA8: Output: **** PER DPLL Locked
CortxA8: Output: **** DISP PLL Config is in progress ..........
CortxA8: Output: **** DISP PLL Config is DONE ..........
CortxA8: Output: **** AM335x ALL ADPLL Config for OPP == OPP100 is Done .........
CortxA8: Output: **** AM335x DDR3 EMIF and PHY configuration is in progress...
CortxA8: Output: EMIF PRCM is in progress .......
CortxA8: Output: EMIF PRCM Done
CortxA8: Output: DDR PHY Configuration in progress
CortxA8: Output: Waiting for VTP Ready .......
CortxA8: Output: VTP is Ready!
CortxA8: Output: DDR PHY CMD0 Register configuration is in progress .......
CortxA8: Output: DDR PHY CMD1 Register configuration is in progress .......
CortxA8: Output: DDR PHY CMD2 Register configuration is in progress .......
CortxA8: Output: DDR PHY DATA0 Register configuration is in progress .......
CortxA8: Output: DDR PHY DATA1 Register configuration is in progress .......
CortxA8: Output: Setting IO control registers.......
CortxA8: Output: EMIF Timing register configuration is in progress .......
CortxA8: Trouble Writing Memory Block at 0x4c0000e4 on Page 0 of Length 0x4: (Error -1065 @ 0x3D5A) Unable to access device memory. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 5.1.507.0)
CortxA8: GEL: Error while executing OnTargetConnect(): Target failed to write 0x4C0000E4 at *((unsigned int *) (0x4C000000+0x0E4))=(unsigned int) 0x06 [AM3358_StarterKit.gel:285] at DDR3_EMIF_Config() [AM3358_StarterKit.gel:378] at AM3358_SK_Initialization() [AM3358_StarterKit.gel:363] at OnTargetConnect() .
CortxA8: File Loader: Data verification failed at address 0x80000000 Please verify target memory and memory map.
CortxA8: Unable to terminate memory download: NULL buffer pointer at 0x3a9f
CortxA8: GEL: File: D:\Destination\File.out: a data verification error occurred, file load failed.

############################### Console Output Ends ###################################

When I run the program for the first time, I still get the GEL error in the beginning, but the program goes ahead and loads fully.

############################### Console Output Begins ###################################

CortxA8: GEL: Error loading file 'C:\ti\ccsv6\ccs_base\emulation\boards\sk_am3358\gel\AM335x_PRU_ICSS.gel': unable to open GEL file 'C:\ti\ccsv6\ccs_base\emulation\boards\sk_am3358\gel\AM335x_PRU_ICSS.gel'
CortxA8: Output: **** AM3358_SK Initialization is in progress ..........
CortxA8: Output: **** AM335x ALL PLL Config for OPP == OPP100 is in progress .........
CortxA8: Output: Input Clock Read from SYSBOOT[15:14]: 24MHz
CortxA8: Output: **** Going to Bypass...
CortxA8: Output: **** Bypassed, changing values...
CortxA8: Output: **** Locking ARM PLL
CortxA8: Output: **** Core Bypassed
CortxA8: Output: **** Now locking Core...
CortxA8: Output: **** Core locked
CortxA8: Output: **** DDR DPLL Bypassed
CortxA8: Output: **** DDR DPLL Locked
CortxA8: Output: **** PER DPLL Bypassed
CortxA8: Output: **** PER DPLL Locked
CortxA8: Output: **** DISP PLL Config is in progress ..........
CortxA8: Output: **** DISP PLL Config is DONE ..........
CortxA8: Output: **** AM335x ALL ADPLL Config for OPP == OPP100 is Done .........
CortxA8: Output: **** AM335x DDR3 EMIF and PHY configuration is in progress...
CortxA8: Output: EMIF PRCM is in progress .......
CortxA8: Output: EMIF PRCM Done
CortxA8: Output: DDR PHY Configuration in progress
CortxA8: Output: Waiting for VTP Ready .......
CortxA8: Output: VTP is Ready!
CortxA8: Output: DDR PHY CMD0 Register configuration is in progress .......
CortxA8: Output: DDR PHY CMD1 Register configuration is in progress .......
CortxA8: Output: DDR PHY CMD2 Register configuration is in progress .......
CortxA8: Output: DDR PHY DATA0 Register configuration is in progress .......
CortxA8: Output: DDR PHY DATA1 Register configuration is in progress .......
CortxA8: Output: Setting IO control registers.......
CortxA8: Output: EMIF Timing register configuration is in progress .......
CortxA8: Output: EMIF Timing register configuration is done .......
CortxA8: Output: PHY is READY!!
CortxA8: Output: DDR PHY Configuration done
CortxA8: Output: **** AM3358_SK Initialization is Done ******************

############################### Console Output Ends ###################################

(it then goes on to load the program)

The Target Configuration settings are as follows:

User Defined > Sitara.ccxml (Default)

Basic > Connection> Texas Instruments XDS100v2 USB Emulator

Basic > Board or Device > SK_AM3358 (AM3358 StarterKit Board)

Basic > Clicked "Test Connection" and the test is successful

Advanced > Texas Instruments XDS100v2 USB Emulator_0 > SK_AM3358_0 > AM3358 > IcePick_D_0 > DAP > CS_DAP_DebugSS > ModenaSS > CortxA8 >   initialization script "..\..\emulation\boards\sk_am3358\gel\AM3358_StarterKit.gel"

Thank you and best regards,

H