Re: [Zephyr-users] Cannot write with i2c NRF52832 (TWI and TWIM)
vikrant8051 <vikrant8051@...>
Hi Rodrigo, Currently trying to build zephyr/samples/drivers/i2c_fujitsu_fram/ demo eg. to test i2c for nRF52840_pca10056. As per your previous email, I added following things in prj.conf CONFIG_I2C=y CONFIG_I2C_NRFX=y CONFIG_I2C_0_NRF_TWI=y CONFIG_I2C_INIT_PRIORITY=60 CONFIG_I2C_0=y But still getting following error, ../src/main.c:16:17: error: ‘CONFIG_I2C_0_NAME’ undeclared (first use in this function) #define I2C_DEV CONFIG_I2C_0_NAME ^ ../src/main.c:84:31: note: in expansion of macro ‘I2C_DEV’ i2c_dev = device_get_binding(I2C_DEV); ^~~~~~~ ../src/main.c:16:17: note: each undeclared identifier is reported only once for each function it appears in #define I2C_DEV CONFIG_I2C_0_NAME ^ ../src/main.c:84:31: note: in expansion of macro ‘I2C_DEV’ i2c_dev = device_get_binding(I2C_DEV); ^~~~~~~ [19/141] Building C object zephyr/CMakeFiles/zephyr.dir/lib/mempool/mempool.c.obj ninja: build stopped: subcommand failed. Please help me to sort out this issue. Thank You !!
On Wed, Oct 24, 2018 at 2:01 AM Rodrigo Peixoto <rodrigopex@...> wrote:
|
|