Hallo, in the module with "main()" I declare a global variable of typ: param_konfiguration (structure)
param_konfiguration xdata p_konfiguration;
In an other file I try to access this structure (I import the symbol with "extern"). The program compiles but I cannot access this variable.
My code (in: ini.c):
p_konfiguration.logAnzahl = 0;
does not do anything :/
Other members aren't accessible too and contain (?) garbage. Any ideas? (I'm using this global Variable mainly with RS232 transfers)
Did you enable the external data memory ?
You didn't say what chip you were using, but most chips with on-chip xdata require you to enable it first.
Usually I use XDATA often in my program. I'm using Phillips 80c552. The strange thing: In "main" Module:
works.... The same does not work in other modules (although I import the Symbol with extern).
I've found the problem :D:D:D Sorry for useless posting: the memory mapping of the device was not set correctly.
But thank you for trying to help me. I spent 2 whole days with this Problem
Greetings
Wojtek