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

Outdated stm32cube framework version (including HAL and LL) #806

Open
AndBondStyle opened this issue Oct 18, 2024 · 2 comments
Open

Outdated stm32cube framework version (including HAL and LL) #806

AndBondStyle opened this issue Oct 18, 2024 · 2 comments

Comments

@AndBondStyle
Copy link

AndBondStyle commented Oct 18, 2024

This issue was mentioned multiple times already (#368, #439, #555). Current stm32cubeXX platformio packages are out of date for about 3 years (example). Are there any plans to automate the update process to keep platformio packages in sync? Or is there any potential compatibility problems?


As a temporary fix, I'm using this method (reference). Maybe it can be useful to someone:

  1. Clone the official STM32CubeXX repo with a specific version:
git clone https://github.com/STMicroelectronics/STM32CubeG4 -b v1.6.0 --depth 1 <path>
  1. Add package.json file into the repository:
{
    "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 (STM32CubeG4 MCU Firmware Package)",
    "keywords": ["framework", "hal", "stm32", "st"],
    "name": "framework-stm32cubeg4",
    "version": "1.6.0",
    "homepage": "https://github.com/STMicroelectronics/STM32CubeG4"
  }
  1. Include this directory as a platform dependency of your projects (using local folder aka "file://" spec):
[env:genericSTM32G431CB]
platform = ststm32
board = genericSTM32G431CB
framework = stm32cube
+ platform_packages =
+    framework-stm32cubeg4 @ file:///path/to/repo
  1. Optionally, you could push this repo to github and use git spec instead
@AndBondStyle
Copy link
Author

AndBondStyle commented Oct 18, 2024

More possibly related issues: #766, #691, #686, #682, #666, #642, #636, #632

I think "fix once and for all" solution is very much needed, because people will always ask for latest versions and manual updates are not sustainable

@insolace
Copy link

Any update on this? Adding platform_packages doesn't remove the out of date platformio framework which is making it difficult to use the latest STM32G0 drivers.

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

No branches or pull requests

2 participants