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

compilation problem Segger with SDK 15.2

Hello

I work for a product to produce 2 BLE products:

  • several sensors with NRF52832 + LIS2DH12 (accelerometer) + HTS221 (temperature) + ICM-20689 (motion)
  • a gateway with a NRF52832 + CP2102n (for USB / USB conversion)


My project is to receive the sensor information.

or this, I use 2 example with a SDK 15.2

  • my gateway ble_central-> ble_app_multilink_central
  • my sensor i'm using ble_peripheral-> ble_app_blinky

We made the prototype.

With your examples the sensors communicate well with the gateway in BLE.

Now I wish integrated LIS2DH12 (accelerometer) + HTS221 (temperature) + ICM-20689 (motion) functionality to my sensor

I integrated the drivers contained in the SDK 15.2

But I have a compilation problem.

"Output/ble_app_blinky_pca10040_s132 Release/Obj/nrf_twi_sensor.o: In function `nrf_twi_sensor_reg_read':"

Can you help me.

Here is my project and my bsp

https://www.dropbox.com/s/ipqh8rnod2xr5md/nRF5_SDK_15.2.0_9412b96.7z?dl=0

Thanks,

Vincent

Parents
  • Hi,

    The screenshot you uploaded does not match the project uploaded on the dropbox.

    If you are using the nrf_twi_mngr, please make sure that you have NRF_TWI_MNGR_ENABLED set to 1 in sdk_config.h

    Best regards,

    Sigurd

  • Hi Sigurd,

    thanks for you answer, I don't anderstand "he screenshot you uploaded does not match the project uploaded on the dropbox.", you use this " nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_blinky\capteur\s132\ses"?

    I have enabled #define NRFX_TWIM1_ENABLED 1

    but i have a new error :

    Output/ble_app_blinky_pca10040_s132 Release/Obj/nrf_twi_sensor.o: In function `nrf_twi_sensor_reg_read':

    Thanks for you answer.

    Vincent

  • " nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_blinky\capteur\s132\ses"?

    I was looking at the project in ble_app_blinky\pca10040\s132\ses, but I see the capteur project now.

    Please add the following files to the project:

    1) nrfx_twim.c , found in sdk_folder\ modules\nrfx\drivers\src
    2) nrf_drv_twi.c, found in sdk_folder\ \integration\nrfx\legacy
    3) nrf_queue.c , found in sdk_folder \components\libraries\queue


    In sdk_config.h, set the following defines to 1:

    NRF_QUEUE_ENABLED (line 7083)
    NRF_TWI_MNGR_ENABLED (line 7126)
    TWI_ENABLED (line 5557)
    TWI0_ENABLED (line 5603)
    TWI0_USE_EASY_DMA (line 5609)

    And if you are also using TWI 1 instance, set these to 1 also:
    TWI1_ENABLED (line 5617)
    TWI1_USE_EASY_DMA (line 5623)

Reply
  • " nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_blinky\capteur\s132\ses"?

    I was looking at the project in ble_app_blinky\pca10040\s132\ses, but I see the capteur project now.

    Please add the following files to the project:

    1) nrfx_twim.c , found in sdk_folder\ modules\nrfx\drivers\src
    2) nrf_drv_twi.c, found in sdk_folder\ \integration\nrfx\legacy
    3) nrf_queue.c , found in sdk_folder \components\libraries\queue


    In sdk_config.h, set the following defines to 1:

    NRF_QUEUE_ENABLED (line 7083)
    NRF_TWI_MNGR_ENABLED (line 7126)
    TWI_ENABLED (line 5557)
    TWI0_ENABLED (line 5603)
    TWI0_USE_EASY_DMA (line 5609)

    And if you are also using TWI 1 instance, set these to 1 also:
    TWI1_ENABLED (line 5617)
    TWI1_USE_EASY_DMA (line 5623)

Children
Related