Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

Strange status value of spi

Honored Contributor II

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"?? 



0 Kudos
0 Replies