2015-02-26 02:11 AM
The function HAL_CAN_ConfigFilter() takes as a parameter CAN_HandleTypeDef* hcan (a handle) but inside the function will be used a fixed CAN1.
Line 370: /* Initialisation mode for the filter */ CAN1->FMR |= (uint32_t)CAN_FMR_FINIT; Should not be used hCan->Instance-> ... ? #stm32cube #can2015-02-26 05:34 AM
Should not be used hCan->Instance-> ... ?
Wouldn't that really depend on if the register exists in both CAN1 and CAN2, or if it's only in CAN1.Remember CAN2 is a slave/subset of CAN12015-02-26 07:36 AM
Thank you very much!