I’m trying to flash a custom SW into the Pixhawk 3 Pro FMU debug port but I can’t manage to do it.
- ST-LINK v2
- a debug adapter (scavanged from a crazyflie but I would expect it to be just a wiring adaptation that should work as long as the connectors are the same) => Crazyflie debug adapter
- open-ocd software to flash
I end up with an error as shown below, just like if I wasn’t connected at all:
Open On-Chip Debugger 0.10.0 Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD adapter speed: 2000 kHz adapter_nsrst_delay: 100 none separate Info : Unable to match requested speed 2000 kHz, using 1800 kHz Info : Unable to match requested speed 2000 kHz, using 1800 kHz Info : clock speed 1800 kHz Info : STLINK v2 JTAG v28 API v2 SWIM v6 VID 0x0483 PID 0x3748 Info : using stlink api v2 Info : Target voltage: 3.291700 Error: init mode failed (unable to connect to the target) in procedure 'program' in procedure 'init' called at file "embedded:startup.tcl", line 495 in procedure 'ocd_bouncer' ** OpenOCD init failed ** shutdown command invoked
Am I missing something ? Should the debug adapter be a specific one ?