-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
STM32H5 Support? #758
Comments
I have downloaded the firmware package from ST, duplicated an existing framework folder (STM32G4 for testing), renamed everything accordingly and copied the H5 files and drivers in place of the G4 ones, and immediately errors were thrown when trying to overwrite the framework and explicitly use my custom H5 (referenced as a GitHub link as per the PIO reference docs). |
@valeros are you able to point me in the right direction to create my own STM32H5 if required? I'd really like to get up and running with this chip. |
Hi @samspencer5991, unfortunately, there is no an easy way of adding a new MCU series. The only workaround is to fork this repo, add needed targets to the |
@valeros hmm ok, I'll give that a crack. Is there a particular reason that MCU series hasn't been added to PIO? Happy to get it working on a fork and look at a PR to help others out. Just seems like a strange omission for what is a very powerful and cost effective STM32 series. |
@samspencer5991 It's simply not a priority, the team has plenty of other tasks to deal with. |
@valeros I've followed everything as best as I can, running into a specific issue. Here are the steps taken:
{
"description": "STM32Cube is a set of tools and embedded software bricks available free of charge to enable fast and easy development on the STM32 platform (STM32CubeH5 MCU Firmware Package)",
"keywords": [
"framework",
"hal",
"stm32",
"st"
],
"name": "framework-stm32cubeh5",
"version": "1.5.1",
"homepage": "https://github.com/STMicroelectronics/STM32CubeH5"
}
"framework-cmsis-stm32h5": {
"type": "framework",
"optional": true,
"owner": "platformio",
"version": "~1.5.1"
}
The only thing I haven't done yet is handling the svd and ld script files, however, the issue I'm facing seems to be occuring before that. The error output from the terminal is:
I have created a public repo with the framework-stm32cubeh5 folder both to try referencing it in my platformio.ini file using platform_packages and also as a reference here: https://github.com/samspencer5991/framework-stm32cubeh5/blob/main/README.md Happy to do the legwork to get it running, but the cross-referencing of various documentation without much in the way of previous examples to go off is tricky. I have made all these changes on my local build rather than forking as a test. |
You're working with the
The SVD file in located in the |
@valeros thank you for your help. I found some of the steps to be a little tricky to work out but got there in the end with a successful compilation. One problem I found is that I couldn't add the files locally, it would throw up the following error: Having successfully gotten compilation, what can I do to provide everything needed for you to easily merge this into the repo so others can get up and running with the STM32H5 platform? |
Since you added all packages manually, you also need the
You don't need the "framework-cmsis-stm32h5": {
"type": "framework",
"optional": true,
"owner": "platformio",
"version": "https://github.com/samspencer5991/framework-stm32cubeh5.git#3fc9e3e"
} Where
It's a bit more complex mater than just a PR. But still, you can share here an URL to your fork, so anyone who needs support for H5 will be able to install it by specifying your fork as the value for the |
Still a bit of work to do before I would consider it a useable experience by anyone else or even myself @valeros I've been able to compile code currently, but have not uploaded the build artefacts at all. Initial board bring-up and testing has been done with STM32CubeIDE successfully. I'm running into some roadblocks now trying to upload/debug on the H5. I have downloaded the stm32h5x.cfg file from the STM32 OpenOCD github repo (https://github.com/STMicroelectronics/OpenOCD) and added that into the following folder: When trying to upload using a stlink (confirmed working in stm32cubeide, the following error appears: `CURRENT: upload_protocol = stlink hla_swd |
@samspencer5991 Did you get this working? I'm interested in the H563ZI support also |
Yeah I did actually. I'll dig through the project and post as much info as I can this week |
Unless I've missed something, there is no mention of support for STM32H5 series chips. Is there a reason for this or has it simply not been a priority? I've got a couple of boards using STM32H5 chips I'd like to get started with the bring up for. If not officially supported, can someone point me in the best direction to integrate these chips with a new platformio project?
The text was updated successfully, but these errors were encountered: