This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Embedded programs stored in FLASH memory run incorrectly. why?

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?.

Parents
  • "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...

Reply
  • "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...

Children
No data