查看: 2014|回复: 2

[其他] 请教这个prm文件为什么不能使用RTC中断呢

[复制链接]

该用户从未签到

5

主题

20

帖子

0

新手上路

Rank: 1

积分
1
最后登录
1970-1-1
发表于 2013-4-26 14:23:00 | 显示全部楼层 |阅读模式
 /* This is a linker parameter file for the mc9s08dz60 */
 
NAMES END /* CodeWarrior will pass all the needed files to the linker by command line. But here you may add your own files too. */
 
SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */
    Z_RAM                    =  READ_WRITE   0x0080 TO 0x00FF;
    RAM                      =  READ_WRITE   0x0100 TO 0x107F;
    ROM                      =  READ_ONLY    0x1900 TO 0xFFAD;
    ROM1                     =  READ_ONLY    0x1080 TO 0x13FF;
    EEPROM                   =  READ_ONLY    0x1400 TO 0x17FF;
 /* INTVECTS                 =  READ_ONLY    0xFFC0 TO 0xFFFF; Reserved for Interrupt Vectors */
END
 
PLACEMENT /* Here all predefined and user segments are placed into the SEGMENTS defined above. */
    DEFAULT_RAM                         /* non-zero page variables */
                                        INTO  RAM;
 
    _PRESTART,                          /* startup code */
    STARTUP,                            /* startup data structures */
    ROM_VAR,                            /* constant variables */
    STRINGS,                            /* string literals */
    VIRTUAL_TABLE_SEGMENT,              /* C++ virtual table segment */
    DEFAULT_ROM,
    COPY                                /* copy down information: how to initialize variables */
                                        INTO  ROM; /* ,ROM1: To use "ROM1" as well, pass the option -OnB=b to the compiler */
 
    _DATA_ZEROPAGE,                     /* zero page variables */
    MY_ZEROPAGE                         INTO  Z_RAM;
END
 
 
STACKSIZE 0x50
 
VECTOR 0 _Startup /* Reset vector: this is the default entry point for an application. */
 
这样的一个prm文件为什么使用RTC中断就打不开呢
我在主程序中中断函数名这样写的void interrupt 25 Rtc_Isr(void)
我知道答案 目前已有1人回答
回复

使用道具 举报

该用户从未签到

5

主题

20

帖子

0

新手上路

Rank: 1

积分
1
最后登录
1970-1-1
 楼主| 发表于 2013-4-26 14:38:49 | 显示全部楼层

回复:请教这个prm文件为什么不能使用RTC中断呢

也就是rtc的地址0xFFCC这个地方他设置了只读形式、、是这个问题吗?
回复 支持 反对

使用道具 举报

该用户从未签到

5

主题

20

帖子

0

新手上路

Rank: 1

积分
1
最后登录
1970-1-1
 楼主| 发表于 2013-4-26 14:40:27 | 显示全部楼层

回复:请教这个prm文件为什么不能使用RTC中断呢

 不好意思 这个prm发错了 应该是底下这个 是这个prm文件不能进行RTC中断
/* This is a linker parameter file for the DZ60 */
 
NAMES END /* CodeWarrior will pass all the needed files to the linker by command line. But here you may add your own files too. */
 
SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */
    MSCAN_START              =  NO_INIT      0x1880 TO 0x1880;
    ROM                      =  READ_ONLY    0x1900 TO 0xFFBF;
    Z_RAM                    =  READ_WRITE   0x0080 TO 0x00FF;
    RAM                      =  READ_WRITE   0x0100 TO 0x107F;
    ROM1                     =  READ_ONLY    0x1080 TO 0x13FF;
    EEPROM                   =  NO_INIT      0x1400 TO 0x17FF;
    VECTORS                  =  READ_WRITE    0xFFC0 TO 0xFFFF;
END
 
PLACEMENT /* Here all predefined and user segments are placed into the SEGMENTS defined above. */
    MSCAN                               INTO  MSCAN_START; 
    DEFAULT_RAM                         INTO  RAM;
    DEFAULT_ROM, ROM_VAR, STRINGS       INTO  ROM; /* ROM1 In case you want to use ROM1 as well, be sure the option -OnB=b is passed to the compiler. */
    ZeroSeg,
    _DATA_ZEROPAGE, MY_ZEROPAGE         INTO  Z_RAM;
           VECTORS_DATA                                    INTO  VECTORS;
 
END
 
 
STACKSIZE 0x50
 
ENTRIES                                                                                                                                                                          
_vectab                                                                                                                                                                          
END
回复 支持 反对

使用道具 举报

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

本版积分规则

关闭

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

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

GMT+8, 2025-7-21 11:53 , Processed in 0.088620 second(s), 23 queries , MemCache On.

Powered by Discuz! X3.4

Copyright © 2001-2024, Tencent Cloud.

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