2024-05-22 11:19 PM - edited 2024-05-22 11:26 PM
I have succesfully implemented my own BLE advertisement (LEGACY) using the STM32WB55 MCU.
I have attached my code below.
In a nutshell I have created three timers and two tasks.
When the Heartbeat timer expires it calls the Heartbeat function:
This then sets a tasks:
This then runs the Advertisement function
Basically everything works as expected the timers fire in the defined times set, the LEDs blink as defined, the advertisements go of as expected as well.
However the ISSUE :(
When I set the CFG_LPM_SUPPORTED to 1 the problems come up
Firstly the timers seems to be functional. However the LD2 (Green LED) which comes on when the radio activity event is called does not gets called. Because the LD2 never comes on. This is found here in the SVCCTL_UserEvtFlowStatus_t SVCCTL_App_Notification(void *p_Pckt) function:
The only thing that sorts of solves my issues is by adding a delay in the
static void APPE_SysEvtReadyProcessing(void * pPayload).
Please note if I change CFG_LPM_SUPPORTED back to 0 then everything works perfectly.
Solved! Go to Solution.
2024-05-23 02:50 AM
I applied one of the clocks in the Clock Configuration incorrectly. I applied the fixed and it now works as expected even in LOW POWER MODE.
2024-05-23 02:50 AM
I applied one of the clocks in the Clock Configuration incorrectly. I applied the fixed and it now works as expected even in LOW POWER MODE.