各大侠:
请教一下:当用codewarrior BDM到S12 MCU时报:while write to 3e00~4000时,information is :No memory at this address错误。请教!
.prm文件如下:
//RAM
RAM_Data = READ_WRITE 0x2000 TO 0x3dff;
RAM_DoOnRam = READ_ONLY 0x3e00 TO 0x3e7f;
RAM_Default = READ_WRITE 0x3e80 TO 0x3e81;
RAM_Stack = NO_INIT 0x3e82 TO 0x3fff;
//EE
//EE_Data = READ_ONLY 0x0800 TO 0x0aff; // a20-800=220= 544bytes.
//EE_BL = READ_ONLY 0x0b00 TO 0x17ff;
EE_BL = READ_ONLY 0x0A20 TO 0x0FFF; // 1375 bytes BL
//EE_BL2 = READ_ONLY 0x0FB0 TO 0x0FFF; // 80=128 bytes BL(entry)
//FLA 4000~8000
FLA_4000_7fff = READ_ONLY 0x4000 TO 0x7fff; // for codes
//FLA C000~FFFF
FLA_c000_cfff = READ_ONLY 0xc000 TO 0xcfff; // for 4K fla_data
FLA_d000_fdff = READ_ONLY 0xd000 TO 0xfdff; // for fla_const and codes
FLA_fe00_fefd = READ_ONLY 0xfe00 TO 0xfefd; // init codes
FLA_fefe_feff = READ_ONLY 0xfefe TO 0xfeff; // bootloader flag
FLA_ff00_ff0d = READ_ONLY 0xff00 TO 0xff0d; // secure key
FLA_ff0e_ff0f = READ_ONLY 0xff0e TO 0xff0f; // secre
//FLA_ff10_ff7f
FLA_ff80_ffff = READ_ONLY 0xff80 TO 0xffff; // vectors table
// banked FLASH ROM
//FLA_PAGE_38 = READ_ONLY 0x388000 TO 0x38BFFF;
FLA_PAGE_38 = READ_ONLY 0x388000 TO 0x388001; // for default
FLA_PAGE_39 = READ_ONLY 0x398000 TO 0x39BFFF; // for 4k calib backup
FLA_PAGE_3A = READ_ONLY 0x3A8000 TO 0x3ABFFF;
FLA_PAGE_3B = READ_ONLY 0x3B8000 TO 0x3BBFFF;
FLA_PAGE_3C = READ_ONLY 0x3C8000 TO 0x3CBFFF;
FLA_PAGE_3D = READ_ONLY 0x3d8000 TO 0x3DBFFF; // for codes
INITRM:=0x39;or INITRM=0x80 or 0x40 or 0x20都不行 |