Discussion in "8051 Discussion Forum" started by    scorcho    Oct 29, 2007.
Mon Oct 29 2007, 09:00 am
#1
Hi,
I have a few functions in my 8051 firmware that have a few byte parameters in them, and I noticed that these parameters are stored in DATA space, making me run out of DATA space since I only have 128bytes to work with.

Is there any way of storing these parameters in xdata instead? I noticed that I'm only able to store byte pointers to xdata by using the "xdata" qualifier. The qualifier doesn't work on regular byte parameters.
Mon Oct 29 2007, 09:09 am
#2
OK, I tried declaring the functions as large and now they don't use DATA but rather xdata, with a slight increase in code space. Other than this are there any other implications?

The project is built using the small memory model if that makes a difference.
Mon Oct 29 2007, 11:11 am
#3
use linker script to link your data and code space according to your needs.. that might help you..

do you have xram on board?

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

DonaldJAX
Fri Apr 19 2024, 01:08 pm
Lewisuhakeply
Thu Apr 18 2024, 06:00 pm
Darrellciz
Thu Apr 18 2024, 11:07 am
Charlessber
Thu Apr 18 2024, 09:29 am
BartonSem
Thu Apr 18 2024, 04:56 am
DonaldKnown
Thu Apr 18 2024, 12:24 am
utaletxcyw
Wed Apr 17 2024, 10:21 am
Anthonyvab
Wed Apr 17 2024, 08:48 am