Bug in HAL_CAN_ConfigFilter() in STM32Cube_FW_F4_V1.4.0 ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-02-26 2:11 AM
Posted on February 26, 2015 at 11:11
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 #can
Labels:
- Labels:
-
CAN
-
STM32Cube MCU Packages
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-02-26 5:34 AM
Posted on February 26, 2015 at 14:34
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 CAN1
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-02-26 7:36 AM
Posted on February 26, 2015 at 16:36
Thank you very much!
