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

Extending the Thread Cloud CoAP Client Example with peripheral Hardware

I want to extend the Thread Cloud Client Example (thread_cloud_coap_client_pca10056) with a peripheral controller. And I am looking at the UART Example (ble_app_uart_pca10056_s140) for transmitting and receiving data through a serial device. What do I have to consider merging those two programs? I am using GPIO Pins P0.06, P0.08 and GND for the serial connection.

A Noobie, obviously.

Parents Reply
  • I didn't change file nrfx_uarte.h. However if I change the second serial uart definition statement in my main.c from

    to

    the program will compile with no error. I am just not sure if the second instance # should be 0?

    May I suggest to the Nordic team to publish another Serial Example with two uart instances. It will definitely benefit me and others too.

Children
  • You can't use instance 0 for both serial connections. Did you try changing nrfx_uarte.h as I suggested in my previous post?

  • I just reinstalled the nRF5 SDK v15.0.0. Then I added again to my serial main.c the creation of a second UART instance. Now it compiles without error. However, I can't see any UART output from my second USB port. I see output on the PDK USB interface port(P0.08,P0.06). Any suggestions? In the mean time I ordered a Logic Analyzer.

     

  • What do you mean by this?

    Apfelsine said:
    I can't see any UART output from my second USB port

    Have you connected the UART interface to some serial to USB converter? Which pins are you using for the second UART interface?