openocd-adapters: select transport based on adapter#14480
openocd-adapters: select transport based on adapter#14480benpicco merged 5 commits intoRIOT-OS:masterfrom
Conversation
ed1fcc5 to
7164c88
Compare
Sure! Well for most adapters, this basically just shuffles around the location of What should be tested is
And ideally, the Waveshare nRF52840 Eval Kit should now be flashable with ST-Link. |
It should work because all Nucleo boards are flashed with OpenOCD, ST-LINKV2 and |
|
Looks good to me and makes sense. Unfortunately I can't support the test because I don't have the boards mentioned in the test list 😟 |
|
Flashing the |
1e4799a to
b6c144d
Compare
cb4a343 to
d09e952
Compare
|
Test results on |
d09e952 to
8f1d32b
Compare
I'm not sure testing like this is correct in this case. On current master I'm getting the following error when trying to flash the There seems to be no definition of |
You are absolutely right, iot-lab uses its own flashing scheme. Sorry for letting this slip. |
Contribution description
Things were a bit muddled since some boards come with a debug adapter while other boards have to use an external one.
This allows for more flexibility in external debug adapter use. The Adapter will select it's default transport, but boards can overwrite them if they need something special (this can only be JTAG instead of SWD since
hla_swdis an implementation detail of the adpater and should not be selected by the board.There are some boards that don't use the
DEBUG_ADAPTERproperty at all and define everything in their privateopenocd.cfg.Those can of course still select their own transport, but ideally they should be transferred to
openocd-adapters/so the adapters can be shared with other boards.Testing procedure
Flashing should still work.
I tried
iotlab.inc.mkIssues/PRs references
alternative to #13858