Skip to main content
HGran.1
Associate II
November 26, 2020
Solved

Adding User Label in CubeMX, and regenerating code, CubeIDE doesn't add appropriate #define resulting in undeclared errors. Is this the design behavior?

Shouldn't CubeMX 6.01 create the #defines that coorespond to newly added User Labels in an existing project ?

Of course it works if I add the User Labels as #defines manually.

If this is the expected design behavior, please let me know...

Thanks,

Heather

This topic has been closed for replies.
Khouloud ZEMMELI
Khouloud ZEMMELIBest answer
ST Employee
December 7, 2020

Hi @HGran.1​ ,

Any feedback ? do you confirm that CubeMX 6.1.0 fix your issue?

Khouloud

4 replies

Khouloud ZEMMELI
ST Employee
December 4, 2020

Hello @HGran.1​ 

Can you please check with the 6.1.0 CubeMX version if problem still exist or not ?

Thanks, Khouloud

Khouloud ZEMMELI
Khouloud ZEMMELIBest answer
ST Employee
December 7, 2020

Hi @HGran.1​ ,

Any feedback ? do you confirm that CubeMX 6.1.0 fix your issue?

Khouloud

JSchn.4
Associate II
February 15, 2021

Hi there,

I had the same problem. The reason for me was pretty simple.

Since I am working on a dual core, I had to assign a "Pin Context" (M7 or M4).

After having assigned that, it worked as expected.

Here is a screenshot of the configuration

0693W000008GD9FQAW.pngHope it helps you too!

Johannes

Visitor II
December 11, 2024

This worked for me.
Thanks!