Part Number: 66AK2G12
Tool/software: Code Composer Studio
I use K2GEVM to do some interface verification.I want to use the PRU to access some SPI device.
I found the SPI register read is OK, I could get the SPIREV content by constant table or global address(base addr:0x21805400/0x21805C00). But the SPI register write operation is not OK.(checked this by read back SPI register and see register contents in ARM site). I can write the SPI register in ARM, so the SPI hardware should be OK.
this is the config in my PRU CCS project:
SPI0 : org = 0x21805400 len = 0x00000200 CREGISTER=6
volatile __far pruSpi CT_SPI0 __attribute__((cregister("SPI0", far), peripheral));
Could you provide me some demo code in C how the PRU operate the SPI register?
BTW, I found there is only 2 SPI interface in the constant table, if I want to use 3 or 4 SPI in PRU, what should I do by using constant table? The access by global address may be a little slow for me.