cancel
Showing results for 
Search instead for 
Did you mean: 

Defined Pins float on about 0.7 V

MSchn.3
Associate II

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.

3 REPLIES 3
OlivierK
ST Employee

​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

Uwe Bonnes
Principal III

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

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