[riot-notifications] [RIOT-OS/RIOT] openocd: add debug_adapter gpio (#11175)

MrKevinWeiss notifications at github.com
Thu Mar 21 09:35:43 CET 2019


MrKevinWeiss requested changes on this pull request.

I was able to get it working with a bluepill and tests/leds and see some blinking.

Could you add more information on which version(s) of openocd to install or add some links to how to install it, I used [this](https://learn.adafruit.com/programming-microcontrollers-using-openocd-on-raspberry-pi/compiling-openocd), I believe the version must be at least 0.10.0?

The testing procedure is more for you to tell others how to test it.  So maybe add something like:
1) Connect RPi pins to swd pins on <board_of_your_choice>
2) Run `BOARD=<board_of_your_choice> DEBUG_ADAPTER=sysfsgpio make flash -C <app_of_your_choice>`
3) Repeat with different choices (try tests/leds as a start)

It seems like the udev rules or permissions need to be updated too, can you add some information about that?

Can you give a concrete example on how this would be useful?  The only thing I can think of is for boards like a bluepill without the dfu bootloader flashed on it.

You may also want to add this since it can't find some configs.
```
# if no openocd specific configuration file, check for default locations:
# 1. Using the default dist/openocd.cfg (automatically set by openocd.sh)
# 2. Using the common cpu specific config file
ifeq (,$(OPENOCD_CONFIG))
  # if no openocd default configuration is provided by the board,
  # use the STM32 common one
  ifeq (0,$(words $(wildcard $(RIOTBOARD)/$(BOARD)/dist/openocd.cfg)))
    export OPENOCD_CONFIG := $(RIOTBASE)/boards/common/stm32/dist/$(CPU).cfg
  endif
endif
```




-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11175#pullrequestreview-217116688
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190321/35ed227d/attachment-0001.html>


More information about the notifications mailing list