rust-embedded / discovery

Discover the world of microcontrollers through Rust!
https://docs.rust-embedded.org/discovery/
Apache License 2.0
1.49k stars 514 forks source link

Verifying installation failed on MacOS #198

Open wusyong opened 5 years ago

wusyong commented 5 years ago

I asked this on book repo yesterday, but it seems it applies to this repo so I would to give it a try. I followed the instructions to install tools needed on MacOS but failed with error like this:

Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
adapter speed: 1000 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
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 v27 API v2 SWIM v15 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 2.933492
Error: init mode failed (unable to connect to the target)
in procedure 'init'
in procedure 'ocd_bouncer'

I have tried steps book and trouble shooting in this repo suggested, but still couldn't find solution either. Does anyone can help?

yerke commented 4 years ago

I just verified installation on MacOS 10.15.4. After I ran openocd -f interface/stlink-v2-1.cfg -f target/stm32f3x.cfg, MacOS asked me if I wanted to allow incoming connections or something similar. I clicked Allow and that was it. It might be why it wasn't working for you.