Skip to content

Introduce STM32CubeProgrammer #514

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

Merged
merged 1 commit into from
May 3, 2019
Merged

Introduce STM32CubeProgrammer #514

merged 1 commit into from
May 3, 2019

Conversation

fpistm
Copy link
Member

@fpistm fpistm commented May 3, 2019

This PR add support of STM32CubeProgrammer tools:
https://www.st.com/en/development-tools/stm32cubeprog.html

Allows to unified tools used to flash STM32 based boards across supported host OS:

  • Linux
  • MacOS
  • Windows

Replace:

  • STLink
  • Serial

Add:

  • DFU method using the built-in ST bootloader

It depends of stm32duino/Arduino_Tools#34
User will have to install the STM32CubeProgrammer to be able to flash.
User can change the default install path but in this case, the new path have to be added in the PATH environment variable.

Only one definition of the tool is required in the platform.txt.
{upload.protocol} allows to select the right interface to use:

  • 0: SWD
  • 1: Serial (using the built-in ST bootloader)
  • 2: DFU (using the built-in ST bootloader)
    See AN2606 for STM32 microcontroller system memory boot mode.

{upload.options} is used to pass extra options:

  • -rst for SWD to reset the device after the flash
  • {serial.port.file} -s for Serial

Note: I2C, SPI, CAN could be added as supported by the STM32CubeProgrammer tool.

All methods have been tested on all supported host OS using STM32CubeProgrammer v2.0.0 and v2.1.0.

This also allow to support STLink V3 and flash the new series that were not supported (H7, G0, WB).

Fixes #445 and Fixes #330
Replace PR #351

Replace STLink and Serial.
Add DFU.

Signed-off-by: Frederic.Pillon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unified upload tools Request support for standard (ST) DFU bootloader upload
1 participant