Olimex Lora-STM32WL-devkit遇ST设备验证失败,如何确认器件真伪?
Olimex Lora-STM32WL-devkit未被识别为正版ST设备的问题排查
我在使用STM32CubeIDE对Olimex Lora-STM32WL-devkit(Rev.D)的示例代码进行编译、修改和调试时,遇到设备未被识别为正版ST设备的问题,同时OpenOCD显示芯片版本为unknown,调试连接频繁断开。
OpenOCD启动日志
openocd -f interface/cmsis-dap.cfg -c "cmsis_dap_vid_pid 0x15ba 0x0044" -c "transport select swd" -c "adapter speed 1000" -f "target/stm32wlx.cfg" Open On-Chip Debugger 0.12.0 (2023-06-21) [https://github.com/sysprogs/openocd] Licensed under GNU GPL v2 libusb1 09e75e98b4d9ea7909e8837b7a3f00dda4589dc3 For bug reports, read http://openocd.org/doc/doxygen/bugs.html swd adapter speed: 1000 kHz none separate Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Info : CMSIS-DAP: SWD supported Info : CMSIS-DAP: FW Version = 1.0 Info : CMSIS-DAP: Interface Initialised (SWD) Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1 Info : CMSIS-DAP: Interface ready Info : clock speed 500 kHz Info : SWD DPIDR 0x6ba02477 Info : [stm32wlx.cpu0] Cortex-M4 r0p1 processor detected Info : [stm32wlx.cpu0] target has 6 breakpoints, 4 watchpoints Info : starting gdb server for stm32wlx.cpu0 on 3333 Info : Listening on port 3333 for gdb connections
日志中显示STM32WLE/WL5x - 版本'unknown' : 0x1001,疑问:显示unknown是否属于异常情况?
调试(F11)时的OpenOCD日志
OpenOCD: Info : accepting 'gdb' connection on tcp/3333 Info : device idcode = 0x10016497 (STM32WLE/WL5x - Rev 'unknown' : 0x1001) Info : RDP level 0 (0xAA) Info : flash size = 256 KiB Info : flash mode : single-bank Info : device idcode = 0x10016497 (STM32WLE/WL5x - Rev 'unknown' : 0x1001) Info : RDP level 0 (0xAA) Info : OTP size is 1024 bytes, base address is 0x1fff7000 undefined debug reason 8 (UNDEFINED) - target needs reset Info : dropped 'gdb' connection (error -400) Info : accepting 'gdb' connection on tcp/3333 undefined debug reason 8 (UNDEFINED) - target needs reset Info : dropped 'gdb' connection (error -400)
此时STM32CubeIDE弹出提示:Could not verify ST device! Please verify that the latest version of the GDB-server is used for the connection.
使用环境
- STM32CubeIDE v1.12.1
- Olimex Lora-STM32WL-devkit Rev. D
- OpenOCD v0.12.0
核心疑问
- OpenOCD显示芯片版本为
unknown是否异常? - 如何确认我的Olimex Lora-STM32WL-devkit是否为正品?
内容的提问来源于stack exchange,提问作者JeanBonnot
相关产品推荐
相关产品推荐

