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

UART DFU for nRF52833

HW setup is my boart connected to a windows10 PC with an uart link.

I tried secure_bootloader_pca10100_uart_ses_nRF5SDKThreadv4.1.0.zip example, with some modification for my board, es UART pins in custom_board.h

#define RX_PIN_NUMBER 7
#define TX_PIN_NUMBER 6
//#define TX_PIN_NUMBER 35
#define CTS_PIN_NUMBER 8
#define RTS_PIN_NUMBER 40
#define HWFC true

To validate uart pins changes I tested the uart example in examples\peripheral\uart\pca10100\blank\ses and it works fine both without HW flow control and with HW flow control.

When I send 

nrfutil dfu serial -pkg blinky_pca10100_mbr.zip -p COM5 -b 115200

it seems all freezed: RTS signal from PC goes low, but nRF52833 RTS pin remains high. If I force low that signal PC starts transmitting.

A second question

The DFU example uses (in sdk_config.h) Button for entering DFU mode and set NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN to 25: in my board I cannot access to that pin and I want to use PIN0.2.

I set in custom_board.h

#define BUTTON_4       2

and in sdk_config.h

#define NRF_BL_DFU_ENTER_METHOD_PINRESET 1

I add Enter DFU mode on pin reset

Is it correct ?

How can I debug the DFU example ?

Best Regards

Parents
  • I tried with my custom board.

    Today I've used nRF52833 DK with segger jlink and by MCU bridge (the board is powered by USB j2 connector), but now I think I need to reload ATMEL fw because it no longer appear as an external drive on my computer.

    I'm afraid I've entered bootloader mode of the interface MCU, when I checked sw5 button functions.

    Where can I download the fw ?

    In order to test secure_bootloader_pca10100_uart_ses_nRF5SDKThreadv4.1.0.zip on nRF52833 DK how does the board need to be set ?

    I want to avoid conflict on nRF52833 UART pins P0.5/6/7/8.

    CONFIG_GPIO_AS_PINRESET is defined.

    Best Regards

Reply
  • I tried with my custom board.

    Today I've used nRF52833 DK with segger jlink and by MCU bridge (the board is powered by USB j2 connector), but now I think I need to reload ATMEL fw because it no longer appear as an external drive on my computer.

    I'm afraid I've entered bootloader mode of the interface MCU, when I checked sw5 button functions.

    Where can I download the fw ?

    In order to test secure_bootloader_pca10100_uart_ses_nRF5SDKThreadv4.1.0.zip on nRF52833 DK how does the board need to be set ?

    I want to avoid conflict on nRF52833 UART pins P0.5/6/7/8.

    CONFIG_GPIO_AS_PINRESET is defined.

    Best Regards

Children
Related