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

SDK17 nRF52840-DK SD140 PCA10056 - ble_app_uart . RX_PIN_NUMBER missing from pca10056.h

Hello,

I am trying the example of ble_app_uart and when i am building the example it gives me an error RX_PIN_NUMBER undeclared. When i load the pca10056.h i can see TX_PIN_NUMBER there but RX is missing.

I have added the #define RX_PIN_NUMBER 8 in the header file. Now it builds fine but when i connect the Tx, Rx, Cts, Rts of the nRF52840-DK to my RS-232 cable and run the debugger it gives me a fatal error just after initializing RTC. if i disconnect the RX pin and leave the rest connected the program runs ok with no error.

I am suspecting the RX pin is somewhere is declared and thats why it gives this error ?

Looking forward for your assistance on this.

Kind regards,

Kleanthis

Parents
  • Hi Kleanthis

    Can you confirm that you are using SDK v17.0.2?

    It sounds odd that the RX_PIN_NUMBER define is missing. This should be defined on line 87 of pca10056.h:

    #define RX_PIN_NUMBER  8
    #define TX_PIN_NUMBER  6
    #define CTS_PIN_NUMBER 7
    #define RTS_PIN_NUMBER 5

    Could you let me know which folder your pca10056.h file is found in? 

    Also, could you send me the un-edited version of this file so I can have a look at it?

    Did you make any other changes to the example, or is it just the standard ble_app_uart example from the SDK?

    Best regards
    Torbjørn

Reply
  • Hi Kleanthis

    Can you confirm that you are using SDK v17.0.2?

    It sounds odd that the RX_PIN_NUMBER define is missing. This should be defined on line 87 of pca10056.h:

    #define RX_PIN_NUMBER  8
    #define TX_PIN_NUMBER  6
    #define CTS_PIN_NUMBER 7
    #define RTS_PIN_NUMBER 5

    Could you let me know which folder your pca10056.h file is found in? 

    Also, could you send me the un-edited version of this file so I can have a look at it?

    Did you make any other changes to the example, or is it just the standard ble_app_uart example from the SDK?

    Best regards
    Torbjørn

Children
Related