AnsweredAssumed Answered

HAL_CAN_Transmit_IT mb error with LOCK instanse.

Question asked by VBKesha - on Dec 14, 2017
Latest reply on Dec 28, 2017 by T J

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.

Outcomes