1、STM32报错Error: L6218E: Undefined symbol assert_param
.\Objects\STMF103FC6T6.axf: Error: L6218E: Undefined symbol assert_param (referred from stm32f10x_gpio.o).
复制代码
在C\C++设置一栏中输入USE_STDPERIPH_DRIVER使宏生效即可办理问题
2、../User/stm32f10x_it.c(136): error: call to undeclared function 'delay_decreme' delay_decreme未定义,必要在stm32f10x_it.h中添加头文件systick.h
../User/stm32f10x_it.c(136): error: call to undeclared function 'delay_decrement'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
136 | delay_decrement();
复制代码
#ifndef __STM32F10x_IT_H
#define __STM32F10x_IT_H
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/