查看: 2289|回复: 2

[其他] freescale 56f800中断,不能进入!! 求教(已解决)

[复制链接]

该用户从未签到

1

主题

2

帖子

0

新手上路

Rank: 1

积分
37
最后登录
1970-1-1
发表于 2014-3-18 11:40:38 | 显示全部楼层 |阅读模式
freescale 56f800,软件codewarrior10.5,新问题出来.调试用simulator;

pe产生代码,只有一个定时器,不能中断,不知何故?
但是有2个警告:
Overlap of the .interrupt_vectors section and .interrupt_vectorsboot section.
Overlap of the .interrupt_vectorsboot section and .interrupt_vectors section.
不知是否有影响!!各位帮我看看

下面代码中设置断点,没看到过进入!! 1.png </b>
#pragma interrupt alignsp
void FC161_Interrupt(void)
{
  clrRegBit(TMR0_SCR,TCF);             /* Reset interrupt request flag */
  TTicks++;                            /* Increment counter of timer ticks */
  if (TTicks == 0U) {                  /* Testing counter overflow */
    TOvf = TRUE;                       /* If yes then set overflow flag */
  }
}
 
qq:494722760
我知道答案 目前已有1人回答
2.png
回复

使用道具 举报

该用户从未签到

145

主题

4926

帖子

0

金牌会员

Rank: 6Rank: 6

积分
9267
最后登录
1970-1-1
发表于 2014-3-19 09:35:39 | 显示全部楼层

RE:freescale 56f800中断,不能进入!! 求教

你好,我会将你的问题转交给我们的DSC工程师,他会为您解答。
请耐心等待。
回复 支持 反对

使用道具 举报

该用户从未签到

0

主题

218

帖子

0

中级会员

Rank: 3Rank: 3

积分
472
最后登录
1970-1-1
发表于 2014-4-1 11:00:46 | 显示全部楼层

RE:freescale 56f800中断,不能进入!! 求教

这个警告是没有关系的,只是说.interrupt_vectors 和 .interrupt_vectorsboot地址范围有重合
.interrupt_vectorsboot用于存放reset和cop reset 的 入口地址
而.interrupt_vectors 用于存放所有中断失量。当VBA为0时,二者必然重合。所以你可以忽略这个警告。
至于中断不能进入,那时因为代码是运行在simulator上,是不能仿真真正的硬件中断的
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 注册/登录

本版积分规则

关闭

站长推荐上一条 /3 下一条

Archiver|手机版|小黑屋|恩智浦技术社区

GMT+8, 2025-7-21 03:29 , Processed in 0.090088 second(s), 24 queries , MemCache On.

Powered by Discuz! X3.4

Copyright © 2001-2024, Tencent Cloud.

快速回复 返回顶部 返回列表