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

How can I change rx tx pins of BT840F?

I m using sdk16.0.0  nrf52-ble-app-uart-c-multilink example. I want to comminication arduino btw BT840F.  I try with nrf52840 there is no problem but when i use bt840f i didn't read data. 

// <o> HCI_UART_RX_PIN - UART RX pin
#ifndef HCI_UART_RX_PIN
#define HCI_UART_RX_PIN 3 //8
#endif

// <o> HCI_UART_TX_PIN - UART TX pin
#ifndef HCI_UART_TX_PIN
#define HCI_UART_TX_PIN 10 //6
#endif

 I changed pins but i am not sure the numbers. I am tring to use p03 and p10 pins of BT840F. Can you tell me what is my mistake ?

Parents
  • Hello,

     

    but when i use bt840f i didn't read data.

     What does this mean? You didn't receive the data over UART, or do you not receive the data over BLE? During what step is it lost? I am not familiar with the BT840F. Are those pins used for something else? Are you using the nRF5 SDK on the BT840F? If so, have you considered that the pins P0.09 and P0.10 are the NFC pins? Perhaps you forgot the CONFIG_NFCT_PINS_AS_GPIOS preprocessor definition. Let me know what IDE you are using if you are not sure how to add preprocessor definitions.

    On the nRF52840 DK you need to modify the board a bit to get the pinout to connect to pin P0.09 and P0.10. Perhaps there is something similar on the BT840F? Check the datasheet that the pins are routed out as you expect (make sure that pin 10 is actually connected to what you believe is pin10 on the board).

    Best regards,

    Edvin

  • Hi Edvin. I can get data from BLE . I didn't receive the data UART . Yes you right. They are NFC pins i changed them as p0.01 and p0.03. I am using SES and yes nRF5 SDK on the BT840F. When i connected Arduino and nrf52840DK(P0.06 and p0.08 )  there is no problem. But when I tried use bt840f pins(4. and 6. pins ) to UART  com. with Arduino , it didn't work. I also check clock configs for internal crystal of bt840f. I dont know what is the problem. 

  • P0.01 (and P0.00) is usually the LFXTAL (if present), so try to stay away from that one as well. 

    If you still do not see it, try analyzing the pins with a logic analyzer. Do you see any UART data in the logic trace?

    Is the data you are missing coming to the nRF52840, or are you trying to send it? Do you have HWFC enabled?

    BR,
    Edvin

Reply Children
Related