[Bug Fix]Fixed issue with I2C tests failing on Main Domain R5 Cores
[processor-sdk/pdk.git] / packages / ti / drv / i2c / test / eeprom_read / src / main_test.c
index 8bcaa1c78a0036163679c27052d033fb4815d816..c4c272aa8ca3f1aa2f91547ae7692bd03946219c 100755 (executable)
@@ -225,7 +225,14 @@ bool Board_initI2C(void)
          * Pulsar R5 core is on the Main domain, use the Main Pulsar
          * interrupt router
          */
-        i2c_cfg.intNum = I2C_INST_WKUP_I2C0_INT_NUM_MAIN;
+        if(info.cpuID == 0U)
+        {
+            i2c_cfg.intNum = I2C_INST_WKUP_I2C0_INT_NUM_MAIN;
+        }
+        else
+        {
+            i2c_cfg.intNum = I2C_INST_WKUP_I2C0_INT_NUM_MAIN + 128U;
+        }
     }
     else
     {