Dear Dialog,
I have the 14681-01 pro-kit and was trying to interface a temperature sensor using blinky (freertos_retarget) or prox_reporter demo.
in my custom_config_qspi.h file i have written the define for dg_configI2C_ADAPTER as 1. But in the ad_i2c.c file it's showing it as 0.
Any help on this.
Using smart-snippets studio Version: 1.2.3.588
Kind Regards,
Mutahir
Keywords:
Device:
can anyone help please?
Hi mutahir,
You should define both, the adapter and the i2c hardware, so try to place both #defines in the custom_config_qspi.h file
#define dg_configUSE_HW_I2C (1)
#define dg_configI2C_ADAPTER (1)
If you see that the eclipse has the files that should be included in your build grayed out, then follow the next steps:
1) Go to Window -> Preferences -> Indexer -> In the build configuration for the indexer select the "Use active build configuration".
2) Go to the project that you are having trouble with and right click Index -> Freshen all files.
3) Also via right click on the project select again the active build for your project (it doens't matter if you select the same).
Most of the times the problem is the Indexer of the eclipse that causes a lot of confusion when building a project.
Thanks MT_dialog
Thanks. restarting my system helped but will be sure to follow the steps here next time