Add STM32U073Cx & STM32U083Cx boards - #887
Conversation
|
@valeros I second this PR. |
xpack OpenOCD 0.12.0-5 (2025-02-05) included upstream commits that deprecated HLA support for ST-Link (34ec5536c0) and converted all `transport select hla_swd` to `swd` in the interface scripts (ad53fe659b, 2024-12-23). Using `hla_swd` for stlink with xpack >=0.12.0-5 fails; use `swd` for all adapters instead. Bump tool-openocd to ~3.1200.5, the first release containing stm32u0x.cfg (required for STM32U0 target support) and the version where the HLA transport change lands. Users on the PIO registry (still at 3.1200.0) must install xpack >=0.12.0-5 manually until PlatformIO publishes an updated registry package. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… U083RC) Adds PlatformIO board definitions for all STM32U0 generic variants supported by the Arduino STM32 package, covering both the C-series (LQFP/UFQFPN 48-pin) and R-series (LQFP/UFBGA 64-pin) packages, plus the NUCLEO-U083RC eval board. Generic boards added (17 total): - STM32U073C8T/U, STM32U073CBT/U, STM32U073CCT/U (64/128/256k, C-package) - STM32U083CCT/U (256k, C-package) - STM32U073R8I/T, STM32U073RBI/T, STM32U073RCI/T (64/128/256k, R-package) - STM32U083RCI/T (256k, R-package) Nucleo board added: - nucleo_u083rc (STM32U083RCT6, 256k flash, onboard ST-Link) All boards: Cortex-M0+ at 56 MHz, 40k RAM, stm32u0x OpenOCD target, frameworks arduino/cmsis/stm32cube, upload via stlink/jlink/dfu/serial.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Since quite a length of time has passed without any review/activity from upstream, I have taken the liberty to:
Further details: Commit
Commit
These are coupled: 0.12.0-5 is both the first release with Commit
|
|
My bad, looks like tool-openocd 3.1200.7 has landed so this PR should not need an out-of-tree OpenOCD (but the hla_swd fix is still needed, once the pinned version in platform-ststm32 is moved to 3.1200.7). |
Oh, just checked. Not supported. But at least a custom upload_command and stm32cubeprogrammer works well with my PR changeset. |
Summary
Adds board definitions for the STM32U0 series (Cortex-M0+, 56 MHz, 40 KB RAM) and
the required OpenOCD fix to flash them.
New boards
STM32U073 - 12 generic variants (all variants supported by upstream Arduino STM32 core)
STM32U083 (all variants supported by upstream Arduino STM32 core, including Nucleo U083RC)
OpenOCD version bump and hla_swd deprecation
xpack OpenOCD 0.12.0-5 (2025-02-05) deprecated the HLA layer for ST-Link and
converted all interface scripts from
transport select hla_swdtoswd. Usinghla_swdwith xpack ≥ 0.12.0-5 causes OpenOCD to error out. This PR changesplatform.pyto always emittransport select swdfor all adapters, and bumpstool-openocdto~3.1200.5— also the first release that shipsstm32u0x.cfg(required to target STM32U0).
Blink test
Test sketch in
tests/updated to include all new boards, this was used to test actual hardware (refer to list below).Tested on
genericSTM32U073CBTflashed and verified on actual hardwarenucleo_u083rcflashed and verified on actual hardwareCloses: #798