Looks like the baud rate is default based on my zephyr.dts file:
uart0: xiao_serial: uart@40002000 {
compatible = "nordic,nrf-uarte";
reg = < 0x40002000 0x1000 >;
interrupts = < 0x2 0x1 >;
status = "okay";
current-speed = < 0x1c200 >;
pinctrl-0 = < &uart0_default >;
pinctrl-1 = < &uart0_sleep >;
pinctrl-names = "default", "sleep";
};
No flow control that I’ve found. I will try changing it and see how it goes.
For number 3, I mean that if I make a change such as adding another printk statement in my main.c, then build, open bootloader, and flash into the nRF, it leads to my computer not able to find the COM port to read from anymore. As in when I try to open nRF serial terminal the COM port doesn’t show up. Sometimes it says access denied or file not found isntead. This has happened a few times but the only specific thing I’ve found to cause this is adding the extra printk statements so far.
I should have mentioned this originally, but this problem only arises once I start dealing with package data. Addresses, rssi, etc make the code work fine. Time-wise, with the print statement in my main loop for time it has shown to be inconsistent. Sometimes it stopped at 5 seconds and other times 15. (This was before when I would copy the buffer after calling update_table, which I still don’t understand why that matters). Now it stops after I free the previous buf pointer of a row in my update_table function.
//I have updated the code with a remove row function to reflect my current code