cancel
Showing results for 
Search instead for 
Did you mean: 

BLE not working on Stm32wb5mmgh6tr MCU

didac
Associate

Hi,

I'm using a Stm32wb5mmgh6tr embbeded MCU for sharing data wireless via BLE. I just saw on the AN5185 application note document that wireless stack is not installed by default. So I've started FUS and then installed the latest version of the WS with STM32CubeProgrammer. After that, I've started the WS:

Spoiler
10:26:46 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified.
10:26:46 : Warning: Option Byte: nboot0, value: 0x1, was not modified.
10:26:46 : Warning: Option Byte: nboot1, value: 0x1, was not modified.
10:26:46 : Warning: Option Bytes are unchanged, Data won't be downloaded
10:26:46 : Time elapsed during option Bytes configuration: 00:00:00.003
10:26:46 : Succeeded to set nSWboot0=0 nboot1=1 nboot0=1
10:26:46 : Memory Programming ...
10:26:46 : Opening and parsing file: 0x495_FUS_Operator.bin
10:26:46 : File : 0x495_FUS_Operator.bin
10:26:46 : Size : 8.00 KB
10:26:46 : Address : 0x08000000
10:26:46 : Erasing memory corresponding to segment 0:
10:26:46 : Erasing internal memory sectors [0 1]
10:26:46 : Download in Progress:
10:26:46 : File download complete
10:26:46 : Time elapsed during download operation: 00:00:00.292
10:26:46 : Application is running, Please Hold on...
10:26:47 : Reconnecting...
10:26:47 : Reconnected !
10:26:48 : FusStartWS activated successfully
10:26:48 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified.
10:26:48 : Warning: Option Byte: nboot0, value: 0x1, was not modified.
10:26:48 : Warning: Option Byte: nboot1, value: 0x1, was not modified.
10:26:48 : Warning: Option Bytes are unchanged, Data won't be downloaded
10:26:48 : Time elapsed during option Bytes configuration: 00:00:00.000
10:26:48 : Succeeded to set nSWboot0=0 nboot1=1 nboot0=1
10:26:48 : Memory Programming ...
10:26:48 : Opening and parsing file: 0x495_FUS_Operator.bin
10:26:48 : File : 0x495_FUS_Operator.bin
10:26:48 : Size : 8.00 KB
10:26:48 : Address : 0x08000000
10:26:48 : Erasing memory corresponding to segment 0:
10:26:48 : Erasing internal memory sectors [0 1]
10:26:48 : Download in Progress:
10:26:48 : File download complete
10:26:48 : Time elapsed during download operation: 00:00:00.271
10:26:48 : Application is running, Please Hold on...
10:26:49 : Reconnecting...
10:26:50 : Reconnected !
10:26:51 : FusStartWS activated successfully
10:26:51 : Start Wireless Stack command execution finished with success

And I've downloaded BLESensor binary example but it seems that BLE isn't starting since I can't see the BLE device in my phone.

I've checked SBRV Option Bytes value and it's 0x33800, which corresposts to FUS not running. Also I've included here some screenshots of the ST-Link config and FUS version.

Thanks in advance,

Dídac.

1 ACCEPTED SOLUTION

Accepted Solutions
didac
Associate

Just found out that phone must be very close to the PCB, otherwise it doesn't detect it.

View solution in original post

1 REPLY 1
didac
Associate

Just found out that phone must be very close to the PCB, otherwise it doesn't detect it.