2019-04-15 05:39 AM
I’m using:
And I have a compilation errors.
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
I noticed something else, errors are generated only under EWARM
Please checking this.
Regards, Dmitrij Budejkin
2019-04-15 05:57 AM
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
2019-04-15 07:00 AM
okay, but if using:
and using new HAL_CAN API. I initialized, data message, then start CAN and call HAL_CAN_AddTxMessage(), and i have get handler error.
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