Hy everyone!
I'm trying to write a non-volatile memory position of a device via I2C (twi), the device, a flash memory is the slave.
In my application, I have configure the twi, enable it, then, I send the data. But, in my event handler, any event is trigered of the three posible, neither transfer done, nor not acknowledge after dev addres or after data.
To find the problem, I connected the oscilloscope to the SDA pin, and the only thing that SDA makes is tho start low ath the beginning of the execution, and then goes up forever :
Debugging, i have found that SDA makes this just after nrf_drv_twi_init
I have compared muy code with the examples given in the SDK and I d'ont see any diferent, here is my code: main.c, what I'm doing wrong?
If it can help, here is the write secuence, and the device addres
The byte write secuence is the following:
here is how Dev Select and Byte address are formed
Thank you all guys!!