diff --git a/Ubiquitous/XiZi_IIoT/board/cortex-m0-emulator/img/menuconfig.png b/Ubiquitous/XiZi_IIoT/board/cortex-m0-emulator/img/menuconfig.png new file mode 100644 index 000000000..6dd8bd70c Binary files /dev/null and b/Ubiquitous/XiZi_IIoT/board/cortex-m0-emulator/img/menuconfig.png differ diff --git a/Ubiquitous/XiZi_IIoT/board/cortex-m0-emulator/img/menuconfig1.png b/Ubiquitous/XiZi_IIoT/board/cortex-m0-emulator/img/menuconfig1.png new file mode 100644 index 000000000..449200f64 Binary files /dev/null and b/Ubiquitous/XiZi_IIoT/board/cortex-m0-emulator/img/menuconfig1.png differ diff --git a/Ubiquitous/XiZi_IIoT/board/cortex-m0-emulator/img/terminal.png b/Ubiquitous/XiZi_IIoT/board/cortex-m0-emulator/img/terminal.png new file mode 100644 index 000000000..db05b9149 Binary files /dev/null and b/Ubiquitous/XiZi_IIoT/board/cortex-m0-emulator/img/terminal.png differ diff --git a/Ubiquitous/XiZi_IIoT/board/rzg2ul-m33/README.md b/Ubiquitous/XiZi_IIoT/board/rzg2ul-m33/README.md index 8de9afaf1..1f5509f76 100644 --- a/Ubiquitous/XiZi_IIoT/board/rzg2ul-m33/README.md +++ b/Ubiquitous/XiZi_IIoT/board/rzg2ul-m33/README.md @@ -44,7 +44,7 @@ $ sudo apt install gcc make libncurses5-dev openssl libssl-dev bison flex libelf ### 4、VSCode 插件安装 **推荐安装下图所示插件:** -![VSCode插件推荐](img/vscode-plugins.png "VSCode插件推荐") +![vscode-plugins](img/vscode-plugins.png) ### 5、XiUOS操作系统源码下载 XiUOS [https://www.gitlink.org.cn/xuos/xiuos](https://www.gitlink.org.cn/xuos/xiuos) @@ -75,7 +75,7 @@ git clone https://gitlink.org.cn/xuos/xiuos.git 使用VScode打开代码,具体操作步骤为:在源码文件夹下打开系统终端,输入`code .`即可打开VScode开发环境,如下图所示: -![VSCode介绍](img/vscode.jpg "VSCode介绍") +![vscode](img/vscode.jpg) ### 6、裁减配置工具的下载 @@ -108,7 +108,7 @@ sudo ./LibgenUpdateInstall_v1.2023.11.run ``` **运行后输入ARM工具链根目录、回车,再输入 y 以确认** -![更新编译工具链](img/libgen-update.png "更新编译工具链") +![libgen-update](img/libgen-update.png) **至此,编译环境已经安装完毕** @@ -141,7 +141,7 @@ make BOARD=rzg2ul-m33 ``` 等待编译完成:生成`XiZi-rzg2ul-m33.elf`等文件 -![编译结果](img/compile-result.png "编译结果") +![compile-result](img/compile-result.png) ### 4、编译输出处理 `RZ/G2UL`的`M33`端没有`FLASH`,需要借助 `boot-loader` 加载到内存中直接运行。 @@ -152,7 +152,7 @@ make BOARD=rzg2ul-m33 ``` 生成的文件:安全/非安全的中断向量表和代码数据段共四个文件 -![运行文件提取](img/postbuild-result.png "运行文件提取") +![postbuild-result](img/postbuild-result.png) ## 三、运行执行 @@ -172,7 +172,7 @@ static const unsigned int r9a07g043_crit_mod_clks[] __initconst = { ### 2、将生成的文件拷贝到上一步生成的SD卡里 -![复制到内存卡](img/copy-bin-to-sd.png "复制到内存卡") +![copy-bin-to-sd](img/copy-bin-to-sd.png) > 在上一步中,SD被划分为两个逻辑分区,一个作为根文件系统(RZ_ext),一个用于存放系统镜像(RZ_FAT包含Linux镜像、设备数已经刚放进去的M33端程序) @@ -180,7 +180,7 @@ static const unsigned int r9a07g043_crit_mod_clks[] __initconst = { `SCIF2_TX/RX`作为M33核心的输出串口;`RZ_SCIF0_TX/RX`作为Linux的输出串口,`GND`共地; -![硬件连接](img/connection-state.jpg "硬件连接") +![connection-state](img/connection-state.jpg) ### 4、修改 boot 参数以自动加载 ```c @@ -203,7 +203,7 @@ saveenv ### 5、运行M33 **将SD插入卡槽,按下开发板 reset 按键** -![启动M33](img/run-result.jpeg "启动M33") +![run-result](img/run-result.png) ## 四、核间通信测试 > XiUOS 将收到的数据打印后返回到Linux @@ -213,7 +213,7 @@ saveenv ```c CreateRPMsgTask // 该命令会创建一个通信节点,在探测到Linux的第一条信息时该通信节点被激活 ``` -![通信节点创造](img/rpmsg_create.png "通信节点创造") +![rpmsg_create](img/rpmsg_create.png) ### 2、在Linux端启动核间通信测试例程 @@ -221,8 +221,8 @@ CreateRPMsgTask // 该命令会创建一个通信节点,在探测到Linux的 rpmsg_sample_client ``` -![测试启动](img/rpmsg_test_begin.png "测试启动") +![rpmsg_test_begin](img/rpmsg_test_begin.png) ### 3、测试结果 -![测试结果](img/rpmsg_test_result.png "测试结果") \ No newline at end of file +![rpmsg_test_result](img/rpmsg_test_result.png) \ No newline at end of file diff --git a/Ubiquitous/XiZi_IIoT/board/rzv2l-m33/README.md b/Ubiquitous/XiZi_IIoT/board/rzv2l-m33/README.md index 21f8ac7e6..d6dbf4eb0 100644 --- a/Ubiquitous/XiZi_IIoT/board/rzv2l-m33/README.md +++ b/Ubiquitous/XiZi_IIoT/board/rzv2l-m33/README.md @@ -44,7 +44,7 @@ $ sudo apt install gcc make libncurses5-dev openssl libssl-dev bison flex libelf ### 4、VSCode 插件安装 **推荐安装下图所示插件:** -![VSCode插件推荐](img/vscode-plugins.png "VSCode插件推荐") +![vscode-plugins](img/vscode-plugins.png) ### 5、XiUOS操作系统源码下载 XiUOS [https://www.gitlink.org.cn/xuos/xiuos](https://www.gitlink.org.cn/xuos/xiuos) @@ -75,7 +75,7 @@ git clone https://gitlink.org.cn/xuos/xiuos.git 使用VScode打开代码,具体操作步骤为:在源码文件夹下打开系统终端,输入`code .`即可打开VScode开发环境,如下图所示: -![VSCode介绍](img/vscode.jpg "VSCode介绍") +![vscode](img/vscode.jpg) ### 6、裁减配置工具的下载 @@ -108,7 +108,7 @@ sudo ./LibgenUpdateInstall_v1.2020.02.run ``` **运行后输入ARM工具链根目录、回车,再输入 y 以确认** -![更新编译工具链](img/libgen-update.png "更新编译工具链") +![libgen-update](img/libgen-update.png) **至此,编译环境已经安装完毕** @@ -136,7 +136,7 @@ make BOARD=rzv2l-m33 menuconfig ``` ### (1)、关闭文件系统支持 -![关闭文件系统支持](img/menuconfig-filesystem.png "关闭文件系统支持") +![menuconfig-filesystem.png](img/menuconfig-filesystem.png) **退出并保存配置** @@ -147,7 +147,7 @@ make BOARD=rzv2l-m33 ``` 等待编译完成:生成`XiZi-rzv2l-m33.elf`等文件 -![编译结果](img/compile-result.png "编译结果") +![compile-result](img/compile-result.png) ### 4、编译输出处理 `RZ/V2L`的`M33`端没有`FLASH`,需要借助 `boot-loader` 加载到内存中直接运行。 @@ -158,7 +158,7 @@ make BOARD=rzv2l-m33 ``` 生成的文件:安全/非安全的中断向量表和代码数据段共四个文件 -![运行文件提取](img/postbuild-output.png "运行文件提取") +![postbuild-output.png](img/postbuild-output.png) ## 三、运行执行 @@ -167,7 +167,7 @@ make BOARD=rzv2l-m33 ### 2、将生成的文件拷贝到上一步生成的SD卡里 -![复制到内存卡](img/copy-bin-to-sd.png "复制到内存卡") +![copy-bin-to-sd](img/copy-bin-to-sd.png) > 在上一步中,SD被划分为两个逻辑分区,一个作为根文件系统(RZ_ext),一个用于存放系统镜像(RZ_FAT包含Linux镜像、设备数已经刚放进去的M33端程序) @@ -177,7 +177,7 @@ make BOARD=rzv2l-m33 `Pmod1`的 2、3、5 脚分别是 `TXD、RXD、GND`将其利用`USB转串口模块`与电脑相连; -![硬件连接](img/connection-state.jpg "硬件连接") +![connection-state](img/connection-state.jpg) ### 4、修改 boot 参数以自动加载 ```c @@ -199,26 +199,26 @@ saveenv **环境变量如下:** -![环境变量](img/loader-env.jpeg "环境变量") +![loader-env](img/loader-env.jpeg) ### 5、运行M33 **将SD插入卡槽,按下开发板 reset 按键** -![启动M33](img/run-result.jpeg "启动M33") +![run-result](img/run-result.jpeg) ## 四、核间通信测试 > XiUOS 将收到的数据打印后返回到Linux ### 1、烧录A55端的Linux和M33端的XiUOS -![两端启动](img/rpmsg_begin.png "两端启动") +![rpmsg_begin](img/rpmsg_begin.png) ### 2、在M33端创建监听任务 ```c CreateRPMsgTask // 该命令会创建一个通信节点,在探测到Linux的第一条信息时该通信节点被激活 ``` -![通信节点创造](img/rpmsg_create.png "通信节点创造") +![rpmsg_create](img/rpmsg_create.png) ### 3、在Linux端启动核间通信测试例程 @@ -226,8 +226,8 @@ CreateRPMsgTask // 该命令会创建一个通信节点,在探测到Linux的 rpmsg_sample_client 0 ``` -![测试启动](img/rpmsg_test_begin.png "测试启动") +![rpmsg_test_begin](img/rpmsg_test_begin.png) ### 3、测试结果 -![测试结果](img/rpmsg_test_result.png "测试结果") \ No newline at end of file +![rpmsg_test_result](img/rpmsg_test_result.png) \ No newline at end of file diff --git a/Ubiquitous/XiZi_IIoT/board/stm32f407zgt6/README.md b/Ubiquitous/XiZi_IIoT/board/stm32f407zgt6/README.md index 035bc15fa..9877d160f 100644 --- a/Ubiquitous/XiZi_IIoT/board/stm32f407zgt6/README.md +++ b/Ubiquitous/XiZi_IIoT/board/stm32f407zgt6/README.md @@ -23,30 +23,30 @@ XiUOS板级当前支持使用GPIO和UART。 编译步骤: > 1.ARM下编译需要安装arm-none-eabi编译工具, 安装到Ubuntu的默认路径/usr/bin/arm-none-eabi-,使用如下命令行下载 -``` +```bash sudo apt-get install gcc-arm-none-eabi ``` >2.在代码根目录下执行以下命令,生成配置文件 -``` +```bash cd ./Ubiquitous/XiZi make BOARD=stm32f407zgt6 distclean make BOARD=stm32f407zgt6 menuconfig ``` >3.在menuconfig界面配置需要关闭和开启的功能,按回车键进入下级菜单,按Y键选中需要开启的功能,按N键选中需要关闭的功能,配置结束后保存并退出 -![menu](./img/menu.png ) +![menu](img/menu.png) >4.继续执行以下命令,进行编译 -``` +```bash make BOARD=stm32f407zgt6 ``` >5.如果编译正确无误,会产生XiZi-stm32f407zgt6.elf、XiZi-stm32f407zgt6.bin文件。其中XiZi-stm32f407zgt6.bin需要烧写到设备中进行运行。 -``` +```bash sudo write build/XiZi-stm32f407zgt6.bin 0x8000000 ``` >6.最后可以执行以下命令,清除配置文件和编译生成的文件 -``` +```bash make BOARD=stm32f407zgt6 distclean ``` @@ -55,7 +55,7 @@ make BOARD=stm32f407zgt6 distclean 将 BOARD=stm32f407zgt6开发板SWD经 st-link 转接到USB接口,然后使用st-flash工具进行烧写bin文件。 执行以下命令下载st-link工具 -``` +```bash git clone https://github.com/texane/stlink.git ``` @@ -68,7 +68,7 @@ git clone https://github.com/texane/stlink.git ![total](img/total.jpg) 在代码根目录下执行st-flash工具烧录 -``` +```bash sudo st-flash write build/XiZi-stm32f407zgt6.bin 0x8000000 ``` ### 3.1 运行结果