Sorry I need to emulate a device using an nrf52840. as a 24c01 (I2C memory).
I need also to emulate using an nrf52840 and spi slave sensore .
There sare some samples that can be helpfull for me ?
Best Regards
Novello G.
Sorry I need to emulate a device using an nrf52840. as a 24c01 (I2C memory).
I need also to emulate using an nrf52840 and spi slave sensore .
There sare some samples that can be helpfull for me ?
Best Regards
Novello G.
Hello,
Did you start looking into any of our SDKs? If so, what version are you using?
Depending on whether you are using the nRF5 SDK or NCS, the examples to link you to is a bit different.
If you are using the nRF5 SDK, you can look into SDK\examples\peripheral\spis and SDK\examples\peripheral\twi_master_with_twis_slave (TWI - Two Wire Interface - is the same as I2C. It is just a naming convention / copyright matter).
The twi_master_with_twis_slave is an example using both an instance of TWI master and an instance of TWI slave. You can strip away the TWI master part if you like.
For NCS we don't have any official examples, but you can check out my colleague's github containing some custom peripheral samples.
https://github.com/sigurdnev/ncs-playground/tree/master/samples
I see that it doesn't contain an I2C slave example, but I found this blog post. I didn't test it, but perhaps you can give it a go (if you are using NCS):
Best regards,
Edvin