This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

For start-up time of CC2540

Other Parts Discussed in Thread: CC2540

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?

 

  • If you want a task to be done at boot-up before starting the OSAL tasks, you can add them to the main file after HALDriverInit(). 

    When you comment out LLProcessEvent, I don't think the radio will start correctly. 

    Peder

  • Hi,Peder.

     

    Thank you for reply.

    LLProcessEvent has been commented out for confirmation.

     

     

    >If you want a task to be done at boot-up before starting the OSAL tasks, you can add them to the main file after >HALDriverInit().

     

    After the code HALDriverinit(),

    What do I want to add it?

    Is there such as some sample code?

     

    Best Regards,

    hamada