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: Bluetooth® forum

Part Number: CC2541

Hello,

We are using a hardware component that communicates over USART0 (pins : P0.2 and P0.3) of the CC2541 (with DMA=0 and ISR=1).

The main issue that we are facing is when we isolate this component, the i2c will no longer be functional. we have tried to follow where the code is being stuck and i think " halKeyPort2Isr" is not clearing the interrupt or for some reason it is affecting the i2c.

How can we solve these kind of issues?

Regards,

Elie Wakim

  • Part Number: CC2541

    Hello,

    We are using a hardware component that communicates over USART0 ( P0.2 and P0.3) of the CC2541 with DMA=0 and ISR=.

    The main issue that we are facing is when we isolate this component, the i2c will no longer be functional. we have tried to follow where the code is being stuck and i think " halKeyPort2Isr" is not clearing the interrupt or for some reason it is affecting the i2c.

    How can we solve these kind of issues?

    Regards,

    Elie Wakim

  • Hello Elie,

    Which SDK are you using?

    Can you explain the application more in detail?

  • hey,

    Our application is based on the BLE stack provided by TI.

    The issue will occur when we disconnect the sensor that communicates over USART0 from the MCU.

    Whenever this sensor gets physically disconnected, the MCU will not be able to read from the i2c sensor which normally is working fine.

    Breaking the code after it freezes, shows that it is getting stuck at " halKeyPort2Isr" even though we are not using the HAL_KEY driver.

    Thank you in advance.

    Elie W 

  • Hello Elie,

    Have you made any progress?

    How do you disconnect the sensor?

    Do you have any interrupt lines enabled on P2?