cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WL55JC undefined reference to `MX_SUBGHZ_Init' its STM32 Cube MX generated code and giving this error.

RGili.1
Associate II

0693W000008yA61QAE.png 

If I click in the error it navigates me to #define RADIO_INIT               MX_SUBGHZ_Init, but no function is created by CubeMX.

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @RGili.1​ 

You need to disable the MX_Subghz_init function visibility ( under Project Manager - Advanced Settings ) to avoid this error.

Please re-check and tell me if problem was solved or not.

Thanks, Khouloud

View solution in original post

6 REPLIES 6
Khouloud ZEMMELI
ST Employee

Hello @RGili.1​ 

Thanks for your feedback,

Are you using the latest Cube versions? if yes, could you please share your ioc file to check your case?

Thanks, Khouloud

RGili.1
Associate II

Yes, using updated versions

Cube IDE Version: 1.6.0

CubeMX Version: 6.2.0-RC3

Hello @RGili.1​ 

You need to disable the MX_Subghz_init function visibility ( under Project Manager - Advanced Settings ) to avoid this error.

Please re-check and tell me if problem was solved or not.

Thanks, Khouloud

RGili.1
Associate II

Yes, problem solved disabling MX_Subghz_init function visibility.

Thank you!

Hi Khouloud ZEMMELI,

can you explain, please, why it's needed to disable function visibility?

What is a problem to keep visibility enabled?

Thanks a lot.

Hi @Community member​ ,

It was just a workaround to fix the compilation errors, but issue is under analysis to be fixed.

Khouloud