Hi all hope you all are fine and doing well.
I am trying to use the Soft UART (uart-bitbang.c driver) on nRF52 DK for a low-speed UART connection. The initialization fails with the following error: <err> uart_bitbang: Couldn't configure tx counter.
This happens repeatedly and I cannot transmit data using the software UART (bitbang).
Board & SDK:
-
nRF52 DK (nRF52832)
-
nRF Connect SDK Toolchain v3.2.0 (VS code Extension) / Zephyr v4.2.99
-
Baudrate: 2400
Problem:
-
Soft UART (uart-bitbang) fails to initialize.
-
Error seen:
<err> uart_bitbang: Couldn't configure tx counter -
Cannot transmit data using software UART (bitbang).
Setup:
-
Device Tree overlay configured with
uart-bitbangon P0.13 (TX) and P0.14 (RX). -
prj.confenables GPIO, SERIAL, UART_BITBANG, and logging. -
main.cusesuart_poll_out()for TX.
Steps to Reproduce:
-
Build Soft UART project using Zephyr SDK v4.2.99 for nRF52 DK
-
Use overlay and
prj.confas below -
Flash on nRF52 DK
-
Observe error in logs (Serial monitor of VS Code with default baudrate of 115200)
Questions / Help needed:
-
Why does the TX counter fail to configure?
-
Are there limitations of
uart-bitbangon nRF52 DK? -
Is there an example of Soft UART initialization for nRF52 DK?
nrf52dk_nrf52832.overlay file
