This widget could not be displayed.
This widget could not be displayed.

LabVIEW Embedded

This widget could not be displayed.
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.

This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 1 of 4
(6,099 Views)

Hello,

 

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

Can somebody pls help us ?

 

thx

 

This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 2 of 4
(6,078 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
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 3 of 4
(6,062 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

This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
0 Kudos
Message 4 of 4
(6,054 Views)