So I’m trying to start a debug session, but it seems that pyOCD can’t locate my board (Nucleo F401RE). I compiled the blinky example from the getting started session, and I can see the led blinking and serial output using minicom. But when i try to start a debug session with yt debug blinky all i get is:
info: found blinky at source/blinky
info: preparing PyOCD gdbserver...
info: finding connected board...
No connected boards
error: failed to find a connected board
error: failed to launch debugger: gdb server failed to start
project files have been generated in: source
Tried on both WIndows 7 and ubuntu 14.04. Is it necessary to install any additional driver so I can get this working?
Unfortunately, almost none of ST boards are supported by pyOCD. There is support for some ST chips, but you need a different firmware. Nucleo F401RE has ST-LINK. Therefore you should look at for instance openOCD or stlink open source gdb implementation. None of these two are currently supported by yt debug (= valinor + project generator).
I’m using OpenOCD and it works great. At first I had a hard time finding the right .elf file to flash the board with.
Just in case someone else is having the same problem, the path to the debugable .elf file is located at <project_root>\build\<target>\source\ , a file with no extension at all.
Is there any plan to add support for ST board to default yt debug?