i2c driver code not generated

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

i2c driver code not generated

跳至解决方案
1,373 次查看
ttahut
Contributor III

I have an existing project on a 55s06 dev board with a working USART (FLEXCOMM0).  I am trying to add an i2c component, FLEXCOMM1, to the build.  I have added the component, assigned the pins, and configured the clocks in the configuration tool but the driver code (fsl_i2c.c and fsl_i2c.h) is not generated and I end up with 'include fsl_i2c.h not found' in peripherals.h. I see the calls for I2C_MasterInit() in FLEXCOMM1_Init in peripherals.c, but that will of course fail to link as I2C_MasterInit() is not located anywhere else that I can find

Is there any way to force the regeneration of the driver code?  Or is there another way to get the driver code? 

 

I have tried top attach the Mex file but get this error when I try "The attachment's phase2-devkit.mex content type (text/html) does not match its file extension and has been removed."

0 项奖励
回复
1 解答
1,359 次查看
ttahut
Contributor III
Thanks for the pointer. It was actually SDK Management->Refresh SDK Components that did the trick for me.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,364 次查看
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello,

I do not know if you try to add the driver, the code driver is not added by the MCUXpresso config tool.

1- In your project click right and then when the popup window appears go to SDK management.

Pavel_Hernandez_0-1664825869424.png

2- In SDK management select the Manage SDK Component another popup windows will appears.

Pavel_Hernandez_1-1664825923853.png

3- Select the option of Drivers [yellow mark].

Pavel_Hernandez_2-1664825994576.png

4- Type the driver you need to add, select and click OK.

Pavel_Hernandez_3-1664826047563.png

If you need more information please let me know.

Best regards,
Pavel

 

 

 

0 项奖励
回复
1,360 次查看
ttahut
Contributor III
Thanks for the pointer. It was actually SDK Management->Refresh SDK Components that did the trick for me.
0 项奖励
回复