cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WBA55 Example - How to handle pins in reset state?

ledi001
Senior

Hi,

i am using CubeIDE 1.16.1 and if i import the BLE_p2pServer example for NUCLEO-WBA55CG, a few pins (GPIOs for LEDs and buttons) are marked in reset state.

Can somebodey explain why they are in reset state and not in GPIO_Input or GPIO_Output?

2024-10-10_12h56_04.png

4 REPLIES 4
Ghofrane GSOURI
ST Employee

Hello @ledi001 

First let me thank you for posting.

Actually I checked the generated code for both LED and button configuration 

 

 

 GPIO_Init.Pin = LED_PIN[Led];

 GPIO_Init.Mode = GPIO_MODE_OUTPUT_PP; 

 GPIO_Init.Pull = GPIO_PULLUP;

--------------------------------------

 GPIO_Init.Pin = BUTTON_PIN[Button];

 GPIO_Init.Pull = GPIO_PULLUP;

 GPIO_Init.Speed = GPIO_SPEED_FREQ_HIGH;

if (ButtonMode == BUTTON_MODE_GPIO)

 {

/* Configure Button pin as input */

 GPIO_Init.Mode = GPIO_MODE_INPUT;

 

But I will check internally about the UI why is reset state and not in GPIO_Input or GPIO_Output

I will get back to you asap.

 

THX

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hello again  @ledi001 

It has been reported to STM32CubeMX development team .

Internal ticket number:  193403  (This is an internal tracking number and is not accessible or usable by customer)

THX

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Tobias_
Associate II

Are there any updates on this topic?

I have the same problem with Nucleo-C031C6 using cube IDE Version: 1.17.0

Tobias_
Associate II

Right click - unlock seems to solve the issue. But I don't know why it was locked at project startup in the first place.