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

The "twi_sensor" example is not working properly

SDK : nRF5_SDK_15.0.0_a53641a

example: nRF5_SDK_15.0.0_a53641a\examples\peripheral\twi_sensor

I didn't change anything. After build and download to the Nordic development board,

The  LM75B_set_mode()  function in the main function is blocked and not executed normally. The blocking expression is while (m_xfer_done == false);

After I used the SDK: nRF5_SDK_15.2.0_9412b96 , also appeared the above situation

pics:

 

Please help to answer it, thanks.

Parents Reply
  • When I used the TWI peripheral  to debug my board that had temperature sensor.

    First, I transplanted the nrf_drv_twi_tx function of the twi routine,modified the address of the sensor  and the address of the writable register, and configured the sdk_config.h of ble_app_uart routine according to the sdk_config.h of the twi_sensor routine. 

    Then, I used the  oscilloscope to collect SCL clock line wareform, found there is no high and low level conversion.

Children
Related