Error while trying to configure MCP9700 (init failed: -134) Zephyr

Hi guys,

I'm working on a project that recently got a change request to enable BLE. I've designed a custom board with the NRF52832 that should meet the requirements.

In the past I've used nrf52840 for a different application running on the old SDK. I'm now testing the nrf connect with Zephyr and so far I've been enjoying it.

However, I'm still new in some concepts. I'm trying to read a MCP9700 analog temperature sensor, and I saw that it was compatible with the sensors lib so I did the following on the device tree overlay:

```

&adc {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;

battery_voltage: battery_voltage@2 {
reg = <2>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,input-positive = <NRF_SAADC_AIN2>;
zephyr,resolution = <12>;
status = "okay";
};

gasket_temp_sensor: gasket_temp_sensor {
compatible = "microchip,mcp970x";
status = "okay";
family = "MCP9700/9700A";
io-channels = <&adc 0>;
friendly-name = "Gasket Temperature";
};

ambient_temp_sensor: ambient_temp_sensor {
compatible = "microchip,mcp970x";
status = "okay";
family = "MCP9700/9700A";
io-channels = <&adc 1>;
friendly-name = "Ambient Temperature";
};
};
```
 
The issue is, at the beginning I get the error init failed -134.
What could be the issue?
Thanks for the ongoing support.
Best regards,
Fernando
Related