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

Need to change Tx & Rx pins on Custom board for Secure Serial bootloader DFU code

Hello,

 

I am using nRF52840, SDK_16.0.0, S140 SoftDevice and Segger 4.16 for flashing the image.

 

1)  For Secure Serial bootloader in below path, I want to change Tx & Rx for my custom board.

\examples\dfu\secure_bootloader\pca10056_uart\

Do I need to change below macros in pca10056.h file

#define RX_PIN_NUMBER 8
#define TX_PIN_NUMBER 6

2) Are there any other changes to be done.

Thanks & Regards

Vishnu Beema

  • Hi Vishnu, 

    1)  For Secure Serial bootloader in below path, I want to change Tx & Rx for my custom board.

    \examples\dfu\secure_bootloader\pca10056_uart\

    Do I need to change below macros in pca10056.h file

    #define RX_PIN_NUMBER 8
    #define TX_PIN_NUMBER 6

    Yes, these are the pins definitions used by the function that initializes the UART transport layer

     

     

    2) Are there any other changes to be done.

     No, if you just want to change the pins then the definitions in pca10056.h is all you need to modify. Note, that hardware flow control is enabled, i.e. NRF_DFU_SERIAL_UART_USES_HWFC = 1, so if you only use the tx and RX pins and not any CTS or RTS pins, then you should disable the HWFC. 

    Best regards

    Bjørn

  • Hi,

    I am planning to disable Flow control by disabling macro NRF_UART_HWFC_ENABLED. But about HWFC, do I need to set it to false. No where I am seeing HWFC macro being used.

    #define HWFC           true

    Thanks & Regards

    Vishnu Beema

  • You just have to set NRF_UART_HWFC_ENABLED to false. No need to define HWFC. 

  • Thank you for your inputs