首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

MC9S12A512在调试时出现了错误,程序调试不了

MC9S12A512在调试时出现了错误,程序调试不了










 Error while writing to FFFE..101FE

 Line 3


Column 13

 Line 3

Column 13


procedure does not exist

 Loading failed
调试时出现了以上4个对话框,到底是出了什么问题?有外加一个SRAM(512K),
迷途的羔羊!
编译时有没有什么特别的警告?有没有修改过PRM文件?
海纳百川  有容乃大
没什么特别的警告,只是有的函数没弄返回值,还有一个是assignment in condition
PRM文件没动过
迷途的羔羊!
NAMES
END

SEGMENTS
RAM = READ_WRITE 0x0800 TO 0x3FFF;
/* unbanked FLASH ROM */
ROM_4000 = READ_ONLY 0x4000 TO 0x7FFF;
ROM_C000 = READ_ONLY 0xC000 TO 0xFEFF;
/* banked FLASH ROM */
PAGE_20 = READ_ONLY 0x208000 TO 0x20BFFF;
PAGE_21 = READ_ONLY 0x218000 TO 0x21BFFF;
PAGE_22 = READ_ONLY 0x228000 TO 0x22BFFF;
PAGE_23 = READ_ONLY 0x238000 TO 0x23BFFF;
PAGE_24 = READ_ONLY 0x248000 TO 0x24BFFF;
PAGE_25 = READ_ONLY 0x258000 TO 0x25BFFF;
PAGE_26 = READ_ONLY 0x268000 TO 0x26BFFF;
PAGE_27 = READ_ONLY 0x278000 TO 0x27BFFF;
PAGE_28 = READ_ONLY 0x288000 TO 0x28BFFF;
PAGE_29 = READ_ONLY 0x298000 TO 0x29BFFF;
PAGE_2A = READ_ONLY 0x2A8000 TO 0x2ABFFF;
PAGE_2B = READ_ONLY 0x2B8000 TO 0x2BBFFF;
PAGE_2C = READ_ONLY 0x2C8000 TO 0x2CBFFF;
PAGE_2D = READ_ONLY 0x2D8000 TO 0x2DBFFF;
PAGE_2E = READ_ONLY 0x2E8000 TO 0x2EBFFF;
PAGE_2F = READ_ONLY 0x2F8000 TO 0x2FBFFF;
PAGE_30 = READ_ONLY 0x308000 TO 0x30BFFF;
PAGE_31 = READ_ONLY 0x318000 TO 0x31BFFF;
PAGE_32 = READ_ONLY 0x328000 TO 0x32BFFF;
PAGE_33 = READ_ONLY 0x338000 TO 0x33BFFF;
PAGE_34 = READ_ONLY 0x348000 TO 0x34BFFF;
PAGE_35 = READ_ONLY 0x358000 TO 0x35BFFF;
PAGE_36 = READ_ONLY 0x368000 TO 0x36BFFF;
PAGE_37 = READ_ONLY 0x378000 TO 0x37BFFF;
PAGE_38 = READ_ONLY 0x388000 TO 0x38BFFF;
PAGE_39 = READ_ONLY 0x398000 TO 0x39BFFF;
PAGE_3A = READ_ONLY 0x3A8000 TO 0x3ABFFF;
PAGE_3B = READ_ONLY 0x3B8000 TO 0x3BBFFF;
PAGE_3C = READ_ONLY 0x3C8000 TO 0x3CBFFF;
PAGE_3D = READ_ONLY 0x3D8000 TO 0x3DBFFF;
/* PAGE_3E = READ_ONLY 0x3E8000 TO 0x3EBFFF; not used: equivalent to ROM_4000 */
/* PAGE_3F = READ_ONLY 0x3F8000 TO 0x3FBFFF; not used: equivalent to ROM_C000 */
END

PLACEMENT
_PRESTART, /* Used in HIWARE format: jump to _Startup at the code start */
STARTUP, /* startup data structures */
ROM_VAR, /* constant variables */
STRINGS, /* string literals */
VIRTUAL_TABLE_SEGMENT, /* C++ virtual table segment */
NON_BANKED, /* runtime routines which must not be banked */
COPY /* copy down information: how to initialize variables */
/* in case you want to use ROM_4000 here as well, make sure
that all files (incl. library files) are compiled with the
option: -OnB=b */
INTO ROM_C000/*, ROM_4000*/;
DEFAULT_ROM INTO PAGE_20,PAGE_21,PAGE_22,PAGE_23,PAGE_24,PAGE_25,PAGE_26,PAGE_27,
PAGE_28,PAGE_29,PAGE_2A,PAGE_2B,PAGE_2C,PAGE_2D,PAGE_2E,PAGE_2F,
PAGE_30,PAGE_31,PAGE_32,PAGE_33,PAGE_34,PAGE_35,PAGE_36,PAGE_37,
PAGE_38,PAGE_39,PAGE_3A,PAGE_3B,PAGE_3C,PAGE_3D;
DEFAULT_RAM INTO RAM;
END

STACKSIZE 0x100

VECTOR 0 _Startup /* reset vector: this is the default entry point for a C/C++ application. */
//VECTOR 0 Entry /* reset vector: this is the default entry point for a Assembly application. */
//INIT Entry /* for assembly applications: that this is as well the initialisation entry point */
这是PRM文件里的东西
迷途的羔羊!
prm文件里有好几个文件,那个文件才是是呀,有burner.bbl,p&e_icd_linker.prm,simulator_linker.prm
p&e_icd_linker.prm是在P&E模式调试下连接的PRM文件
simulator_linker.prm是在simulator模式调试下连接的PRM文件
用来设置变量区跟代码区的
迷途的羔羊!
你可以先用CodeWarrior的引导生成一个最简单的代码,看看能不能成功写入芯片。
海纳百川  有容乃大
我试过新建一个project,main里面什么都没写,还是出现一样的错误
迷途的羔羊!
你试过几块芯片?都是这样吗?
海纳百川  有容乃大
1块,我刚才收到freescale的技术支持邮件,他说我的版本3。1对这款芯片存在BUG,要更换几个FPP文件,我现在就试试看。
迷途的羔羊!
还在用3.1吗?下载4.5吧。
海纳百川  有容乃大
4。5版本的freescale要审核材料,才让下载。
我弄过几次,都被reject了
迷途的羔羊!
不会吧。下载special edition,只要注册过就都能下载。
海纳百川  有容乃大
我注册过了,他就是要你填些资料,然后submit上去,然后发邮件给你说不让你下
迷途的羔羊!
返回列表