I am trying to get mcuboot working on a custom board. on version 2.7.0 sdk, But the board is not found.
I have simplified it to a minimal version like so (my folder can be found as attachment with_mcboot.zip):
using the example from zephyr/samples/sysbuild/with_mcuboot
I put my board folder in the folder of with_mcuboot.
When i build with_mcuboot using the vscode extention and choosing the nrf52840dk/nrf52840 the build compiles normally.
But when i choose the custom board here the nextgen_nrf52840 which the extention correctly identifies as an option.
But when i build it fails with this message:
* Executing task: nRF Connect: Generate config nextgen_nrf52840 for with_mcuboot
Building with_mcuboot
west build --build-dir /home/wouter/minimal_recreation/with_mcuboot/build_1 /home/wouter/minimal_recreation/with_mcuboot --pristine --board nextgen_nrf52840 --sysbuild -- -DNCS_TOOLCHAIN_VERSION=NONE
-- west build: generating a build system
Loading Zephyr module(s) (Zephyr base): sysbuild_default
-- Found Python3: /home/wouter/ncs/toolchains/e9dba88316/usr/local/bin/python3.9 (found suitable version "3.9.18", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: /home/wouter/.cache/zephyr
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
No board named 'nextgen_nrf52840' found.
Please choose one of the following boards:
nrf52833dongle
thingy91
nrf7002dk
nrf52820dongle
thingy91x
nrf52kbd
nrf52840gmouse
nrf52dmouse
nrf52810dmouse
pinetime_devkit0
contextualelectronics_abc
efm32pg_stk3401a
efm32pg_stk3402a
efm32gg_stk3701a
efm32wg_stk3800
efr32_radio
efr32xg24_dk2601b
efm32gg_sltb009a
efr32mg_sltb004a
efm32hg_slstk3400a
efr32bg22_brd4184a
efr32bg22_brd4184b
efr32bg27_brd2602a
efm32gg_slwstk6121a
colibri_imx7d
verdin_imx8mp
rak5010
rak4631
ubx_evkninab1
ubx_evkannab1
ubx_bmd360eval
ubx_bmd345eval
ubx_evkninab4
ubx_bmd340eval
ubx_bmd300eval
ubx_bmd330eval
ubx_bmd380eval
ubx_evkninab3
qemu_malta
qemu_cortex_m3
qemu_cortex_a53
qemu_riscv32e
qemu_arc
qemu_cortex_a9
qemu_x86
qemu_x86_lakemont
qemu_x86_64
qemu_x86_tiny
qemu_cortex_r5
qemu_nios2
qemu_riscv32_xip
qemu_leon3
qemu_xtensa
qemu_riscv32
qemu_cortex_m0
qemu_riscv64
qemu_kvm_arm64
acn52832
visionfive2
nrf51dk
thingy52
nrf51dongle
nrf9160dk
nrf9151dk
nrf52840dongle
nrf5340dk
nrf52dk
nrf5340_audio_dk
nrf52840dk
nrf9161dk
nrf52833dk
nrf9131ek
nrf54h20dk
nrf54l15pdk
thingy53
nrf21540dk
stm32f030_demo
black_f407zg_pro
stm32_min_dev
neorv32
stm32f401_mini
serpente
icev_wireless
black_f407ve
nrf51_vbluno51
nrf52_vbluno52
teensy40
teensy41
v2m_beetle
fvp_baser_aemv8r
mps3
mps2
fvp_base_revc_2xaemv8a
v2m_musca_s1
v2m_musca_b1
w5500_evb_pico
nrf51_ble400
esp32s3_touch_lcd_1_28
waveshare_open103z
az3166_iotdevkit
degu_evk
esp32s2_lolin_mini
esp32_devkitc_wrover
esp32s3_devkitc
esp32s3_devkitm
esp32c3_devkitm
esp32s2_devkitc
esp32s2_saola
esp32_ethernet_kit
esp32_devkitc_wroom
esp_wrover_kit
nsim
hsdk4xd
hsdk
em_starterkit
iotdk
emsdp
nucleo_h745zi_q
b_g474e_dpow1
nucleo_c031c6
nucleo_wba55cg
nucleo_l496zg
nucleo_l552ze_q
nucleo_f746zg
stm32l4r9i_disco
stm32f723e_disco
stm32f746g_disco
stm32l562e_dk
nucleo_g431rb
st25dv_mb1283_disco
disco_l475_iot1
nucleo_l432kc
nucleo_f756zg
nucleo_l4a6zg
nucleo_wl55jc
b_u585i_iot02a
stm32h735g_disco
nucleo_f031k6
nucleo_g070rb
stm32h747i_disco
nucleo_f411re
stm32f429i_disc1
nucleo_f413zh
stm32f3_disco
stm32f412g_disco
nucleo_l053r8
nucleo_f091rc
stm32g081b_eval
stm32g071b_disco
nucleo_h7a3zi_q
b_l4s5i_iot01a
nucleo_l152re
steval_stwinbx1
b_l072z_lrwan1
nucleo_wba52cg
nucleo_f303k8
nucleo_f103rb
stm32f469i_disco
steval_fcu001v1
stm32vl_disco
stm32u5a9j_dk
stm32f103_mini
nucleo_f042k6
nucleo_l433rc_p
nucleo_f446ze
nucleo_f401re
nucleo_g0b1re
nucleo_f446re
nucleo_h743zi
nucleo_l073rz
nucleo_f410rb
stm32f072_eval
stm32g0316_disco
nucleo_h563zi
stm32h750b_dk
nucleo_f767zi
nucleo_l452re
stm32c0116_dk
nucleo_l412rb_p
stm32l1_disco
stm32l152c_disco
nucleo_l476rg
nucleo_u575zi_q
stm32wb5mm_dk
nucleo_f302r8
stm32l496g_disco
stm32373c_eval
nucleo_f070rb
stm32f072b_disco
nucleo_g071rb
stm32f411e_disco
sensortile_box_pro
nucleo_f030r8
nucleo_g474re
stm32f7508_dk
nucleo_l031k6
stm32h573i_dk
nucleo_f722ze
nucleo_wb55rg
stm32f4_disco
nucleo_f303re
nucleo_f207zg
stm32wb5mmg
stm3210c_eval
nucleo_u5a5zj_q
nucleo_g031k8
nucleo_f412zg
nucleo_f429zi
nucleo_h753zi
stm32f0_disco
nucleo_f334r8
stm32l476g_disco
nucleo_h723zg
stm32f769i_disco
stm32mp157c_dk2
stm32h7b3i_dk
nucleo_l4r5zi
stm32h745i_disco
nucleo_l011k4
sensortile_box
cyclonev_socdk
intel_rpl_p_crb
intel_rpl_s_crb
intel_adl_crb
intel_adl_rvp
intel_socfpga_agilex5_socdk
intel_socfpga_agilex_socdk
niosv_g
intel_adsp
intel_ehl_crb
niosv_m
intel_ish_5_4_1
intel_ish_5_6_0
intel_ish_5_8_0
zybo
arty_a7
xenvm
khadas_edgev
esp32s2_franzininho
up_squared_pro_7000
up_squared
particle_boron
particle_xenon
nrf52_blenano2
particle_argon
nrf51_blenano
riscv32_virtual
roc_rk3568_pc
ronoth_lodev
96b_aerocore2
96b_argonkey
96b_avenger96
96b_carbon
96b_wistrio
96b_stm32_sensor_mez
96b_neonkey
96b_nitrogen
96b_meerkat96
robokit1
tlsr9518adk80d
native_posix
native_sim
nrf52_bsim
nrf5340bsim
nrf54l15bsim
sk_am62
cc1352r_sensortag
cc26x2r1_launchxl
cc1352r1_launchxl
cc1352p1_launchxl
cc3220sf_launchxl
cc3235sf_launchxl
msp_exp432p401r_launchxl
croxel_cx1825
segger_trb_stm32f407
ip_k66f
esp32c3_luatos_core
esp32s3_luatos_core
scobc_module1
litex_vexriscv
yd_esp32
m2gl025_miv
mec15xxevb_assy6853
mec172xevb_assy6906
mpfs_icicle
mec1501modular_assy6885
ev11l78a
mec172xmodular_assy6930
actinius_icarus
actinius_icarus_bee
actinius_icarus_som_dk
actinius_icarus_som
dragino_lsn50
dragino_nbsn95
kv260_r5
acrn
acrn_ehl_crb
google_dragonclaw
google_kukui
google_twinkie_v2
hifive_unleashed
hifive1
hifive_unmatched
bl653_dvk
bt610
bl654_usb
bl5340_dvk
pinnacle_100_dvk
bl652_dvk
bt510
bl654_dvk
rm1xx_dvk
mg100
bl654_sensor_board
pan1780_evb
pan1770_evb
pan1782_evb
pan1783_evb
pan1783a_evb
pan1783a_pa_evb
pan1781_evb
phyboard_lyra
phyboard_electra
mimx8mm_phyboard_polis
mimx8mp_phyboard_pollux
reel_board
circuitdojo_feather
udoo_neo_full
adafruit_feather_m0_basic_proto
adafruit_itsybitsy_m4_express
adafruit_feather_m0_lora
nrf52_adafruit_feather
adafruit_trinket_m0
adafruit_qt_py_rp2040
adafruit_itsybitsy
adafruit_feather_stm32f405
adafruit_grand_central_m4_express
adafruit_kb2040
adafruit_feather
fk7b0m1_vbt6
stm32f3_seco_d23
kb1200_evb
bcm958401m2
bcm958402m2
da1469x_dk_pro
rcar_salvator_x
rcar_h3ulcb
rcar_salvator_xs
da14695_dk_usb
rzt2m_starter_kit
rcar_spider_s4
ast1030_evb
m5stickc_plus
m5stack_atoms3
m5stack_atom_lite
m5stack_atoms3_lite
stamp_c3
m5stack_stamps3
m5stack_core2
imx8mm_evk
mimxrt1170_evk
lpcxpresso55s16
frdm_kl25z
imx8ulp_evk
lpcxpresso54114
imx8mq_evk
mimxrt1160_evk
frdm_ke15z
mimxrt1064_evk
mimxrt1020_evk
mimxrt685_evk
frdm_kw41z
imx8qm_mek
imx93_evk
imx8mn_evk
twr_ke18f
mimxrt1062_fmurt6
lpcxpresso55s06
rddrone_fmuk66
twr_kv58f220m
lpcxpresso55s28
frdm_mcxn947
frdm_k64f
mimxrt1040_evk
lpcxpresso55s69
frdm_k22f
frdm_k82f
hexiwear
mimxrt1024_evk
imx8mp_evk
rd_rw612_bga
ucans32k1sic
lpcxpresso51u68
ls1046ardb
mimxrt1010_evk
s32z2xxdc2
lpcxpresso55s36
mimxrt595_evk
frdm_rw612
usb_kw24d512
mimxrt1050_evk
mimxrt1015_evk
lpcxpresso11u68
mr_canhubk3
mimxrt1060_evk
mimxrt1060_evkb
imx8qxp_mek
vmu_rt1170
adp_xc7k
kincony_kc868_a32
rv32m1_vega
cy8ckit_062_wifi_bt
cy8ckit_062_ble
mm_swiftio
mm_feather
holyiot_yj16019
bbc_microbit_v2
bbc_microbit
pandora_stm32l475
faze
legend
numaker_m2l31ki
numaker_pfm_m487
npcx4m8f_evb
npcx9m6f_evb
npcx7m6fb_evb
numaker_pfm_m467
it8xxx2_evb
it82xx2_evb
beagleconnect_freedom
beaglev_fire
olimex_stm32_h405
olimex_esp32_evb
olimex_stm32_h407
olimexino_stm32
olimex_stm32_h103
olimex_lora_stm32wl_devkit
olimex_stm32_e407
olimex_stm32_p405
opentitan_earlgrey
mikroe_clicker_2
mikroe_mini_m4_for_stm32
decawave_dwm1001_dev
arduino_nano_33_iot
arduino_mkrzero
arduino_opta
arduino_portenta_h7
arduino_uno_r4_minima
arduino_uno_r4_wifi
arduino_nicla_sense_me
arduino_due
arduino_zero
arduino_nano_33_ble
arduino_giga_r1
odroid_go
lora_e5_dev_board
wio_terminal
seeeduino_xiao
xiao_esp32s3
lora_e5_mini
xiao_ble
xiao_esp32c3
titanium_ti60_f225
quick_feather
qomu
longan_nano
altera_max10
innblue21
innblue22
apollo4p_evb
apollo4p_blue_kxr_evb
apollo3p_evb
apollo3_evb
blueclover_plt_demo_v2
rpi_pico
rpi_5
rpi_4b
cy8cproto_062_4343w
xmc45_relax_kit
cy8cproto_063_ble
xmc47_relax_kit
cy8ckit_062s4
gr716a_mini
generic_leon3
swan_r5
gd32f403z_eval
gd32e103v_eval
gd32vf103v_eval
gd32vf103c_starter
gd32f470i_eval
gd32a503v_eval
gd32f450v_start
gd32l233r_eval
gd32f407v_start
gd32e507v_start
gd32f350r_eval
gd32f450z_eval
gd32f450i_eval
gd32e507z_eval
pico_pi
adi_eval_adin1110ebz
adi_sdp_k1
adi_eval_adin2111ebz
raytac_mdbt53_db_40
raytac_mdbt50q_db_33
raytac_mdbt53v_db_40
raytac_mdbt50q_db_40
ebyte_e73_tbb
mercury_xu
we_proteus2ev
we_proteus3ev
we_ophelia1ev
warp7
heltec_wifi_lora32_v2
heltec_wireless_stick_lite_v3
sam_e70_xplained
sam4s_xplained
sam4e_xpro
sam_v71_xult
sam4l_ek
same54_xpro
samd21_xpro
samr21_xpro
saml21_xpro
samc21n_xpro
samd20_xpro
samr34_xpro
xt-sim
blackpill_f401ce
weact_stm32g431_core
blackpill_f411ce
mini_stm32h743
blackpill_f401cc
ruuvi_ruuvitag
nrf52840_blip
nrf52840_papyr
sparkfun_red_v_things_plus
sparkfun_pro_micro_rp2040
sparkfun_thing_plus
nrf52_sparkfun
nrf52840_mdk
nrf52840_mdk_usb_dongle
nrf52832_mdk
CMake Error at /home/wouter/minimal_recreation/external/zephyr/cmake/modules/boards.cmake:244 (message):
Invalid BOARD; see above.
Call Stack (most recent call first):
cmake/modules/sysbuild_default.cmake:14 (include)
/home/wouter/minimal_recreation/external/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:75 (include)
/home/wouter/minimal_recreation/external/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
/home/wouter/minimal_recreation/external/zephyr/share/sysbuild-package/cmake/SysbuildConfig.cmake:8 (include)
template/CMakeLists.txt:10 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/wouter/minimal_recreation/with_mcuboot/build_1/CMakeFiles/CMakeOutput.log".
FATAL ERROR: command exited with status 1: /home/wouter/ncs/toolchains/e9dba88316/usr/local/bin/cmake -DWEST_PYTHON=/home/wouter/ncs/toolchains/e9dba88316/usr/local/bin/python3.9 -B/home/wouter/minimal_recreation/with_mcuboot/build_1 -GNinja -DBOARD=nextgen_nrf52840 -DNCS_TOOLCHAIN_VERSION=NONE -S/home/wouter/minimal_recreation/external/zephyr/share/sysbuild -DAPP_DIR:PATH=/home/wouter/minimal_recreation/with_mcuboot
* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it. File: with_mcuboot.zip