Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add offset option to stm32CubeProg upload method#1993

New issue

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

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fpistm merged 4 commits intostm32duino:mainfromfpistm:upload_offset
Apr 5, 2023

Conversation

fpistm
Copy link
Member

@fpistmfpistm commentedApr 4, 2023
edited
Loading

Linked tostm32duino/Arduino_Tools#90

Thanks this PR, it is now possible to flash at specific offset using STM32CubeProgrammer upload method.
Then start at the specified address.

Usingboards.local.txt feature:
https://arduino.github.io/arduino-cli/latest/platform-specification/#boardslocaltxt

For example to flash at 0x08002000 the Generic STM32F103C8T, define the offset like this:
GenF1.menu.pnum.GENERIC_F103C8TX.build.flash_offset=0x2000

Then,

stm32CubeProg.sh 0 Blink.ino.bin 0x2000 -g      -------------------------------------------------------------------                       STM32CubeProgrammer v2.13.0                        -------------------------------------------------------------------ST-LINK SN  : 0023003E3137510539383538ST-LINK FW  : V3J10M3B5S1Board       : STLINK-V3SETVoltage     : 0.00VSWD freq    : 8000 KHzConnect mode: Under ResetReset mode  : Hardware resetDevice ID   : 0x410Revision ID : Rev XDevice name : STM32F101/F102/F103 Medium-densityFlash size  : 64 KBytesDevice type : MCUDevice CPU  : Cortex-M3BL Version  : --Memory Programming ...Opening and parsing file: Blink.ino.bin  File          : Blink.ino.bin  Size          : 23.30 KB   Address       : 0x08002000 Erasing memory corresponding to segment 0:Erasing internal memory sectors [8 31]Download in Progress:File download completeTime elapsed during download operation: 00:00:01.408RUNNING Program ...   Address:      : 0x8002000Application is running, Please Hold on...Start operation achieved successfully

VitorBoss and tyllurius reacted with heart emoji
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
@fpistmfpistm added the enhancementNew feature or request labelApr 4, 2023
@fpistmfpistm added this to the2.6.0 milestoneApr 4, 2023
@fpistmfpistm changed the titlefeat(stm32CubeProg): add offset optionfeat: add offset option to stm32CubeProg upload methodApr 4, 2023
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
start at specified address option added by default tothe script.Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
@fpistmfpistm merged commit3ac4049 intostm32duino:mainApr 5, 2023
@fpistmfpistm deleted the upload_offset branchApril 5, 2023 06:37
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
enhancementNew feature or request
Projects
None yet
Milestone
2.6.0
Development

Successfully merging this pull request may close these issues.

1 participant
@fpistm

[8]ページ先頭

©2009-2025 Movatter.jp