Skip to content
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

Loading Firmware via USB DFU #22

Open
misterinterrupt opened this issue Jun 29, 2023 · 0 comments
Open

Loading Firmware via USB DFU #22

misterinterrupt opened this issue Jun 29, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@misterinterrupt
Copy link
Collaborator

misterinterrupt commented Jun 29, 2023

  • modify memory addressing to include space for what the bootloader needs
  • turning on usb for dfu
  • magic bits for recognizing that we are in dfu mode
  • minimal fw to decide whether to load dfu fw or main fw
  • block debugger access to avoid memory getting erased
  • minimal fw integrity checks (i.e. start looks like a stack pointer)

reference implementations:
Rust: https://github.com/vitalyvb/usbd-dfu-example/tree/main/dfu-bootloader
C: https://github.com/Serasidis/STM32_HID_Bootloader/tree/master/bootloader/F1

same issue in C firmware repo: rrivirr/rriv#103

@misterinterrupt misterinterrupt added the enhancement New feature or request label Jun 29, 2023
@misterinterrupt misterinterrupt self-assigned this Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant