Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/31/02 15:11
Read: times


 
#26565 - RE: PDATA page size


Bryan Whitton wrote:
-------------------------------


Nasir Sultan wrote:
-------------------------------
Hi all
I tried to define an array of 256 bytes in external ram as pdata as:

unsigned char pdata PDat[256];
main(){ }

But I am getting the following message by KEIL and RIDE Linker:

ERROR L134: SEGMENT DOES NOT FIT IN PDATA PAGE
SPACE: XDATA
SEGMENT: ?PD?T1
LENGTH: 0100 H

if I chane it to PDat[255] then there is no error.
But the Frankln's ProView compile and link it with out any error.
Can someone explain, Why?

Regards
NS

Yep, 0 to 256 = 257 (100H) addresses. 0 to 255 = 256(0FFH) addresses.

A page is 256 bytes.

I don't know why Franklin's compiler ignores the illegal array length.

Bryan Whitton
American Raisonance
www.amrai.com

Too early for me too I Guess.

Bryan

List of 11 messages in thread
TopicAuthorDate
PDATA page size            01/01/70 00:00      
RE: PDATA page size            01/01/70 00:00      
RE: can you explain a little further ??            01/01/70 00:00      
RE: PDATA page size            01/01/70 00:00      
RE: PDATA page size            01/01/70 00:00      
RE: PDATA page size ps            01/01/70 00:00      
RE: PDATA page size ps            01/01/70 00:00      
RE: PDATA page size            01/01/70 00:00      
RE: PDATA page size            01/01/70 00:00      
RE: PDATA page size - RIDE            01/01/70 00:00      
RE: PDATA page size            01/01/70 00:00      

Back to Subject List