cancel
Showing results for 
Search instead for 
Did you mean: 

USER CODE block disappeared during upgrade

PLitt
Associate

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?

1 ACCEPTED SOLUTION

Accepted Solutions

​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.

View solution in original post

4 REPLIES 4
Khouloud ZEMMELI
ST Employee

​Hello @Community member​ 

could you please share your ioc file ?

Best Regards,

Khouloud.

Khouloud ZEMMELI
ST Employee

​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
Associate

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.

​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.