This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Peripheral Files Compiling Issues

Hello everyone,

I've been trying to get started with a STM32FDiscovery (with STM32F100RB controller) board in uVision. However, when I compile my program I get the error-

L6218E "undefined symbol assert_param (referred from file stm32f10x_gpio.c)"
and a further 48 warnings-

'#223 D: function "assert_param" declared implicitly'

at various lines in the included peripheral files. The peripheral files I included were stm32f10x_gpio.c, stm32f10x_misc.c, and stm32f10x_rcc.c from the an3268 firmware package provided by ST.

I've included the same files in another project I copied from my old computer, and that project compiles just fine. Hours of scanning through the files have turned up no differences in code between the two projects and I still have the same problem when I start a new project.

Please help!

Parents
  • The included files may be the same.

    But if you browse the source code containing these symbols, you may see #ifxxx code. And that might indicate to you that your projects has a different set of #define which makes the compilation behave differently. That's why it's called conditional compilation.

Reply
  • The included files may be the same.

    But if you browse the source code containing these symbols, you may see #ifxxx code. And that might indicate to you that your projects has a different set of #define which makes the compilation behave differently. That's why it's called conditional compilation.

Children