Skip to main content
phuocnguyenhuu96
Associate III
July 28, 2018
Question

Error compile

  • July 28, 2018
  • 3 replies
  • 782 views

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.

    This topic has been closed for replies.

    3 replies

    phuocnguyenhuu96
    Associate III
    July 28, 2018

    0690X0000060OskQAE.jpg

    Tesla DeLorean
    Guru
    July 28, 2018

    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    phuocnguyenhuu96
    Associate III
    August 4, 2018

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