nodesign / weio

weio
http://we-io.net
128 stars 35 forks source link

Added a delay between the bootloader hardware condition and device scan. #272

Closed ks156 closed 8 years ago

ks156 commented 8 years ago

New batch uses LPC11U24, and for some unknown reasons, the time needed for the USB enumeration is a bit bigger (few hundred millis), and then the update script fails to detect the LPC bootloader.

drasko commented 8 years ago

So... we do not know why this is needed. We just know that it is needed and that it fix the issue, right?

ks156 commented 8 years ago

This is needed because the LPC11U24 takes a bit more time to be detected by the kernel. This delay complements this one : https://github.com/nodesign/weio/blob/master/scripts/flash_lpc_fw.py#L104

There's not documentation or specs about the time needed by the bootloader to starts. This is empirical.