Skip to main content
Senior III
September 1, 2025
Solved

Device not found BLE after copying project

  • September 1, 2025
  • 2 replies
  • 1071 views

CubeIDE, P-Nucleo STM32WB55

 

I have a BLE project that works, it sends data from 2 temperature sensors & 2 accelerometers (x, y & z for each)

Within Cube I copied the project then pasted with a new name.

Added some code to take 1000 samples of the accelerometer data and calculate the mean for each axis on each sensor. That's the only addition to the code, everything else is exactly the same.

Compiles & gets on the board with no issues.

Check the serial debug, all senors up & running, averaging is working just fine

The device just doesn't show up when scanning BLE devices.

 

Revert to previous project & there it is advertising as it should. reflash.... nope no such device.

What's going on there?

Best answer by NicRoberts

Found it, the interrupt that triggers the BLE to transmit every second resets & triggers before the sensor data has been prepared for transmitting. I have no idea why this disrupts the devices discoverability though other than it does.

 

2 replies

STTwo-32
Technical Moderator
September 1, 2025

Hello @NicRoberts 

Could you please try to debug your code to understand what is not working exactly. You may also follow the logs from the serial monitor of your node to understand where exactly the code is blocked.

Best Regards.

STTwo-32

NicRobertsAuthorBest answer
Senior III
September 5, 2025

Found it, the interrupt that triggers the BLE to transmit every second resets & triggers before the sensor data has been prepared for transmitting. I have no idea why this disrupts the devices discoverability though other than it does.