Skip to main content
Associate
June 20, 2024
Solved

stm32f7xx_hal.h: No such file or directory; HAL_Init();

  • June 20, 2024
  • 4 replies
  • 2157 views

Background:

1. STM32CubeMX 6.10.0

2. Test DMA in UART.

3. Using STM32CUBEMX to generate codes.

Questions:

1. I found the project did not includes source codes.

2. The HAL_Init(); is in the main function but it did not have source codes to support.

3. I also click copy all used libraries into the project folder but it still can't work.

 

Attached is for your reference, might need your help to solve this issue. Thank you.

    This topic has been closed for replies.
    Best answer by Souhaib MAZHOUD

    Hello @uNavi 

    Thank you for posting!

    Could you please try with CubeMX 6.11.1 and check if the issue persists?

    Thnx

    Souhaib

    4 replies

    Souhaib MAZHOUDBest answer
    ST Technical Moderator
    June 20, 2024

    Hello @uNavi 

    Thank you for posting!

    Could you please try with CubeMX 6.11.1 and check if the issue persists?

    Thnx

    Souhaib

    To give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
    uNaviAuthor
    Associate
    June 21, 2024

    Great, it solved. I have another follow-up question. Might need your support to identify the issues

    mƎALLEm
    ST Technical Moderator
    June 24, 2024

    Hello @uNavi ,

    As it was solved, please mark the comment that answered your question as "Accept as Solution".

    For any further question please open a new thread.

    Thank you.

    To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
    mƎALLEm
    ST Technical Moderator
    June 20, 2024

    Hello,

    Do you have the H7 Cube HAL folder STM32Cube_FW_H7_VX.Y (the latest one is STM32Cube_FW_H7_V1.11.2) under C:\Users\<your username>\STM32Cube\Repository ?

    I didn't reproduce the issue with your ioc file with CubeMx 6.11.1.

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