I refer to the application note (SWRA347a), I'm sure the time CC2540 After starting and going to power saving mode for the first time.
●Evaluation environment
Hardware : CC2540 keyfob
software : KeyFobDemo(BLE-CC254x-1.4.0)
●Measuring method
application note (SWRA347a) 4 Test Setup
(Stabilized power supply use)
●check result
yellow : voltage side of stabilized power supply
green : Voltage side of Keyfob
(1)Measurement results of the sample code CC2540 keyfob
It took approximately 598ms until it enters (PM2) power saving mode from the first power-up.
(2)Measurement result of the modified code from the sample code CC2540 keyfob
It took approximately 198ms until it enters (PM2) power saving mode from the first power-up.
As fixes,
I have commented out the LL_ProcessEvent tasksArr of OSAL_KeyFobDemo.c.
From the measurement results,
It has been inferred that rests approximately 400ms before entering power-saving mode from power-up in the code of the Link Layer.
Although I think that time has applied to the initialization of the protocol stack,
Is there a way to start early?