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.

RTOS: UART RX stops fiering events after re initializing I2C

Other Parts Discussed in Thread: CC2640R2F

Tool/software: TI-RTOS

Hi,

I am having a hard time with TI API and drivers... I am having a complicated issue.

My device talks to a battery via I2C (SMBUS)... From time to time due to electrical noise the battery starts

sending garbage data. After lots of work I finally was able to add re Init_I2C call on that. The comunication

with the I2C (battery) is restored but for some reason my UART stops receiving data.

SDK and compiler are the latest !!.

I triad clearing UART interrupts, I triad clearing UART errors (if any) .. what ever I do the RX is not fireing events,

UART TX works fine.

Any ideas what to do ?

BR,

Noam.

  • Hello,

    What device are you working on? Have you verified just UART operation using any of the TI examples?

    Regards,
  • Hi,

    I am using CC2640R2F ...

    Actually I found the cause of the problem and it is not related to the I2C :-(

    We have electrical motors in our device (its a robot). When I start the big motor that causes lots of

    electrical noise, the UART stops receiving data. That is only in a project that I migrated the SDK.

    It looks like the migration was not so simple as I had in mind. I have replaced the SDK, updated all the path etc..

    The code compiles and beside two warnings it looks OK. It looks like the the I2C and wireless works good. 

    The only problem observed so far is the one related to the UART.

    I will start with a simple example with a UART and see what is going on there...

    Thanks,

    Noam.