IOS-nRF-Connect icon indicating copy to clipboard operation
IOS-nRF-Connect copied to clipboard

Uploading an image that uses external SPI flash throws “Error: Not Supported”

Open zpm1066 opened this issue 10 months ago • 4 comments

Hello, I’m seeing a potential bug when uploading an image to the external flash of a device.

After the upload, I get the “Error: Not supported” and device disconnects. However, FOTA BLE image upload works fine.

Uploading an image that uses the SoC flash is fine. After the upload, nRF Connect waits for device to swap partitions and reboot with the new image, and messages states “Success!”.

Please review and provide a bug fix.

nRF Connect is a great app. Keep it up! Thank you.

Screen Shot 2024-04-19 at 12 00 18 PM

Screen Shot 2024-04-19 at 12 16 05 PM Screen Shot 2024-04-19 at 12 13 10 PM

zpm1066 avatar Apr 19 '24 15:04 zpm1066

I think this applies to "Erase app storage" command. It doens't matter for the success of upgrading the device. You may also disable erasing storage.

philips77 avatar Apr 19 '24 19:04 philips77

Thank you.

The error is misleading and should say “Success!” if it doesn’t impact the success of the device upgrade process.

More importantly, in the case of an image that is using an external flash , the upload doesn’t display “Awaiting Device Reset…” but simply uploads and drops the BLE connection. This may lead user to think that something is wrong with the upload.

From a user’s perspective, we should present the same behaviour irrespective of what type of flash the uploaded image uses.

zpm1066 avatar Apr 19 '24 19:04 zpm1066

Which upload mode are you using? Are you using Direct XIP as well?

philips77 avatar Apr 19 '24 19:04 philips77

I’m using “DFU” from nRF Connect for mobile iOS and using the defaults.

zpm1066 avatar Apr 19 '24 20:04 zpm1066