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

how to obtain output on serial port (P0.11,P0.09)pca10001 uart_example?

Hi,

I used uart_example from SDK v4.4.1 where I continuously transmitted a character 'A' to the serial port

As from the discussions I found in devzone the output will be obtained JLink CDC Uart Port, but that is the serial output from the debugger. When I tried to open a serial port (for my USB-serial converter) I couldn't find any output on the Teraterm software. But when I opened the JLink CDC Uart port I obtained the output.

So Is there anything to be done in the hardware so as to get output on pin P0.09 & P0.011. This is required since I have to debug in this manner only.

Regards HPC

  • Hi,

    The PCA10001 can be used as a USB-UART bridge if defining the pins as shown in file pca10001.h:

    #define RX_PIN_NUMBER  11
    #define TX_PIN_NUMBER  9
    #define CTS_PIN_NUMBER 10
    #define RTS_PIN_NUMBER 8
    #define HWFC           true
    

    If you want to use an external COM port, you change the pin numbers, set HWFC to false and connect TX_PIN_NUMBER/RX_PIN_NUMBER to TXD/RXD on your external COM-port.

    Best regards Håkon

Related