Make dfu-util flash to the offset set by modm:platform:cortex-m:linkerscript.flash_offset #1163
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.
Today I started playing around with my Arduino Portenta H7 board. It has a (yet unsupported) dual core STM32H7 and a bootloader. When trying to set the flash offset with
modm:platform:cortex-m:linkerscript.flash_offset
I noted that the dfu scripts always flash to 0x08000000.This is my proposal to support dfu with flash offsets. I have tested it with the Portenta H7 board using scons and make. CMake currently does not support dfu-util as a programming tool, right?
I have also verified that make and scons still work and dfu-util flashes to 0x08000000 when
modm:platform:cortex-m:linkerscript.flash_offset
is not specified.I'm looking forward to add support for the STM32H747 soon, at least for the Cortex M7 core.