LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

OS Stack Overflow on MCB2300

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.

0 Kudos
Message 1 of 4
(5,988 Views)

Hello,

 

i have the same problem. And i don`t find any information about solving this problem.

Can somebody pls help us ?

 

thx

 

0 Kudos
Message 2 of 4
(5,967 Views)

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

National Instruments
Applications Engineer
0 Kudos
Message 3 of 4
(5,951 Views)

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

0 Kudos
Message 4 of 4
(5,943 Views)