Solved! Go to Solution.
well, resolved by adding RAM init assembly code
___asm(ramStart = 0x40000000 ;/* RAM start address*/)___asm(ramSize = 0x180000 ;/* RAM size - System RAM only (384K)*/)___asm(ramCount = ramSize/64 ; /*calculate count variable*/)__as1( e_lis r2, ramCount@ha ; /*Loop counter to get all of L2SRAM*/)__as2( e_add16i r2, r2, ramCount@l___asm( se_mtctr r2 ; /*Store in count register*/)__as1( e_lis r1, ramStart@ha ; /*r1 holds base address of the L2SRAM, 64-bit word aligned*/)__as2( e_add16i r1, r1, ramStart@l ; /*Add low address*/)___asm(_init_l2ram_loop:)__as1( e_stmw r16,0(r1) ; /*Write values of GPR 17-32 at once, these still contain the init pattern all 0*/)__as2( e_addi r1,r1,64 ; /*Increment write address*/)___asm( e_bdnz _init_l2ram_loop ; /*Decrement count register and jump*/)
well, resolved by adding RAM init assembly code
___asm(ramStart = 0x40000000 ;/* RAM start address*/)___asm(ramSize = 0x180000 ;/* RAM size - System RAM only (384K)*/)___asm(ramCount = ramSize/64 ; /*calculate count variable*/)__as1( e_lis r2, ramCount@ha ; /*Loop counter to get all of L2SRAM*/)__as2( e_add16i r2, r2, ramCount@l___asm( se_mtctr r2 ; /*Store in count register*/)__as1( e_lis r1, ramStart@ha ; /*r1 holds base address of the L2SRAM, 64-bit word aligned*/)__as2( e_add16i r1, r1, ramStart@l ; /*Add low address*/)___asm(_init_l2ram_loop:)__as1( e_stmw r16,0(r1) ; /*Write values of GPR 17-32 at once, these still contain the init pattern all 0*/)__as2( e_addi r1,r1,64 ; /*Increment write address*/)___asm( e_bdnz _init_l2ram_loop ; /*Decrement count register and jump*/)