我正在使用STM32CubIDE 1.7.0中的BLE_AT_CLIENT示例,但在ST BLE SENSOR应用程序或我的计算机/智能手机正常蓝牙扫描中未检测到任何内容。我有2个B-U585I-IOT02A,两者在teratent上都给出了完全相同的错误消息。太赫兹上的错误消息
这里还有来自控制台的日志。
STMicroelectronics ST-LINK GDB server. Version 5.9.1
Copyright (c) 2021, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
InitWhile : Enabled
Waiting for debugger connection...
Debugger connected
-------------------------------------------------------------------
STM32CubeProgrammer v2.8.0
-------------------------------------------------------------------
ST-LINK SN : 004000204741500320383733
ST-LINK FW : V3J8M3
Board : B-U585I-IOT02A
Voltage : 3.30V
SWD freq : 24000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x482
Revision ID : Rev Z
Reconnecting with the recommended frequency (1000 kHz)!
ST-LINK SN : 004000204741500320383733
ST-LINK FW : V3J8M3
Board : B-U585I-IOT02A
Voltage : 3.30V
SWD freq : 1000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x482
Revision ID : Rev Z
Reconnected with the recommended frequency (3300 kHz)!
Device name : STM32U575/STM32U585
Flash size : 2 MBytes
Device type : MCU
Device CPU : Cortex-M33
BL Version : 0xc0
Debug in Low Power mode enabled
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a11156.srec
File : ST-LINK_GDB_server_a11156.srec
Size : 39248 Bytes
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 4]
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:00.757
Verifying ...
Download verified successfully
Debugger connection lost.
Shutting down...
我刚刚想好如何解决这个问题,首先我必须将STM32WB5MMG固件重新闪存到最新版本,并从https://github.com/STMicroelectronics/STM32CubeWB
不要使用库二进制文件中的BLE_AT_Server.hex,它会禁用swd连接,如果你碰巧这样做,并且无法再连接到板上,只需将stm32编程器模式更改为欠重置,然后按下蓝牙模块的重置按钮并释放它,它将允许你连接到蓝牙模块并擦除程序。
在那之后,我遇到了另一个问题,有时程序会挂在";TX:AT";,为了解决这个问题,我必须重置蓝牙模块,然后重置主板,或者简单地重置主板并重新插入usb电缆。