Dtynin
DIIDevHeads IoT Integration Server
•Created by Dtynin on 7/2/2024 in #middleware-and-os
Resolving 'SPI Device Not Ready' Error on AVR Microcontroller with Zephyr RTOS
hey guys, I am attempting to set up SPI communication on an AVR microcontroller running Zephyr RTOS to acquire data from an SPI temperature sensor (MCP9808) and send it to an IoT cloud platform, I have configured the SPI peripheral in the
prj.conf
file, created a Zephyr SPI device binding in the device tree source file (dts
), writing an application to read temperature data from the MCP9808 sensor. But am getting the error, what could be wrong?
I have verified the device tree source configuration to ensure proper SPI peripheral settings, checked the pin configurations to match the hardware setup, made sure the MCP9808 sensor is connected correctly to the SPI pins.
9 replies