platformio / platform-ststm32

ST STM32: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/ststm32
Apache License 2.0
405 stars 313 forks source link

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

Open AndBondStyle opened 1 month ago

AndBondStyle commented 1 month ago

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>
  2. 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"
    }
  3. 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
  4. Optionally, you could push this repo to github and use git spec instead
AndBondStyle commented 1 month ago

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