Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ARRAY With PTR using User Memory
#1
We try to do Array with PTR format pointing to User memory.

So, we do:

PTR Myvar(16)->u.user.$1000

After download, we see that Myvar is M8192 on our mapping and of course, next 15 M_variables are reserved, which is OK.

We check then the pointing of M8192 to M8208 and they are all pointing to the same location, address $1000
We see:
M8192->u.user:$1000
M8193->u.user:$1000
M8194->u.user:$1000
and so on.

We should have an index of 4 (because of the u format):
M8192->u.user:$1000
M8193->u.user:$1004
M8194->u.user:$1008
and so on.

We did the same test with d format instead of u format and we have
same problem.
We see:
M8192->d.user:$1000
M8193->d.user:$1000
M8194->d.user:$1000

We should have an index of 8 (because of the d format):
M8192->d.user:$1000
M8193->d.user:$1008
M8194->d.user:$1016
and so on.


So, we think that this is a bug to fix.
We are using Firmware 0.9 of NOV 20 2008
Reply


Messages In This Thread
ARRAY With PTR using User Memory - DT-Europe - 11-26-2008, 09:12 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)