Hi Nordic team,
In the context of adapting the software for our custom PCB I need to make some changes in some devicetree nodes for the net core. Therefore I wanted to add a specific overlay targeted to the net core.
As I've seen many examples adding an overlay for the same purpose but targeted for the app core, I thought it would be the same approach in my case but I couldn't find a proper way how to do it.
For the app core it's obvious how to do it by modifying the build configuration but no examples for the net core.
One dirty solution is maybe adding the cpunet overlay to the SDK folder but like it says, it's not proper and this is something I would like to avoid (unless there is no other solution).
I created a new overlay file nrf5340dk_nrf5340_cpunet.overlay in boards folder under my application root directory and appended it's path to the EXTRA_DTC_OVERLAY_FILE [1] variable before I run the west build command but this doesn't seem to take effect and looks like the EXTRA_DTC_OVERLAY_FILE accepts only the first path and has to be dedicated to the app core.
- What am I doing wrong and what's missing ?
- How to tell the build system a such overlay(s) are dedicated to such core.
- What is the cleanest way to add a net core overlay ?
- Any existing documentation regarding this issue ?
[1]: -DEXTRA_DTC_OVERLAY_FILE=boards/nrf5340dk_nrf5340_cpuapp.overlay;boards/nrf5340dk_nrf5340_cpunet.overlay
Environment:
Soc: Nrf5340
Board: Custom PCB
SDK:nRF Connect SDK v3.2.2
Toolchain: nRF Connect SDK Toolchain v3.2.2
Best regards,
Faouzi.
