From: <zh...@cm...> - 2005-06-19 09:17:56
|
I compiled programs with the following setting: CC=sdcc --debug $(COMPILEOPT) $(OPTIMITE) $(CHIP_FLAGS) $(CFLAGS) $(PREDEFINE) COMPILEOPT=-mmcs51 --stack-auto --use-stdout PREDEFINE=-D_DEBUG -DSDCC --model-large CFLAGS=-I/usr/share/sdcc/include -Iincludes #OPTIMITE=--nogcse CHIP_FLAGS=--code-size 32768 --iram-size 256 --xram-size 65536 The compiler generated the ihx file and bin file successful. But when I used s51 to run it, both the ihx file and bin file got error. Solomon:/MyOffice/chanding/src/client# s51 radical.ihx uCsim 0.5.4, Copyright (C) 1997 Daniel Drotos, Talker Bt. uCsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. 27663 words read from radical.ihx 0> r Simulation started, PC=0x000000 error: invalid address 0xff in memory iram. Erronouse instruction: 0x6b2a f6 MOV @R0,A Stop at 0x006b2b: (108) F 0x006b2b 0> q Solomon:/MyOffice/chanding/src/client# s51 radical.bin uCsim 0.5.4, Copyright (C) 1997 Daniel Drotos, Talker Bt. uCsim comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. : not found 0 words read from radical.bin 0> r Simulation started, PC=0x000000 error: invalid address 0xfa in memory iram. Erronouse instruction: ? 0x00e1 86 21 MOV 21,@R0 Stop at 0x0000e3: (108) F 0x0000e3 0> q Solomon:/MyOffice/chanding/src/client# When I try SDCDB, it crashed every time. I tried to burn bin file into chip, it doesn't work either. Can anybody help me? |