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.

TDA2HG: tda2 rtos i2c enable issue

Part Number: TDA2HG
Other Parts Discussed in Thread: TDA2

Hi team,

Here's an issue from the customer may need your help:

Regarding TDA2 M4 I2C,  bsp_device.c / bsp_deviceI2c.c / bsp_boardTda2xx.c has been modified. The interrupt is in the system_bsp_init.c file according to the chip manual. The customer tries to enable 12C2 on rtos, and

the problem is as follows:


[HOST] [IPU1-0] 4.918440 s:
[HOST] [IPU1-0] 4.918471 s: ### XDC ASSERT - ERROR CALLBACK START ###
[HOST] [IPU1-0] 4.918562 s:
[HOST] [IPU1-0] 4.918684 s: E_notFound: i2c2 name not found
[HOST] [IPU1-0] 4.918745 s:
[HOST] [IPU1-0] 4.918776 s: ### XDC ASSERT - ERROR CALLBACK END ###

SDK:  03.08.00.  PDK: pdk_01_10_04_05. Under the bsp_boardTda2xx.c file, modify as follows:

static Bsp_BoardI2cData gBoardTda2xxI2cData =
{
/* numI2c */
(sizeof (gBoardTda2xxI2cInstData) / sizeof (Bsp_BoardI2cInstData)),
/* i2cData */
gBoardTda2xxI2cInstData,
/* probeInstId */
#if defined (SOC_TDA2PX)
BSP_DEVICE_I2C_INST_ID_4,
#else
BSP_DEVICE_I2C_INST_ID_2,
#endif
};

Changing BSP_DEVICE_I2C_INST_ID_1 into BSP_DEVICE_I2C_INST_ID_2

Interrupt configuration: system_bsp_init.c is modified as follows:

* XBAR I2C5_IRQ to IPU1_42 - I2C5_IRQ (55 or 0x37)
*/
BspOsal_irqXbarConnect(XBAR_INST_IPU1_IRQ_41, 51);
BspOsal_irqXbarConnect(XBAR_INST_IPU1_IRQ_42, 52);
BspOsal_irqXbarConnect(XBAR_INST_IPU1_IRQ_42, 55);
#endif
/* XBAR I2C4_IRQ (57) to IPU1_48 */

Added BspOsal_irqXbarConnect(XBAR_INST_IPU1_IRQ_42, 52);

Could you help check this case? Thanks.

Best Regards,

Cherry