Skip to content

[STM32CubeProg] Add offset option for upload #60

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 1 commit into from

Conversation

ricaun
Copy link

@ricaun ricaun commented Apr 1, 2020

By issue #57 and using the @GIPdA idea.

Add an option command to offset the upload address. Ex: -o 0x5000

The already implemented parameter build.flash_offset can be used to upload on the 0x08005000 using the stm32CubeProg tool like this board configuration.

GenF1.menu.upload_method.serialMethod2=STM32CubeProgrammer (Serial) - Bootloader
GenF1.menu.upload_method.serialMethod2.upload.protocol=1
GenF1.menu.upload_method.serialMethod2.upload.options={serial.port.file} -s
GenF1.menu.upload_method.serialMethod2.upload.tool=stm32CubeProg
GenF1.menu.upload_method.serialMethod2.build.flash_offset=0x5000
GenF1.menu.upload_method.serialMethod2.build.bootloader_flags=-DVECT_TAB_OFFSET={build.flash_offset}

It needs to change the platform.txt on the Arduino_Core_STM32 and add -o {build.flash_offset} on the upload pattern.

tools.stm32CubeProg.upload.pattern="{path}/{cmd}" {upload.protocol} "{build.path}/{build.project_name}.bin" {upload.options} -o {build.flash_offset}

This should make all the boards with build.flash_offset offset the upload when using the stm32CubeProg.

See yaa.

Add offset command. Ex: -o 0x2000
@fpistm fpistm self-requested a review April 1, 2020 04:50
@fpistm
Copy link
Member

fpistm commented May 5, 2020

@ricaun
I will review this for the next release as it required more work (core update, other OS support)

@fpistm fpistm marked this pull request as draft May 5, 2020 07:02
@fpistm
Copy link
Member

fpistm commented Apr 4, 2023

Replaced by #90

@fpistm fpistm closed this Apr 4, 2023
@fpistm fpistm added duplicate This issue or pull request already exists and removed Duplicated labels Jul 23, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants