我有stm32核板wb55rg,并试图在其中闪现一些例子,比如闪烁和一个定制的示例,但是当我试图在构建它之后将项目闪现到板中时,我会得到同样的错误(超时等待目标半边),我不知道如何处理它。我在网上搜索,发现了一些关于强迫症的信息,但我并没有真正理解。我不只是使用STMCubeIDE的样本盲。有人能帮我吗?我使用VM box中的linux和来自zephyr的一个简单的盲点示例。
My steps are:
west build -b nucleo_wb55rg samples/basic/blinky ( building project )
west flash 错误信息
-- west flash: rebuilding
[0/1] cd /home/nikos/Desktop/my_try/bu.../cmake/flash && /usr/bin/cmake -E echo
-- west flash: using runner openocd
-- runners.openocd: Flashing file: /home/nikos/Desktop/my_try/build/zephyr/zephyr.hex
Open On-Chip Debugger 0.10.0+dev-01508-gf79c90268-dirty (2021-03-26-16:13)
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
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : clock speed 500 kHz
Info : STLINK V2J37M26 (API v2) VID:PID 0483:374B
Info : Target voltage: 3.229148
Info : stm32wbx.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : starting gdb server for stm32wbx.cpu on 3333
Info : Listening on port 3333 for gdb connections
TargetName Type Endian TapName State
-- ------------------ ---------- ------ ------------------ ------------
0* stm32wbx.cpu hla_target little stm32wbx.cpu running
Info : Unable to match requested speed 500 kHz, using 480 kHz
Info : Unable to match requested speed 500 kHz, using 480 kHz
Error: timed out while waiting for target halted
TARGET: stm32wbx.cpu - Not halted
FATAL ERROR: command exited with status 1: /home/nikos/zephyr-sdk-0.12.4/sysroots/x86_64-pokysdk-linux/usr/bin/openocd -s /home/nikos/zephyrproject/zephyr/boards/arm/nucleo_wb55rg/support -s /home/nikos/zephyr-sdk-0.12.4/sysroots/x86_64-pokysdk-linux/usr/share/openocd/scripts -f /home/nikos/zephyrproject/zephyr/boards/arm/nucleo_wb55rg/support/openocd.cfg -c init -c targets -c 'reset halt' -c 'flash write_image erase /home/nikos/Desktop/my_try/build/zephyr/zephyr.hex' -c 'reset halt' -c 'verify_image /home/nikos/Desktop/my_try/build/zephyr/zephyr.hex' -c 'reset run' -c shutdown发布于 2021-08-11 21:04:47
我发现了这个问题的问题。这个板是用的,它以前的主人改变了一些图钉在板上。因此,我搜索stm32wb55rg的默认引脚,并在设置默认引脚时解决了错误。非常感谢所有回复这篇文章的人,以帮助我了解到底发生了什么。
https://stackoverflow.com/questions/68704671
复制相似问题