Hi Ake,
I download the attached file and successfully run with my demo9s08qg8 board. But while I ported into my project, it cannot work.
I had modify the project.prm contents,
**********************************************************************************************************
SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */
EEPROM = READ_ONLY 0xE000 TO 0xE1FF;
Z_RAM = READ_WRITE 0x0060 TO 0x00FF;
RAM = READ_WRITE 0x0100 TO 0x025F;
ROM = READ_ONLY 0xE200 TO 0xFFAD;
ROM1 = READ_ONLY 0xFFC0 TO 0xFFCF;
CODE_RELOC = READ_ONLY 0xe200 TO 0xe240 RELOCATE_TO 0x0060;
/* INTVECTS = READ_ONLY 0xFFD0 TO 0xFFFF; Reserved for Interrupt Vectors */
END
*********************************************************************************************************
while my program run to "CopyErase" function, the debugger halt. I also view the project.map file, I find
the "flash" related function didn't allocate into correct address,
**************************************************************************************
MODULE: -- flash.c.o --
- PROCEDURES:
EraseFlash E5B0 46 70 1 ROM
CopyErase E5F6 4D 77 1 ROM
InitFlash E643 F 15 1 ROM
ProgFlash E652 4B 75 1 ROM
CopyProgram E69D 35 53 1 ROM
RunProgram E6D2 E 14 1 ROM
GetMode E6E0 4 4 1 ROM
SetMode E6E4 1B 27 2 ROM
- VARIABLES:
rStoredValue 103 1 1 1 .bss
StoredValue E000 1 1 2 .abs_section_e000
FlashRamBuffer 11E 50 80 6 .common
******************************************************************************************
anyone can help me?
Message Edited by SBLC on
2008-02-02 01:56 PM