cancel
Showing results for 
Search instead for 
Did you mean: 

HAL_CAN_Transmit_IT mb error with LOCK instanse.

VBKesha -
Associate II
Posted on December 14, 2017 at 21:39

Hello!

I think in HAL CAN driver have error in function

HAL_CAN_Transmit_IT

I put part of driver here 

https://pastebin.com/PhHcMC94

on line 13 we see

  1.     __HAL_LOCK

    (

    hcan

    )

    ;

next on line 29 we see

  1.    

    if

    (

    transmitmailbox

    !=

    CAN_TXSTATUS_NOMAILBOX

    )

and next execute only if statement true

  1.       __HAL_UNLOCK

    (

    hcan

    )

    ;

If system haven't free mailbox hcan instense not unlocked. And i cant execute any funtion because his instanse locked.

I'm not sure that I'm right. If I'm not right, explain why it's written like that.

#lock #can-hal_can_transmit_it #can
4 REPLIES 4
Imen.D
ST Employee
Posted on December 15, 2017 at 12:12

Hello ,

Could you precise in which firmware package are you facing this issue ?

Best Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on December 18, 2017 at 09:09

STM32L4 1.10.0

Posted on December 27, 2017 at 14:57

Hello

_.VBKesha

,

We have already passed CAN issues along to our development team.

We would inform you that HAL CAN driver will be reworked in our future releases for 2

Thank you for your contribution.

Kind Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
T J
Lead
Posted on December 28, 2017 at 21:58

did you fix your issue ?