2022-05-04 02:15 AM
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:
2022-05-04 02:22 AM
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