Is there a means with newtmgr today to delete an image in bank 1, for example if you uploaded an image there incorrectly?

Assuming the following situation:

Images:
 slot=0
  version: 0.3.0
  bootable: true
  flags: active
  hash: 7494da56ead5fe83a0e26ad72fdf1bc8a4d1d6b01b1712e4e1bf4437218f4d8b
 slot=1
  version: 0.2.0
  bootable: true
  flags: confirmed
  hash: bd2fb0d9b2c771b284b19d7c143754a8e26cfae837f1e50bb2467ee8dd57e9da

If you try to upload an image to bank 1 again you will get this error:

newtmgr -c serial image upload /Users/antonio/Development/Adafruit/NewtManager/imgfiles/bleuart_0_3_0.img
Error: Target error: 2

newtmgr -c serial image upload /Users/antonio/Development/Adafruit/NewtManager/imgfiles/throughput_0_2_0.img
Error: Target error: 2

Would it make sense to have an option to clear the second bank as an option via a specific newtmgr command, or perhaps there are some specific reasons to prevent the second image from being changed or overwritten that I'm not aware of?

Reply via email to