cancel
Showing results for 
Search instead for 
Did you mean: 

assert_param error

hospodar
Associate III
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?

4 REPLIES 4
frankmeyer9
Associate II
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.

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 Venmo
Up vote any posts that you find helpful, it shows what's working..
frankmeyer9
Associate II
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
Associate III
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.