bug report in auto generated code

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

bug report in auto generated code

886件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
1 返信

698件の閲覧回数
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 件の賞賛
返信