Hi,
I'm writing PRU test code(shown below) on the AM335EVM board to access the global memory space.
The RPU revision is 0x47000000 at CFG space index 0. When I use the local address(0x0002_6000), I can get this value, however when I use global address( 0x4A32_6000), I only get 0x000000. I think there must be some registers need configure first before using the global address. Can someone help me how to work out this? Thanks,
#define PRU0_CNTL_REG 0x00026000
LDI r12.w0, PRU0_CNTL_REG & 0xFFFF
LDI r12.w2, PRU0_CNTL_REG >> 16
MOV32 r13, 0x5
SBBO r13, r12,4,4
#define PRU0_EXT_CNTL_REG 0x4A326000
LDI r12.w0, PRU0_EXT_CNTL_REG & 0xFFFF
LDI r12.w2, PRU0_EXT_CNTL_REG >> 16
LBBO r13,r12,0,4