Skip to main content
Associate III
April 5, 2024
Solved

Sudden Error

  • April 5, 2024
  • 6 replies
  • 13126 views

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

 

    This topic has been closed for replies.
    Best answer by eunni

    I cannot resolve this issue.

    but I made new project with same code, and It work!

     

    Thank you all for help :)

    6 replies

    eunniAuthor
    Associate III
    April 5, 2024

    Additional information,

    I am using NUCLEO-U575ZI-Q board, and entire project is about I2C.

    1 U575ZI-Q master and 3 LK432KC slave board.

     

    eunniAuthor
    Associate III
    April 5, 2024

    eunni_0-1712310710946.png

    Project Explorer said some of my Inc, src files in Drivers foler had problems. 

    mƎALLEm
    Technical Moderator
    April 5, 2024

    Hello,

    Maybe you need to share your project to let other members to help you efficiently.

    To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
    Associate
    April 5, 2024

    What have you already tried to fix it ?

    eunniAuthor
    Associate III
    April 5, 2024

    Nothing..

    STTwo-32
    Technical Moderator
    April 5, 2024

    Hello @eunni and welcome to the ST Community :smiling_face_with_smiling_eyes:.

    can you share your project So that we can check. Also, what are the versions of the STM32CubeIDE, CubeMX and CubeH5 that you are using. Also, have you downloaded your CubeH5 Library As a .Zip from Github. 

    Best Regards.

    STTwo-32

    To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
    eunniAuthor
    Associate III
    April 5, 2024

    I use STM32CubeIDE 1.15.0 version.

    and I don't know what CubeH5 is. I've never downloaded CubeH5 before. 

    It's my very first time to use STM32, sorry :(

    mƎALLEm
    Technical Moderator
    April 5, 2024

    Hello,

    You need to share your project folder instead of the main file.

    To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
    Andrew Neil
    Super User
    April 5, 2024

    @eunni wrote:

    It made1675 errors and 381 warnings.


    Typically, that happens because of 1 (or a few) early error which then causes a load of consequent errors.

    A common example is omitting to #include a required header - which will, of course, result in an error on every single place that tries to use something from that header.

    Therefore, you need to start by looking at the very first reported error.

     

     


    @eunni wrote:

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


    It would be better to include the errors as text, rather than a pictures.

    Copy & paste using the code button:

    AndrewNeil_0-1712310688344.png

     

    AndrewNeil_1-1712310725298.png

    "implicit declarations" occur when you haven't provided an explicit declaration for the function you're calling.

    Again, this often means that a needed header file is missing - either the #include is missing, or it failed.

     

    It doesn't look like your Console window has all the errors - it's presumably overflowed, and lost the very first ones.

    There was a thread recently about how to find the full log ...

    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.
    eunniAuthor
    Associate III
    April 5, 2024

    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

    Andrew Neil
    Super User
    April 5, 2024

    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.

    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.
    eunniAuthorBest answer
    Associate III
    April 22, 2024

    I cannot resolve this issue.

    but I made new project with same code, and It work!

     

    Thank you all for help :)