[riot-notifications] [RIOT-OS/RIOT] tools/openocd: check if variable for extra reset_config is set (#12157)

Gaëtan Harter notifications at github.com
Tue Sep 3 13:38:59 CEST 2019


Good, it works without warning:

<details><summary>nucleo-f091rc still uses connect_assert_srst</summary>

```
BOARD=nucleo-f091rc RIOT_CI_BUILD=1 make --no-print-directory -C examples/hello-world/ flash
Building application "hello-world" for "nucleo-f091rc" with MCU "stm32f0".

   text    data     bss     dec     hex filename
   8176     120    2568   10864    2a70 /home/harter/work/git/RIOT/examples/hello-world/bin/nucleo-f091rc/hello-world.elf
/home/harter/work/git/RIOT/dist/tools/openocd/openocd.sh flash /home/harter/work/git/RIOT/examples/hello-world/bin/nucleo-f091rc/hello-world.elf
### Flashing Target ###
GNU MCU Eclipse 64-bit Open On-Chip Debugger 0.10.0+dev-00462-gdd1d90111 (2019-01-18-11:37)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
WARNING: interface/stlink-v2-1.cfg is deprecated, please switch to interface/stlink.cfg
hla_swd
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
none separate
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : clock speed 1000 kHz
Error: open failed


/home/harter/work/git/RIOT/examples/hello-world/../../Makefile.include:556: recipe for target 'flash' failed
make: *** [flash] Error 1
```
</details>

<details><summary>No warning on other boards, like `iotlab-m3`</summary>

```
BOARD=iotlab-m3 RIOT_CI_BUILD=1 make --no-print-directory -C examples/hello-world/ flash
Building application "hello-world" for "iotlab-m3" with MCU "stm32f1".

   text    data     bss     dec     hex filename
   8168     120    2556   10844    2a5c /home/harter/work/git/RIOT/examples/hello-world/bin/iotlab-m3/hello-world.elf
/home/harter/work/git/RIOT/dist/tools/openocd/openocd.sh flash /home/harter/work/git/RIOT/examples/hello-world/bin/iotlab-m3/hello-world.elf
### Flashing Target ###
GNU MCU Eclipse 64-bit Open On-Chip Debugger 0.10.0+dev-00462-gdd1d90111 (2019-01-18-11:37)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
none separate
cortex_m reset_config sysresetreq
trst_and_srst separate srst_nogate trst_push_pull srst_open_drain connect_assert_srst
Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6010, description '*', serial '*' at bus location '*'

/home/harter/work/git/RIOT/examples/hello-world/../../Makefile.include:556: recipe for target 'flash' failed
make: *** [flash] Error 1
```
</details>

-- 
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/12157#issuecomment-527421772
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190903/c7195352/attachment.htm>


More information about the notifications mailing list