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

Sensor is not communicating with nrf52840 via SCL p0.6 and SDA p0.08 lines.

Hi all,

Greeting of the day....

Here I am getting an issue with TWI interface. That I am using to communicate with sensor module with NRF52840.

The SCL------> p0.6

       SDA -----> p0.8

In the firmware part it is struck at the  nrf_drv_tx() call and return with time out error.

Please suggest me.

Regards,

Basha

Parents
  • If you are using a custom board, make sure you do not have NRF_LOG module enabled with UART backend, or that you do not enable any UART modules in your application.

    // <e> NRF_LOG_BACKEND_UART_ENABLED - nrf_log_backend_uart - Log UART backend
    //==========================================================
    #ifndef NRF_LOG_BACKEND_UART_ENABLED
    #define NRF_LOG_BACKEND_UART_ENABLED 0 // Disable UART backend for logging
    #endif
    
    // <o> NRF_LOG_BACKEND_UART_TX_PIN - UART TX pin 
    #ifndef NRF_LOG_BACKEND_UART_TX_PIN
    #define NRF_LOG_BACKEND_UART_TX_PIN 3 // Or change this pin to something else than the pin you want to use for TWI (P0.06 is default)
    #endif

Reply
  • If you are using a custom board, make sure you do not have NRF_LOG module enabled with UART backend, or that you do not enable any UART modules in your application.

    // <e> NRF_LOG_BACKEND_UART_ENABLED - nrf_log_backend_uart - Log UART backend
    //==========================================================
    #ifndef NRF_LOG_BACKEND_UART_ENABLED
    #define NRF_LOG_BACKEND_UART_ENABLED 0 // Disable UART backend for logging
    #endif
    
    // <o> NRF_LOG_BACKEND_UART_TX_PIN - UART TX pin 
    #ifndef NRF_LOG_BACKEND_UART_TX_PIN
    #define NRF_LOG_BACKEND_UART_TX_PIN 3 // Or change this pin to something else than the pin you want to use for TWI (P0.06 is default)
    #endif

Children
No Data
Related