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

Allow use of a custom startup file#353

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 1 commit intostm32duino:masterfromfpistm:custom_startup
Oct 10, 2018

Conversation

@fpistm
Copy link
Member

Syntax in the board.txt:
xxx.build.startup_file=-DCUSTOM_STARTUP_FILE

Example to use a custom startup file for Nucleo_L476RG:
Nucleo_64.menu.pnum.NUCLEO_L476RG.build.startup_file=-DCUSTOM_STARTUP_FILE
Then add a "*.S" file in the "variant/NUCLEO_L476RG/" folder
Important note: extension must be '.S' not '.s'

CUSTOM_STARTUP_FILEcould also be defined thanks the build_opt.h.
CMSIS_STARTUP_FILEcould now be overridden using the build_opt.h, ex:
-DCMSIS_STARTUP_FILE=\"startup_stm32l476xx.s\"

Fix#352

Syntax in the board.txt:xxx.build.startup_file=-DCUSTOM_STARTUP_FILEExample to use a custom startup file for Nucleo_L476RG:    Nucleo_64.menu.pnum.NUCLEO_L476RG.build.startup_file=-DCUSTOM_STARTUP_FILEThen add a "*.S" file in the "variant/NUCLEO_L476RG/" folderImportant note: extension must be '.S' not '.s'CUSTOM_STARTUP_FILE could also be defined thanks the build_opt.h.CMSIS_STARTUP_FILE could now be overridden using the build_opt.h, ex:-DCMSIS_STARTUP_FILE=\"startup_stm32l476xx.s\"Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
@fpistmfpistm added the enhancementNew feature or request labelOct 9, 2018
@fpistmfpistm self-assigned thisOct 9, 2018
Copy link
Contributor

@xC0000005xC0000005 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This solution works perfectly well for what I need. I do have one question - how would a board set its startup file in the boards.txt? Is there an example?

@xC0000005
Copy link
Contributor

I see now how to set it. Thanks.

fpistm reacted with thumbs up emoji

@fpistmfpistm added this to the1.4.0 milestoneOct 10, 2018
@fpistmfpistm merged commit182fdf4 intostm32duino:masterOct 10, 2018
@fpistmfpistm deleted the custom_startup branchOctober 10, 2018 07:22
benwaffle pushed a commit to benwaffle/Arduino_Core_STM32 that referenced this pull requestApr 10, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@xC0000005xC0000005xC0000005 approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

@fpistmfpistm

Labels

enhancementNew feature or request

Projects

None yet

Milestone

1.4.0

Development

Successfully merging this pull request may close these issues.

2 participants

@fpistm@xC0000005

[8]ページ先頭

©2009-2025 Movatter.jp