Bootloader project with separatre config file

Sysprogs forums Forums VisualGDB Bootloader project with separatre config file

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35996
    wtywtykk
    Participant

    Hi,

     

    I’m trying to make a bootloader. I’m following this tutorial.

    https://visualgdb.com/tutorials/arm/bootloader/cmake/

    In the tutorial, all files are placed in the same directory. But I want to put bootloader and app into different folders.

    When I move stm32f4xx_hal_conf.h to the subfolders, the compiler can’t find them. Intellisense suggests adding to CMakeLists

    target_include_directories(Proj1 PRIVATE .)

    But it’s still not working.

    How can I move stm32f4xx_hal_conf.h to the subfolders? I actually want to use different config so the bootloader can be as small as possible.

     

    Attachment is a project to reproduce the problem.

     

    Regards,

    Tianyi

    Attachments:
    You must be logged in to view attached files.
    #36000
    support
    Keymaster

    Hi,

    The HAL configuration file is used by both the application and the HAL itself. Hence, adding the include directory for just the application won’t be sufficient.

    Instead, you would need to add it for the entire BSP using the VS properties for the BSP item in Solution Explorer or using the bsp_include_directories statement.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.