Hi,
Is it possible to read/write SPI registers from DSP side?
I try to read SPI revision register at dm3730 by flowing way:
#define REG_READ(REGBASE, OFFSET) \
( *( ( volatile Int32* )( (REGBASE) + (OFFSET) ) ) )
...
DSP_DRV_DEBUG( "McSPI 0x%08X\r\n", REG_READ( 0x480B8000, 0 ));
This define call returns random value, some addresses instead of register value.
But exactly the same macros reads GPIO registers without any problems. Like this:
DSP_DRV_DEBUG( "GPIO1 0x%08X\r\n", REG_READ( 0x48310000, 0 ));
I compile my application with DSPLink and use it to send reg value to the GPP (WinCE).
Should I configure MMU or do something else to get access to the SPI?
Thanks.