Skip to main content
MSchn.3
Associate
February 4, 2021
Question

Defined Pins float on about 0.7 V

  • February 4, 2021
  • 2 replies
  • 843 views

My pins seem to just be floating even though, i have set them to specific levels.

the only one, that works properly is Pin 3 on 3.3 V.

 MX_GPIO_Init();
 /* USER CODE BEGIN 2 */
 	 HAL_GPIO_WritePin(GPIOA, GPIO_PIN_2, GPIO_PIN_RESET);
 	 HAL_GPIO_WritePin(GPIOA, GPIO_PIN_3, GPIO_PIN_SET);
 	 HAL_GPIO_WritePin(GPIOA, GPIO_PIN_5, GPIO_PIN_SET);
 /* USER CODE END 2 */
 
 /* Infinite loop */
 /* USER CODE BEGIN WHILE */ 
while (1)
 {
	 HAL_GPIO_TogglePin(GPIOA, GPIO_PIN_5);
	 HAL_Delay(5000);
 /* USER CODE END WHILE */
 
 /* USER CODE BEGIN 3 */
 }

I have set them as outputs in the configuration, So they should be working right?

I'm thankful for any help.

This topic has been closed for replies.

2 replies

OlivierK
Technical Moderator
February 4, 2021

​Hi MSchn.3 (Community Member),

On product which product/Board are you working on?

Check your gpio clock settings and gpio configuration in cubeMx.

Regards

In order 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.
MSchn.3
MSchn.3Author
Associate
February 5, 2021

Hi OlivierK, I'm working on the nucleo-WL55JC1 Board.

Uwe Bonnes
Chief
February 4, 2021

Get final answer when running in the debugger and deciphering the GPIO registers.