-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invalid state error #17
Comments
Check out this issue: NordicSemiconductor/IOS-DFU-Library#8 |
Thanks @philips77 . to double check, the fix might be apply a 1.5 s delay before calling my equvalient of https://github.com/NordicSemiconductor/IOS-nRF-Toolbox/blob/master/nRF%20Toolbox/DFU/DFUViewController/DFUViewController.m#L132 ? i'll give that a shot. but what is pretty interesting is i did not have this issue occur with the current version in the app store. is there a delta between the two? |
The complete source is available here. The current version from master will be available as 3.0.1 soon, but you'll find a commit with version 3.0. But I see no reason why would such a difference in behavior exists. |
Hi @philips77 I'm not 100%, since my failures are intermittent, but I'm trying things with the 1.5 second delay and I 'think' it seems better (as per your suggestion) . Do you have any thoughts as why that would make a difference? |
It may be related to the flash operations timings. It depends when do you get this error, just after sending Start DFU command and sizes? Or later. You may ask this question on the DevZone, at nordicsemi.com. Our support team will be much more qualified to speak about the bootloader. |
@foobar8675 Sorry to refresh the old issue, did you get this working ? we have just released v4.0.4 and would like you to try it and see if your issue still reproduces, I'll give it a couple of days before closing this issue since it's been "resolved" for a few months now 👍 , just feel free to reopen if you still encounter issues later |
Sometimes also meet this issue... |
Fyi. If the previous DFU operation failed during uploading and you try to repeat it, the device will be in a state that allows resuming only. Sending Start DFU command will respond with Invalid State. The next retry will succeed. |
@liuyan3176 Your issue is different it seems, first of all the library is only responsible for flashing, anything happening after that is up to you as a developer. regarding the invalid state is that if you disconnect you will have to restart the whole process since we don't support resuming in the Legacy DFU mode. |
@mostafaberg we have a delayed timer which seems to fix things but can you share what is different in 4.0.4 that would make this behave better? |
Version 4.0.4(12). IOS 10 The above all this problem. |
@foobar8675 Can you take a look at today's release and see if there's anything different than what you're doing ? |
Hi, I'm not working on this project anymore, but am cc'ing a couple people On Tue, Oct 4, 2016 at 9:48 AM, Mostafa Torbjørn Berg <
Regards, |
that's great, keep us posted, if we don't hear back in a couple of days we'll assume issue is resolved, you can ask the new person responsible to re-open a new issue if the bug is still there |
Issue resolved ? :) |
…tonless-dfu-for-homekit-broken to develop * commit 'e1760c6dc836b2b7abc995e1d8122461f41222e1': +Used service/charactersitic *Type properties respectively, fixes bug causing app to fail to read nonexistent characteristics +Minor imporevment to alert views to also show error messages +Added warning and disallowr addition of accessories when HomeKit can't work due to iCloud Keychain Sync being turned off on device
when doing a DFU update with a single zip that contains an application, softdevice, and bootloader, I am sometimes getting an Invalid State Error, even if the device is on the charger.
this is running the latest code out of master. i'm not able to consistently reproduce. any help with understanding when this error appears would be helpful. thanks.
The text was updated successfully, but these errors were encountered: