[riot-notifications] [RIOT-OS/RIOT] boards/common/stm32l0: use dual bank with openocd if available (#11174)

Gaëtan Harter notifications at github.com
Wed Mar 20 18:38:08 CET 2019


I did not test the functionnality with `lua_basic` but I get the message when using an older version:

```
PATH=/usr/bin:${PATH} make BOARD=b-l072z-lrwan1 -C examples/lua_basic/ flash-only
make: Entering directory '/home/harter/work/git/RIOT/examples/lua_basic'
/home/harter/work/git/RIOT/dist/tools/openocd/openocd.sh flash /home/harter/work/git/RIOT/examples/lua_basic/bin/b-l072z-lrwan1/lua_basic.elf
### Flashing Target ###
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
hla_swd
WARNING: Your Openocd version does not support dual bank flash on your board. Falling back to single bank flashing.
adapter speed: 300 kHz
adapter_nsrst_delay: 100
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
none separate
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : Unable to match requested speed 300 kHz, using 240 kHz
Info : Unable to match requested speed 300 kHz, using 240 kHz
Info : clock speed 240 kHz
Error: open failed
/home/harter/work/git/RIOT/boards/common/stm32/dist/stm32l0.cfg:3: Error: 
in procedure 'init' 
in procedure 'ocd_bouncer' 
at file "/home/harter/work/git/RIOT/boards/common/stm32/dist/stm32l0.cfg", line 3
/home/harter/work/git/RIOT/boards/common/stm32/dist/stm32l0.cfg:3: Error: 
at file "/home/harter/work/git/RIOT/boards/common/stm32/dist/stm32l0.cfg", line 3
/home/harter/work/git/RIOT/examples/lua_basic/../../Makefile.include:541: recipe for target 'flash-only' failed
make: *** [flash-only] Error 1
make: Leaving directory '/home/harter/work/git/RIOT/examples/lua_basic'
```

And do not in a newer one (except another unrelated to this PR warning).
It also shows the warning format is similar to a "standard" openocd warning message.

```
make BOARD=b-l072z-lrwan1 -C examples/lua_basic/ flash-only
make: Entering directory '/home/harter/work/git/RIOT/examples/lua_basic'
/home/harter/work/git/RIOT/dist/tools/openocd/openocd.sh flash /home/harter/work/git/RIOT/examples/lua_basic/bin/b-l072z-lrwan1/lua_basic.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
adapter speed: 300 kHz
adapter_nsrst_delay: 100
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
none separate
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : clock speed 300 kHz
Error: open failed


/home/harter/work/git/RIOT/examples/lua_basic/../../Makefile.include:541: recipe for target 'flash-only' failed
make: *** [flash-only] Error 1
make: Leaving directory '/home/harter/work/git/RIOT/examples/lua_basic'
```

-- 
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/11174#issuecomment-474949733
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190320/e73f2760/attachment.html>


More information about the notifications mailing list