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

Tool to merge application firmware with bootloader for factory SWD/JLINK-programming #290

Open
levpopov opened this issue Jan 26, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@levpopov
Copy link

Is your feature request related to a problem? Please describe.
It'd be great to be able to flash both the bootloader and initial application firmware in one go when connected over SWD. AFAICT the only way to properly write bootloader settings is by actually performing a firmware update, which is inconvenient since this requires reconnecting target over USB (vs just using already connected SWD/JTAG).

Describe the solution you'd like
A CLI tool for merging application hex with bootloader hex that will configure the settings page to point to the bundled firmware.

Describe alternatives you've considered
A potentially simpler option would be to just have a build flag for the bootloader to assume that a valid firmware has already been flashed (vs assuming empty). Application firmware would still be written over SWD but can be in a separate hex.

Additional context
N/A

@levpopov levpopov added the enhancement New feature or request label Jan 26, 2023
@vivek-pai
Copy link

I wrote a script to generate the correct bootloader settings from app firmware. With mergehex, I'm able to merge the bootloader, settings, and app into a single hex and flash that. I'm using it in my circuitpython build and it seems to be working great.

@DanielCao0
Copy link

I wrote a script to generate the correct bootloader settings from app firmware. With mergehex, I'm able to merge the bootloader, settings, and app into a single hex and flash that. I'm using it in my circuitpython build and it seems to be working great.

Hi , Can you share the merge method? Thank you.

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

3 participants