nRF9160DK serial port VCOM1 not working as expected

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

Parents Reply Children
  • Thanks, Michal.

    Lately, I have been programming zephyr/samples/bluetooth/hci_uart into the nRF52840 and I am seeing no problems with the console--even with a power switch reset. If I get energetic I will give nrf/samples/bluetooth/hci_lpuart another try. I encourage you to use that latter nRF52840 program if you do more testing. Especially SDK v3.1.0 and v3.1.1.

    Your finding that the VCOM1 only works when the switch is toggled to the nRF52 side: even with the power reset button? We know that the push button reset will only reset the processor corresponding to the switch you mentioned.

    I'm still curious how that issue about bad fonts comes about--the one I could only fix with Teraterm. Ask around if any experts have an idea about that. I am sure I have seen it in the past--but not often.

    Burt

  • Michal, I cannot reproduce this anymore. I am going to chalk it up to possible user error. Given that I mentioned minicom originally, perhaps I had neglected to kill minicom prior to using Serial Terminal. I could have had minicom running in a GNOME Terminal window hidden somewhere on my Ubuntu desktop. Maybe, maybe not.

    Rather than me close this out immediately, I will use the ticket to ask a slightly different question: if minicom is running on a tty port, is it possible to have Serial Terminal balk at then connecting, to let one know that he is about to do a bad thing? Do a bit of research and then we can decide what to do with this ticket. Thanks.

    Burt

  • Just wanted to let you know that I have provided the feedback to our nRF Connect for Desktop team.

    Thank you Burt!

    Best regards,

    Michal

Related