mcumgr-android
mcumgr-android copied to clipboard
Sample App fails to update nrf52840
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.
nRF52840 requires around 18 seconds to erase the memory when doing mcuboot swap. Perhaps more, if fw is bigger. Try increasing the timeout.
https://github.com/JuulLabs-OSS/mcumgr-android/blob/c82edba55122f2c26c2ad3b5fc7857b192d5235c/mcumgr-core/src/main/java/io/runtime/mcumgr/dfu/FirmwareUpgradeManager.java#L249
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