diff options
| author | zhkag <[email protected]> | 2023-06-10 12:32:34 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-10 12:32:34 +0800 |
| commit | 0f998f6b05e044d2c2a0c99f24f4cd97f263f478 (patch) | |
| tree | 8211353b2dfe888d9a1c8f5355cc415bdad5c37c /bsp | |
| parent | d0c6d6f4a48b67fde477c743bec1a68198e882f3 (diff) | |
[simulator] 模拟器可以使用 utest 测试框架 (#7644)
Co-authored-by: Man, Jianting (Meco) <[email protected]>
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/simulator/.config | 2 | ||||
| -rw-r--r-- | bsp/simulator/gcc_elf64.ld | 6 | ||||
| -rwxr-xr-x | bsp/simulator/rtconfig.h | 2 |
3 files changed, 8 insertions, 2 deletions
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 |
