Skip to main content
ledi001
Associate III
October 10, 2024
Question

STM32WBA55 Example - How to handle pins in reset state?

  • October 10, 2024
  • 3 replies
  • 989 views

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

3 replies

Ghofrane GSOURI
Technical Moderator
October 10, 2024

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.
Ghofrane GSOURI
Technical Moderator
October 10, 2024

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.
Associate
February 27, 2025

Are there any updates on this topic?

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

Associate
February 27, 2025

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