Skip to main content
dmitrij.budejkin
Associate
Apr 15, 2019 12:39 PM UTC
Question

Bug with choice legacy library and new CubeMx?

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

This topic has been closed for replies.

2 replies

ST Technical Moderator
Apr 15, 2019 12:57 PM UTC

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
dmitrij.budejkin
Associate
Apr 15, 2019 2:00 PM UTC

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