mcumgr-android icon indicating copy to clipboard operation
mcumgr-android copied to clipboard

Sample App fails to update nrf52840

Open odemiral opened this issue 3 years ago • 3 comments

Similar issue as #49 cannot update nrf52840 using the sample app, tried to use both ImageManager and FirmwareUpgradeManager

I believe this is an issue with the android implementation since the iOS sample app works flawlessly on the same device. I tried it with both 0.11.0 and 0.12.0-beta4 same problem exists on both versions.

here's the pastebin containing Logcat logs, please let me know any additional info I can provide to help with this issue.

Below is the screenshot of the app when the upload fails. 2021-08-24-19-12-18

odemiral avatar Aug 25 '21 02:08 odemiral

nRF52840 requires around 18 seconds to erase the memory when doing mcuboot swap. Perhaps more, if fw is bigger. Try increasing the timeout.

philips77 avatar Aug 25 '21 05:08 philips77

https://github.com/JuulLabs-OSS/mcumgr-android/blob/c82edba55122f2c26c2ad3b5fc7857b192d5235c/mcumgr-core/src/main/java/io/runtime/mcumgr/dfu/FirmwareUpgradeManager.java#L249

philips77 avatar Aug 25 '21 05:08 philips77

Thank you for your response @philips77 I forgot to mention in my earlier message that I already tried that without success.

Here are the logs I get when I increase the swap time to 200 seconds.

Uploader attempts to do 36 transactions all of which end up failing. After that ImageUploader throws TransactionTimeoutException

odemiral avatar Aug 25 '21 05:08 odemiral