bug report in auto generated code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

bug report in auto generated code

405 Views
rqbh
Contributor III

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

Labels (1)
0 Kudos
1 Reply

217 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos