mokx 发表于 2014-6-16 19:59:43

STM8S003移植触摸库-中断跳转不出来

 移植官方的触摸库到stm8s003,安装移植手册修改定时器,遇到一个问题,用st进行仿真,一直在这个中断中return跳转不出来
@far @interrupt void NonHandledInterrupt (void)
{
        /* in order to detect unexpected events during development, 
         it is recommended to set a breakpoint on the following instruction
        */
        return;
 
}
我的定时器设定是这样的
#define TIMACQ           (TIM2)
#define TIMACQ_CNTR_ADD  (0x530C)
困扰了好久了,新人求解答!

发表于 2014-6-17 10:07:43

RE:STM8S003移植触摸库-中断跳转不出来

说明找不到你的定时器中断,你看一下定时器中断向量那有没有指定对应的中断函数。

有缘于你 发表于 2014-6-17 18:53:22

RE:STM8S003移植触摸库-中断跳转不出来

发生不正常的跳转了

feixiang20 发表于 2014-6-18 13:24:12

RE:STM8S003移植触摸库-中断跳转不出来

循环出错,跳不出来,看参数设置

aaa999kk 发表于 2014-6-18 16:13:32

RE:STM8S003移植触摸库-中断跳转不出来

中断函数设计的不对啊, 那就修改参数

feiante-155820 发表于 2014-6-18 17:30:08

RE:STM8S003移植触摸库-中断跳转不出来

看看你的中断函数是否正确

发表于 2014-6-19 10:38:55

RE:STM8S003移植触摸库-中断跳转不出来

终端服务函数没有清零吧

深秋独影 发表于 2014-6-19 12:32:14

RE:STM8S003移植触摸库-中断跳转不出来

没有在中断中清除标志位?

dzc2001 发表于 2014-6-19 13:23:08

回复:STM8S003移植触摸库-中断跳转不出来

 调试中断还是从串口打印信息比较好

vivy 发表于 2014-6-24 15:37:18

RE:STM8S003移植触摸库-中断跳转不出来

应该是配置出了问题
页: [1] 2
查看完整版本: STM8S003移植触摸库-中断跳转不出来