Skip to content

tools, new flash_stm32#463

Merged
olliw42 merged 2 commits into
olliw42:mainfrom
jlpoltrack:tools-flash-stm32
Jun 9, 2026
Merged

tools, new flash_stm32#463
olliw42 merged 2 commits into
olliw42:mainfrom
jlpoltrack:tools-flash-stm32

Conversation

@jlpoltrack

Copy link
Copy Markdown
Collaborator

New tool that allows one to build + flash STM32 targets from command line, so CubeIDE + CubeProgrammer not necessarily needed for development.

  • Uses existing make_firmware to build
  • Can flash with DFU or SWD with arg

@tmcadam

tmcadam commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

I guess this could open the way to building binaries automatically in github action, on merge to main.

This is a very outdated PR that was doing something like that for the esp devices
#155

@olliw42

olliw42 commented Jun 8, 2026

Copy link
Copy Markdown
Owner

this would work only on linux, won't work on Win, and I'm very much against suggesting Win users having to install stuff which needs that Zadig nonsense. So, Win users would be back to STM32CubeProgrammer ... and having to install something anyways.
So, either it's extended to use STM32CubeProgrammer or made clear to be lin only by e.g. changing the name to "..._linux.py".

as regards automatic builds, this here won't help as it's mainly about adding flashing. I'm also somehwat hesistant with auto builds. It seems many folks use dev builds, so I guess many would then use nightlies ... which may or may not work. A controlled way for dev builds looks reasonable to me. Just my 2 cents though.

@jlpoltrack

Copy link
Copy Markdown
Collaborator Author

So, either it's extended to use STM32CubeProgrammer or made clear to be lin only by e.g. changing the name to "..._linux.py".

I chose the rename option, if there's need in the future I can look into extending for STM32CubeProgrammer. Note - all of my tests have been on MacOS.

@olliw42

olliw42 commented Jun 9, 2026

Copy link
Copy Markdown
Owner

will merge, but change the name to _linux. _nix is a bit nerdy IMHO ;)

@olliw42 olliw42 merged commit f459362 into olliw42:main Jun 9, 2026
@jlpoltrack jlpoltrack deleted the tools-flash-stm32 branch June 9, 2026 01:59
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

Successfully merging this pull request may close these issues.

3 participants