Hello.
I try to develope LwM coordinator with I2C slave. Seperate I2C and stack works fine. But when I set it in one time, master always reads bad data. Hardware: master - Raspberry PI (100kHz), slave- SAMR21Xplained, software: WSNDEMO app from atmel studio + i2c slave (callback mode). I cut usart printing, but it doesn't help at all. I2C frame has 16B length. Is it possible to build stable project? Will service stack allow i2c slave work correctly?
Best regards,
Piotrvv
I see no reason for it not to work technically. I don't know what is wrong with ASF drivers, I recommend using standalone LwMesh and writing bare metal I2C driver.
New ASF project works (it was new ASF version meantime), but I had to slow down SCK to 20kHz. I know, it's pretty slow, but enough for me.
Best regards,
Piotrvv
This is really weird if you have to do things like this to make your program work. I would investigate and figure this out before moving on, things may break later on in a way that is much harder to debug.
Well, I can't debug things remotely. Plus this is ASF, and I don't do ASF.