Conversation
This is the half page size, not the full page size. It's also unused, so just drop it. Signed-off-by: Karl Palsson <[email protected]>
On Cortex-M3 and up parts, this doesn't matter, but for M0/M0+, this is required. Signed-off-by: Karl Palsson <[email protected]>
Demonstration of an m0+ target, and the ease of porting. Unfortunately, some internal library code uses a modulo operation, and that pulls in software divide, and this blows out past the 8k assumed bootloader size. You can simply comment out webusb_setup(usbd_dev); winusb_setup(usbd_dev); in dapboot.c and it will drop under 8k again, but's clearly not a viable long term solution.
karlp
added a commit
to libopencm3/libopencm3
that referenced
this pull request
Nov 27, 2020
Tested on L1 and L0 using the "dapboot" project, see devanlai/dapboot#27 for L1 and devanlai/dapboot#30 for L0
karlp
added a commit
to libopencm3/libopencm3
that referenced
this pull request
Nov 28, 2020
Tested on L1 and L0 using the "dapboot" project, see devanlai/dapboot#27 for L1 and devanlai/dapboot#30 for L0
BOJIT
pushed a commit
to BOJIT/PlatformIO-libopencm3
that referenced
this pull request
Jan 30, 2021
Tested on L1 and L0 using the "dapboot" project, see devanlai/dapboot#27 for L1 and devanlai/dapboot#30 for L0
|
@karlp Thanks for sharing this! I'm working on a project that uses an STM32L053. I was surprised that the chip has a USB peripheral, but the built-in bootloader from STM can't do USB DFU like other STM parts I've used (STM32F042 for example). Going to give this a try for the bootloader instead! |
karlp
commented
Sep 5, 2021
| } | ||
|
|
||
| /* Include the common ld script. */ | ||
| INCLUDE stm32l1/stm32l1-base.ld |
Contributor
Author
There was a problem hiding this comment.
this is wrong, but harmless, as the "base" file is actually the same "cortex-m-generic" file anyway.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Just a demo really of targetting an M0+ part.
I don't actually have any use for this going forward, but I had 99% of the code done, so tested it at least, and thought I'd share it here if anyone else wants this sort of thing.