我曾经使用 St-write 将 .bin 刻录到 STM32F4 并看到了我所期望的消息。现在,我希望了解 GPIO 是如何初始化的。因此,我使用 OpenOCD 和 arm-none-eabi-gdb 来做到这一点。在这里,这是我的过程。
$ minicom
$ openocd -f /opt/openocd/share/openocd/scripts/board/stm32f4discovery.cfg
$ arm-none-eabi-gdb main.elf
(gdb) target remote localhost:3333
(gdb) localhost:3333: Connection timed out.
如何查看 OpenOCD 的端口?为什么会出现超时?