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
  • The buffer did not modified in UIP_writeSdo.

    It seems ok since I write static UIP_UCHAR appBuf[APP_MSG_SIZE].

    What I wondering is why all the global data is corrupted since I use UCHAR appBuf[APP_MSG_SIZE]?

    just like the picture indicate:

    I just declare UIP__UCHAR appBuf[APP_MAG_SIZE] as an local variable in thread, why it cause this problem?

Reply
  • The buffer did not modified in UIP_writeSdo.

    It seems ok since I write static UIP_UCHAR appBuf[APP_MSG_SIZE].

    What I wondering is why all the global data is corrupted since I use UCHAR appBuf[APP_MSG_SIZE]?

    just like the picture indicate:

    I just declare UIP__UCHAR appBuf[APP_MAG_SIZE] as an local variable in thread, why it cause this problem?

Children