Problem with compilation after adding Profiler to STM32CubeMX imported project

Sysprogs forums Forums VisualGDB Problem with compilation after adding Profiler to STM32CubeMX imported project

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9027
    sunsina
    Participant

    I followed all the official guidelines for importing STM32CubeMX project into VisualGDB, after importing the project
    I chose the Shared files location to a one folder top of my project ./EmbeddedBSPs and I checked the EmbeddedBSPs and it
    contained all the required .c/.c++/.h files.
    Under the Embedded Frameworks I checked the FastSemihosting and Embedded Profiler too.
    My embedded MCU is STM32F401RE and I checked the ProfilerDriver_STM32_HAL.cpp file
    and the

    #elif defined(PROFILER_STM32F4)
    #include <stm32f4xx_hal.h>
    #include <stm32f4xx_hal_tim.h>

    was activated Indeed I added following folders to the
    Make file setting

    inc ./EmbeddedBSPs/STM32F4xxxx/STM32F4xx_HAL_Driver/Inc

    and the solution does not compile and still I get following error.

    Error undefined reference to `HAL_TIM_Base_Start_IT’ 
    C:\Users\sina_\AppData\Local\VisualGDB\EmbeddedEFPs\Profiler\ProfilerDriver_STM32_HAL.cpp 141

    I am wondering what part of the configuration is wrong?
    Thanks.

    #9030
    support
    Keymaster

    Hi,

    Looks like the timer module is disabled in your project configuration. Please check the HAL_TIM_MODULE_ENABLED macro in the stm32f4xx_hal_conf.h file and define it if it’s missing.

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