Keil 5.12和5.14都试过一,跟F1相关的Pack都安装了。
以下是项目的RTE设置:
只要√了Drivers下的UART,编译就报错:
C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\RTE_Driver\UART_STM32F10x.c(37): error: #5: cannot open source input file "Driver_UART.h": No such file or directory
这个文件在C:\Keil_v5\下搜不到。尝试建个同名空文件放到项目目录下,编译提示很多未定义的类型或宏:
ARM_DRV_VERSION
ARM_UART_SignalEvent_t
ARM_UART_CAPABILITIES
ARM_UART_STATUS
ARM_UART_ERROR
ARM_UART_OK
....
用这些类型在C:\Keil_v5\下搜*.h文件,也没搜到,网上和坛子里也没搜到相关信息,真是奇了怪了。
选I2c、SPI、MCI、USB Device也同样报错:
C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\RTE_Driver\UART_STM32F10x.c(37): error: #5: cannot open source input file "Driver_UART.h": No such file or directory
C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\RTE_Driver\I2C_STM32F10x.c(34): error: #5: cannot open source input file "Driver_I2C.h": No such file or directory
C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\RTE_Driver\MCI_STM32F10x.c(32): error: #5: cannot open source input file "Driver_MCI.h": No such file or directory
C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\RTE_Driver\SPI_STM32F10x.c(39): error: #5: cannot open source input file "Driver_SPI.h": No such file or directory
C:\Keil_v5\ARM\PACK\Keil\STM32F1xx_DFP\1.0.5\RTE_Driver\USBD_STM32F10x.c(33): error: #5: cannot open source input file "Driver_USBD.h": No such file or directory
说明肯定缺一个RTX设备驱动的Pack,不知道在哪?倒是不非得用它的驱动,只不过想学习一下如何在RTX多线程里使用外设的。
|