Import project from STM32CubeMx

Sysprogs forums Forums VisualGDB Import project from STM32CubeMx

Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8554
    fedex03
    Participant

    Hi there,

    I’m trying to import a project for STM32F103,created with STM32CubeMx, into Visual Studio.

    The project includes FreeRTOS.

    I followed this guide Guide but when I build the project, the compiler doesn’t find “freeRTOS.h”

    So, I create again the project with STM32CubeMX with the option “Copy only the necessary files”. Before I used the option “Add necessary library files in the toolchain project configuration file”.

    After this modification, the freeRTOS header is found but I get error about some undefined identifier (AHBPrescTable not found).

    I need to add a specific folders into project settings?

     

    Thanks in advance!

    • This topic was modified 8 years, 3 months ago by fedex03.
    #8560
    support
    Keymaster

    Hi,

    AHBPrescTable should normally be defined in system_<device family>.c that is generated by the STM32CubeMX. Please double-check that your project includes it and that it includes the definition of AHBPrescTable.

    If it does not, please compare its contents with the system.c shipped with VisualGDB (that comes from the STM32 sample projects) and ensure that your STM32CubeMX configuration includes initialization of the clock module.

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