Add error handling in thread creation #7

Open
opened 2026-06-14 11:32:24 +02:00 by eeeck · 0 comments
Owner

In the RTOS thread creation:

  xCAN1rx = osThreadNew(vCANLoggerListen, &hcan1, &CAN1rxAttributes);
  xCAN2rx = osThreadNew(vCANLoggerListen, &hcan2, &CAN2rxAttributes);

add an error handling condition, like:

  if (xCAN1rx == NULL || xCAN2rx == NULL) Error_Handler();

(not sure if this will work, verify)

In the RTOS thread creation: ```c xCAN1rx = osThreadNew(vCANLoggerListen, &hcan1, &CAN1rxAttributes); xCAN2rx = osThreadNew(vCANLoggerListen, &hcan2, &CAN2rxAttributes); ``` add an error handling condition, like: ```c if (xCAN1rx == NULL || xCAN2rx == NULL) Error_Handler(); ``` (not sure if this will work, verify)
eeeck added the minor label 2026-06-14 11:32:24 +02:00
eeeck self-assigned this 2026-06-14 11:32:24 +02:00
eeeck added this to the Thesis SCRUM project 2026-06-14 11:32:24 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: eeeck/CANdigger#7