Compilation problem with 2.9.0 core (and 2.8.0)
Posted: Thu Jan 02, 2025 7:31 pm
Hi everybody and happy new year.
In this days, I tried to recompile an old sketch with 2.9.0 core but it fails and Output console show so many errors that I can't see the first one and I don't know how to redirect Output console messages to file.
Here are some:
/home/luca/.arduino15/packages/STMicroelectronics/hardware/stm32/2.9.0/system/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:299:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'PCD_StateTypeDef'?
299 | HAL_StatusTypeDef HAL_SetTickFreq(HAL_TickFreqTypeDef Freq);
| ^~~~~~~~~~~~~~~~~
| PCD_StateTypeDef
/home/luca/.arduino15/packages/STMicroelectronics/hardware/stm32/2.9.0/system/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_usb.h:582:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_SD_StateTypeDef'?
582 | HAL_StatusTypeDef USB_FlushRxFifo(USB_TypeDef const *USBx);
| ^~~~~~~~~~~~~~~~~
| HAL_SD_StateTypeDef
/home/luca/.arduino15/packages/STMicroelectronics/hardware/stm32/2.9.0/system/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2s.h:405:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_I2S_StateTypeDef'?
405 | HAL_StatusTypeDef HAL_I2S_Init(I2S_HandleTypeDef *hi2s);
| ^~~~~~~~~~~~~~~~~
| HAL_I2S_StateTypeDef
So I have installed 2.8.0 core and I gave the same errors.
I downgraded to 2.7.0 core and errors disappeared...
My sketch use SPI, I2C, RTC and USB.
Board is a Generic F103RETX.
My question is: is there someting changed from 2.8.0 core about HAL usage? Do I need to make some changes in my sketch (for example, add the build_opt.h file with some directives) for make the sketch compilation work again?
Is there someone that knows how to redirect Output console to file in order to see all errors?
Thanks again for your fantastic work.
Best regrard.
Luca
In this days, I tried to recompile an old sketch with 2.9.0 core but it fails and Output console show so many errors that I can't see the first one and I don't know how to redirect Output console messages to file.
Here are some:
/home/luca/.arduino15/packages/STMicroelectronics/hardware/stm32/2.9.0/system/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h:299:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'PCD_StateTypeDef'?
299 | HAL_StatusTypeDef HAL_SetTickFreq(HAL_TickFreqTypeDef Freq);
| ^~~~~~~~~~~~~~~~~
| PCD_StateTypeDef
/home/luca/.arduino15/packages/STMicroelectronics/hardware/stm32/2.9.0/system/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_usb.h:582:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_SD_StateTypeDef'?
582 | HAL_StatusTypeDef USB_FlushRxFifo(USB_TypeDef const *USBx);
| ^~~~~~~~~~~~~~~~~
| HAL_SD_StateTypeDef
/home/luca/.arduino15/packages/STMicroelectronics/hardware/stm32/2.9.0/system/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_i2s.h:405:1: error: unknown type name 'HAL_StatusTypeDef'; did you mean 'HAL_I2S_StateTypeDef'?
405 | HAL_StatusTypeDef HAL_I2S_Init(I2S_HandleTypeDef *hi2s);
| ^~~~~~~~~~~~~~~~~
| HAL_I2S_StateTypeDef
So I have installed 2.8.0 core and I gave the same errors.
I downgraded to 2.7.0 core and errors disappeared...
My sketch use SPI, I2C, RTC and USB.
Board is a Generic F103RETX.
My question is: is there someting changed from 2.8.0 core about HAL usage? Do I need to make some changes in my sketch (for example, add the build_opt.h file with some directives) for make the sketch compilation work again?
Is there someone that knows how to redirect Output console to file in order to see all errors?
Thanks again for your fantastic work.
Best regrard.
Luca