Hallo Everyone,
i wrote a small application for the msp430f5438A using the rtos (freertos). the application is designed to receive bytes through the an interrupt.
but i have the following problem:
after receiving two or three bytes, i got this error:
MSP430: Trouble Reading Memory Block at 0xca5a4 on Page 0 of Length 0x61: Invalid parameter(s).
what could be the reason? did anybody have an idea?
Mohammad
hey,
did anyone have an idea about this topic?
Mohammad NasserTrouble Reading Memory Block at 0xca5a4 on Page 0 of Length 0x61: Invalid parameter(s).
Trying to access an address where there is nothing, surely creates an error.
So the question is: why is this address ever accessed?
Possible reasons: stack overflow. Your stack (where the return addresses for funciton calls, but also local variables are stored) expands into an area where there is data,. This can easily happen for managed threads in a multitasking OS, since the OS allocates a certain amount of ram in the middle of free ram for each task.If this area is used up, the stack expands into the memory below where there is data, or an other threads stack. And is corrupted when someone else writes to these areas.As a result, a function will not return to where it was called from, but to whereever the clobbered stack content points to.
Since each thread has its own stack, managed by the RTOS, the debugger is unable to detect a stack overflow and warn you.
_____________________________________Before posting bug reports or ask for help, do at least quick scan over this article. It applies to any kind of problem reporting. On any forum. And/or look here.If you cannot discuss your problem in the public, feel free to start a private conversation: click on my name and then 'start conversation'. But please do so only if you really cannot do it in a public thread, as I usually read all threads. And I prefer to answer where others can profit from it (or contribute to it) too.
Hallo Jens,
thanks a lot for your answer. i am now trying to check it out, to know if this is the real reason.
but i think too, that it is true. becaus iam using rtos, and when i debugg the application and this error happend, some times the rtos detect the stackoverflow while another times this wraning (Trouble Reading Memory Block ) arise.
i am now trying to find a solution for this stackoverflow. and when i find it, i will post here. if you have some tips. it will be nice too :)
thanks again a lot.
I know of no MSP430 that sends out error messages. It must be something or someone else that talks to you.
old_cow_yellow
i dont understand, what do you really mean.
the problem did actually occur, as i wrote.
Mohammad Nasseri dont understand, what do you really mean.
I was only half joking.You saw that error message on the screen of a PC. And that PC was running some sort of “Tool”. Correct?The “something” I spoke about was the PC running that “Tool”. The “someone” I joked about was the supplier of that “Tool”.
The other half of the joke is that "Tool".