maniac84
Full Member level 6
- Joined
- Mar 4, 2012
- Messages
- 337
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,298
- Activity points
- 3,661
I faced 'section '.udata_xxx.o' can not fit the section' error and after searching through the net, we actually can create objects larger than 256 Bytes by configure the linker files like below:
If I don't put the word PROTECTED, it can compile. But everytime I put the word PROTECTED, the 'cannot fit error' occurs again. Does this means my firmware really have no memory already?
Code:
DATABANK NAME=gpr1 START=0x100 END=0x1FF
DATABANK NAME=gpr2 START=0x200 END=0x2FF
DATABANK NAME=gpr3 START=0x300 END=0x3FF
DATABANK NAME=gpr4 START=0x400 END=0x4FF
DATABANK NAME=gpr5 START=0x500 END=0x5FF
These 256-byte regions need to be combined into larger regions to fit the new sections:
DATABANK NAME=large_udata START=0x100 END=0x389 PROTECTED
DATABANK NAME=large_idata START=0x38A END=0x519 PROTECTED
DATABANK NAME=gpr5 START=0x51A END=0x5FF
If I don't put the word PROTECTED, it can compile. But everytime I put the word PROTECTED, the 'cannot fit error' occurs again. Does this means my firmware really have no memory already?