Skip to main content
GSaw
Associate III
Feb 7, 2022 6:20 AM UTC
Solved

STMCubeIDE generating errors in the driver files on creation of new project. How do I eliminate those errors and why are they occurring even on an empty project ? I've attached the screenshot. Please help. Thank you.

0693W00000JOloIQAT.png

This topic has been closed for replies.
Andrew Neil
Andrew NeilBest answer
Super User
Feb 7, 2022 8:14 AM UTC

Whenever you get loads of errors like this, the secret is to start with the very first reported error - most likely many (even all) of the rest will be knock-ons from it.

 

To do that, use the 'Console' view - not the 'Problems' list:

 

0693W00000JOmJKQA1.png

(the 'Problems' list unhelpfully re-orders things - so you won't know which message was actually the first)

 

#UseConsoleView

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.

2 replies

Andrew Neil
Andrew NeilBest answer
Super User
Feb 7, 2022 8:14 AM UTC

Whenever you get loads of errors like this, the secret is to start with the very first reported error - most likely many (even all) of the rest will be knock-ons from it.

 

To do that, use the 'Console' view - not the 'Problems' list:

 

0693W00000JOmJKQA1.png

(the 'Problems' list unhelpfully re-orders things - so you won't know which message was actually the first)

 

#UseConsoleView

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
GSaw
GSawAuthor
Associate III
Feb 8, 2022 5:29 AM UTC

The errors were in LL and HAL driver files therefore I couldn't understand what to change in it.

I uninstalled the ide and reinstalled the new version now the errors are gone.

But I couldn't understand what was the origin of those errors.

Thank you so much for the tip.