AnsweredAssumed Answered

STM8L152 I2C base on DMA

Question asked by kostin.artem on May 30, 2017
Latest reply on Jun 1, 2017 by kostin.artem

Hello Everyone.
I have trouble on STM8L152 with I2C through DMA. When receiving 1 data byte its receive 2 bytes 1st: some wrong  (0x1F, 0x1E, 0x0E), and second byte (looks like necessary data).
In case when receive long sequence, around 100 bytes, the same situations. The first byte some "rubbish", next one is normal data.

I'm try communicate with accelerometer MMA8652.
F_MCU = 2MHz.
F_I2C = 100kHz.

STVD 4.3.10 with Cosmic compiler.

Who have experience in I2C with DMA on STM8L or the same issue, what the workaround for this issue?