Forum Replies Created
-
AuthorPosts
-
efpkopParticipant
Great – I can’t wait. Do you know when that preview will become available?
Thanks
efpkopParticipantThat solved the multiple definition problem. I also had to explicitly point at a few header directories. However, now I’m getting an error that the ST device I’m using has not been specified. For example, I’m getting:
C:\Tutorials\Cube_SDIO_Mark1\SDIO_Mark1\SDIO_Mark1\..\Drivers\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h(193,3): error : #error “Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)”
I believe I have to add the line:
#define STM32F405xx
But I’m not sure if I need to add it to a particular file – or do you specify it in the project properties?
efpkopParticipantSome 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.
-
AuthorPosts