Skip to main content
Visitor II
January 17, 2024
Question

STM32L031G6U6 - Stop mode I2C back-to-back transactions not working

  • January 17, 2024
  • 0 replies
  • 618 views

Hello,

I've got a setup where I put the STM32 into STOP mode, with wake-up on ADDR match on I2C.

SYSCLK is PLL 32 MHz.

APB = 32MHz.

I've configured I2C to use HSI, and enabled STOP_WUCK.

(The I2C uses DMA).

If I enable HSI16KERON then the device responds as normal to back-to-back I2C transactions. 

i.e. if I want to access registers A, B, C. (Write followed by read) This is fine. 

However when this is disabled it seems to only be able to respond to one transaction (i.e. A is fine, B and C are missed). Is this expected behavior? 

If I put a delay of about 20us it also seems to resolve the problem.

    This topic has been closed for replies.