Hi,
I built the nrf/samples/bluetooth/hci_lpuart program in SDK v3.1.1. I am using an nRF9160DK board version 1.1.0. I did add several printk statements to zephyr/samples/bluetooth/hci_uart/src/main.c. I built on Linux. After I program the nRF52840, I will see this on minicom
*** Booting nRF Connect SDK v3.1.1-e2a97fe2578a ***
*** Using Zephyr OS v4.1.99-ff8f0c579eeb ***
main() entered
main() after bt_enable_raw()
main() before while loop
main() in while loop
and that makes me happy. But there are two problems:
1) if I move the programming switch from nRF52 to nRF91, I no longer see the nice output. I have looked at the nRF9160DK Hardware Users Guide, and that states that VCOM1 is connected to the nRF52840, period. There is nothing stated in the documentation to suggest that printk should stop working when the programming switch is moved.
2) On Serial Terminal, I will see characters with a garbage font. I also see that garbage font if I connect my DK board to a WIndows machine and use Teraterm. But with Teraterm, I can issue a Control->Reset Terminal operation, and the font problem goes away. I do not see any similar mechanism on Serial Terminal.
My colleague had told me that he was having problems getting any printk to show up from the hci_lpuart program. So everything here was done in service of checking his findings. Truthfully I think I am working on a different SDK level, v3.1.1, but that is just a detail.
Burt Silverman