Day27 - SPI Sensor Driver¶
Objective¶
- Add SPI support to existing sensor driver
- Bind SPI device via Device Tree
- Verify communication with STM32 SPI slave
Step 1 - Build Driver¶
Step 2 - Install Overlay¶
Step 3 - Configure config.txt¶
Add:
Step 4 - Reboot¶
Step 5 - Insert Module¶
Step 6 - Verify SPI Device¶
Expected:
Step 7 - Verify Driver Binding¶
Expected:
Step 8 - Check dmesg¶
Expected:
Step 9 - Enable Polling¶
Step 10 - Read Temperature¶
Expected Result¶
- CHIP_ID correctly read (0xA1)
- Temperature readable
- No SPI errors