Building for a bare nRF52840

Hi there,

We have integrated the nRF52840 into our PCB. Currently we're building our firmware with '-b nrf52840dk_nrf52840', but we were wondering if it's possible to build for a bare IC. One of the reasons for this is that some options are enabled by default (like CONFIG_BOARD_ENABLE_DCDC), which are not on our PCB.

Best regards,

Stefan Nienhuis

  • Hi Stefan,

    Yes, this is possible. Here is how to do this withing VS Code:

    Go to the Welcome screen and select "Create a new board". Then fill in the blanks and select the SoC. Select the board root folder to be the same as your project folder. The board will then be created inside a boards folder in that directory.

    After you click "Create board" the necessary files will be generated, with some structures included. You can then copy what you need from zephyr\boards\arm\nrf52840dk_nrf52840\ into your own files.

    Attached is a board named 'bareboard', generated using VS Code.

    3817.boards.zip

    Best regards,

    Håkon

Related