This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Use of "Off-chip XData Memory"?

Hi,

I'm running a small testapp to see if my 80c32 uP is running fine.
Therefore, I toggle P1_0 and next to this, I'm writing a value to a var defined in external RAM.

The RAM starts at address 0x0 and is 2kB long, so the end is at 0x7FF.
I define those ranges via 'Options - Options for Target 'Target 1' - Target' - Off-chip Xdata memory.

However, I see something very strange: when I declare my variable (for fun) at a fixed location outside the given range (e.g. unsigned char xdata testvar _at_ 0x850;), then I don't get a warning, even if I'm working outside the range.
Most strange of all, the variable is written and read correctly too (I'm toggling another pin if comparison is failing and I'm observing this pin with a scope, but I don't see any toggling => value exchange seems to be correct...)!

Can't understand this...

Anyone any idea?

--Geert

Parents
  • "Should I stop having fun now??? ;-)"

    May I suggest "bar rowing"

    You line up 2 teams at the bar, each member with a beer.
    At the start signal member 1 of both teams drains his beer and hold it upside down over member 2s head, then member 2 drain his beer and hold it .... and so on.

    This get to be real fun if a team insist on winning (try to be member 1)

    Erik

Reply
  • "Should I stop having fun now??? ;-)"

    May I suggest "bar rowing"

    You line up 2 teams at the bar, each member with a beer.
    At the start signal member 1 of both teams drains his beer and hold it upside down over member 2s head, then member 2 drain his beer and hold it .... and so on.

    This get to be real fun if a team insist on winning (try to be member 1)

    Erik

Children
No data