2024-10-10 4:06 AM
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 5:21 AM - edited 2024-10-10 5:33 AM
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
2024-10-10 6:13 AM
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
2025-02-27 4:38 AM
Are there any updates on this topic?
I have the same problem with Nucleo-C031C6 using cube IDE Version: 1.17.0
2025-02-27 5:12 AM
Right click - unlock seems to solve the issue. But I don't know why it was locked at project startup in the first place.