cancel
Showing results for 
Search instead for 
Did you mean: 

Device not found BLE after copying project

NicRoberts
Senior II

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?

1 ACCEPTED SOLUTION

Accepted Solutions
NicRoberts
Senior II

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.

 

View solution in original post

2 REPLIES 2
STTwo-32
ST Employee

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

NicRoberts
Senior II

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.