Hi
I was developing an application on an nRF52840 DK, using nRF Connect SDK v2.4.1.
I now want to modify this project to run on a custom nRF52840 board.
To learn how to do this, I started with a new Nordic sample: peripheral uart, and I built this (successfully) for the nRF52840 DK.
Now, to create a build for a custom nRF52840 board, instead of the nRF52840 DK, I performed the following steps (adapting the steps described here).
Step 1
I created an 'arm' folder the local board directory under the working project
Step 2
I copied the nRF52840 DK board folder from:
to:
and renamed the folder:
Step 3
I renamed filenames in this new folder, from:
to:
Step 4
I renamed all the BOARD_NRF52840DK_NRF52840 to BOARD_CUSTOMER1_NRF52840
in files:
And in Kconfig.defconfig, renamed Boolean:
And in Kconfig.board, renamed Boolean:
Step 5
In customer1_nrf52840.dts, I modified the dtsi include from:
To:
And the model/compatible, from:
To:
Step 6
In customer1_nrf52840_defconfig, I modified the board config include from:
To:
Step 7
In customer1_nrf52840.yaml, modified the identifier and name, from:
to:
Step 8
I added the following line in CMakeLists.txt, to add the local board information:
Step 9
I closed VSCode and re-opened it, then defined a new custom build configuration:
Result:
The application builds, using the customer dts and dtsi files.
Question:
Is this the correct way to modify an application to use a custom device?
Did I miss anything?
Regards
Garrett