2024-10-10 04: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 05:21 AM - edited 2024-10-10 05: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 06: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