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

0