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

Adevertisement stop when twi_master_init(void) called

Hi we are using NRF51822 board.

i flash ble_app_hrs application. then it is giving advertisement.

but when i call twi_master_init() function from main. advertisement stop.

i used sd api in place ppi also.

Can anybody tell me what will be issue.

Regards Balaji

  • Yes, there isn't really any problem using the TWI even on C0, but you have to do it correctly. Please post a separate question with your problem, describing what you want to do and the problem you're seeing in detail. If you can also supply a code snippet exhibiting the problem, that would be helpful.

  • i think i found the mistake - I was initializing the twi_master too late...

  • Hi Ole,

    sorry for digging this one out again. I was talking to some of your colleagues in Dresden while the nordic tech tour and they told me that there should be a chance to get hwardware TWI enabled. currently we are still using the c0 revs here and get twi and s110 both working by using the softdevice twi, which drains probably more power than using a hardware twi driver. I was using an other hardware twi from here to get rid of the ppi by using softdevice calls but as it turns out the power consumption while using this version had peaks of like 3-4mA which is really way to much. with software twi its getting better but still need ressources and power as well. Do you maybe can provide me with a working hardware twi driver which will work with softdevices and the c0 rev?

    Thank you ME_

Related