DA14681 trying to setup i2c

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
Anonymous (not verified)
DA14681 trying to setup i2c

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

Device:
mutahir (not verified)
can anyone help please?

can anyone help please?

MT_dialog
Offline
Last seen:2 months 3 weeks ago
工作人员
加入:2015-06-08 11:34
Hi mutahir,

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

mutahir (not verified)
Thanks. restarting my system

Thanks. restarting my system helped but will be sure to follow the steps here next time