Skip to main content

软件编译和烧录

一 编译方法

注意:

(1)推荐在 X86_64 Ubuntu 16.04 或者X86_64 Ubuntu 20.04系统环境下进行开发,不要使用X86_64 Ubuntu 20.04以上的版本,若使用其它系统版本,可能需要对编译环境做相应调整。
(2)同步代码Python版本号的要求:电脑系统安装的 python 的版本要使用 Python 2.7,不然会导致同步代码报错。
(3)使用普通用户进行编译,不要使用 root 用户权限进行编译。

编译所需依赖库(若编译报错需看具体报错信息)

sudo apt-get install autopoint

sudo apt-get install liblzo2-dev

sudo apt-get install build-essential

sudo apt-get install automake autoconf m4 libtool gettext

sudo apt-get install zlib1g-dev

sudo apt-get install libncurses5-dev libslang2-dev libselinux1-dev debhelper lsb-release pkg-config po-debconf

整体编译:

bhu@bhu-PC:~/rtos$ cd freertos/
bhu@bhu-PC:~/rtos/freertos$ source build/envsetup.sh //设置编译器到环境变量
bhu@bhu-PC:~/rtos/freertos$ make ad100_nor_defconfig //选择编译配置文件
bhu@bhu-PC:~/rtos/freertos$ make //编译工程代码

生成烧录文件:

bhu@bhu-PC:~/rtos/freertos$ ls -l rtos-with-spl.bin
-rw-r--r-- 1 bhu bhu 249360 116 10:17 rtos-with-spl.bin

二 烧录方法

请使用2.5.43及以后版本烧录工具

具体烧录配置如下(其他选项卡默认就好):

1

2

3

点击开始以后,按住BOOT_KEY键不放,再按下RST_KEY以后松手,就可以进入烧录模式,然后再把BOOT_KEY键松开,等待烧录完毕以后即可