cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot build on STM32F429I_DISC)

ejanuska
Associate II
Posted on February 08, 2016 at 04:42

I am attempting to build for the first time with my STM32F429I-DISCO using eclipse and the STM32 standard periph. I set up my toolchain from the instrcutions

http://thehackerworkshop.com/?p=1056

. One thing I am stuck on is in stm32f4xx_fsmc.c I am getting 'FSMC_Bank1' undeclared errors. Also similar errors for Bank 2, Bank 3, Bank 4, BTCR and many others starting with FSMC_...

I have pointed my includes to the path containing stm32f4xx.h but I still can't get the variables to resolve.  I have included STM32F439NIHx_FLASH.ld in my project root, and project properties have the symbols STM32F429_439xx and USE_STDPERIPH_DRIVER (all configurations).

#fsmc-fmc-stm32f429-build #stm32f4-eclipse-toolchain-build
3 REPLIES 3
ejanuska
Associate II
Posted on February 08, 2016 at 14:53

I think the problem is that I need to exclude the stm32f4xx_fsmc files from my build since the reference manual RM0090 (chapter 36, 37) states that the FSMC only applies to STM32F40x/411x. I need to include the stm32f4xx_fmc files for the STM32F429I which I excluded by blindly following tutorial.

I will check later.

Posted on February 08, 2016 at 18:02

Yes, the tutorial is for an older model DISCO board, the one you have used the FMC for the SDRAM.

You'll have to cherry pick which C source files are used in the project, and which include files the stm32f4xx_conf.h file pulls in.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ejanuska
Associate II
Posted on February 09, 2016 at 13:04

That was the fix. 

Thanks for your input