Keil 错误的总结

 stm32 是怎么与FWLIB联系在一起的?



1.main中#include "stm32f10x.h"
2.stm32f10x.h中
#ifdef USE_STDPERIPH_DRIVER
  #include "stm32f10x_conf.h"
#endif
3.stm32f10x_conf.h中
#include "stm32f10x_adc.h"
#include "stm32f10x_bkp.h"
#include "stm32f10x_can.h"
#include "stm32f10x_cec.h"
#include "stm32f10x_crc.h"
#include "stm32f10x_dac.h"
#include "stm32f10x_dbgmcu.h"
#include "stm32f10x_dma.h"
#include "stm32f10x_exti.h"
#include "stm32f10x_flash.h"
#include "stm32f10x_fsmc.h"
#include "stm32f10x_gpio.h"
#include "stm32f10x_i2c.h"
#include "stm32f10x_iwdg.h"
#include "stm32f10x_pwr.h"
#include "stm32f10x_rcc.h"
#include "stm32f10x_rtc.h"
#include "stm32f10x_sdio.h"
#include "stm32f10x_spi.h"
#include "stm32f10x_tim.h"
#include "stm32f10x_usart.h"
#include "stm32f10x_wwdg.h"




不同芯片有不同头文件 、i/o口配置、寄存器、内存容量 。

这些在新建工程中选择芯片时会自动配置好,根据MDK的扩展可以支持不同公司的芯片



错误Source Browser: 'xxx' - undefined Definition/Reference


由于keil不同,你的例程在不同版本下会失效,主要是一些配置的失效,你需要根据错误类型来处理问题,一般问题都会和错误描述相同

这一次是FWlib文件夹的一些库没有被添加,不知是野火官方故意没添加(节约空间?)还是因为库的更替而失效的\




错误时FWlib文件夹是空的

猜你喜欢

转载自blog.csdn.net/stm32f103_2018/article/details/80318988