1) You're just programming code, not a softdevice nor a bootloader
2) The device already has a softdevice on it - ie the code you're programming doesn't start at 0x00000000
If you have a softdevice on the chip already, indeed you don't want to wipe and rewrite the softdevice + code every time and replacing user code is a relatively safe operation, so the program-only option is available which just replaces the code.
If the code you're uploading starts at 0x00 however, it's a safer operation to wipe the chip, remove all the stuff in the UICR, and restore to a clean state.
Last edit: Roland King 2015-05-15
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The requirements for only Program are
1) You're just programming code, not a softdevice nor a bootloader
2) The device already has a softdevice on it - ie the code you're programming doesn't start at 0x00000000
If you have a softdevice on the chip already, indeed you don't want to wipe and rewrite the softdevice + code every time and replacing user code is a relatively safe operation, so the program-only option is available which just replaces the code.
If the code you're uploading starts at 0x00 however, it's a safer operation to wipe the chip, remove all the stuff in the UICR, and restore to a clean state.
Last edit: Roland King 2015-05-15
Now that you have answered this, you should probably close it. It would be nice if this were documented somewhere, but it is closed.
Please Close This Issue