I am writing code for a STM32F746 discovery board and everything was progressing very well until today. Just now after starting VS and loading my VisualGDB project I was asked if I wanted to upgrade the STM32 HAL files. I clicked yes and it appeared that the update went well. But now the project produces 161 compilation errors. The errors are too numerous to list here but all appear to be ‘unknown type’ or ‘undeclared’ errors, as if information in h files can not be accessed. I have tried shutting VS down and restarting and even rebooting the computer but to no avail. Any idea on how to clear these errors or alternatively how to go back to the old HAL files?
rus51
This topic was modified 8 years, 8 months ago by rus51.
I have found the problem. Be aware that the update totally scrambles any module configurations you have made in stm32f7xx_hal_conf.h and also overwrites any and all modifications you have made to any of HAL h and c files. I am lucky, I made notes about mods I made to these files.
Yes, the HAL update indeed overwrites the HAL sources and headers with the newest versions, however the stm32f7xx_hal_conf.h file should be located in your project directory and hence not be affected by the update.
If there is a bug in some of our templates that results in referencing hal_conf from the HAL directory instead of copying it, please let us know.