FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[STM32CubeProg] Add offset option for upload by ricaun · Pull Request #60 · stm32duino/Arduino_Tools · GitHub

[STM32CubeProg] Add offset option for upload - #60

Closed
ricaun wants to merge 1 commit into
stm32duino:mainfrom
ricaun:patch-2
Closed

[STM32CubeProg] Add offset option for upload#60
ricaun wants to merge 1 commit into
stm32duino:mainfrom
ricaun:patch-2

Conversation

ricaun commented Apr 1, 2020

Copy link
Copy Markdown

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 self-requested a review April 1, 2020 04:50

fpistm commented May 5, 2020

Copy link
Copy Markdown
Member

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

fpistm marked this pull request as draft May 5, 2020 07:02

fpistm commented Apr 4, 2023

Copy link
Copy Markdown
Member

Replaced by #90

fpistm closed this Apr 4, 2023
fpistm added duplicate This issue or pull request already exists and removed Duplicated labels Jul 23, 2024
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

Labels

duplicate This issue or pull request already exists

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL