rt-thread-official/bsp/phytium/aarch32
Meco Man ddccef3a64 modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
..
applications format Kconfig and sconscript 2023-01-08 22:52:13 -05:00
boot [bsp/phytium] add phytium bsp to support e2000 bootup with smp (#6566) 2022-11-10 09:22:48 -05:00
figures [bsp/phytium] add phytium bsp to support e2000 bootup with smp (#6566) 2022-11-10 09:22:48 -05:00
.config modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
Kconfig format Kconfig and sconscript 2023-01-08 22:52:13 -05:00
README.md [bsp/phytium] add phytium bsp to support e2000 bootup with smp (#6566) 2022-11-10 09:22:48 -05:00
SConscript [bsp/phytium] add phytium bsp to support e2000 bootup with smp (#6566) 2022-11-10 09:22:48 -05:00
SConstruct [bsp/phytium] add phytium bsp to support e2000 bootup with smp (#6566) 2022-11-10 09:22:48 -05:00
export_project.py [bsp/phytium] add phytium bsp to support e2000 bootup with smp (#6566) 2022-11-10 09:22:48 -05:00
link.lds format link scripts 2023-01-08 22:52:13 -05:00
rtconfig.h modify RT_ALIGN_SIZE as 8 by default 2023-01-12 22:47:23 -05:00
rtconfig.py [bsp/phytium] add phytium bsp to support e2000 bootup with smp (#6566) 2022-11-10 09:22:48 -05:00
sdkconfig.h [bsp/phytium] add phytium bsp to support e2000 bootup with smp (#6566) 2022-11-10 09:22:48 -05:00

README.md

AARCH32 工作模式使用

  • 当开发者需要基于 Phytium 系列芯片进行开发时,可以从以下几个步骤出发配置芯片

1. 如何选择芯片

  • Windows Env 环境下
    menuconfig
  • Linux 环境下
    scons --menuconfig

开发者通过以下选择进行配置

Standalone Setting > Board Configuration > Chip 

2. 如何选择驱动

    scons --menuconfig

开发者通过以下选项进行驱动的使能

Hardware Drivers > On-chip Peripheral Drivers

3. 开启SDK中内部调试信息

    scons --menuconfig

开发者通过以下选项进行调试信息等级的设置

4. 编译程序

    scons -c
    scons
  • 完成编译之后目录下将会生成以下几个文件
rtthread_a32.bin
rtthread_a32.elf
rtthread_a32.map

5. 打包导出工程源代码

  • 指定工程名和路径打包RT-Thread内核和Phytium BSP代码可以导出一个工程工程
python ./export_project.py -n=phytium-a32 -o=D:/proj/rt-thread-e2000/phytium-a32

  • 进入打包工程的目录,修改工程根目录 Kconfig 中的路径 BSP_DIR 和 STANDALONE_DIR

env 环境中的 menuconfig 不会调用 SConstruct 修改路径环境变量,因此需要手动修改路径

config BSP_DIR
    string
    option env="BSP_ROOT"
    default "."

config STANDALONE_DIR
    string
    option env="STANDALONE_DIR"
    default "libraries/standalone"
  • 输入 menuconfig 和 scons 完成编译

6. 将工程导入 RT-Studio

  • 在 RT-Studio 使用功能RT-Thread Bsp 到工作空间,导入 5. 中导出的 BSP 工程
  • 设置 BSP 工程的交叉编译链后进行后续开发