Hi Everyone,
In this code I'm face a problem. The issue is when i debug, it shows "<info> app: TWI device detected at address 0x6D". Please find attached a snapshot of the issue.
Need your help ASAP. Thanks

Regards,
Yuvaraj
Hi Everyone,
In this code I'm face a problem. The issue is when i debug, it shows "<info> app: TWI device detected at address 0x6D". Please find attached a snapshot of the issue.
Need your help ASAP. Thanks

Regards,
Yuvaraj
Hi Yuvaraj,
How many TWI devices are you connecting to? And what kind?
Best Regards,
Marjeris
Hi Marjeris,
One LIS3DH device only...
.
Regards,
Yuvaraj

Hi Marjeris,
I connect Like this...
Regards,
Yuvaraj
Hi Yuvaraj,
This is a picture of how you program the chip on a custom board. It doesn't show how the LIS3DH sensor is connected to the board. Can you provide a picture of how the LIS3DH is connected to your nRF52832 DK?
Best Regards,
Marjeris
Hi Marjeris,
My custom board contains a LIS3DH sensor. This is the schematics of my custom board...

Regards,
Yuvaraj
Hi Yuvaraj,
Sorry for the late reply. The schematics seem fine so I am not sure what the issue could be here. Are you using NRF_DRV_TWI_FREQ_100K as the default TWI clock frequency?
BB,
Marjeris
Hi Marjeris,
Yes, the same TWI clock frequency in my code.

Regards,
Yuvaraj
Hi Marjeris,
Yes, the same TWI clock frequency in my code.

Regards,
Yuvaraj
Hi Yuvaraj,
Have you check the sensor's power supply?
Best Regards,
Marjeris
Hi Marjeris,
I take a one transmission(tx) example program and the output of SCL and SDA signals are seen in MSO. Is this enough for sensor as powered. or otherwise what i want to do. I'm ready to do.
Regards,
Yuvaraj
If you get "No device was found" from the twi_scanner example, the sensor is not responding to (acking) the address. Do you have another sensor that you can connect and test with?
Hi Jorgen,
I think "No device was found" this messege is from my DK not my custom board.
How to conform this messege is from my custom board?
How to print log info from my custom board?
My custom board is in final product stage, complete pcb, so how i check my sensor?
Regards,
Yuvaraj
You should be able to run the twi_scanner example on your custom board by changing the TWI pins. If you do not have UART on your board, you can view the log output on RTT by enabling RTT backend for NRF_LOG module by setting this in sdk_config.h file:
#ifndef NRF_LOG_BACKEND_RTT_ENABLED #define NRF_LOG_BACKEND_RTT_ENABLED 1 #endif #ifndef NRF_LOG_BACKEND_UART_ENABLED #define NRF_LOG_BACKEND_UART_ENABLED 0 #endif