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

Problem with TWI (SD) and nrf51[48]22 eval

I am using hw TWI with the s110_nrf51822_6.0 softdevice, nrf51_sdk_v5_2_0 I am using pin 3 scl and pin4 sda of the nrf51[48]22 eval boards. I am able to drive these pins high,

I have done the test with both nrf51822 and nrf51422 eval boards. There does not appear to be a hardware problem. When I simulate data, both of these work eval boards work correctly with the nordic ble uart apps.

I am using gcc, make and eclipse. I have tried two code sources github.com/.../W1FW github.com/.../W1FW and github.com/.../W1FW The second repository requires the nrf51 sdk installed at the same level

I am not sure if my problem is the same as devzone.nordicsemi.com/.../

I have verified that twi_master_init() returns success.


Interesting results for software/hardware twi_master

unplug the scl the twi_master_init() fails as it should, DEVICE does not hang plug in the scl the twi_master_init() successes, but read fails. repeat with hardware twi_master

unplug the scl the twi_master_init() DEVICE hangs, If I plug in the scl the twi_master_init() successes, but read fails. In both cases no return from the read function called from the timed event

Related