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

  • 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"?

  • Found a workaround so i thought i should share.

    I changed the HEX file to "read only" in the file properties and it isn't being deleted anymore. 

    Thanks anyway Slight smile

    Danny

Related