cancel
Showing results for 
Search instead for 
Did you mean: 

STM8S003K3 General Interrupts Enable Problem

Ozgur BOSTAN
Associate II
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
4 REPLIES 4
martonmiklos
Senior
Posted on July 11, 2017 at 08:33

Could you please show use your interrupt vector table?

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. 

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.

Posted on July 11, 2017 at 11:03

Ohh, sorry for that. It is IAR Embedded Workbench.