Skip to main content
Visitor II
July 10, 2017
Question

STM8S003K3 General Interrupts Enable Problem

  • July 10, 2017
  • 1 reply
  • 988 views
Posted on July 10, 2017 at 21:48

Hi all,

I am using STM8S003K3 mcu to develop a project based on some interrupt applications (TIMER overflow, UART receive). When I try to enable general interrupts by using 'enableInterrupts()'  function mcu gets stuck and all functions halt down. I enable peripheral interrupt registers but the general interrupts are not working properly. Is there anybody who has ever encountered the same problem and any solution?

Thanks in advance for your support.

Kind regards,

Ozgur BOSTAN

#stm8s-interrupt #stm8s003k3
    This topic has been closed for replies.

    1 reply

    Visitor II
    July 11, 2017
    Posted on July 11, 2017 at 08:33

    Could you please show use your interrupt vector table?

    Visitor II
    July 11, 2017
    Posted on July 11, 2017 at 09:28

    I do not where the vector table is or how to use it. This might be the problem. I have used the sample codes provided with std perip library. It would be great if you give me the directions to use and find the vector table. 

    Thanks in advance. 

    Visitor II
    July 11, 2017
    Posted on July 11, 2017 at 10:01

    You have not mentioned which toolchain do you use. In the case of Cosmic the stm8_interrupt_vector.c file is what you are looking for.