cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB55 seems to hang after the HW_Timeserver starts (or the timer expires).

EKoss.1
Associate II

Hello,

I have setup a project using the Custom P2P server settings. When I add the HW_time server to it, the code hangs. I have one project in which the code gets into the infinite loop (when debuggin) and I have setup a project with minimalistic use of these functions which gets stuck in the HardFaultHandler (after subscriping to the BLE notification characteristic (which starts the HW_TS).

The strange thing about this is that I had the minimalistic project running without issues until I've re-generated the CubeMX project (without making any changes).

I have made a github repo which can be viewed what I've done:

https://github.com/E-Emiel/TimeServerV1

perhaps this issue is related to issue:

https://community.st.com/s/question/0D53W00001K2koYSAR/hwtimerserver-hangs-on-stm32wb-w-ble?t=1645623930307

1 REPLY 1
EKoss.1
Associate II

I've noticed that the time before getting in the hardfault is related to the time that is set at the timeserver:

HW_TS_Start(Custom_App_Context.Update_timer_Id, TEMPERATURE_CHANGE_PERIOD);

So when changing the TEMPERATURE_CHANGE_PERIOD to about 10s it takes that time before it hangs in the handler.

Regards