-
Notifications
You must be signed in to change notification settings - Fork 340
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
Integration of H5 family #320
Changes from 8 commits
a4ff415
82ff509
ecaefbe
0ab5956
ae613dc
93725b7
9ffdd49
8bf0520
f270cb0
9e2a580
c6c84f4
9b57e2e
e37e0de
d9f8585
c7e9b42
fb8cbae
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
set(STM32_H5_TYPES | ||
H503xx H562xx H563xx H573xx | ||
) | ||
|
||
set(STM32_H5_TYPE_MATCH | ||
"H503.." "H562.." "H563.." "H573.." | ||
) | ||
set(STM32_H5_RAM_SIZES | ||
32K 640K 640K 640K | ||
) | ||
set(STM32_H5_CCRAM_SIZES | ||
0K 0K 0K 0K | ||
) | ||
|
||
stm32_util_create_family_targets(H5) | ||
|
||
target_compile_options(STM32::H5 INTERFACE | ||
-mcpu=cortex-m33 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb | ||
) | ||
|
||
target_link_options(STM32::H5 INTERFACE | ||
-mcpu=cortex-m33 -mfloat-abi=hard -mfpu=fpv5-d16 -mthumb | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the source information for using fpv5-d16 FPU? I was kinda not sure how to find this out so I opted to let STM32CubeMx generate an empty makefile project for STM32H5 and checked it's compiler options. CubeMx used fpv4-sp-d16 there. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I could not find the answer easily. For what I can tell https://www.st.com/resource/en/programming_manual/pm0264-stm32-cortexm33-mcus-programming-manual-stmicroelectronics.pdf states that m33 devices support fpv5 instructions... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry for delay. I don't have much time right now so I just answer the question here. I have read this and others: https://community.st.com/t5/stm32cubemx-mcus/bug-in-cubemx-generating-makefile-missing-some-cpu-info/m-p/110239 For me correct answer is |
||
) |
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,16 @@ | ||||||||
# Supporting new families | ||||||||
|
||||||||
## Write device file | ||||||||
|
||||||||
a file <family>.cmake must be added to the folder cmake/stm32 | ||||||||
This file containes the differents devices and the regex used to parse them. | ||||||||
It also give information on the RAM and CCRAM available | ||||||||
|
||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you make a suggestion with all the changes you want here ? |
||||||||
## Add family to list of know families | ||||||||
|
||||||||
Update the list `STM32_SUPPORTED_FAMILIES_LONG_NAME` located in the cmake/stm32/common.cmake file | ||||||||
|
||||||||
|
||||||||
Hish15 marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||
## Add family to CI | ||||||||
|
||||||||
Update the cmake.yml workflow file to include the new family | ||||||||
atsju marked this conversation as resolved.
Show resolved
Hide resolved
|
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.
this is incorrect. H5 need to be added without removing others. I suppose it was for tests