Skip to content

How to use scons program with custom configuration? #867

Answered by salkinium
the-risk-taker asked this question in Q&A
Discussion options

You must be logged in to vote

You need to tell OpenOCD how to flash you custom board, ie. what adapter is used, what Reset config, what MCU, inside a openocd.cfg file, and then specify it via the <option name="modm:build:openocd.cfg">openocd.cfg</option> path option.
All the F103 BluePill example do it this way to tell OpenOCD what Debug Adapter to use.

Alternatively, if your config already exists inside OpenOCD support, you can add it via the openocd.source collector: <collect name="modm:build:openocd.source">board/st_nucleo_f103rb.cfg</collect>, which is what the BSP does for you internally.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@the-risk-taker
Comment options

Answer selected by the-risk-taker
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