SPC56EC64 MCU is resetting while using I2C moule.
We are using I2C of SPC56EC64 MCU to communicate with bq25798 battery charger IC.
Communication is successfully done and we are also getting data from Charger.But whenever we do software reset of SPC56 MCU using below line of code mcu stuck in reset mode and it's RESET pin remains low.
asm volatile ("wrteei 0" : : : "memory");
ME.IS.R = 5;
ME.MCTL.R = 0x00005AF0;
ME.MCTL.R = 0x0000A50F;Also before doing rest i deinit i2c module too using below code.
i2c_lld_stop();
i2c_lld_deinit();We use bootloader also with this application.So i have configures I2C module in bootloader code also but whenever we do software reset MCU stuck in RESET.
So it would be helpful if anyone could guide on this.
#[SPC5 Automotive MCUs] @Erwan YVIN
