Skip to main content
hospodar
Associate III
March 24, 2014
Question

assert_param error

  • March 24, 2014
  • 4 replies
  • 1136 views
Posted on March 24, 2014 at 15:15

Hi,

I just started working with stm32f10x standard peripheral library v 3.5.0. 

I trying to assembling project for USART, but compiller reported me .\stm32f10x_usart.axf: Error: L6218E: Undefined symbol assert_param (referred from stm32f10x_gpio.o).

What is assert_param, and how to solve this error?

    This topic has been closed for replies.

    4 replies

    frankmeyer9
    Associate III
    March 24, 2014
    Posted on March 24, 2014 at 15:31

    Do someone know where is the problem? Thank.

    The preprocessor digests instructions sequentially, and the define of  STM32F10X_MD is after the check (#if !defined ...).

    Hacking the stm32f10x.h file is second best (read ''rather bad idea''), as you likely want to use this header (with others) for several projects.

    Define this macro in the Makefile, or in the project settings of your toolchain.

    Tesla DeLorean
    Guru
    March 24, 2014
    Posted on March 24, 2014 at 15:37

    Check the stm32f10x_conf.h in your project folder, and some of the main.c examples related to the firmware example templates.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    frankmeyer9
    Associate III
    March 24, 2014
    Posted on March 24, 2014 at 16:13

    Heavy editing of the initial question/post after receiving answers ensure for total confusion of other posters & readers.

    hospodar
    hospodarAuthor
    Associate III
    March 24, 2014
    Posted on March 24, 2014 at 16:50

    Sorry, I solved this problem, but other problem with assert_param occured, so I changed my question before I saw that there was your answer.