cancel
Showing results for 
Search instead for 
Did you mean: 

Bug with choice legacy library and new CubeMx?

dmitrij.budejkin
Associate

I’m using:

  1. CubeMX v5.0
  2. STM32F105RCTx
  3. HAL_API_version 1.6.1

And I have a compilation errors.

0690X000008AX7cQAG.jpg

This happens because CubeMX generates a CAN_InitTypeDef structure for new libraries (version 1.7.0).

See what should be the structure for libraries 1.6.1

0690X000008AX8BQAW.jpg

I noticed something else, errors are generated only under EWARM

Please checking this.

Regards, Dmitrij Budejkin

2 REPLIES 2
Imen.D
ST Employee

Hello,

You are using an old Cube firmware package. The HAL CAN driver is reworked since the release of STM32CubeF1 V1.7.0 and aligned with STM32CubeMx V5.1.0

So, please update and use the STM32CubeF1 V1.7.0 with STM32CubeMX 5.1.0, that contain bugs fixes and enhancement.

Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

okay, but if using:

  • STM32CubeMX 5.1.0
  • STM32CubeF1 V1.7.0

and using new HAL_CAN API. I initialized, data message, then start CAN and call HAL_CAN_AddTxMessage(), and i have get handler error.

0690X000008AXVZQA4.png

What is important, this only happens on the F105RExx. When I'm using F446RExx, new HAL_CAN API works fine

Please checking this.

Regards, Dmitrij Budejkin