Hi,
I am using the nRF52833DK with NCS v1.6.1 in SES for a multiperipheral application. The application has the LIS2DH accelerometer which is communicating with nRF52833 using I2C. Started with the peripheral UART example and am able to print messages (acceleration data) on to a PuTTY terminal after configuring UART0 as the serial bridge with CONFIG_SERIAL=y (i.e. the default settings)
1) I need to use a UART instance to communicate with an external module. I used UART1 with rx and tx pins configured and am able to get data from the module. Now the module has changed and requires flow control. I added rts and cts pin definitions in the device overlay file and when I build the project, I am not able to see those changes in the output zephyr.dts file.Also, there is no data output from the module. What is the correct way of using UART1 with flow control? Is there a simple example to start with?
My device overlay is as follows (with rts and cts added)
&uart1 {
status = "okay";
current-speed = <115200>;
tx-pin = <31>;
rx-pin = <30>;
rts-pin = <24>;
cts-pin = <25>;
};
&i2c0 {
compatible = "nordic,nrf-twim";
status = "okay";
sda-pin = <29>;
scl-pin = <28>;
clock-frequency = <I2C_BITRATE_STANDARD>;
lis2dh@18 {
compatible = "st,lis2dh";
reg = <0x18>;
label = "LIS2DH";
};
};
2) I will have to use a second UART instance to connect with another IC. The plan is that UART0 to be used up for the IC. UART1 for the module and I2C0 for the accelerometer (both described above). How will by device overlay change for this? I want to output messages on to a terminal application on the laptop for debugging etc. How do I go about that?
Thanks
GPS