Skip to main content
Visitor II
November 4, 2020
Question

WFE on stm8l152c6t6 with 2 sources at a time brings to unexpected reset.

  • November 4, 2020
  • 0 replies
  • 426 views

Hello, i use stm8l-discovery board with stm8l152c6t6.

I need to sniff swim protocol and wrote the asm module for this purpose.

This module uses WFE instruction to wait PIN transition and TIMER4 for timeout.

If I use WFE for TIMER4 or PIN from only 1 source at a time then it works fine.

If I useWFE for both sources then debug connection losts and reset occurs.

Is there any way to workaround this issue?

    This topic has been closed for replies.