Skip to main content
PLitt
Associate
June 3, 2019
Solved

USER CODE block disappeared during upgrade

  • June 3, 2019
  • 3 replies
  • 886 views

Auto-genned code in v1.14 had USER CODE blocks in MX_CAN1_Init, but after upgrading to v1.15 they are no longer there.

Where should I put my ConfigFilter and ActivateNotification calls now?

This topic has been closed for replies.
Best answer by Khouloud ZEMMELI

​Issue will be fixed in the next release @Community member​ .

For the moment you can uncheck  the " Genearte peripheral initialization as a pair of ".c/.h" files per peripheral " under Project Manager-code Generator, you can find under main the MX_Can_Init function with the user code section ( this is a provisional solution for your case).

Best Regards,

Khouloud.

3 replies

Khouloud ZEMMELI
ST Employee
June 4, 2019

​Hello @Community member​ 

could you please share your ioc file ?

Best Regards,

Khouloud.

Khouloud ZEMMELI
ST Employee
June 4, 2019

​Using F7 with V1.15 firmware package version (I think this's your case) - there's no problem ! no difference between V1.14 and V1.15  concerning CAN User code section.

-CubeMX 5.2.1-

Best Regards,

Khouloud.

0690X000008iB0DQAU.png

PLitt
PLittAuthor
Associate
June 4, 2019

Here's my .ioc file and I'm locked to v5.1.0 of CubeMX unless there is good reason to update our team.

I tried updating CubeMX and no luck.

Khouloud ZEMMELI
Khouloud ZEMMELIBest answer
ST Employee
June 4, 2019

​Issue will be fixed in the next release @Community member​ .

For the moment you can uncheck  the " Genearte peripheral initialization as a pair of ".c/.h" files per peripheral " under Project Manager-code Generator, you can find under main the MX_Can_Init function with the user code section ( this is a provisional solution for your case).

Best Regards,

Khouloud.