cancel
Showing results for 
Search instead for 
Did you mean: 

Troubleshooting STM32CubeIDE debug instability during iOS BLE data streaming

pranap78464
Visitor

Hi everyone,

I’m currently working on a firmware project using an STM32H7 where I’m streaming sensor data over BLE to a custom mobile interface. I’ve been using STM32CubeIDE for real-time debugging, but I’ve encountered a persistent issue where the debug session drops or the MCU enters a HardFault state when the mobile side initiates a specific high-frequency script execution.

Specifically, I’ve been testing the peripheral's response while an exploit ios environment is active on the connected device to simulate heavy background processing and potential packet collisions. Whenever the iOS side pushes a rapid burst of commands through this setup, the STM32's I2C and SPI interrupts seem to desync, leading to a complete hang of the HAL drivers.

Has anyone else seen issues where the ST-Link connection becomes unstable due to high-bandwidth BLE traffic from an iOS device? I’m trying to figure out if this is a priority inversion problem within my FreeRTOS tasks or if there’s a known limitation with the STM32's internal buffer management when handling non-standard script injections from a mobile client.

Any advice on how to better isolate the BLE stack from the main application logic to prevent these types of crashes during high-load scenarios would be greatly appreciated!

0 REPLIES 0