How to use scons program with custom configuration? #867
-
Hi, I have problem with running
Where running Then I have a custom configuration targeting the same MCU as on NUCLEO-F103RB:
Here, I can build program, but the
What am I missing, what do I need to do, to make it work? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You need to tell OpenOCD how to flash you custom board, ie. what adapter is used, what Reset config, what MCU, inside a Alternatively, if your config already exists inside OpenOCD support, you can add it via the |
Beta Was this translation helpful? Give feedback.
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.