Hello everyone,
I just port Contiki into si1000, which integrate si4432 and c8051f930.And I
use SDCC to compile my program. But now, I was puzzled by some problems.
----------------------------------------------------------------
CFLAGS += --model-$(MEMORY_MODEL) --stack-auto -mmcs51 --std-c99 --nooverlay
--debug
LDFLAGS += --model-$(MEMORY_MODEL) --stack-auto -mmcs51 --out-fmt-ihx
LDFLAGS += --xram-loc 0x0001 --xram-size 0x0FFF --iram-size 0x7f --data-loc
0x00 --idata-loc 0x80
LDFLAGS += --code-loc $(START_ADDR) --code-size $(CODE_SIZE)
ASFLAGS += -plosgff
-------------------------------------------------------------
Internal RAM layout:
0 1 2 3 4 5 6 7 8 9 A B C D E F
0x00:|0|0|0|0|0|0|0|0|a|a|a|a|b|b|b|b|
0x10:|c| | | | | | | | | | | | | | | |
0x20:|T| | | | | | | | | | | | | | | |
0x30:| | | | | | | | | | | | | | | | |
0x40:| | | | | | | | | | | | | | | | |
0x50:| | | | | | | | | | | | | | | | |
0x60:| | | | | | | | | | | | | | | | |
0x70:| | | | | | | | | | | | | | | | |
0x80:|I|I|I|I|I|I|I|I|I|I|I|I|I|I|I|I|
0x90:|I|I|I|I|I|I|I|I|I|I|I|I|I|I|I|I|
0xa0:|I|I|I|I|I|I|I|I|I|I|I|I|I|I|I|I|
0xb0:|I|I|I|I|I|I|I|I|I|I|I|I|I|I|I|I|
0xc0:|I|I|I|I|I|I|I|I|I|I|I|I|I|I|I|I|
0xd0:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|
0xe0:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S|
0xf0:|S|S|S|S|S|S|S|S|S|S|S|S|S|S|S| |
0-3:Reg Banks, T:Bit regs, a-z:Data, B:Bits, Q:Overlay, I:iData, S:Stack,
A:Absolute
Stack starts at: 0xd0 (sp set to 0xcf) with 0 bytes available.
Other memory:
Name Start End Size Max
---------------- -------- -------- -------- --------
PAGED EXT. RAM 0x0001 0x0028 40 256
EXTERNAL RAM 0x0001 0x0118 240 4095
ROM/EPROM/FLASH 0x0000 0x3de9 15850 63488
-------------------------------------------------------------------------
You can see my makefile.si1000 and blink-hello.mem above. When I load
blink-hello.hex into my chip it didn't work. Then I use ec2drv to debuge it, I
found program even didn't went into main(). But if I delet pdata's 40 or make
xram small than 250 it will work. It is so ridiculous! And I really hope
someone can help me, thank you very much!
Because English is not my mother language, you may can't understand what I
say very well. Please, just ask me. I really want finish this project as soon
as possible.
Sirius Cheng
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user