Part Number: MSP432P401R
Hello! I'm using the Fuel Tank MKII Battery BoosterPack Plug-In Module with a MSP-EXP432P401R Rev. 2.1 Launchpad.
I want to modify the MSP432 Simplelink SDK 1.40.1.00 (boostxl_batpakmkii_fuelgauge_MSP_EXP432P401R_nortos_ccs), to use I2C transmit interrupts in order for the CPU to sleep until the buffer is available for transmission. I've attached my project and I mention that it is a modified version of the example, according to this forum post.
The problem is that TX interrupt is never generated (although it is enabled), and thus my flag (i2cTxFlag) is not set and the program hangs (see I2C_read16() in HAL_I2C.c).
Does anybody know what I am doing wrong? Are I2C TX interrupts generated when the buffer is empty or after a transmission?