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.

Linux/AM3715: Cache enable prevents image download via JTAG

Guru 20755 points

Part Number: AM3715

Tool/software: Linux

Hello,

I have problem loading application to memory with jtag if I use cache in a standalone application.

After MLO or u-boot done, I can load/unload application without any issues.

But If I than enable cache in the standalone application (the routine is below). then I can't any more load into memory with the jtag.

Is there any possible explanation for this ?

;********************************************************************************************************
; BSP_CachesEn()
;
; Description : Enable L1 Data and Instruction cache as well as the L2 unified cache.
;
; Prototypes : void BSP_L2C310Config (void)
;
; Argument(s) : None
;********************************************************************************************************

EXPORT BSP_CachesEn

BSP_CachesEn

MRC p15, 0, r0, c1, c0, 0
ORR r0, r0, #CTRL_C1_C
ORR r0, r0, #CTRL_C1_I
MCR p15, 0, r0, c1, c0, 0
DSB
ISB

DSB

BX lr

Regards,

Ran