[riot-notifications] [RIOT-OS/RIOT] stm3l4: can't flash bin files (#11179)

Gaƫtan Harter notifications at github.com
Thu Mar 14 12:23:18 CET 2019

Found a way ! it needs to run `init` though so that `flash probe` works.
I tested it last time but was always getting `invalid subcommands` and did not investigate further.

Thanks for mentioning again the `probe` name :)

It would need debugging to see the edge cases, like if `reset` is needed too.

``` diff
diff --git a/dist/tools/openocd/openocd.sh b/dist/tools/openocd/openocd.sh
index c59a1939a..2a5f1afea 100755
--- a/dist/tools/openocd/openocd.sh
+++ b/dist/tools/openocd/openocd.sh
@@ -193,6 +193,8 @@ _flash_list() {
     sh -c "${OPENOCD} \
             ${OPENOCD_ADAPTER_INIT} \
             -f '${OPENOCD_CONFIG}' \
+            -c 'init' \
+            -c 'flash probe 0' \
             -c 'flash list' \
             -c 'shutdown'" 2>&1 | _split_banks

I tested it with the `stm32f3discovery` and `riotboot` now works:

FEATURES_PROVIDED+=riotboot BOARD=stm32f3discovery make -C tests/riotboot flash test

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190314/e75d628d/attachment.html>

More information about the notifications mailing list