We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi everybody ! When I buid my project in Keil Arm ver.4 , there are some warnings and errors :
stm32f4xx_gpio.c(130): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_GPIO_ALL_PERIPH(GPIOx)); stm32f4xx_rcc.c(266): warning: #223-D: function "assert_param" declared implicitly assert_param(IS_RCC_HSE(RCC_HSE));
stm32f4xx_rcc.c(2106): error: #20: identifier "RCC_BDCR_LSEMOD" is undefined SET_BIT(RCC->BDCR, RCC_BDCR_LSEMOD);
I included files : #include <stm32f4xx.h> #include "stm32f4xx_gpio.h" #include "stm32f4xx_rcc.h"
So what is the reason making those ? And how can i resolve the problem ? Thank you !
IIRC, assert_param is a macro, with conditional compilation to control how it's defined.
You probably haven't set the correct controls to get it properly ddefined - Please read the manual for details...
and it's ST's code - nothing specifically to do with Keil.