Polidea/cmake-nRF5x

Correctly handle the 'flash_softdevice' custom target in 'blank' and 'mbr' configurations

borys-jelenski-polidea opened this issue · 0 comments

If blank or mbr will be specified as NRF5_SD_VARIANT, running the flash_softdevice target after a successful configuration will result in the nrfjprog reporting an error. This is due to the local_sd_hex_file_path CMake variable which in case of blank and MBR variants will remain uninitialized (empty). This will result in composing of an incorrect command line for the nrfjprog.