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.
I have problem with global variable, when run with debugger, it can run correctly, but when it loaded into flash it not working. when i change global varibale to local variable, it run correctly in flash. can anyone tell me why?.
"when run with debugger"
Presumably, you mean the Simulator?
"it not working"
In what way, precisely, is it "not working"?
"can anyone tell me why?"
Not on the scant inofrmation you've provided! Your question is a bit like, "my car won't work - what's wrong with it"
You need to do some more investigation to determine exactly what it is that is "not working".
Given that it "works" in the Simulator, a primary suspect must be your target hardware: Are you sure that your target hardware is working properly? In particular, its memory system. How have you proved it?
Is your target hardware correctly configured - memory controllers, etc?
Are you sure that your software is correctly configured for your target hardware? ie, not trying to access memory that doesn't exist...