Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Strange status value of spi

Altera_Forum
Honored Contributor II
856 Views

Hi, all 

 

today i used a spi master in nios to read data in my gyroscope. when i sent a "WHO_AM_I" to it, correct data was read ( through signalTap). but when i used the function "alt_avalon_spi_command()" , it read nothing. and when i use the debug tools , i found the status value is 0x2e0. 

 

my questions: 

1) why the system cannot receive data from the gyroscope? it had already sent the data back. 

 

2)in the "NII51011-9.0.0 SPI Core" table 7-4 ,the bit “E”(bit 8) is the logical OR of bit "TOE"(bit 4) and "ROE"(bit 3),. why my status value is "0x2e0"?? 

 

 

thanks.
0 Kudos
0 Replies
Reply