Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Usage of Twi_Scanner-Example impossible

Hello,

I am was playing around a bit with the twi_scanner-example and I figured out, that no matter if I chose the legacy-layer with nrf_drv_twi-functions or the new nrfx_twi-functions I am always getting NRF_SUCCESS-messages on all I2C-addresses available, indicating that a device was successfully found.

Tried that with rx-/tx-functions likewise and also on the nRF52832-/nRF52840-DK including our own custom boards.

Even though I have just 1 specific sensor attached to the I2C-bus it shows possitive findings on all addresses, which makes the scanner-functionality obviously useless...

On the other hand I am able to successfully configure, read and transmit the sensor data with S132-/S140-softdevice-based-examples.

Is there anything I might be forgetting!?

Additional note: The plain twi_scanner-Example shows no results at all on the respective DKs with a sensor connected.

Kind regards,

Ray

Parents
  • "Additional note: The plain twi_scanner-Example shows no results at all on the respective DKs with a sensor connected."

    Not sure what your environment is but i did see the same thing using  both nRF52832/nRF52840-DK, and SES 3.40 on OSX.

    It seems the issue (at least for me), is having NRF_LOG_BACKEND_UART_ENABLED set to 1. 

    Disable NRF_LOG_BACKEND_UART_ENABLED and enable NRF_LOG_BACKEND_RTT_ENABLED to see the output

Reply
  • "Additional note: The plain twi_scanner-Example shows no results at all on the respective DKs with a sensor connected."

    Not sure what your environment is but i did see the same thing using  both nRF52832/nRF52840-DK, and SES 3.40 on OSX.

    It seems the issue (at least for me), is having NRF_LOG_BACKEND_UART_ENABLED set to 1. 

    Disable NRF_LOG_BACKEND_UART_ENABLED and enable NRF_LOG_BACKEND_RTT_ENABLED to see the output

Children
No Data
Related