forked from xuos/xiuos
feat change edu arm32 board name from hc32f4a0 to edu-arm32
This commit is contained in:
parent
20037285c0
commit
4ed02888a2
|
@ -25,7 +25,7 @@
|
|||
#ifdef BOARD_EDU_RISCV64_EVB
|
||||
#define BSP_LED_PIN 29
|
||||
#define BSP_KEY_PIN 31
|
||||
#elif defined BOARD_HC32F4A0_EVB
|
||||
#elif defined BOARD_EDU_ARM32_EVB
|
||||
#define BSP_LED_PIN 134
|
||||
#define BSP_KEY_PIN 176
|
||||
#endif
|
||||
|
|
|
@ -6,7 +6,7 @@ MAKEFLAGS += --no-print-directory
|
|||
|
||||
|
||||
riscv_support := kd233 maix-go hifive1-rev-B gapuino gd32vf103-rvstar rv32m1-vega aiit-riscv64-board xidatong-riscv64 edu-riscv64
|
||||
arm_support += stm32f407-st-discovery stm32f407zgt6 stm32f103-nano nuvoton-m2354 ok1052-c imxrt1176-sbc aiit-arm32-board xidatong-arm32 xiwangtong-arm32 hc32f4a0
|
||||
arm_support += stm32f407-st-discovery stm32f407zgt6 stm32f103-nano nuvoton-m2354 ok1052-c imxrt1176-sbc aiit-arm32-board xidatong-arm32 xiwangtong-arm32 edu-arm32
|
||||
emulator_support += hifive1-emulator k210-emulator cortex-m0-emulator cortex-m3-emulator cortex-m4-emulator
|
||||
support := $(riscv_support) $(arm_support) $(emulator_support)
|
||||
SRC_DIR :=
|
||||
|
|
|
@ -23,13 +23,13 @@
|
|||
|
||||
ARM架构系列的开发板有
|
||||
|
||||
aiit-arm32-board nuvoton-m2354 ok1052-c stm32f103-nano stm32f407-st-discovery stm32f407zgt6 xidatong-arm32
|
||||
aiit-arm32-board nuvoton-m2354 ok1052-c stm32f103-nano stm32f407-st-discovery stm32f407zgt6 xidatong-arm32 edu-arm32
|
||||
|
||||
### RISC-V
|
||||
|
||||
RISC-V架构系列的开发板有
|
||||
|
||||
aiit-riscv64-board gapuino gd32vf103-rvstar hifive1-rev-B kd233 maix-go rv32m1-vega
|
||||
aiit-riscv64-board gapuino gd32vf103-rvstar hifive1-rev-B kd233 maix-go rv32m1-vega edu-riscv64
|
||||
|
||||
## 开发环境
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ SRC_DIR := shared
|
|||
SRC_DIR += cortex-m4
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_BOARD_HC32F4A0_EVB),y)
|
||||
ifeq ($(CONFIG_BOARD_EDU_ARM32_EVB),y)
|
||||
SRC_DIR := shared
|
||||
SRC_DIR += cortex-m4
|
||||
endif
|
||||
|
|
|
@ -14,7 +14,7 @@ SRC_FILES += svc_handle.c mpu.c
|
|||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_BOARD_HC32F4A0_EVB),y)
|
||||
ifeq ($(CONFIG_BOARD_EDU_ARM32_EVB),y)
|
||||
SRC_DIR += hc32f4a0
|
||||
endif
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Automatically generated file; DO NOT EDIT.
|
||||
# XiZi_IIoT Project Configuration
|
||||
#
|
||||
CONFIG_BOARD_HC32F4A0_EVB=y
|
||||
CONFIG_BOARD_EDU_ARM32_EVB=y
|
||||
CONFIG_ARCH_ARM=y
|
||||
|
||||
#
|
||||
|
@ -25,7 +25,7 @@ CONFIG_SERIAL_6_DEVICE_NAME_0="usart6_dev6"
|
|||
#
|
||||
# config board app name
|
||||
#
|
||||
CONFIG_BOARD_APP_NAME="/XiUOS_hc32f4a0_app.bin"
|
||||
CONFIG_BOARD_APP_NAME="/XiUOS_edu_arm32_app.bin"
|
||||
|
||||
#
|
||||
# Hardware feature
|
|
@ -10,21 +10,21 @@ config KERNEL_DIR
|
|||
option env="KERNEL_ROOT"
|
||||
default "../.."
|
||||
|
||||
config BOARD_HC32F4A0_EVB
|
||||
config BOARD_EDU_ARM32_EVB
|
||||
bool
|
||||
select ARCH_ARM
|
||||
default y
|
||||
|
||||
source "$KERNEL_DIR/arch/Kconfig"
|
||||
|
||||
menu "hc32f4a0 feature"
|
||||
menu "edu-arm32 feature"
|
||||
source "$BSP_DIR/third_party_driver/Kconfig"
|
||||
|
||||
menu "config default board resources"
|
||||
menu "config board app name"
|
||||
config BOARD_APP_NAME
|
||||
string "config board app name"
|
||||
default "/XiUOS_hc32f4a0_app.bin"
|
||||
default "/XiUOS_edu_arm32_app.bin"
|
||||
endmenu
|
||||
endmenu
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
# 从零开始构建矽璓工业物联操作系统:使用ARM架构的HC32F4A0开发板
|
||||
# 从零开始构建矽璓工业物联操作系统:使用ARM架构的edu-arm32开发板
|
||||
|
||||
[XiUOS](http://xuos.io/) (X Industrial Ubiquitous Operating System) 矽璓工业物联操作系统是一款面向工业物联场景的泛在操作系统,来自泛在操作系统研究计划。所谓泛在操作系统(UOS: Ubiquitous Operating Systems),是支持互联网时代人机物融合泛在计算应用模式的新型操作系统,是传统操作系统概念的泛化与延伸。在泛在操作系统技术体系中,不同的泛在计算设备和泛在应用场景需要符合各自特性的不同UOS,XiUOS即是面向工业物联场景的一种UOS,主要由一个极简的微型实时操作系统(RTOS)内核和其上的智能工业物联框架构成,支持工业物联网(IIoT: Industrial Internet of Things)应用。
|
||||
|
||||
|
@ -101,7 +101,7 @@ ARM: arm-none-eabi(`gcc version 6.3.1`),默认安装到Ubuntu的/usr/bin/arm
|
|||
$ sudo apt install gcc-arm-none-eabi
|
||||
```
|
||||
|
||||
# 在HC32F4A0上创建第一个应用 --helloworld
|
||||
# 在edu-arm32上创建第一个应用 --helloworld
|
||||
|
||||
## 1. 简介
|
||||
|
||||
|
@ -133,8 +133,8 @@ XiUOS板级驱动当前支持使用UART。
|
|||
|
||||
```c
|
||||
cd ./Ubiquitous/XiZi
|
||||
make BOARD=hc32f4a0 distclean
|
||||
make BOARD=hc32f4a0 menuconfig
|
||||
make BOARD=edu-arm32 distclean
|
||||
make BOARD=edu-arm32 menuconfig
|
||||
```
|
||||
|
||||
2.在menuconfig界面配置需要关闭和开启的功能,按回车键进入下级菜单,按Y键选中需要开启的功能,按N键选中需要关闭的功能,配置结束后保存并退出(本例旨在演示简单的输出例程,所以没有需要配置的选项,双击快捷键ESC退出配置)
|
||||
|
@ -148,15 +148,15 @@ make BOARD=hc32f4a0 menuconfig
|
|||
3.继续执行以下命令,进行编译
|
||||
|
||||
```c
|
||||
make BOARD=hc32f4a0
|
||||
make BOARD=edu-arm32
|
||||
```
|
||||
|
||||
4.如果编译正确无误,会产生XiZi_hc32f4a0.elf、XiZi_hc32f4a0.bin文件。其中XiZi_shc32f4a0.bin需要烧写到设备中进行运行。
|
||||
4.如果编译正确无误,会产生XiZi-edu-arm32.elf、XiZi-edu-arm32.bin文件。其中XiZi-edu-arm32.bin需要烧写到设备中进行运行。
|
||||
|
||||
## 3. 烧写及执行
|
||||
|
||||
### 3.1 烧写
|
||||
将BOARD=hc32f4a0开发板通过TYPE-C接口转接到PC,然后使用华大官方HDSC ISP工具进行烧写bin文件。
|
||||
将BOARD=edu-arm32开发板通过TYPE-C接口转接到PC,然后使用华大官方HDSC ISP工具进行烧写bin文件。
|
||||
|
||||
1、烧写工具:HDSC ISP,可参考[https://www.hdsc.com.cn/Category83-1496](https://www.hdsc.com.cn/Category83-1496)
|
||||
|
||||
|
@ -167,6 +167,6 @@ make BOARD=hc32f4a0
|
|||
|
||||
### 3.2 运行结果
|
||||
|
||||
如果编译 & 烧写无误,将会在串口终端上看到信息打印输出,(终端串口引脚为UART3)。
|
||||
如果编译 & 烧写无误,将会在串口终端上看到信息打印输出,(终端TYPE-C串口引脚为UART3)。
|
||||
|
||||
![terminal](img/terminal.png)
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
/**
|
||||
* @file board.c
|
||||
* @brief support hc32f4a0-board init configure and start-up
|
||||
* @brief support edu-arm32-board init configure and start-up
|
||||
* @version 2.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-09-08
|
||||
|
@ -20,13 +20,13 @@
|
|||
|
||||
/*************************************************
|
||||
File name: board.c
|
||||
Description: support hc32f4a0-board init configure and driver/task/... init
|
||||
Description: support edu-arm32-board init configure and driver/task/... init
|
||||
Others:
|
||||
History:
|
||||
1. Date: 2022-09-08
|
||||
Author: AIIT XUOS Lab
|
||||
Modification:
|
||||
1. support hc32f4a0-board InitBoardHardware
|
||||
1. support edu-arm32-board InitBoardHardware
|
||||
*************************************************/
|
||||
|
||||
#include <xizi.h>
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
/**
|
||||
* @file board.h
|
||||
* @brief define hc32f4a0-board init configure and start-up function
|
||||
* @brief define edu-arm32-board init configure and start-up function
|
||||
* @version 2.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-09-08
|
||||
|
@ -20,14 +20,14 @@
|
|||
|
||||
/*************************************************
|
||||
File name: board.h
|
||||
Description: define hc32f4a0-board board init function and struct
|
||||
Description: define edu-arm32-board board init function and struct
|
||||
Others:
|
||||
History:
|
||||
1. Date: 2021-04-25
|
||||
Author: AIIT XUOS Lab
|
||||
Modification:
|
||||
1. define hc32f4a0-board InitBoardHardware
|
||||
2. define hc32f4a0-board data and bss struct
|
||||
1. define edu-arm32-board InitBoardHardware
|
||||
2. define edu-arm32-board data and bss struct
|
||||
*************************************************/
|
||||
|
||||
#ifndef BOARD_H
|
|
@ -2,10 +2,10 @@ export CROSS_COMPILE ?=/usr/bin/arm-none-eabi-
|
|||
|
||||
export CFLAGS := -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -ffunction-sections -fdata-sections -Dgcc -O0 -gdwarf-2 -g -fgnu89-inline -Wa,-mimplicit-it=thumb -Werror
|
||||
export AFLAGS := -c -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -ffunction-sections -fdata-sections -x assembler-with-cpp -Wa,-mimplicit-it=thumb -gdwarf-2
|
||||
export LFLAGS := -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -ffunction-sections -fdata-sections -Wl,--gc-sections,-Map=XiZi_hc32f4a0.map,-cref,-u,Reset_Handler -T $(BSP_ROOT)/link.lds
|
||||
export LFLAGS := -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -ffunction-sections -fdata-sections -Wl,--gc-sections,-Map=XiZi-edu-arm32.map,-cref,-u,Reset_Handler -T $(BSP_ROOT)/link.lds
|
||||
export CXXFLAGS := -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -ffunction-sections -fdata-sections -Dgcc -O0 -gdwarf-2 -g -Werror
|
||||
|
||||
export APPLFLAGS := -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -ffunction-sections -fdata-sections -Wl,--gc-sections,-Map=XiZi_app.map,-cref,-u, -T $(BSP_ROOT)/link_userspace.lds
|
||||
export APPLFLAGS := -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -ffunction-sections -fdata-sections -Wl,--gc-sections,-Map=XiZi-edu-arm32.map,-cref,-u, -T $(BSP_ROOT)/link_userspace.lds
|
||||
|
||||
export DEFINES := -DHAVE_CCONFIG_H -DHC32F4A0 -DUSE_DDL_DRIVER -DHAVE_SIGINFO
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 33 KiB |
Binary file not shown.
After Width: | Height: | Size: 89 KiB |
Binary file not shown.
After Width: | Height: | Size: 71 KiB |
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
|
@ -11,7 +11,7 @@
|
|||
|
||||
/**
|
||||
* @file hardware_irq.c
|
||||
* @brief support hc32f4a0-board irq configure
|
||||
* @brief support edu-arm32-board irq configure
|
||||
* @version 2.0
|
||||
* @author AIIT XUOS Lab
|
||||
* @date 2022-09-13
|
||||
|
@ -19,13 +19,13 @@
|
|||
|
||||
/*************************************************
|
||||
File name: hardware_irq.c
|
||||
Description: support hc32f4a0-board irq configure
|
||||
Description: support edu-arm32-board irq configure
|
||||
Others:
|
||||
History:
|
||||
1. Date: 2022-09-13
|
||||
Author: AIIT XUOS Lab
|
||||
Modification:
|
||||
1. support hc32f4a0-board irq
|
||||
1. support edu-arm32-board irq
|
||||
*************************************************/
|
||||
|
||||
/*******************************************************************************
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue