Sysprogs forums › Forums › VisualGDB › STM32CubeMX simple SD Card project – missing ff.h
Tagged: FAT, ff.h, SD Card, STM32CubeMX
- This topic has 4 replies, 2 voices, and was last updated 9 years ago by
support.
-
AuthorPosts
-
August 14, 2017 at 15:52 #12015
efpkop
ParticipantI’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?
August 14, 2017 at 18:29 #12017efpkop
ParticipantSome 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.
August 15, 2017 at 05:19 #12028support
KeymasterHi,
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.
August 17, 2017 at 13:58 #12095efpkop
ParticipantGreat – I can’t wait. Do you know when that preview will become available?
Thanks
August 17, 2017 at 17:10 #12099support
KeymasterHi,
We have just released it yesterday, so you can download it and give it a try.
-
AuthorPosts
- You must be logged in to reply to this topic.