pazi88 / STM32_CAN

CAN bus Library for Arduino STM32
GNU General Public License v3.0
62 stars 24 forks source link

Not Stable when using FreeRTOS #38

Open wltue opened 3 weeks ago

wltue commented 3 weeks ago

Haai

I cannot seem to get it stable while using STM32FreeRTOS. It seems to work when i only send on a empty bus (only a Kvaser listening device connected) But when adding more nodes and busload it seems to crash randomly. Using a Nucleo STM32F303RE board with a MCP2542FD chip.

Works fine when i use https://github.com/nopnop2002/Arduino-STM32-CAN with STM32 FreeRTOS on the same hardware.

Thank you.

Included project: can4.zip

wltue commented 3 weeks ago

Seems to execute:

/-----------------------------------------------------------/

if ( configCHECK_FOR_STACK_OVERFLOW >= 1 )

/**  Blink three short pulses if stack overflow is detected.
Run time stack overflow checking is performed if
configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2.  This hook
function is called if a stack overflow is detected.

\param[in] pxTask Task handle \param[in] pcTaskName Task name / void vApplicationStackOverflowHook(TaskHandle_t pxTask, char pcTaskName) { (void) pcTaskName; (void) pxTask; errorBlink(3); }

endif / configCHECK_FOR_STACK_OVERFLOW >= 1 /

But why @ recieving?

mehrdad987 commented 3 weeks ago

Set the recovery time to less than 500ms