CF

CF

准备

编译器

编译器可以在ARM官网下载,地址:https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads

CF2.5版本需要使用7.2.1版本,下载时选择GNU Arm Embedded Toolchain: 7-2017-q4-major

CF源码

位于Github上,地址:https://github.com/cleanflight/cleanflight

编译

查看编译目标

$ make targets

编译NAZE

$ make TARGET=NAZE
...
Linking NAZE
Notice: STM32F1 based targets will be unsupported soon.
Memory region         Used Size  Region Size  %age Used
           FLASH:      128475 B       126 KB     99.57%
    FLASH_CONFIG:          0 GB         2 KB      0.00%
             RAM:       19056 B        20 KB     93.05%
       MEMORY_B1:          0 GB         0 GB      -nan%
   text    data     bss     dec     hex filename
 127199    1272   17784  146255   23b4f ./obj/main/cleanflight_NAZE.elf
Creating HEX ./obj/cleanflight_2.5.0_NAZE.hex
上一篇:CSP-S 2019 游记


下一篇:pscp 从win10远程传输文件到centos7