Here is the auto generated code from PE with KSDK for KL46
OSA_InstallIntHandler(I2C0_IRQn, i2cCom1_IRQHandler);
I2C_DRV_MasterInit(FSL_I2CCOM1, &i2cCom1_MasterState);
I2C_DRV_MasterSetBaudRate(FSL_I2CCOM1, &i2cCom1_MasterConfig0);
NVIC_SetPriority(I2C0_IRQn, 64U);
the problem is in NVIC_SetPriority(); the function do the bit left move for priority, so the 64 should be 1 or 0x01
Hello kevin:
Thank you for catching this, I already reported it internally to our developers (ticket PEXMCU-1414).
We are sorry if this caused an inconvenient.
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------