Ticket #653 (closed defect: fixed)
[PATCH] dfu-util - Some devices boot up in a DFU state instead of app state
| Reported by: | nick@… | Owned by: | werner@… |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | OE bitbake recipes / build system | Version: | current svn head |
| Severity: | normal | Keywords: | VERIFIED |
| Cc: | buglog@… | Blocked By: | |
| Blocking: | Estimated Completion (week): | ||
| HasPatchForReview: | PatchReviewResult: | ||
| Reproducible: |
Description
The TAS1020B chip starts up in the DFU state idleDFU which can easily be
handled by applying the patch below
Index: src/main.c
===================================================================
--- src/main.c (revision 2384)
+++ src/main.c (working copy)
@@ -507,9 +507,7 @@
}
break;
default:
- fprintf(stderr, "IMPOSSIBLE: Runtime device already in
DFU state ?!?\n");
- exit(1);
- break;
+ goto dfustate;
}
/* now we need to re-scan the bus and locate our device */
Change History
Note: See
TracTickets for help on using
tickets.

Eh, the complete patch being:
Index: src/main.c
===================================================================
--- src/main.c (revision 2384)
+++ src/main.c (working copy)
@@ -507,9 +507,7 @@
DFU state ?!?\n");
+ goto dfustate;
@@ -540,6 +538,7 @@
+dfustate: