Zephyr UART on nRF5340 hardware flow control tx breaks

Hello,

I seem to be having a problem with nrf5340 UART on VCOM0 with hardware flow control enabled not being able to transfer anything.
The actual code writing is Zephyr modem command handler, and it happens in both async and interrupt modes, picking a different timer or disabling hw async counter does not help either.
The lockup (waiting on flow control I think) happens on first send.
HWFC disabled sends correctly, receives most of the things, but due to lack of flow control it loses data on receive, so I cannot use it.

UART using uart_get_config definitely prints right baud rate, flow control enabled, 8-bit data, no parity.
uart0 config is the default, except the "CTS pin disable" from the board overlay is commented out.
This is built in non-secure mode, but there's the same issue with secure mode.

The Windows terminal apps I've tried were TeraTerm with RTS/CTS and RealTerm with RTS/CTS and DTR pin set.
Interestingly enough (but unrelated to the issue) nRF9160 SLM works fine in the same setup.

I'll provide a reduced testcase code soon.

Parents Reply Children
No Data
Related