将
STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\\Libraries\\CMSIS\\Device\\ST\\STM32F4xx\\Source\\Templates\\arm文件夹下startup_stm32f40xx.s文件加入STM32F4_uCOS_System Migration\\Libraries\\CMSIS文件夹中。 将
STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\\Libraries\\CMSIS\\Device\\ST\\STM32F4xx\\Include文件夹下stm32f4xx.h和system_stm32f4xx.h2个文件加入STM32F4_uCOS_System Migration\\Libraries\\CMSIS文件夹中。
将STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\\Libraries\\CMSIS\\Include文件夹下core_cm4.h、core_cm4_simd.h、core_cmFunc.h、core_cmInstr.h4个文件加入STM32F4_uCOS_System Migration\\Libraries\\CMSIS文件夹中。
将STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\\Libraries\\CMSIS\\RTOS文件夹下cmsis_os.h文件加入STM32F4_uCOS_System Migration\\Libraries\\CMSIS文件夹中。
将STM32F4xx_DSP_StdPeriph_Lib_V1.3.0\\Project\\STM32F4xx_StdPeriph_Templates文件夹下main.c、main.h、stm32f4xx_conf.h、stm32f4xx_it.c、stm32f4xx_it.h、system_stm32f4xx.c6个文件加入STM32F4_uCOS_System Migration\\Project\\User文件夹中。
1.3 创建MDK工程
创建工程,保存在ARM-MDK文件夹中。
点击
,选择相应的STM32F4芯片型号。
点击
,出现如下界面。
选择
,进入工程中。
在工程中添加如下的组。
将STM32F4_uCOS_System Migration\\Project\\User下的文件加到User组中去。 将STM32F4_uCOS_System Migration\\Libraries\\CMSIS下的文件加到CMSIS组中去。 将STM32F4_uCOS_System Migration\\Libraries\\STM32F4xx_StdPeriph_Driver\\src下的所有文件加到STM32_Lib中去。 添加完成情况如下。
相关推荐: