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

  • is it deleting the softdevice hex file from the SDK\components\softdevice\S1xx\hex folder?

    I tried it and it is not doing that for me. Did you add more user commands to the keil project?

  • Hi Aryan, 

    It does delete it from there. 

    This is the original project without any changes...

    When i do "clean targets" i get the following output 

    after that the hex is deleted  and i need to restore it manually.. 

    Can you please try to do it with the "BLE Secure DFU Bootloader"  example and see if it happens?

    thanks Slight smile

  • Default example from SDK seems like working OK. Not deleting any hex files.

    checked in project \nRF5_SDK_15.0.0_a53641a\examples\dfu\secure_bootloader\pca10040_ble\arm5_no_packs

  • Aryan,

    This is very weird.. i ask my colleagues to try and it deletes the hex file for them as well. 

    We have just started working with Keil with the Nordic SDK so i want to solve this before getting to the big stuff...

    Just to verify that it's a bug, i recorded what happen to me. please let me know if we do the same actions:

  • 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

Related