Bug on HAL_CAN_Transmit_IT on STM32F105 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-02-16 10:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-02-18 7:21 AM
Hi marco,
I would like to know which CubeMX version are you using?With CubeMX 4.13, you shouldn't face the described issue.This is because there was a bug in the function HAL_CAN_Transmit_IT when no mailbox is available and it was fixed in the STM32CubeF4 V1.11.0 package (the one used by MX 4.13).-Mayla-To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-02-18 8:03 AM
I use Version 4.13.0 Firmware Package 1.3.1.
If you check the code, when you have Mailbox full, you will exit from function with ''Process Locked '' and function return HAL_OK. So you can't know if MailBox are full !Regards- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-02-19 8:22 AM
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-01-25 6:08 PM
Yes. I also found this bug. Additional, although mailbox is empty, it always shows 'HAL_LOCKED'.
So, we can check the LOCK status and return value after the function is called.
If HAL_LOCK and HAL_OK, it indicates that mailbox is full.
Regards
