Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Stable when using FreeRTOS #38

Open
wltue opened this issue Jul 5, 2024 · 2 comments
Open

Not Stable when using FreeRTOS #38

wltue opened this issue Jul 5, 2024 · 2 comments

Comments

@wltue
Copy link

wltue commented Jul 5, 2024

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
Copy link
Author

wltue commented Jul 5, 2024

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
Copy link

Set the recovery time to less than 500ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants