How to Program Custom nRF52840 Board via USB & Make It Arduino Compatible

Hi,

I have designed a custom board using the nRF52840 and have successfully programmed it using SWD (SWDIO & SWDCLK) with a J-Link programmer. However, I now want to program the board through USB.

  1. What steps are needed to enable USB programming for my custom nRF52840 board?

  2. Do I need to flash a specific bootloader for USB support? If so, which one and how?

  3. I also want to make my board Arduino-compatible, so I can program it using the Arduino IDE. How can I achieve this?

I have attached my PCB design (PDF) for reference. Any guidance on bootloaders, firmware, and necessary modifications would be greatly appreciated! updated NRF52840 Module.pdf

Parents
  • Hi,

    What steps are needed to enable USB programming for my custom nRF52840 board?

    You would need any bootloader for this.

    Do I need to flash a specific bootloader for USB support? If so, which one and how?

    As long as the bootloader supports USB, you are good.

    The default used in the nRF Connect SDK is MCUboot. See This course to learn how that works, and one of the lessons teaches you how to set up MCUboot USB.

    I also want to make my board Arduino-compatible, so I can program it using the Arduino IDE. How can I achieve this?

    Perhaps Ardiono IDE supports MCUboot? I dont know.

    Nordic Semiconductor does not have official Arduino support, so you will have to go look at Arduinos docs to see what they can provide.

    For example: you can run Arduino code on nRF52 boards I know. For example, the Arduino BLE Nano is built on a nRF52 chips.
    I also see that Adafruit has some stuff over at https://github.com/adafruit/Adafruit_nRF52_Arduino.

    Regards,
    Sigurd Hellesvik

Reply
  • Hi,

    What steps are needed to enable USB programming for my custom nRF52840 board?

    You would need any bootloader for this.

    Do I need to flash a specific bootloader for USB support? If so, which one and how?

    As long as the bootloader supports USB, you are good.

    The default used in the nRF Connect SDK is MCUboot. See This course to learn how that works, and one of the lessons teaches you how to set up MCUboot USB.

    I also want to make my board Arduino-compatible, so I can program it using the Arduino IDE. How can I achieve this?

    Perhaps Ardiono IDE supports MCUboot? I dont know.

    Nordic Semiconductor does not have official Arduino support, so you will have to go look at Arduinos docs to see what they can provide.

    For example: you can run Arduino code on nRF52 boards I know. For example, the Arduino BLE Nano is built on a nRF52 chips.
    I also see that Adafruit has some stuff over at https://github.com/adafruit/Adafruit_nRF52_Arduino.

    Regards,
    Sigurd Hellesvik

Children
No Data
Related