HI,
I am new to the micro controllers , i am initializing the globals but when i try to access the globals in my program i am not able read the data , but when i try to modify the globals in my function i am able to read the modified data , i checked in these forum where i got to know that startup code has to be used, even i tried that method still the problem i persist, and i am using large memory model in my project.
for example
unsigned char *p = "hello"; void main() { printf("%s",p); } where i get "null" get printed .
Regards, Lokesh Yadav
Run it in the simulator.
If it works in the simulator, then there is most likely something wrong with your hardware and/or your hardware configuration;
If it doesn't work in the simulator, then your code is fundamentally broken - and the simulator will be the easiest place to find the problem!
is it 'not initialized' or 'not initialized to zero'
Erik