trigger code when USB host triggers DFU mode? #2405
Replies: 2 comments 2 replies
-
Nope, there's no special hook. You can hack your copy of the core to handle this. Check in |
Beta Was this translation helpful? Give feedback.
-
Thanks for the tip ... that didn't end up working, but it got me on the right track. I'm not sure what situation triggers that method in I put a hack in there and it works for me. The implementation could be cleaner. Are you interested in having that feature in the core? |
Beta Was this translation helpful? Give feedback.
-
Is there a way to trigger a bit of code on the Pico at that moment when the USB host sends the magic baudrate-request that kicks the Pico into DFU mode? I'm using TinyUSB, but not yet finding anything about this in their docs. I don't want to prevent DFU mode, I just want to update the screen on the device to say "DFU MODE" or similar.
Beta Was this translation helpful? Give feedback.
All reactions