Skip to content

Bootloader using modm #695

Answered by salkinium
ASMfreaK asked this question in Q&A
Sep 29, 2021 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

Can I add a separate target to my firmware?

The bootloader and the application would be separate projects with their own project.xml files.

Can modm produce an amalgamation firmware with bootloader attached?

No, not natively. You would need to write a small bash script that calls scons/make bin for each and then concatenates the files correctly. Alternatively you can program the bootloader first, then use that to upload the application.

Do I need to write linkerscripts for it?

Not necessarily, the application would have the lbuild option modm:platform:cortex-m:linkerscript.flash_offset set to the bootloader size and then everything is shifted upwards automatically. The bootloader it…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@salkinium
Comment options

@salkinium
Comment options

@ASMfreaK
Comment options

@salkinium
Comment options

@salkinium
Comment options

Answer selected by ASMfreaK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants