cancel
Showing results for 
Search instead for 
Did you mean: 

HAL SmartCard bug

f239955_stm1
Associate
Posted on April 11, 2016 at 06:18

Dear ST staff,

I found a small bug in CubeMX 4.12.0.

Although I don't use latest CubeMX, I contribute this discussion, becasuse RereaceNote of CubeMX says the bug  is still existing.

The bug is at SMARTCARD_Receive_IT() on stm32f4xx_hal_smartcard.c.

At line 5, and 6,

    tmp = (uint16_t*) hsc->pRxBuffPtr;

 

    *tmp = (uint16_t)(hsc->Instance->DR & (uint16_t)0x00FF);

 

But, hsc->pRxBuffPtr points 8bit variable, so neighber valiable is destroyed in this substitution.

Best regards,

F Nimura
1 REPLY 1
Nesrine M_O
Lead II
Posted on April 15, 2016 at 14:10

Hi F Nimura ,

Thank you for your feedback. The issue has been reported internally.

-Syrine –