This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

keil erase softdevice hex when doing a clean build

Hi, 

For some reason when i do "project -> clean target" Keil deletes the softdevice Hex file in addition to the project compiled files. 

Is that the normal behavior? 

If so, is there a way to flash the SD from Keil (keep it in the project) but avoid the hex deletion? 

thanks in advance, 

Danny

Parents Reply
  • I do not know what the difference here is.

    No I cannot reproduce it here no matter what I try.

    My compiler details

    Anyways there is workaround for this.(probably not so good)

     You can select Projects->Batch Build ->check only nrf52832->uncheck_flash target->click clean

    I still think this is very very keil specific issue and not Nordic issue. But let me know if I can help you more.

    You might want to match your compiler to mine and check if it still the same

Children
  • Hi Aryan, 

    I don't understand why wouldn't it delete as it is a hex file as part of the project. 

    I use MDK version 5.25 which is newer and i don't think i should downgrade.

    I reached out to Keil support however they think like me that it is not a Keil bug. Their response was: "I'm not sure what do you mean by "soft device". If your hex file is stored in MDK project folder, it will be deleted by choosing "project -> clean targets"" 

    I know i am new to Keil and maybe i don't explain myself so can you please assist me regarding what i should tell Keil support that will convince them that it is a Keil issue and why shouldn't the softdevice HEX file get deleted when i call "clean targets"?

Related