When I'm trying to flash mesh example project to nrf52840dk_nrf52840 this error occurs
-- runners.nrfjprog: Flashing file: C:\Users\OMAR\zephyrproject\zephyr\samples\bluetooth\mesh_demo\build\zephyr\zephyr.hex ERROR: The --family option given with the command (or the default from nrfjprog.ini) ERROR: does not match the device connected. FATAL ERROR: command exited with status 18: nrfjprog --program 'C:\Users\OMAR\zephyrproject\zephyr\samples\bluetooth\mesh_demo\build\zephyr\zephyr.hex' --sectoranduicrerase -f NRF52 --snr 683377576
knowing that I'm working with nr52832dk without any problem.