[riot-notifications] [RIOT-OS/RIOT] boards/stm32: generalize use of connect_assert_srst for flashing (#12158)

Francisco notifications at github.com
Fri Sep 13 09:32:51 CEST 2019


I'm having some flashing issues with a couple of boards, not sure if the issue is on my CI or `OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ` is not enough for all cases. 

```
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 : Unable to match requested speed 500 kHz, using 480 kHz
Info : Unable to match requested speed 500 kHz, using 480 kHz
Info : clock speed 480 kHz
Error: libusb_open() failed with LIBUSB_ERROR_ACCESS
Info : STLINK v2 JTAG v28 API v2 SWIM v18 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.256693
Info : stm32l4x.cpu: hardware has 6 breakpoints, 4 watchpoints
    TargetName         Type       Endian TapName            State
--  ------------------ ---------- ------ ------------------ ------------
 0* stm32l4x.cpu       hla_target little stm32l4x.cpu       running
Info : Unable to match requested speed 500 kHz, using 480 kHz
Info : Unable to match requested speed 500 kHz, using 480 kHz
adapter speed: 480 kHz
Error: timed out while waiting for target halted
TARGET: stm32l4x.cpu - Not halted
in procedure 'reset'
in procedure 'ocd_bouncer'
```

I had to add `-c 'reset_config none separate'` for it to work for `nucleo-f103rb`, `nucleo-l432kc`. This seems weird to me (but adding this ruins the setup for other boards), I don't know why they couldn't be halted although I could see that `assert_rst` was being called.

I'm also unable to flash `nucleo-l073rz` I'm unable to halt it.

```
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
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: libusb_open() failed with LIBUSB_ERROR_ACCESS
Info : STLINK v2 JTAG v28 API v2 SWIM v17 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.252071
Info : stm32l0.cpu: hardware has 4 breakpoints, 2 watchpoints
    TargetName         Type       Endian TapName            State       
--  ------------------ ---------- ------ ------------------ ------------
 0* stm32l0.cpu        hla_target little stm32l0.cpu        running
Info : Unable to match requested speed 300 kHz, using 240 kHz
Info : Unable to match requested speed 300 kHz, using 240 kHz
adapter speed: 240 kHz
Error: timed out while waiting for target halted
TARGET: stm32l0.cpu - Not halted
in procedure 'reset' 
in procedure 'ocd_bouncer'


```

-- 
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/12158#issuecomment-531132241
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190913/380f0c08/attachment-0001.htm>


More information about the notifications mailing list