-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
core: STM32 H5 support #348
Draft
PhilippMolitor
wants to merge
25
commits into
KalicoCrew:main
Choose a base branch
from
PhilippMolitor:feature/mcu_support_stm32h503
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
core: STM32 H5 support #348
PhilippMolitor
wants to merge
25
commits into
KalicoCrew:main
from
PhilippMolitor:feature/mcu_support_stm32h503
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PhilippMolitor
force-pushed
the
feature/mcu_support_stm32h503
branch
from
August 16, 2024 14:29
c36c460
to
3a6e304
Compare
PhilippMolitor
force-pushed
the
feature/mcu_support_stm32h503
branch
from
August 17, 2024 14:38
6ae47ad
to
53cca54
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The STM32 H503 chip is one of the newest releases by ST.
There already is a (almost) pin-compatible BlackPill board for this MCU: https://github.com/WeActStudio/WeActStudio.STM32H503CoreBoard
I think this chip might come up in the future for 3d printer electronics boards, as it is a good value for medium to high performance. Also this lays the foundation for STM32H562, which is basically the same with more IO and larger ram/flash (not relevant for klipper).
I already added the CMSIS files and some define guards to correct for some renamed register names. I could use some help for the functions in
src/stm32/stm32h5.c
, as I do not know much about the initialization and important registers of the STM32 platform.Additional work will be needed for some of the common peripheral files in the
src/stm32
folder.PR Checklist
H5(03) Checklist
src/stm32/stm32h5.c
lookup_clock_line()
get_pclock_frequency()
gpio_clock_enable()
bootloader_request()
clock_setup()
armcm_main()
src/stm32/usbfs.c
src/stm32/adc.c
src/stm32/can.c
src/stm32/fdcan.c
src/stm32/spi.c
src/stm32/hard_pwm.c
src/stm32/dfu_reboot.c
H562 Checklist