Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for stm32F407IGHx #2649

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hlgzhx
Copy link

@hlgzhx hlgzhx commented Feb 3, 2025

Summary

add support for Generic STM32F407IGHx boards by editing boards.txt and add variants/STM32F4xx/F407I(E-G)(H-T)_F417I(E-G)(H-T)/ldscript.ld

屏幕截图(1)
compile test is passed,my board is in school but school is closed.if you need further test on uploading,please wait me to get back to school after Chinese new year.

im glad to fix further issues on supporting stm32f407ighx boards

@fpistm fpistm added the new variant Add support of new bard label Feb 3, 2025
@fpistm fpistm marked this pull request as draft February 3, 2025 13:57
Copy link
Member

@fpistm fpistm left a comment

Choose a reason for hiding this comment

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

Hi @hlgzhx
Thanks for the PR anyway, it is not complete.
see my comments.
Moreover, please reference the mcu added in the README.md and add a default SystemClock_Config in the generic_clock.c.

See the Wiki for all steps:
https://github.com/stm32duino/Arduino_Core_STM32/wiki/Add-a-new-variant-%28board%29

@@ -4865,6 +4865,15 @@ GenF4.menu.pnum.GENERIC_F407ZGTX.build.product_line=STM32F407xx
GenF4.menu.pnum.GENERIC_F407ZGTX.build.variant=STM32F4xx/F407Z(E-G)T_F417Z(E-G)T
GenF4.menu.pnum.GENERIC_F407ZGTX.debug.svd_file={runtime.tools.STM32_SVD.path}/svd/STM32F4xx/STM32F407.svd

# Generic F407IGHx
Copy link
Member

@fpistm fpistm Feb 3, 2025

Choose a reason for hiding this comment

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

When adding a generic variant all possible boards entries have to be added in boards.txt by alphabetical order.
It misses:
Generic F407IEHx
Generic F407IETx
Generic F407IGTx
Generic F417IEHx
Generic F417IGHx
Generic F417IETx
Generic F417IGTx

Comment on lines +49 to +50
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 1024K
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 1024K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = LD_MAX_DATA_SIZE
FLASH (rx) : ORIGIN = 0x8000000 + LD_FLASH_OFFSET, LENGTH = LD_MAX_SIZE - LD_FLASH_OFFSET

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new variant Add support of new bard
Projects
Status: Needs review
Development

Successfully merging this pull request may close these issues.

2 participants