This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Getting CLI to work over UART on custom board

Hi support,

I'm currently using pca10040 on my custom board and want to be able to implement the CLI over uart port. My SDK is 15.2.

To get started, I test my board's hardware with the uart example and it's working fine (the only modification I have to made is changing TX_PIN_NUMBER and RX_PIN_NUMBER). However, when I try the cli example, with the same change to the pin number, I'm not getting anything over my uart terminal.

Any idea what I'm missing? I have tried both Tera Term and Putty and made sure my set up is the same as the documentation.

Thanks in advance!!!

Parents Reply
  • Thanks for checking. The registers indicate that data has been transmitted (DMA amount is 3 bytes, and the tx event is triggered), which makes me suspect that it might not be a SW configuration problem after all even though it worked with the UART example earlier.

    Some more ideas of what you can try:

    1. Probe the TX line with Logic analyzer or scope to verify if data is clocked out

    2. Call nrf_drv_clock_hfclk_request(NULL); on startup to turn on the HF crystal oscillator. It will increase the baudrate accuracy.

    3. Try with a different USB UART bridge

    4. Lower the baudrate. E.g., 38400

Children
Related