We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
By far the most probable cause is that your startup code is broken. How exactly it's broken is impossible to say, since you didn't show any of the things you did to it.