Forum : 8051
Original Post
Post Information | Post |
---|---|
January 2, 2011 - 12:56am
|
LX51 5.01.09 is part of RIDE6 BN 761-51, dated ca 2009. I would like to place constant data in the upper 64K off the C8051F121, which has 128K of Flash. This should be possible with an 'at' or a segment directive. However LX51 doesn't accept CSIZE() above 0x10000H, so there's no way to put the data up there in the primary code image. How can this be done? Note: I don't want use code-banking; that's unnecessarily inefficient and difficult to do with this code. Maybe the CSIZE limit has been fixed in a more recent version of LX51. If so let me know and I'll arrange for an upgrade. Thx Steven Pruzina |
Steven,
A workaround is to generate code for the CodeCompressor which support code size larger than 64KB. You don't have to use it, just generate code for it. It adds some information in the generated files and support code larger than 64KB.
Assembler and Compiler directive is POSTOPT
Linker directive is POSTOPI
Stéphane