cancel
Showing results for 
Search instead for 
Did you mean: 

Sudden Error

eunni
Associate III

Hi,

I am currently working on a project using an STM32U5 series microcontroller, and I have encountered a significant build issue with numerous errors related to the HAL driver.

Attached picture is just some of error code. (First and the last page)

It made1675 errors and 381 warnings.

I think my code doesn't have any problem becuase It worked well just few minutes ago.

Thank you. 

eunni_0-1712310111126.png

eunni_2-1712310264530.png

 

20 REPLIES 20

Thank you for kind explanation 🙂

I attactched my main.c code below and full error code here.

Since the error so long, I attacthed it in .txt file. 

 

thank you

I don't believe that's the full error list - I'm sure there must have been more errors before the start of that.

The full log would start with something like:

11:25:43 **** Build of configuration Debug for project nucleo-l073 ****
make -j8 all 

I'm afraid I can't find the post on where to find the full build log.

I think so too.

because if I re-build the project, the first line of the console change like attatched txt file.

but it still have same amounts of errors (1675 errors and 381 warnings.).

 

Also, I don't know the other way to capture all of errors.

( I think it's all... I "Select All" and copy paste it )

eunni_0-1712313563566.png

Thank you so much for your hard work

 


@Andrew Neil wrote:

I'm afraid I can't find the post on where to find the full build log.


But I found the location!

In your Workspace folder, it will be:

.metadata\.plugins\org.eclipse.cdt.ui\<project>.build.log

I also have:

.metadata\.plugins\org.eclipse.cdt.ui\global-build.log

 

#BuildLogLocation

I found it!

My project name is <Master>

Certainly looks like you are missing needed header files.

I don't see any errors on failed #includes, so that must mean that you've failed put the necessary #include directives in your code.

I included 4 header file above.

#include "main.h"

#include <stdio.h>
#include <stdint.h>
#include <string.h>

 and I don't think it's an iinclude issue, becasue other Slave file (which include same as Master project) work well.

and It work well with these 4 header file before :( 

 

I captured Project Explorer, which shows some error.

I hope it could help to solve the problem..

thanks

 

eunni_0-1712315458854.png

eunni_1-1712315477552.png

 

 

How did you create the Project?

If you create it using the CubeMX (or the equivalent within the CubeIDE), that will manage all the required headers for you.

If you created it - or modified it - manually, then you have to do all that yourself.

 


@eunni wrote:

I don't think it's an iinclude issue, becasue other Slave file (which include same as Master project) work well.


That doesn't follow. The main.h is different for each project - it manages the other required includes.

There is a lot hiding behind that #include "main.h" !

 


@eunni wrote:

It work well with these 4 header file before :( 


So what did you change just before it stopped working?

I think the last change was moving the entire code somewhere else and running it with the code I was using before.

The newly run code was also the code written in this file and saved for backup purposes. After running the previous code, I ran the current code again, and this error appeared.

In the past, I often copied and pasted old code for debugging and it wasn't a problem.

I think I accidentally modified some part of my file while editing the code, but I don't know where the problem is.


@eunni wrote:

I think I accidentally modified some part of my file while editing the code, but I don't know where the problem is.


Do you use a version control system - eg, Git ?

This is one of the key things that protects against!