This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Mapping registers of SPI controller from DSP side

Other Parts Discussed in Thread: DM3730

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.