[PATCH 2/4] dfu: fill bwPollTimeout and better handle detach

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Wed Jan 4 04:05:17 EST 2012


On 17:59 Tue 03 Jan     , Eric Bénard wrote:
> - bwPollTimeout is set to 10 ms, from the DFU spec, this
> is the minimum time, in milliseconds, that the host should
> wait before sending a subsequent DFU_GETSTATUS request.
> Without this, I get 25 seconds value and dfu-util waits twice 25s
> during download
> - when in IDEL and receiving DETACH, first return 0 to make
> dfu-util happy, then use a dfudetach variable to exit dfu
> (without an USB reset as per the comment on line 425) and
> return to runtime mode.
> - tested on i.MX25 & i.MX35
> 
Tested on usb-a926x

Best Regards,
J.



More information about the barebox mailing list