AnsweredAssumed Answered

Has anyone had any success with -largeAddrInSdm  compiler option ?

Question asked by Roberto Gatti on Mar 7, 2017
Latest reply on Mar 16, 2017 by xiangjun.rong

The DSC is 56f84763.

It has a secondary data flash from X:0x8000 to X:0xBFFF and my segment starts at 0xA000.

I'm using small data model.

I place my const.data in that segment and linker complains that the 16 bit SIGNED displacement in small data model cannot reach my memory.

Ok, I discover that the compiler can generate the correct "far" addressing even in SDM.

Very well, but when I put the flag in compiler command tool the disassembled object file shows a 16 bit relocation record.

The linker still complains, nothing changed.

 

What should I do ?

 

Thanks.

 

PS: no problems in putting code there.

Outcomes