Hi Sam
How are you intending to run the code for setting l2sram ?
I use a BDI3000 JTAG debugger and with it I can initialize
this as follows :
; Move the 256kB L2SRAM to the initial MMU page
WM32 0xFF720E44 0x0000001C ;L2ERRDIS: disable parity error
WM32 0xFF720000 0x50010000 ;L2CTL
WM32 0xFF720100 0xFFFC0000 ;L2SRBAR0: map to 0x0_FFFC0000
WM32 0xFF720104 0x00000000 ;L2SRBAREA0
WM32 0xFF720000 0x90010000 ;L2CTL
;
; load and execute some boot code
WM32 0xfffffffc 0x48000000 ;loop
EXEC 0xfffffffc
Perhaps this gives you an idea and you can transform it
to your usage.
Regards
Sinan Akman