whitequark/libfx2

Example "boot-cypress" doesn't start after FW upload to FX2

Ho-Ro opened this issue · 3 comments

Ho-Ro commented

The hex file is uploaded and the 8051 comes out of reset, but the FX2 doesn't re-enumerate.

Fix: change usb_init(/*disconnect=*/false); to usb_init(/*disconnect=*/true); in this line:

usb_init(/*disconnect=*/false);

That's actually not an example, it's a firmware that's used internally by fx2tool. With your fix, fx2tool -B will stop working.

Ho-Ro commented

Ok, understood - close.
A comment could be helpful - I started from this point without success while the other parts started up as (I) expected, e.g. boot-uf2:

// Re-enumerate, to make sure our descriptors are picked up correctly.
usb_init(/*disconnect=*/true);

Clarified in d98e54a.