-
Notifications
You must be signed in to change notification settings - Fork 1k
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 stm32h755II chip #12350
add stm32h755II chip #12350
Conversation
Hi @jfbblue0922 thank you for your first contribution! I hope you attend our NuttX International Workshop in Japan next month (more info: https://events.nuttx.apache.org). Please fix the relative file path name at line 2 of stm32h7x5xx_rcc.c it is failing:
|
@jfbblue0922 What is the diff from the the exiting rcc look like? |
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.
See inline.
fdcbb26
to
e077d1f
Compare
I did squash the commits. |
@acassis Why did you merge this with a request to change it open? |
oops, sorry @davids5 I just saw the approaved and thought is was fixed already. |
This PR add a file with a #ifdef of an undefined value and and is total code duplication. @acassis How do you want to clean up your oops? |
@jfbblue0922 Please consider creating a macro that has different values for that STM32_PWR_CR3 depending on which model of microcontroller is defined. |
Thank you for your suggestions. I would like to revise it again according to your suggestions. I would like to modify it within stm32h7x3xx_rcc.c instead of creating stm32h7x5xx_rcc.c. Thank you for your advice. This PR has been merged and closed, but what should we do? How do I create a macro? |
@jfbblue0922 something like:
Then use the macro STM32_PWR_CR3_VALUE to enable the right bits in both cases. |
It turns out that this problem is not specific to stm32h755II. We use '1.LDO supply' instead of '2.Direct SMPS supply' method. Now that this PR has been merged, should I create another PR and fix it? |
@jfbblue0922 - the Kconfig will need to contain a section, that the chip will enable modes for that package. The user can select mode for that, It is critical that the default for this change defaults to the Exact behavior before this change is applied. So there should be only one RCC file (remove the added one) and the #ifdef logic to pick the correct values and set up. If the users does not select a value, the default used should be the same as before this change comes in. The mechanics do correct this: 1) Could be a NEW second PR with only the fixes. OR 2) @acassis should revert the one he merged on accident and you do a new complete PR. |
Adds compatibility with PX4 NuttX for use with JAE flight controllers.
Here are the changes:
・Added setting ARCH_CHIP_STM32H755II
・Add stm32h7x5xx_rcc.c
・Corrected so that STM32_PWR_CR3_SCUEN is not enabled when SMPS SUPPLY is not used.