Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:xu3_hardware_spi [2016/12/09 11:20] charles.park [Reading the SPI Flash device ID on Expansion-Board] |
en:xu3_hardware_spi [2016/12/24 12:15] odroid [Reading the SPI Flash device ID on Expansion-Board] |
||
---|---|---|---|
Line 13: | Line 13: | ||
</WRAP> | </WRAP> | ||
- | === How to enable driver (Ubuntu 16.04 only need) === | + | === How to enable driver (Only Ubuntu 16.04 or higher is required) === |
Edit /etc/modprobe.d/blacklist-odroid.conf to comment out following two ines. | Edit /etc/modprobe.d/blacklist-odroid.conf to comment out following two ines. | ||
<code> | <code> | ||
Line 35: | Line 35: | ||
34 34 34 34 | 34 34 34 34 | ||
</code> | </code> | ||
+ | |||
+ | If you tie the MOSI and MISO pins, the output is "AB 00 00 00".\\ | ||
+ | We call it loopback test. | ||
+ | |||
<file c spidev_test.c> | <file c spidev_test.c> | ||
/* | /* |