P1
P2
P6
P7 开发环境搭建
P8 程序下载方法1:ISP串口下载
P9 第9讲 程序下载方法2:JLINK程序下载
1 一键下载电路BOOT0接地,怎么拉高的?
第12讲 GPIO工作原理
2 STM32的I/O口的8种工作模式
(1)GPIO_Mode_AIN 模拟输入
(2)GPIO_Mode_IN_FLOATING 浮空输入
(3)GPIO_Mode_IPD 下拉输入
(4)GPIO_Mode_IPU 上拉输入
(5)GPIO_Mode_Out_OD 开漏输出
(6)GPIO_Mode_Out_PP 推挽输出
(7)GPIO_Mode_AF_OD 复用开漏输出
(8)GPIO_Mode_AF_PP 复用推挽输出
GPIO配置经验
10 新建基于固件库的工程模板
main.c: Error: command-line: #992: invalid macro definition:
答案: STM32F10X_HD.USE_STDPERIPH_DRIVER
宏定义标识符错误。。。。输入要正确,逗号隔开
…\USER\stm32f10x.h(96): error: #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)“
答案:第一个宏定义标识符“STM32F10X_HD”书写错误。
…\STM32F10x_FWLib\src\misc.c(178): warning: #223-D: function “assert_param” declared implicitly
同时还有一堆定义找不到。
答案:第二个宏定义标识符” USE_STDPERIPH_DRIVER”书写错误
…\STM32F10x_FWLib\src\stm32f10x_tim.c(23): error: #5: cannot open source input file “stm32f10x_tim.h”: No such file or directory
头文件路径找不到。加入path的路径为inc子目录,不是src子目录。
或者inc根本就没有加入头文件路径。