platform-ststm32 icon indicating copy to clipboard operation
platform-ststm32 copied to clipboard

Outdated stm32cube framework version (including HAL and LL)

Open AndBondStyle opened this issue 1 year ago • 1 comments

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 avatar Oct 18 '24 10:10 AndBondStyle

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

AndBondStyle avatar Oct 18 '24 11:10 AndBondStyle

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.

insolace avatar Dec 28 '24 07:12 insolace

Resolved in https://github.com/platformio/platform-ststm32/commit/4d46eda1f48982b3a92a415400ef7531a636cb1d

valeros avatar Jan 29 '25 14:01 valeros

@valeros just to clarify: this is another manual update of the packages, or some process is implemented to get future versions automatically (or at least more frequently than once in 3 years)?

AndBondStyle avatar Jan 29 '25 16:01 AndBondStyle

@AndBondStyle It's a manual update, but more frequent updates are planned.

valeros avatar Jan 30 '25 11:01 valeros

What about support for C0, U0, U5 and H5?

RudolphRiedel avatar Feb 15 '25 14:02 RudolphRiedel

@RudolphRiedel Support for new targets is not in plan at the moment.

valeros avatar Feb 17 '25 12:02 valeros