Q1:看上该包含的头文件都有了,就是编译通不过去,提示许多flash错误,如:function "FLASH_Unlock" declared implicitly
A1: 注意这个很重要的配置文件 stm32f10x_conf.h,它里面有这个:
/************************************* FLASH and Option Bytes *****************/
#define _FLASH
/* Uncomment the line below to enable FLASH program/erase/protections functions,
otherwise only FLASH configuration (latency, prefetch, half cycle) functions
are enabled */
/* #define _FLASH_PROG */
打开 这个配置就OK了。