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

twi_scanner example only returning address 0x01

I have set up a custom board using the nRF52811 based BMD-360 module.

I have tested the twi_scanner example, first of the nrf52DK with an external sensor. I Changed the TWI pins to the ones I am using on the custom board (SCL: 26, SDA: 25) and verified it worked as expected returning the address of the sensor over UART.

I have set up a custom board using the nRF52811 based BMD-360 module, and modified the project to target the nrf52811 (extracted settings from a PCA10056e project and changed the target, etc.). The program compiles fine and runs. My custom board doesn't have a serial output, so I have placed breakpoints to check for any detected devices. 

I only seem to be detecting one device on address 0x01, regardless of if I have a sensor attached to the board or not. I have tried the same sensor as I used with the DK connected, and still get the same result.

I have pull-ups on the TWI lines and nothing else on the bus so I don't think it's a hardware issue. I think it may just be a configuration problem moving from the nRF52840 DK to the nRF52811?

Any help would be appreciated.

(Using nRF5 SDK16.0.0)

Related