ConfigTools doesn't recognize error

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

ConfigTools doesn't recognize error

694 次查看
bosnian_beast
Contributor III

I added I2C pins in my configuration and when I update code, I get this error:

board/peripherals.h:15:10: fatal error: fsl_lpi2c.h: No such file or directory

However, in the ConfigTools, there is no Problems. Usually, I could just right-click and "solve problem" (add missing dependencies).

The other weird thing is that after I add USB pins, I get multiple problems (including I2C error) which gets solved by right-clicking on a problem.

Is there a way to manually add "fsl_lpi2c.h" through the ConfigTools (I am reluctant to just copy and paste it from some other project)?

标记 (3)
0 项奖励
3 回复数

661 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

After adding the i2c driver, you still don't see the "fsl_lpi2c.h" file under the drivers folder? One more thing, could you please specify the part number you are using, as well as the installed release version you have for MCUXpresso, SDK and ConfigTools (if you are using the standalone release)?

0 项奖励

672 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @bosnian_beast,

 

You can add the missing drivers by right clicking the project, under "SDK Management" > "Manage SDK Components". This will open the SDK component window where you can add the lpi2c driver. After doing this, the error should no longer show.

 

BR,

Edwin.

0 项奖励

670 次查看
bosnian_beast
Contributor III

Screenshot_1.png

 

In the drivers tab I have i2c checked (but I can't find lpi2c). However in the right column, it says LPI2C. Is it some naming issue?

0 项奖励