Use Coocox ide software program Stm32fxxxx microcontroller.
File list:
STM32F4_Discovery_CoOS
.....................\cmsis
.....................\.....\core_cm4.h
.....................\.....\core_cm4_simd.h
.....................\.....\core_cmFunc.h
.....................\.....\core_cmInstr.h
.....................\cmsis_boot
.....................\..........\startup
.....................\..........\.......\startup_stm32f4xx.c
.....................\..........\stm32f4xx.h
.....................\..........\stm32f4xx_conf.h
.....................\..........\system_stm32f4xx.c
.....................\..........\system_stm32f4xx.h
.....................\cmsis_lib
.....................\.........\include
.....................\.........\.......\misc.h
.....................\.........\.......\stm32f4xx_gpio.h
.....................\.........\.......\stm32f4xx_i2c.h
.....................\.........\.......\stm32f4xx_rcc.h
.....................\.........\.......\stm32f4xx_usart.h
.....................\.........\source
.....................\.........\......\misc.c
.....................\.........\......\stm32f4xx_gpio.c
.....................\.........\......\stm32f4xx_i2c.c
.....................\.........\......\stm32f4xx_rcc.c
.....................\.........\......\stm32f4xx_usart.c
.....................\CoOS
.....................\....\Document
.....................\....\........\CooCox CoOSs TERMS AND CONDITIONS.pdf
.....................\....\........\CooCox_CoOS_User_Guide.pdf
.....................\....\........\readme.txt
.....................\....\kernel
.....................\....\......\coocox.h
.....................\....\......\CoOS.h
.....................\....\......\core.c
.....................\....\......\event.c
.....................\....\......\flag.c
.....................\....\......\hook.c
.....................\....\......\kernelHeap.c
.....................\....\......\mbox.c
.....................\....\......\mm.c
.....................\....\......\mutex.c
.....................\....\......\OsConfig.h
.....................\....\......\OsCore.h
.....................\....\......\OsError.h
.....................\....\......\OsEvent.h
.....................\....\......\OsFlag.h
.....................\....\......\OsKernelHeap.h
.....................\....\......\OsMM.h
.....................\....\......\OsMutex.h
.....................\....\......\OsQueue.h
.....................\....\......\OsServiceReq.h
.....................\....\......\OsTask.h
.....................\....\......\OsTime.h
.....................\....\......\OsTimer.h
.....................\....\......\queue.c
.....................\....\......\sem.c
.....................\....\......\serviceReq.c
.....................\....\......\task.c
.....................\....\......\time.c
.....................\....\......\timer.c
.....................\....\......\utility.c
.....................\....\......\utility.h
.....................\....\Other
.....................\....\.....\OsConfig.h
.....................\....\portable
.....................\....\........\GCC
.....................\....\........\...\port.c
.....................\....\........\arch.c
.....................\....\........\OsArch.h
.....................\MKSCAT.elf.xcodeproj
.....................\....................\project.pbxproj
.....................\stdio
.....................\.....\printf.keep
.....................\STM32F4_CoOs.elf.xcodeproj
.....................\..........................\project.pbxproj
.....................\STMF4CoOS.elf.xcodeproj
.....................\.......................\project.pbxproj
.....................\syscalls
.....................\........\syscalls.c
.....................\.cproject
.....................\.project
.....................\.xml
.....................\build.xml
.....................\debug.config
.....................\delay.c
.....................\delay.h
.....................\i2c.c
.....................\i2c.h
.....................\link.ld
.....................\main.c
.....................\main.h
.....................\memory.ld
.....................\shell.c
.....................\shell.h
.....................\STM32F4_Discovery_CoOS.cob
.....................\usart.c
.....................\usart.h
.....................\utils.c
.....................\utils.h