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

Why does keil erase softdevice hex and the app hex when doing a clean build?

I am trying to figure out how/if I can program the softdevice hex from keil? I know I can just use nRF studio however its annoying sometimes....I also noticed I cannot rebuild the softdevice hex and when you do a clean all it literally erases all hex from project including the softdevice, how can I prevent this and/or why is this happening?

Parents
  • The SoftDevice hex should be located SDK_Folder\components\softdevice\S13x\hex\. The SoftDevice is a precompiled and linked binary, you should never have to “build” or “rebuild” the SoftDevice. If you tried building the application in Keil using the target flash_s132_nrf52_3.0.0_softdevice, the hex file in the SDK might have been removed. You then have to download and copy the hex file into the directory specified above. Use the regular "nrf52832_xxaa" as target in Keil, and the SoftDevice hex should not be deleted/removed.

Reply
  • The SoftDevice hex should be located SDK_Folder\components\softdevice\S13x\hex\. The SoftDevice is a precompiled and linked binary, you should never have to “build” or “rebuild” the SoftDevice. If you tried building the application in Keil using the target flash_s132_nrf52_3.0.0_softdevice, the hex file in the SDK might have been removed. You then have to download and copy the hex file into the directory specified above. Use the regular "nrf52832_xxaa" as target in Keil, and the SoftDevice hex should not be deleted/removed.

Children
No Data
Related