2014-03-24 07:15 AM
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?2014-03-24 07:31 AM
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.2014-03-24 07:37 AM
Check the stm32f10x_conf.h in your project folder, and some of the main.c examples related to the firmware example templates.
2014-03-24 08:13 AM
Heavy editing of the initial question/post after receiving answers ensure for total confusion of other posters & readers.
2014-03-24 08:50 AM
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.