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 Reply
  • Hi Sigurd,

    how are you today?

    We are making progress with the NRF.

    But we have a problem with a temperature sensor (HTS221)

    The fonction "hts221_who_am_i_read" => it s Ok we are a result = 0xBC

    the result of temperature sensor is not correct.

    This is my code

    void m_temp_callback()
    {
          int16_t *p_rawtemp;
          NRF_LOG_INFO("RAW TEMP : %d", p_rawtemp);
          printf("RAW TEMP : %d\n", p_rawtemp);
          temperature = hts221_temp_process(&m_hts221,  p_rawtemp)/8;  
          printf("Temperature %d C\n", temperature);   
    }
    
    
    
    void read_th()
    {
          uint32_t err;
    	int16_t rawhum;
    	int16_t rawtemp;
    
          // Submit temperature read command to TWI manager
         // m_temp_callback called when data is returned
        err = hts221_temp_read(&m_hts221, &m_temp_callback , &rawtemp);
        printf("hts221_temp_read %d\n", err);
        APP_ERROR_CHECK(err);
        nrf_delay_ms(500);
    
    }

    This is a result: 

    hts221_temp_read 0
    Identity: 188
    RAW TEMP : 0
    Temperature 0 C
    hts221_temp_read 0
    RAW TEMP : 0
    Temperature 0 C

Children
Related