STM32 HAL linter error

I recently started playing wiht my Nucleo board and HAL. I noticed that every time I build code I get “linter error”. I still can compile code and it works but it’s a bit uncomfortable to see red dot and error every time. Here’s how it looks like. I get error next to the line with __HAL_RCC_GPIOA_CLK_ENABLE();

#include "stm32f3xx_hal.h"

int main(void){
  HAL_Init();

__HAL_RCC_GPIOA_CLK_ENABLE();

  GPIO_InitTypeDef gpio;

  gpio.Pin = GPIO_PIN_0;
  gpio.Mode = GPIO_MODE_OUTPUT_PP;
  gpio.Pull = GPIO_PULLUP;
  gpio.Speed = GPIO_SPEED_FREQ_LOW;
  HAL_GPIO_Init(GPIOA, &gpio);

  while (1)
  {

    HAL_GPIO_TogglePin(GPIOA, GPIO_PIN_0);
    HAL_Delay(1000);
  }
}

void SysTick_Handler(void){
  HAL_IncTick();
}

Could you try PlatformIO IDE for VSCode?

1 Like

I tested it but also new update for STM32 was available, after installing it everything compiles fine with VSCode and Atom. Seems that was problem with previous platform update. I think problem is solved.