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: No i2c slave interrupt

Other Parts Discussed in Thread: TM4C1294NCPDT

Tool/software: TI-RTOS

Hello,I am using TM4C1294NCPDT,and I want to do a I2c slave,when I use the poll mode to read the I2CSlaveStatus reg,it returns 5,and the I2CSlaveIntStatusEx reg ,it returns 3.But the problem is if I use the interrupt mode,it does't work,that is no interrupt occured.

I have refered the loopback example in ti/TivaWare_C_Series2.0/examples/peripherals/i2c.I have tried both in ccs with ti-rtos and keil,They worked the same.

  • The TI-RTOS module manages the creation of the interrupts. You cannot supply the vector table like you do in the bare-metal TivaWare examples. Additionally, you cannot use the TivaWare module to create interrupts. Take a look at the C:\ti\tirtos_tivac_2_16_01_14\products\tidrivers_tivac_2_16_01_13\packages\ti\drivers\i2c\I2CTiva.c file and see how the Hwi module is used to create the interrupt.
  • Hello,Thank you for reply.
    I have used the hwi to do the interrupt work,I use the I2C0,the interrupt number is 24,the event number and priority left -1.Is there anything else I need to do?