You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use TCA9548A using zephyr. The following code returns error that "Device is not ready". I have connected the hardware properly i.e. SDA/SCL/GND/Vcc are connected properly between my processor and TCA9548A
Any help in what is not correct here?
const struct device *i2c_dev = device_get_binding(DEVICE_DT_GET(DT_NODELABEL(ch0)));
if (!device_is_ready(i2c_dev)) {
printk("Device is not ready.\n");
return;
}
I am trying to use TCA9548A using zephyr. The following code returns error that "Device is not ready". I have connected the hardware properly i.e. SDA/SCL/GND/Vcc are connected properly between my processor and TCA9548A
Any help in what is not correct here?
const struct device *i2c_dev = device_get_binding(DEVICE_DT_GET(DT_NODELABEL(ch0)));
if (!device_is_ready(i2c_dev)) {
printk("Device is not ready.\n");
return;
}
The overlay file is as follows
&i2c0 {
status = "okay";
mux: tca9548a@70 {
compatible = "ti,tca9548a";
reg = <0x70>;
status = "okay";
label = "i2c_mux";
#address-cells = <1>;
#size-cells = <0>;
};
The text was updated successfully, but these errors were encountered: