0. See inline notes above^^^Hello, I've been trying to flash ES2 dash with my nucleo64 (nucleo-l476rg) external st-link. It is using st-link v2-1, which should be backwards compatible, from what I've read. I've followed instructions and tried to use 2 different win10 machines to do it, with same result. Any ideas what to do?
C:\Users\Sonia\Downloads\openocd-0.10.0\openocd-0.10.0>.\bin-x64\openocd.exe -f .\scripts\interface\stlink-v2-1.cfg -f .\scripts\target\nrf51.cfg
Open On-Chip Debugger 0.10.0
<...>
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : STLINK v2 JTAG v28 API v2 SWIM v17 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.259513
Info : nrf51.cpu: hardware has 4 breakpoints, 2 watchpoints -------> Every time I've gotten here, things are working.
image of my nucleo setup:
https://photos.app.goo.gl/tHSRanzgBJnmQozq8
1. Try stlink-v2, heres the diff:
Code: Select all
diff -y stlink-v2.cfg stlink-v2-1.cfg
# #
# STMicroelectronics ST-LINK/V2 in-circuit debugger/programme | # STMicroelectronics ST-LINK/V2-1 in-circuit debugger/program
# #
interface hla interface hla
hla_layout stlink hla_layout stlink
hla_device_desc "ST-LINK/V2" | hla_device_desc "ST-LINK/V2-1"
hla_vid_pid 0x0483 0x3748 | hla_vid_pid 0x0483 0x374b
>>>The Nucleo is backward compat to v2 or the cfg file?
2. Make sure other USB devices are unplugged just to remove potential conflict. Think simple setup. It is crazy what can cause conflicts.
Also they recommend some side app that helps with USB drivers.
Ref#1: https://stackoverflow.com/questions/410 ... -supported
3. When I was researching using a Nucleo board, it seems that you only need to use one half of the hardware for debugging/programming at this simple level, this may somehow be related to the issue you are facing, though I don't have experience on them yet.
4. Here's what my openocd looks like when connected to STLINK usb adapter, and successfully connected to ESC (i think it is virtually identical to the dash programming)
Code: Select all
openocd -f /usr/local/share/openocd/scripts/interface/stlink-v2.cfg -f /usr/local/share/openocd/scripts/target/stm32f1x.cfg
Open On-Chip Debugger 0.10.0
<...truncated for brevity...>
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
none separate
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Info : STLINK v2 JTAG v17 API v2 SWIM v4 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.243329
Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints
Code: Select all
telnet 127.0.0.1 4444
What happens then? Should either say accepting telnet connections or some other error. May help next steps.
Peace~