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

ram data corrupt

hello

I write program in one kind of RTOS. But some times  all the data in RAM are corrupt since I add some code

in functions, if continue add some code in the function, the data in RAM is OK.

Parents
  • it means my code in thread has damage this procedure

    No, it most certainly doesn't mean that, because that procedure has finished long before any code in your thread gets executed.  What can happen is if you overflow the stack wildly enough, your code may overwrite any variable of the entire program.  Which is why you really have to take care not to do that.  Ever.

Reply
  • it means my code in thread has damage this procedure

    No, it most certainly doesn't mean that, because that procedure has finished long before any code in your thread gets executed.  What can happen is if you overflow the stack wildly enough, your code may overwrite any variable of the entire program.  Which is why you really have to take care not to do that.  Ever.

Children
  • hello broeker

    I operate like the following procedure, open debugger window and then click next step. I found the data has been modified before enter main function. so I suspect my code influnce the procedure that CORTEX-M3 copy data from flash to RAM, I do not know much about that, so I want to inquire you that.