This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

I2C driver with soft device

hello there i want to send output of i2C sensor on ble. but how to add i2c driver for ble application???

Parents
  • In Keil -> Options for Target -> C/C++ -> Include Paths -> Folder Setup did you provide the paths to your .h files?

  • hey that solved my problem but when i start twi api in main file i am getting error like

    ._build\nrf51422_xxac_s110.axf: Error: L6200E: Symbol SPI0_TWI0_IRQHandler multiply defined (by nrf_drv_twi.o and main.o).

    .\_build\nrf51422_xxac_s110.axf: Error: L6200E: Symbol nrf_drv_twi_data_count_get multiply defined (by nrf_drv_twi.o and main.o).
    .\_build\nrf51422_xxac_s110.axf: Error: L6200E: Symbol nrf_drv_twi_disable multiply defined (by nrf_drv_twi.o and main.o).
    .\_build\nrf51422_xxac_s110.axf: Error: L6200E: Symbol nrf_drv_twi_enable multiply defined (by nrf_drv_twi.o and main.o).
    .\_build\nrf51422_xxac_s110.axf: Error: L6200E: Symbol nrf_drv_twi_init multiply defined (by nrf_drv_twi.o and main.o).
    .\_build\nrf51422_xxac_s110.axf: Error: L6200E: Symbol nrf_drv_twi_rx multiply defined (by nrf_drv_twi.o and main.o).
    .\_build\nrf51422_xxac_s110.axf: Error: L6200E: Symbol nrf_drv_twi_tx multiply defined (by nrf_drv_twi.o and main.o).
    .\_build\nrf51422_xxac_s110.axf: Error: L6200E: Symbol nrf_drv_twi_uninit multiply defined (by nrf_drv_twi.o and main.o).
    
Reply
  • hey that solved my problem but when i start twi api in main file i am getting error like

    ._build\nrf51422_xxac_s110.axf: Error: L6200E: Symbol SPI0_TWI0_IRQHandler multiply defined (by nrf_drv_twi.o and main.o).

    .\_build\nrf51422_xxac_s110.axf: Error: L6200E: Symbol nrf_drv_twi_data_count_get multiply defined (by nrf_drv_twi.o and main.o).
    .\_build\nrf51422_xxac_s110.axf: Error: L6200E: Symbol nrf_drv_twi_disable multiply defined (by nrf_drv_twi.o and main.o).
    .\_build\nrf51422_xxac_s110.axf: Error: L6200E: Symbol nrf_drv_twi_enable multiply defined (by nrf_drv_twi.o and main.o).
    .\_build\nrf51422_xxac_s110.axf: Error: L6200E: Symbol nrf_drv_twi_init multiply defined (by nrf_drv_twi.o and main.o).
    .\_build\nrf51422_xxac_s110.axf: Error: L6200E: Symbol nrf_drv_twi_rx multiply defined (by nrf_drv_twi.o and main.o).
    .\_build\nrf51422_xxac_s110.axf: Error: L6200E: Symbol nrf_drv_twi_tx multiply defined (by nrf_drv_twi.o and main.o).
    .\_build\nrf51422_xxac_s110.axf: Error: L6200E: Symbol nrf_drv_twi_uninit multiply defined (by nrf_drv_twi.o and main.o).
    
Children
No Data
Related