trigger code when USB host triggers DFU mode? #2405
Unanswered
myklemykle
asked this question in
Q&A
Replies: 2 comments 2 replies
|
Nope, there's no special hook. You can hack your copy of the core to handle this. Check in |
0 replies
|
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? |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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.
All reactions