cancel
Showing results for 
Search instead for 
Did you mean: 

CUBEWL - For Sigfox Push button example, I cannot find the classic MX_GPIO_Init() generated with CubeMX, why ? Thank you

LLr.1
Senior
 
1 ACCEPTED SOLUTION

Accepted Solutions
YBOUV.1
Senior

Hello @LLr.1​ , @Sara BEN HADJ YAHYA​ 

gpio.c generation was deactivated in the .ioc because the gpios are managed by their respective functions (BSP_PB_Init for the button). That is why you don't have this gpio.c source nor the call to MX_GPIO_Init().

But we received complains about this specific behavior in CubeWL. This is fixed in the release CubeWL1.2.0 to come within a week from now

hope this answer your question

View solution in original post

2 REPLIES 2
Sara BEN HADJ YAHYA
ST Employee

Hello @LLr.1​ ,

Thanks for your feedback,

I checked the example and you are right, the MX_GPIO_Init() is supposed to be generated in gpio.c file but this file seems to be missing.

Starting a project from scratch using CubeMX, the file is generated correctly so this is not an MX issue, the example seems to be corrupted.

@YBOUV.1​  could you please check this issue ?

Sara.

YBOUV.1
Senior

Hello @LLr.1​ , @Sara BEN HADJ YAHYA​ 

gpio.c generation was deactivated in the .ioc because the gpios are managed by their respective functions (BSP_PB_Init for the button). That is why you don't have this gpio.c source nor the call to MX_GPIO_Init().

But we received complains about this specific behavior in CubeWL. This is fixed in the release CubeWL1.2.0 to come within a week from now

hope this answer your question