我正在使用 STM32CubeIDE 1.7.0 中的 BLE_AT_CLIENT 示例,但在 ST BLE SENSOR 应用程序或我的计算机/智能手机正常蓝牙扫描上未检测到任何内容。我有 2 个 B-U585I-IOT02A,两者在 teraterm 上都给出了完全相同的错误消息。
这也是来自控制台的日志。
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_reference.hex不要使用库二进制文件中的 BLE_AT_Server.hex,它将禁用 SWD 连接,如果您碰巧这样做并且无法再连接到开发板,只需将 stm32programmer 模式更改为复位状态,然后按复位按钮即可蓝牙模块并释放它,它会让您连接到蓝牙模块并擦除程序。
之后我遇到了另一个问题,有时程序会挂在“TX : AT”处,为了解决这个问题,我必须重置蓝牙模块,然后重置主板,或者简单地重置主板并重新插入USB线.
您有如何将 STM32 B-U585I-IOT02A 连接到蓝牙的指南吗?有起始代码吗?我从头开始,想知道您是否有任何见解。预先感谢您。