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.

CC2541 - KeyFob - POWER_SAVING macro removal leads to advertisement issues.

Other Parts Discussed in Thread: CC2541

Hi All,


I am using KeyFob project for BLE data communication from android to CC2541 and also integrated UART part in this project. To make the UART work I removed the macro POWER_SAVING macro from the pre processor list. Both are somehow non reliably working fine. The issues which I am facing are:

@ BLE advertisement stops after every 6 seconds once it connected with android device and within a few seconds again it starts advertising. This problem is there continuously.

@ After receiving the data from Android I am trying to push the data into UART. By this time UART is taking only around 220 bytes.

 

But once if it again starts advertising again I am able to send data and push data to the UART.

Please anyone can help to rule out the problems which I have hoghlighted.

Thanks in advance.

-Yasar Arafath

  • Hi Yasar, 

    Can you run with the debugger connected, halt it when it stops advertising to see the program counter and call stack?

    Peder

  • Hi Peder,


    Thank you for your reply.


    I am doing it with debugger connected. But at the time it is not automatically breaking or crashing anywhere.


    So whether I have to intentionally do break and check SP & PC at the time of advertisement stops?


    -Yasar Arafath.

  • Hi Yasar, 

    Yes, you have to halt the device immediately after it stops advertising. 

    Peder

  • Hi Peder,

    I have taken the screenshot of both call stack and program counter during both on connectivity and after disconnected automatically.

    I want to share those screenshot with you for your reference.

    Here in TI community I am not finding any option to load the attachment.

    Will you please guide me how to upload otherwise how to share that with you?

    Waiting for your reply.

    Also I am taken the text from the Call Stack and Program Counter windows and pasting it here.

    During advertisement:

    Call Stack :
    HalUARTRXAvailDMA
    HalUARTPollDMA
    Hal_ProcessPoll
    Osal_run_system
    Osal_start_system
    Main
    [?call_main + 0xb]
    PC :
    0x89D3

    After disconnected automatically :

    Call Stack :
    [?BANKED_ENTER_XDATA + 0x2f]
    PC :
    0x1958


    Thanking you,
    -Yasar Arafath.