Add include files wizard not working

Sysprogs forums Forums VisualGDB Add include files wizard not working

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30274
    dave93cab
    Participant

    I can’t seem to make vgdb pick up any files outside of the main Src and Inc files in an STM32CubeMX project. Below is my tree (removed the built-in/default folder contents).

    Build is 5.6.beta1.4073

    Main thing is the library in {Project}/Usr/lib/src and inc.

    If i add #includes for the header files I get the banner as expected with “Found 1 additional include directory required by the current file. If I click through and “add selected directories to the following target” the wizard closes but the banner remains, and I cannot build my project.

    Error nrf24l01.h: No such file or directory

    I noticed that every time I run the wizard I get an addition to CMakeLists.txt. Below is the result after running the wizard 3 times with inc folder listed 3 times.

    Setting in vgdb settings “Automatically Find Header Files..” doesn’t seem to have any effect wither.
    <h3>CMakeLists.txt</h3>

    cmake_minimum_required(VERSION 3.15)
    
    project(NRF_COMBO LANGUAGES C CXX ASM)
    
    find_bsp(ID com.sysprogs.project_importers.stm32.cubemx
    	SOURCE_PROJECT NRF_COMBO.ioc)
    
    add_bsp_based_executable(NAME NRF_COMBO
    	GENERATE_BIN
    	GENERATE_MAP)
    target_include_directories(NRF_COMBO PRIVATE src/usr/lib/nrf24l01/inc src/usr/lib/nrf24l01/inc src/usr/lib/nrf24l01/inc)
    

    <h3>Folder tree:</h3>

    C:\PROJECTS\NRF_COMBO
    |   .mxproject
    |   CMakeLists.txt
    |   Makefile
    |   NRF_COMBO.gpdsc
    |   NRF_COMBO.ioc
    |   NRF_COMBO.sln
    |   NRF_COMBO.vgdbcmake
    |   startup_stm32f407xx.s
    |   STM32F407VETx_FLASH.ld
    |
    +---.visualgdb
    +---.vs
    +---build
    +---Drivers
    +---Inc
    |       main.h
    |       stm32f4xx_hal_conf.h
    |       stm32f4xx_it.h
    |
    +---Src
    |       main.c
    |       stm32f4xx_hal_msp.c
    |       stm32f4xx_hal_timebase_tim.c
    |       stm32f4xx_it.c
    |       system_stm32f4xx.c
    |
    \---Usr
        \---lib
            \---nrf24l01
                +---Inc
                |       nrf24l01.h
                |       nrf24l01_cubemx.h
                |
                \---Src
                        nrf24l01.c
                        nrf24l01_cubemx.c
    
    • This topic was modified 3 years ago by dave93cab. Reason: build
    • This topic was modified 3 years ago by dave93cab.
    Attachments:
    You must be logged in to view attached files.
    #30293
    support
    Keymaster

    Hi,

    This likely happens because the header file is referenced by one of the source files inside the BSP (i.e. imported from the STM32CubeMX template) and not inside the application itself.

    Please try selecting the BSP instead of the application when adding the discovered include directories to the project settings. If adding the directories to BSP doesn’t work, please try this build: VisualGDB-5.6.1.4079.msi

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