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

Bootloader/ DFU options over serial (UART, USB)

Hi,

I have following questions with reference to two different bootloader scenarios with my custom nRF52833 board: 

1) UART based: do I absolutely need RTS, CTS for this or just TX, RX will do?

2) Can the native USB port (i.e in nRF52833-DK context - using J3 and Not Interface MCU USB Connector J2)
     be used as bootloader interface?
     As I understand, when we use nrfutil dfu usb-serial command, we still need to pick COM port
   (created by CDC ACM).

Please advise. Thanks.

Parents
  • Hi Ash, 

    1) The UART bootloader wasn't really designed for handling non-HWFC. It's because of the bottle neck when it needs to write to flash. Without HWFC the DFU master may overload the bootloader when it's not finished with flash writing. It might work if you change the baudrate to a very low rate, for example 9600bps. But you would need to perform tests and verify that it work. 

    2) Yes native USB should work. We have the USB bootloader designed for the nRF52840 dongle that use only the native USB peripheral on the NRF52840. Note that even though we use native USB, the USB emulate a virtual COM port on PC. It's not directly USB protocol that we used. So on top, it's the UART bootloader that use the virtual UART on the USB interface. 

Reply
  • Hi Ash, 

    1) The UART bootloader wasn't really designed for handling non-HWFC. It's because of the bottle neck when it needs to write to flash. Without HWFC the DFU master may overload the bootloader when it's not finished with flash writing. It might work if you change the baudrate to a very low rate, for example 9600bps. But you would need to perform tests and verify that it work. 

    2) Yes native USB should work. We have the USB bootloader designed for the nRF52840 dongle that use only the native USB peripheral on the NRF52840. Note that even though we use native USB, the USB emulate a virtual COM port on PC. It's not directly USB protocol that we used. So on top, it's the UART bootloader that use the virtual UART on the USB interface. 

Children
Related