MC9S08QG8直接用串口下载一个简单程序做仿真的时候出现如下错误提示:
Error while writing to FFFE..101FE
Information:no memory at this address.
查了很多资料都没解决,不知道错误原因。(我是用codewarrior的向导新建的工程)
我自己编写的一个读取传感器数据并串口输出的程序在用串口仿真的时候也出现类似错误:
Error while writing to FFD8..101D8
Information:no memory at this address.
ps:版主可否把你的邮箱地址发给我,我把工程发过去可能更有助于问题解决。
各位热心人帮忙啊~~~~~ 卡在这个问题上几天了。。。。
谢谢版主回复。
我是用WIZARD建立的工程啊,设置了芯片,连接方式,编程语言,其他的默认。
这是生成的project.prm文件,和这个有关吗?
/* This is a linker parameter file for the mc9s08qg8 */
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 0x0060 TO 0x00FF;
RAM = READ_WRITE 0x0100 TO 0x025F;
ROM = READ_ONLY 0xE000 TO 0xFFAD;
ROM1 = READ_ONLY 0xFFC0 TO 0xFFCF;
/* INTVECTS = READ_ONLY 0xFFD0 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. */
我好像没有对地址进行操作呀。。
我把project发上来版主看看有什么问题,我是直接用串口仿真的,没用BDM, P&Emultilink什么的。
PS:我单片机编程经验有限,版主帮忙顺便看下我的AD转换和串口通信是否合理。万谢~~~
pc6jK1Yn.rar (82.91 KB)欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |