Bootloader project with separatre config file

Sysprogs forums Forums VisualGDB Bootloader project with separatre config file

Viewing 4 posts - 1 through 4 (of 4 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.

    #36018
    wtywtykk
    Participant

    Hi,

    I want to use different config for the applications. So I use multiple find_bsp with different ALIAS. Is this the preferred way?

    Also could you point out where “VS properties for the BSP item in Solution Explorer” is? I can’t find it in the property window(Right click->properties).

    Regards,

    Tianyi

    #36021
    support
    Keymaster

    Hi,

    Sure, 2 BSPs with different aliases should work.

    If you have trouble locating the properties, please attach an UNCROPPED screenshot of the Visual Studio window showing the Solution Explorer and we will point it out.

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