Skip to content

Commit f1ae59e

Browse files
committed
[fix] 更新rtconfig配置文件与rtconfig.py
1 parent c0c6a10 commit f1ae59e

File tree

4 files changed

+16
-18
lines changed

4 files changed

+16
-18
lines changed

bsp/gd32/risc-v/gd32vw553h-eval/.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ CONFIG_RT_HOOK_USING_FUNC_PTR=y
126126
# CONFIG_RT_USING_HOOKLIST is not set
127127
CONFIG_RT_USING_IDLE_HOOK=y
128128
CONFIG_RT_IDLE_HOOK_LIST_SIZE=4
129-
CONFIG_IDLE_THREAD_STACK_SIZE=512
129+
CONFIG_IDLE_THREAD_STACK_SIZE=1024
130130
CONFIG_RT_USING_TIMER_SOFT=y
131131
CONFIG_RT_TIMER_THREAD_PRIO=4
132-
CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
132+
CONFIG_RT_TIMER_THREAD_STACK_SIZE=1024
133133
# CONFIG_RT_USING_TIMER_ALL_SOFT is not set
134134
# CONFIG_RT_USING_CPU_USAGE_TRACER is not set
135135

bsp/gd32/risc-v/gd32vw553h-eval/applications/main.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@
1919

2020
int main(void)
2121
{
22-
int count = 1;
23-
22+
rt_kprintf("Hello GD32VW553H\n");
2423
/* set LED1 pin mode to output */
2524
rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
2625

27-
while (count++)
26+
while (1)
2827
{
2928
rt_pin_write(LED1_PIN, PIN_HIGH);
3029
rt_thread_mdelay(500);

bsp/gd32/risc-v/gd32vw553h-eval/rtconfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@
7272
#define RT_HOOK_USING_FUNC_PTR
7373
#define RT_USING_IDLE_HOOK
7474
#define RT_IDLE_HOOK_LIST_SIZE 4
75-
#define IDLE_THREAD_STACK_SIZE 512
75+
#define IDLE_THREAD_STACK_SIZE 1024
7676
#define RT_USING_TIMER_SOFT
7777
#define RT_TIMER_THREAD_PRIO 4
78-
#define RT_TIMER_THREAD_STACK_SIZE 512
78+
#define RT_TIMER_THREAD_STACK_SIZE 1024
7979

8080
/* kservice options */
8181

bsp/gd32/risc-v/gd32vw553h-eval/rtconfig.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR
1818
if CROSS_TOOL == 'gcc':
1919
PLATFORM = 'gcc'
20-
EXEC_PATH = EXEC_PATH = r'E:/GD32VW5/Tools/GD32EmbeddedBuilder_v1.5.2.30854/Tools/RISC-V Embedded GCC/8.2.0-2.2-20190521-0004/bin'
20+
EXEC_PATH = r'E:/GD32VW5/Tools/GD32EmbeddedBuilder_v1.5.2.30854/Tools/RISC-V Embedded GCC/8.2.0-2.2-20190521-0004/bin'
2121
else:
2222
print('Please make sure your toolchains is GNU GCC!')
2323
exit(0)
@@ -43,21 +43,20 @@
4343
OBJDUMP = PREFIX + 'objdump'
4444
OBJCPY = PREFIX + 'objcopy'
4545

46-
DEVICE = ' -march=rv32imafdc -mcmodel=medany -msmall-data-limit=8 -mdiv -mabi=ilp32d -O2 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections '
47-
CFLAGS = DEVICE
48-
CFLAGS += ' -std=gnu11 -DUSE_STDPERIPH_DRIVE -save-temps=obj'
49-
50-
AFLAGS = '-c'+ DEVICE + ' -x assembler-with-cpp'
51-
52-
LFLAGS = ' -march=rv32imafdc -mcmodel=medany -msmall-data-limit=8 -mdiv -mabi=ilp32d -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -g -Wl,-Map=' + MAP_FILE
53-
LFLAGS += ' -T ' + LINK_FILE
54-
LFLAGS += ' -nostartfiles -Xlinker --gc-sections --specs=nano.specs --specs=nosys.specs '
46+
DEVICE = ' -march=rv32imafdc -mcmodel=medany -msmall-data-limit=8 -mdiv -mabi=ilp32d -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections '
47+
48+
# C Compilation Parameters
49+
CFLAGS = DEVICE + ' -std=gnu11 -DUSE_STDPERIPH_DRIVE -save-temps=obj'
50+
# Assembly Compilation Parameters
51+
AFLAGS = DEVICE + '-c'+ ' -x assembler-with-cpp'
52+
# Linking Parameters
53+
LFLAGS = DEVICE + ' -nostartfiles -Xlinker --gc-sections --specs=nano.specs --specs=nosys.specs ' + ' -T ' + LINK_FILE + ' -Wl,-Map=' + MAP_FILE
5554

5655
CPATH = ''
5756
LPATH = ''
5857

5958
if BUILD == 'debug':
60-
CFLAGS += ' -O2 -g3'
59+
CFLAGS += ' -O0 -g3'
6160
AFLAGS += ' -g3'
6261
else:
6362
CFLAGS += ' -O2'

0 commit comments

Comments
 (0)