Hi ,
I am trying to connect IPU-1 M4 from debugger of CCS while DRA72x already running a standalone code from flash (Both A15 and M4).When i do so, i am getting "Not able to connect to the Target -Cortex M4 , Device held at reset " error from the startup_M4.gel script of debugger.
Is it possible to connect and load new program through the debugger while processor is executing a standalone code?
I have tried to put clock and reset(wakeup) initialization of IPU1, with PRCM_BASE and WAKE_UP register base from OnTargetConnect() function of DRA72x_cortexM4_startup.gel scrpt. The error occured even before this function is called from start up gel script.
These gel files are for Vayu board.My current target is based on dra7xx evm.Are there any differences in gel files for both of them. JTAG looks fine and it passes the test connection test from debugger.
I have attached the screen shots also for reference.
With regards,
#define WR_MEM_32(addr, data) *(unsigned int*)(addr) =(unsigned int)(data) DRA72x_ICEPickD_Utility.gel #define DRA72x_PRCM_BASE 0x4A005000 #define CM_IPU1_CLK_CTRL 0x500 #define CM_IPU1_IPU1_CLKCTRL 0x520 #define RM_IPU1_RST_CTRL 0x4AE06510 #define RM_IPU1_RSTSTS 0x4AE06514 #define WR_MEM_32(addr, data) *(unsigned int*)(addr) =(unsigned int)(data) /*------------------ Reset-IPU1 -------------------*/ WR_MEM_32(DRA72x_PRCM_BASE+CM_IPU1_CLK_CTRL,0x2); WR_MEM_32(CM_IPU1_IPU1_CLKCTRL,0x01000001); WR_MEM_32(RM_IPU1_RST_CTRL,0x7); Console Output : Cortex_M4_IPU1_C0: GEL Output: --->>> DRA72x Cortex M4 Startup Sequence In Progress... <<<--- Cortex_M4_IPU1_C0: GEL Output: --->>> DRA72x Cortex M4 Startup Sequence DONE! <<<--- Cortex_M4_IPU1_C1: GEL Output: --->>> DRA72x Cortex M4 Startup Sequence In Progress... <<<--- Cortex_M4_IPU1_C1: GEL Output: --->>> DRA72x Cortex M4 Startup Sequence DONE! <<<--- Cortex_M4_IPU2_C0: GEL Output: --->>> DRA72x Cortex M4 Startup Sequence In Progress... <<<--- Cortex_M4_IPU2_C0: GEL Output: --->>> DRA72x Cortex M4 Startup Sequence DONE! <<<--- Cortex_M4_IPU2_C1: GEL Output: --->>> DRA72x Cortex M4 Startup Sequence In Progress... <<<--- Cortex_M4_IPU2_C1: GEL Output: --->>> DRA72x Cortex M4 Startup Sequence DONE! <<<--- C66xx_DSP1: GEL Output: --->>> DRA72x C66x DSP Startup Sequence In Progress... <<<--- C66xx_DSP1: GEL Output: --->>> DRA72x C66x DSP Startup Sequence DONE! <<<--- CortexA15_0: GEL Output: --->>> DRA72x Cortex A15 Startup Sequence In Progress... <<<--- CortexA15_0: GEL Output: --->>> DRA72x Cortex A15 Startup Sequence DONE! <<<--- IcePick_D: GEL Output: Ipu RTOS is released from Wait-In-Reset. IcePick_D: GEL Output: Ipu SIMCOP is released from Wait-In-Reset. IcePick_D: GEL Output: IVAHD C66 is released from Wait-In-Reset. IcePick_D: GEL Output: IVAHD ICONT1 is released from Wait-In-Reset. IcePick_D: GEL Output: IVAHD ICONT2 is released from Wait-In-Reset. Cortex_M4_IPU1_C0: Error connecting to the target: (Error -1266 @ 0x0) Device is held in reset. Take the device out of reset, and retry the operation. (Emulation package 6.0.14.5)