Skip to main content
VSrin
Associate III
October 4, 2019
Question

I am using stm8l-discovery board and I have used division by zero in my code and I need to know how to use to watchdog to reset the device if fault occurs

  • October 4, 2019
  • 1 reply
  • 893 views

..

    This topic has been closed for replies.

    1 reply

    Philipp Krause
    Senior II
    October 6, 2019

    I don't think the watchdog will help you with division by zero.

    From a C perspective, division by zero is undefined behaviour. From an STM8 asm perspective, division by zero just results in an unspecified result.