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

Support for STM32H503 MCU #2563

Merged
merged 5 commits into from
Apr 2, 2024
Merged

Support for STM32H503 MCU #2563

merged 5 commits into from
Apr 2, 2024

Conversation

wjklimek1
Copy link
Contributor

  • added support for STM32H503RB on H503RB-NUCLEO board
  • modified H5 family.c file to allow portability between H503 and H563/H573
  • redefined USB_DRD_BASE to USB_DRD_FS_BASE if STM32H503xx is used

For more details see #2561

- added support for STM32H503RB on H503RB-NUCLEO board
- modified H5 family.c file to allow portability between H503 and H565/H573
- redefined USB_DRD_BASE to USB_DRD_FS_BASE if STM32H503xx is used
Copy link
Owner

@hathach hathach left a comment

Choose a reason for hiding this comment

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

thank you for your PR, please follow review to make suggested changes

Implemented changes suggested in the review:
- restored original name of SystemClock_Config() function
- some GPIO clocks are only enabled if macros are defined
- moved GPIO clocks init back to family.c
@wjklimek1
Copy link
Contributor Author

I fixed trailing whitespace error, could you please re-approve PR? All checks should pass now.

@HiFiPhile
Copy link
Collaborator

Now it's all good, tested work on stm32h573i_dk (without surprise but still).

@wjklimek1
Copy link
Contributor Author

Thanks a lot. I re-tested on stm32h503nucleo and it works too.

Copy link
Owner

@hathach hathach left a comment

Choose a reason for hiding this comment

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

thank you for the PR, I made an final changes following stm32h5_hal_pwr_ex to check for USB VDD instead of having that in each board.h

#if defined (PWR_USBSCR_USB33DEN)
void HAL_PWREx_EnableUSBVoltageDetector(void);
void HAL_PWREx_DisableUSBVoltageDetector(void);
void HAL_PWREx_EnableVddUSB(void);
void HAL_PWREx_DisableVddUSB(void);
#endif /* PWR_USBSCR_USB33DEN */

@hathach hathach merged commit bc75881 into hathach:master Apr 2, 2024
49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants