From 0f998f6b05e044d2c2a0c99f24f4cd97f263f478 Mon Sep 17 00:00:00 2001 From: zhkag Date: Sat, 10 Jun 2023 12:32:34 +0800 Subject: [simulator] 模拟器可以使用 utest 测试框架 (#7644) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Man, Jianting (Meco) <920369182@qq.com> --- bsp/simulator/.config | 2 +- bsp/simulator/gcc_elf64.ld | 6 ++++++ bsp/simulator/rtconfig.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) (limited to 'bsp') diff --git a/bsp/simulator/.config b/bsp/simulator/.config index 3064f55a14..1cbd646211 100644 --- a/bsp/simulator/.config +++ b/bsp/simulator/.config @@ -77,7 +77,7 @@ CONFIG_RT_USING_DEVICE=y # CONFIG_RT_USING_DM is not set # CONFIG_RT_USING_INTERRUPT_INFO is not set CONFIG_RT_USING_CONSOLE=y -CONFIG_RT_CONSOLEBUF_SIZE=128 +CONFIG_RT_CONSOLEBUF_SIZE=256 CONFIG_RT_CONSOLE_DEVICE_NAME="console" CONFIG_RT_VER_NUM=0x50001 # CONFIG_RT_USING_STDC_ATOMIC is not set diff --git a/bsp/simulator/gcc_elf64.ld b/bsp/simulator/gcc_elf64.ld index 26adaa86af..ad1ecac006 100644 --- a/bsp/simulator/gcc_elf64.ld +++ b/bsp/simulator/gcc_elf64.ld @@ -66,6 +66,12 @@ SECTIONS /* setction information for finsh shell begin */ . = ALIGN(8); + UtestTcTab : { + __rt_utest_tc_tab_start = .; + KEEP(*(UtestTcTab)) + __rt_utest_tc_tab_end = .; + } + . = ALIGN(8); FSymTab : { __fsymtab_start = .; KEEP(*(FSymTab)) diff --git a/bsp/simulator/rtconfig.h b/bsp/simulator/rtconfig.h index a2b2cd15f9..034a402a5c 100755 --- a/bsp/simulator/rtconfig.h +++ b/bsp/simulator/rtconfig.h @@ -42,7 +42,7 @@ #define RT_USING_DEVICE #define RT_USING_CONSOLE -#define RT_CONSOLEBUF_SIZE 128 +#define RT_CONSOLEBUF_SIZE 256 #define RT_CONSOLE_DEVICE_NAME "console" #define RT_VER_NUM 0x50001 -- cgit v1.3.1