STM32CubeMX simple SD Card project – missing ff.h

Sysprogs forums Forums VisualGDB STM32CubeMX simple SD Card project – missing ff.h

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #12015
    efpkop
    Participant

    I’m using STM32CubeMX software (Veresion 4.22.0) to generate project files for driving an SD Card.  I’m following the flow generally described in this tutorial (https://visualgdb.com/tutorials/arm/stm32/cube/) and trying to combine with SD card set-up in Cube described here (http://blacbird.de/tutorial-stm32-cubemx-sdio).  When I bring the project files into Visual Studio, point to the ‘../Inc’ folder and try to build, I get the error:

    ..\Inc\fatfs.h(56,16): error : ff.h: No such file or directory

    Clearly, when creating the project files from Cube, the ff.h (and probably ff.c) files are not being delivered.  Is there some setting (I guess in Cube) that I can use to make sure VisualGDB has all the necessary files to get a simple SD Card project working?

     

     

    #12017
    efpkop
    Participant

    Some more on this.  (I’m not sure this is a solution – but it at least solves the problem of not finding these 2nd level library files…)  The tutorial notes that, in the STM32CubeMX software, in the Code Generator tab of the Project Settings, you should click the ‘Add necessary library files as reference in the toolchain project configuration file’ radio button.  But that was leading to the error described above.  If I, instead, click on the ‘Copy on the necessary library files’ radio button, the Middleware library also gets exported to my project directory and I am able to find these ff.h libraries, etc. (by adding the proper path to these folders in the project properties makefile settings)

    My new problem is that now when I build my project I’m getting a new error of multiple definitions of HAL_xxx library files.  I feel like this is an independent problem from what I described here so I have started new post on this which is located at https://sysprogs.com/w/forums/topic/multiple-definition-hal_-files/

    Thus, this post should probably be marked as ‘Solved’ … I guess.

    #12028
    support
    Keymaster

    Hi,

    This is actually a common point of confusion, so the next VisualGDB preview will come with support for easy out-of-the-box importing of STM32CubeMX projects.

    #12095
    efpkop
    Participant

    Great – I can’t wait.  Do you know when that preview will become available?

    Thanks

    #12099
    support
    Keymaster

    Hi,

    We have just released it yesterday, so you can download it and give it a try.

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