Skip to content

has anyone got debugging for STM32 working? #1630

Discussion options

You must be logged in to vote

Made some progress on this and thought I'd share my findings

  • I started with a fresh install of Sloeber 4.4.3 product

  • then added STM32 platform from

    https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json

  • then go to Help -> Install New Software and search for openOCD which yields exactly one result which I installed

  • create blink example for STM32 (Nucleo-L412KB in my case) with debug options enabled
    Optimize on Debug (-Og) and Debug symbols and core logs set to Core logs and Symbols enabled(-g)

  • build project by hitting Ctrl-R (takes an awful lot of time on Windows - blessed are the Lunix-users ;) )

  • Then create a run/debug configuration by

Replies: 13 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jantje
Comment options

Answer selected by jantje
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants