Unable to use uart ,I2c,SPI together as shown in the error message. I am attaching the dts overlay file
Is there any way to use all UART,SPI,I2C together. Please let me know if you need any further details or explanations regarding this issue.
Unable to use uart ,I2c,SPI together as shown in the error message. I am attaching the dts overlay file
// To get started, press Ctrl+Space to bring up the completion menu and view the available nodes. // You can also use the buttons in the sidebar to perform actions on nodes. // Actions currently available include: // * Enabling / disabling the node // * Adding the bus to a bus // * Removing the node // * Connecting ADC channels // For more help, browse the DeviceTree documentation at https://docs.zephyrproject.org/latest/guides/dts/index.html // You can also visit the nRF DeviceTree extension documentation at https://nrfconnect.github.io/vscode-nrf-connect/devicetree/nrfdevicetree.html &uart1 { status = "okay"; }; &pinctrl { uart2_default: uart2_default { group1 { psels = <NRF_PSEL(UART_TX, 0, 24)>, <NRF_PSEL(UART_RX, 0, 23)>; bias-pull-up; }; }; uart2_sleep: uart2_sleep { group1 { psels = <NRF_PSEL(UART_TX, 0, 24)>, <NRF_PSEL(UART_RX, 0, 23)>; low-power-enable; }; }; }; &uart2 { status = "okay"; current-speed = <115200>; }; &i2c2_default { status = "okay"; group1 { psels = <NRF_PSEL(TWIM_SDA, 0, 30)>, <NRF_PSEL(TWIM_SCL, 0, 0)>; }; }; &i2c2 { status = "okay"; }; &spi3 { status = "okay"; }; &i2c1 { status = "disabled"; }; &i2c0 { status = "disabled"; }; &i2c3 { status = "disabled"; };
Is there any way to use all UART,SPI,I2C together. Please let me know if you need any further details or explanations regarding this issue.
Which SoC are you referring to ? On nRF52 series the I2C & SPI are shared. On nRF53 all 3 are probably shared. Which means if you use dev 0 of i2c, you cannot use device 0 of SPI.
You can't use all 3 but not on the same device instance. for example I2C instance 0, SPI instance 1 are possible but not I2C instance & SPI instance 0 at the same time.
See datasheet
You are correct. This is also what I was trying to communicate
My first reply might seem odd because it was written right after your reply, wasn't aware at the time of writing of your answer.