03-21-2011 12:28 PM
I sometimes run into a problem where the CAN messages I need to read is broadcast at a speed that the ARM controller cannot keep up and eventually the program crashes and stops running with an OS Stack Overflow error. Is there a way to limit the CAN buffer size to keep the entire program from crashing? It's not real critical if I miss some messages, but I need to be able to keep running. I have already optimized the code and can probably try to optimize further to limit how often this problems happens, but it needs to be able to handle 100% bus load without the software locking up - even if it means some messages have to be thrown out.
03-28-2011 09:09 AM
Hello,
i have the same problem. And i don`t find any information about solving this problem.
Can somebody pls help us ?
thx
04-04-2011 01:23 PM
This is most likely dealing with the OS stack in general and not the CAN driver specifically. The OS stack is predetermined to a certain limit as a guess to the resources that the users will need. The best thing to do is to optimize your code better. If you want me to look more into this issue, you will need to attach your project with all code included as well as a screen shot fo the error (make sure you get all of the text ofthe error).
Scott W
04-05-2011 01:16 AM
Hello,
my problem was, that I worked with the debug modus.
Now I deactivate this modus and pay attention on the timing and it works.
Thank you for your help
Best regards