Jump to content
babos

Serious Warning Novo

Recommended Posts

Serious Warning: Possible sw stack corruption, function:'wait_x' calls a yielding funcion (Sys_) and is called in more than one execution thread.

Serious Warning: Possible sw stack corruption, function:'wait_y' calls a yielding funcion (Sys_) and is called in more than one execution thread.

Serious Warning: Possible sw stack corruption, function:'wait_z' calls a yielding funcion (Sys_) and is called in more than one execution thread.

Serious Warning: Possible sw stack corruption, function:'wait_r' calls a yielding funcion (Sys_) and is called in more than one execution thread.

Serious Warning: Possible sw stack corruption, function:'motor_reset_all' calls a yielding funcion (Sys_) and is called in more than one execution thread.

Serious Warning: Possible sw stack corruption, function:'eat_set' calls a yielding funcion (Sys_) and is called in more than one execution thread.

 

 

The program work well, what should I worry about this information and how can I verify that?

 

tank's

babos

Share this post


Link to post
Share on other sites
Serious Warning: Possible sw stack corruption, function:'wait_x' calls a yielding funcion (Sys_) and is called in more than one execution thread.

Serious Warning: Possible sw stack corruption, function:'wait_y' calls a yielding funcion (Sys_) and is called in more than one execution thread.

Serious Warning: Possible sw stack corruption, function:'wait_z' calls a yielding funcion (Sys_) and is called in more than one execution thread.

Serious Warning: Possible sw stack corruption, function:'wait_r' calls a yielding funcion (Sys_) and is called in more than one execution thread.

Serious Warning: Possible sw stack corruption, function:'motor_reset_all' calls a yielding funcion (Sys_) and is called in more than one execution thread.

Serious Warning: Possible sw stack corruption, function:'eat_set' calls a yielding funcion (Sys_) and is called in more than one execution thread.

 

 

The program work well, what should I worry about this information and how can I verify that?

Yes you should worry.

 

This warning could be ignored if you make sure that the function in question is never called at the same time from two different threads. Without ensuring this it would mean the function could get re-entered, and not only would local data used in the function become corrupted, but the return point (address) at the end of the function would also be corrupted.

 

Regards

Dave

Share this post


Link to post
Share on other sites

As I said in a previous post reply

 

This is one way of reducing the number of yield points. Just make sure that only one task is calling the pause() function at any time.

 

Cheers

 

Reynard

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...