Hello,
I'm a beginner at developping nrF52832.
My problem is completely similar to this one : devzone.nordicsemi.com/.../add-saadc-peripheral-and-others-to-example-project
My development Environment :
---
SDK : 17.0.2
IDE : Segger embedded Studio V5.50
hardware : Evaluation Board nRF52-DK
What I want to do
---
I am using the example "BLE_app_blinky" as a basis to train on the nRF 52832
I am trying to add a TWI peripheral on this example code.
I use TWI1.
To do so, I tried to copy what was done on the twi_scanner example.
What I have done
---
* add the nrf_drv_twi.c file to the project( add existing file)
* add the nrfx_twim.c file project( add existing file)
* modify the sdk_config.h to allow twi:
* declare my i2C instance : static const nrf_drv_twi_t m_twi = NRF_DRV_TWI_INSTANCE(1);
the change in the sdk_config.h are :
* NRFX_TWI_ENABLED = 1
* NRFX_TWI1_ENABLED = 1
What I have got
---
When I compile, I get the following error:
NRF_DRV_TWI_INSTANCE_1 undeclared ( not in a function)
but NRF_DRV_TWI_INSTANCE_1 should be defined in the nrf_drv_twi.h file if NRFX_TWIM1_ENABLED
With the segger IDE, when I right click to "Go to the definition" to know where NRFX_TWIM1_ENABLED is declared, the IDE takes me to the file "apply_old_config.h"
and not to the file "sdk_config.h"
What is the "apply_old_config.h" file ?
Why is my sdk_config.h not taken into account ?
remarks
---
When I try to add I2C on the ble_app_uart example, I have the same problem!
When I try to add I2C on the SPI example ( no BLE on this example), making the same changes works!