Polidea / cmake-nRF5x

cmake script for nRF5 series SoC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

borys-jelenski-polidea opened this issue · 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.