文章目录
- 通过STM32cube创建一个工程
- 选择要移植的RTOS源
- 下载到本地
- 如果没有重启软件
- 选择对应配置
- 后续补充
通过STM32cube创建一个工程
选择要移植的RTOS源
下载到本地
如果没有重启软件
选择对应配置
Build started: Project: STM32F767
*** Using Compiler 'V5.06 update 7 (build 960)', folder: 'D:\myapp\00-live\03stm32\00 keil5\ARM\ARM506\Bin'
Build target 'STM32F767'
compiling cpu_cache.c...
D:/myapp/00-live/03stm32/00 keil5/RealThread/RT-Thread/3.1.5/libcpu/arm/cortex-m7/cpu_cache.c(21): warning: #223-D: function "SCB_EnableICache" declared implicitlySCB_EnableICache();
D:/myapp/00-live/03stm32/00 keil5/RealThread/RT-Thread/3.1.5/libcpu/arm/cortex-m7/cpu_cache.c(26): warning: #223-D: function "SCB_DisableICache" declared implicitlySCB_DisableICache();
D:/myapp/00-live/03stm32/00 keil5/RealThread/RT-Thread/3.1.5/libcpu/arm/cortex-m7/cpu_cache.c(41): warning: #223-D: function "__DSB" declared implicitly__DSB();
D:/myapp/00-live/03stm32/00 keil5/RealThread/RT-Thread/3.1.5/libcpu/arm/cortex-m7/cpu_cache.c(44): error: #20: identifier "SCB" is undefinedSCB->ICIMVAU = address;
D:/myapp/00-live/03stm32/00 keil5/RealThread/RT-Thread/3.1.5/libcpu/arm/cortex-m7/cpu_cache.c(49): warning: #223-D: function "__ISB" declared implicitly__ISB();
D:/myapp/00-live/03stm32/00 keil5/RealThread/RT-Thread/3.1.5/libcpu/arm/cortex-m7/cpu_cache.c(55): warning: #223-D: function "SCB_EnableDCache" declared implicitlySCB_EnableDCache();
D:/myapp/00-live/03stm32/00 keil5/RealThread/RT-Thread/3.1.5/libcpu/arm/cortex-m7/cpu_cache.c(60): warning: #223-D: function "SCB_DisableDCache" declared implicitlySCB_DisableDCache();
D:/myapp/00-live/03stm32/00 keil5/RealThread/RT-Thread/3.1.5/libcpu/arm/cortex-m7/cpu_cache.c(75): warning: #223-D: function "SCB_CleanInvalidateDCache_by_Addr" declared implicitlySCB_CleanInvalidateDCache_by_Addr((uint32_t *)startAddr, size_byte);
D:/myapp/00-live/03stm32/00 keil5/RealThread/RT-Thread/3.1.5/libcpu/arm/cortex-m7/cpu_cache.c(75): error: #20: identifier "uint32_t" is undefinedSCB_CleanInvalidateDCache_by_Addr((uint32_t *)startAddr, size_byte);
D:/myapp/00-live/03stm32/00 keil5/RealThread/RT-Thread/3.1.5/libcpu/arm/cortex-m7/cpu_cache.c(75): error: #29: expected an expressionSCB_CleanInvalidateDCache_by_Addr((uint32_t *)startAddr, size_byte);
D:/myapp/00-live/03stm32/00 keil5/RealThread/RT-Thread/3.1.5/libcpu/arm/cortex-m7/cpu_cache.c(75): error: #18: expected a ")"SCB_CleanInvalidateDCache_by_Addr((uint32_t *)startAddr, size_byte);
D:/myapp/00-live/03stm32/00 keil5/RealThread/RT-Thread/3.1.5/libcpu/arm/cortex-m7/cpu_cache.c(79): warning: #223-D: function "SCB_CleanDCache_by_Addr" declared implicitlySCB_CleanDCache_by_Addr((uint32_t *)startAddr, size_byte);
D:/myapp/00-live/03stm32/00 keil5/RealThread/RT-Thread/3.1.5/libcpu/arm/cortex-m7/cpu_cache.c(79): error: #20: identifier "uint32_t" is undefinedSCB_CleanDCache_by_Addr((uint32_t *)startAddr, size_byte);
D:/myapp/00-live/03stm32/00 keil5/RealThread/RT-Thread/3.1.5/libcpu/arm/cortex-m7/cpu_cache.c(79): error: #29: expected an expressionSCB_CleanDCache_by_Addr((uint32_t *)startAddr, size_byte);
D:/myapp/00-live/03stm32/00 keil5/RealThread/RT-Thread/3.1.5/libcpu/arm/cortex-m7/cpu_cache.c(79): error: #18: expected a ")"SCB_CleanDCache_by_Addr((uint32_t *)startAddr, size_byte);
D:/myapp/00-live/03stm32/00 keil5/RealThread/RT-Thread/3.1.5/libcpu/arm/cortex-m7/cpu_cache.c(83): warning: #223-D: function "SCB_InvalidateDCache_by_Addr" declared implicitlySCB_InvalidateDCache_by_Addr((uint32_t *)startAddr, size_byte);
D:/myapp/00-live/03stm32/00 keil5/RealThread/RT-Thread/3.1.5/libcpu/arm/cortex-m7/cpu_cache.c(83): error: #20: identifier "uint32_t" is undefinedSCB_InvalidateDCache_by_Addr((uint32_t *)startAddr, size_byte);
D:/myapp/00-live/03stm32/00 keil5/RealThread/RT-Thread/3.1.5/libcpu/arm/cortex-m7/cpu_cache.c(83): error: #29: expected an expressionSCB_InvalidateDCache_by_Addr((uint32_t *)startAddr, size_byte);
D:/myapp/00-live/03stm32/00 keil5/RealThread/RT-Thread/3.1.5/libcpu/arm/cortex-m7/cpu_cache.c(83): error: #18: expected a ")"SCB_InvalidateDCache_by_Addr((uint32_t *)startAddr, size_byte);
D:/myapp/00-live/03stm32/00 keil5/RealThread/RT-Thread/3.1.5/libcpu/arm/cortex-m7/cpu_cache.c(71): warning: #177-D: variable "size_byte" was declared but never referencedrt_uint32_t size_byte = size + (rt_uint32_t)addr - startAddr;
D:/myapp/00-live/03stm32/00 keil5/RealThread/RT-Thread/3.1.5/libcpu/arm/cortex-m7/cpu_cache.c: 10 warnings, 10 errors
"STM32F767\STM32F767.axf" - 10 Error(s), 10 Warning(s).
Target not created.
Build Time Elapsed: 00:00:00
失败报错一大堆
这种方法放弃
采用cube 创建裸机工程,移植rt_thread nano 3.03工程,可以运行
后续补充
通过UI 配置移植