-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User code in bootloader #34
Comments
It's up to you. It's also possible to add two weak empty functions like |
I think it's a good idea to add |
Yeah the weak definitions are probably the way to go. |
Do we want user_init before OR after dfu_init? |
I think it doesn't matter. |
I'm back at this thing again. I need to be able to perform custom user_verify() on each start (same stage as validate_checksum). Would you consider having DATA/BSS sections initialized before it? user_verify() would need access to that data. Or more likely move the initialization directly after clock setup. I can change it locally but I would want to opensource that feature if you're ok with it. |
What is the "correct" procedure for injecting user code into the bootloader? For example I want to display some content on the display while the device is in DFU.
One solution might be adding user_init and user_poll to the existing main:
Another solution might be to allow disabling the default main (and then calling dfu/usbd from user source:
The text was updated successfully, but these errors were encountered: