-
Notifications
You must be signed in to change notification settings - Fork 989
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K | ||
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 1024K |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
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
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