Using program RAM of 56F8366

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

Using program RAM of 56F8366

1,504 Views
CCW
Contributor I
Hi,
 
I am using Metrowerks Codewarrior for DSP56800 7.3 and 56F8366 microcontroller. My data RAM of 32KB is almost used up. I would like to use the 4KB of program RAM space to store my variables. Can anyone advice me on how to modify the cmd file and the C codes according? Thanks a lot.
 
Regards,
Chee Wee
Labels (1)
Tags (1)
0 Kudos
Reply
1 Reply

368 Views
trytohelp
NXP Employee
NXP Employee
Hi,
 
You're using an old version of CodeWarrior for DSC 7.3.
Freescale 56800/E Digital Signal Controllers Version 8.2
You can download this version on our web site via the link:
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-56800E-DSC
For details please have a look in:
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-56800E-DSC&tab=In-Depth_Tab
In the download tab you can download the Special Edition or the Evaluation.
The Special edition contains the special edition license limited to 32 kb of Code.
If you need another version of the license please contact your local distributor.
You can purchase it directly from the web site too.
We changed the pricing and packaging structure for Codewarrior Tool.
Now there are 4 suites:
 special (free version)
 basic
 standard
 professional
Please refer to the link for details:
http://www.freescale.com/webapp/sps/site/overview.jsp?nodeId=0127262E703BC5
Go to the www.freescale.com and click on My Freescale.
After you were logged, select CodeWarrior Licensing under MY Secure Application.
In the new dialog you can manage your license file.
Keep in mind you can have several versions installed on the same PC.
There is only one restriction: install them on separate folder.
If you're using an old version, please backup your project before to try it with this new version.
If you will meet some compatibility issue you could back to the older version without problem.
 
Regarding your problem.
Do you want to use the RAM area located in the 0x4f800 to 0x4ffff ?
Attached you will find an example using Processor Expert.
This section is already defined in the lcf file:
          .p_internal_RAM  (RWX) : ORIGIN = 0x0004F800, LENGTH = 0x0800
You've 2 solution to do that:
  -  you've enough space to put all data in this section (I don't think),
  -  use __pmem (refer to the Targeting_56800E.pdf manual page 96 -DSC 8.2 manual-)
 
Regards
Pascal
 
Message Edited by t.dowe on 2009-10-15 05:48 PM
0 Kudos
Reply