cancel
Showing results for 
Search instead for 
Did you mean: 

Error compile

phuocnguyenhuu96
Associate III

Hello everyone. I have a problem with Stm32f407IGH EVAL.

I coppy template of source code to other file. I also modified path include.

But when I compile, build output have 30 error, all error in file stm32f4xx_fmc.c file, like FMC_Bank1 undefined, FMC_BCR1_NBKEN undefined ... I don't understand why error because everything same the code template.

Please help me with this problem. Thank you.

3 REPLIES 3
phuocnguyenhuu96
Associate III

0690X0000060OskQAE.jpg

Make sure the compiler's command line defines correctly set the model of CPU you are using as these control the defines/structures used by different peripherals. ie expect F407 to be different to F427

With SPL code I would expect the F407 to need to use the FSMC rather than FMC

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
phuocnguyenhuu96
Associate III

Thank you for your reply. I'm totally complete to solve this problem.