RAM1 usage on RS08LE4

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RAM1 usage on RS08LE4

1,995 Views
UtopiaTim
Contributor III
Hi Folks,
 
Have a similar question up on the CW forum, but figured perhaps there are
some that have encountered this problem & don't read that forum.
 
Got a fixup error when compiling my LE4 code (CW6.2).  Found that I had
overflowed the amount of memory in the RAM array. (the LE4 has both RAM
@ $50-BF & RAM1 @ $100-17F). 
 
How do I get CW to use that array?  It would need to do a PAGSEL to get to
it, but CW does that all the time with various registers that aren't in the bottom
page of memory.
 
The .PRM file has:
 
RAM   = READ_WRITE  0x0050  TO 0x00BF;
RAM1  = READ_WRITE  0x01200 TO 0x017F
....
 
DEFAULT_RAM    INTO RAM, RAM1, TINY_RAM
 
In the .MAP file, as long as I keep below the top of RAM, there's no problem
(OBJECT LIST SORTED BY ADDRESS).  As soon as I add a variable that
puts it over, then I get the Fixup error and see the address as $100 in the map file.
 
Just wondering if anybody else has seen this.

Thanks,
 
Tim
 
Labels (1)
0 Kudos
Reply
3 Replies

1,055 Views
CrasyCat
Specialist III
Hello
 
I would recommend you to take a look at FAQ-28840 on www.freescale.com.
 
That should give you advice on how to define/use variable outside of 0x00..0xFF on RS08 MCus.
 
CrasyCat
0 Kudos
Reply

1,055 Views
UtopiaTim
Contributor III
Hi Crasy,
 
Thanks for the info, but it sure seems to be a big deal to have to go through
all of that, as CW already does a good job of using the page register on
the registers that are not in 0-ff.
 
Tim
 
 
0 Kudos
Reply

1,055 Views
ProcessorExpert
Senior Contributor III
The problem with access to the RAM1 memory on LE4 in Processor Expert has been answered here.

best regards
Vojtech Filip
Processor Expert Support Team
UNIS
0 Kudos
Reply