From ad81c1d3bf9d80d2b561c94e903e7ce4ca2c68c6 Mon Sep 17 00:00:00 2001 From: Huaqi Fang <578567190@qq.com> Date: Wed, 8 Apr 2020 15:43:00 +0800 Subject: [PATCH] nuclei: Rename board name Signed-off-by: Huaqi Fang <578567190@qq.com> --- .../{gd32vf103v_rvstar => gd32vf103}/.config | 60 ++++++------------- .../{gd32vf103v_rvstar => gd32vf103}/Kconfig | 5 +- .../README.md | 0 .../SConscript | 0 .../SConstruct | 8 +-- .../applications/SConscript | 0 .../applications/main.c | 13 +++- .../board/Kconfig | 0 .../board/SConscript | 0 .../board/board.c | 0 .../board/board.h | 0 .../drivers/SConscript | 0 .../drivers/drv_usart.c | 0 .../drivers/drv_usart.h | 0 .../rtconfig.h | 44 +++----------- .../rtconfig.py | 17 +++--- 16 files changed, 49 insertions(+), 98 deletions(-) rename bsp/nuclei/{gd32vf103v_rvstar => gd32vf103}/.config (91%) rename bsp/nuclei/{gd32vf103v_rvstar => gd32vf103}/Kconfig (83%) rename bsp/nuclei/{gd32vf103v_rvstar => gd32vf103}/README.md (100%) rename bsp/nuclei/{gd32vf103v_rvstar => gd32vf103}/SConscript (100%) rename bsp/nuclei/{gd32vf103v_rvstar => gd32vf103}/SConstruct (91%) rename bsp/nuclei/{gd32vf103v_rvstar => gd32vf103}/applications/SConscript (100%) rename bsp/nuclei/{gd32vf103v_rvstar => gd32vf103}/applications/main.c (83%) rename bsp/nuclei/{gd32vf103v_rvstar => gd32vf103}/board/Kconfig (100%) rename bsp/nuclei/{gd32vf103v_rvstar => gd32vf103}/board/SConscript (100%) rename bsp/nuclei/{gd32vf103v_rvstar => gd32vf103}/board/board.c (100%) rename bsp/nuclei/{gd32vf103v_rvstar => gd32vf103}/board/board.h (100%) rename bsp/nuclei/{gd32vf103v_rvstar => gd32vf103}/drivers/SConscript (100%) rename bsp/nuclei/{gd32vf103v_rvstar => gd32vf103}/drivers/drv_usart.c (100%) rename bsp/nuclei/{gd32vf103v_rvstar => gd32vf103}/drivers/drv_usart.h (100%) rename bsp/nuclei/{gd32vf103v_rvstar => gd32vf103}/rtconfig.h (69%) rename bsp/nuclei/{gd32vf103v_rvstar => gd32vf103}/rtconfig.py (63%) diff --git a/bsp/nuclei/gd32vf103v_rvstar/.config b/bsp/nuclei/gd32vf103/.config similarity index 91% rename from bsp/nuclei/gd32vf103v_rvstar/.config rename to bsp/nuclei/gd32vf103/.config index 009472b719..faef6ecbb4 100644 --- a/bsp/nuclei/gd32vf103v_rvstar/.config +++ b/bsp/nuclei/gd32vf103/.config @@ -1,4 +1,7 @@ -# Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) +# +# Automatically generated file; DO NOT EDIT. +# RT-Thread Configuration +# # # RT-Thread Kernel @@ -43,7 +46,6 @@ CONFIG_RT_USING_EVENT=y CONFIG_RT_USING_MAILBOX=y CONFIG_RT_USING_MESSAGEQUEUE=y # CONFIG_RT_USING_SIGNALS is not set -# end of Inter-Thread communication # # Memory Management @@ -55,7 +57,6 @@ CONFIG_RT_USING_SMALL_MEM=y # CONFIG_RT_USING_SLAB is not set # CONFIG_RT_USING_MEMTRACE is not set CONFIG_RT_USING_HEAP=y -# end of Memory Management # # Kernel Device Object @@ -66,10 +67,12 @@ CONFIG_RT_USING_DEVICE=y CONFIG_RT_USING_CONSOLE=y CONFIG_RT_CONSOLEBUF_SIZE=128 CONFIG_RT_CONSOLE_DEVICE_NAME="uart4" -# end of Kernel Device Object - CONFIG_RT_VER_NUM=0x40003 -# end of RT-Thread Kernel +# CONFIG_RT_USING_CPU_FFS is not set +CONFIG_ARCH_RISCV=y +CONFIG_ARCH_RISCV32=y +CONFIG_ARCH_NUCLEI=y +# CONFIG_ARCH_CPU_STACK_GROWS_UPWARD is not set # # RT-Thread Components @@ -83,7 +86,6 @@ CONFIG_RT_MAIN_THREAD_PRIORITY=10 # C++ features # # CONFIG_RT_USING_CPLUSPLUS is not set -# end of C++ features # # Command shell @@ -103,7 +105,6 @@ CONFIG_FINSH_USING_MSH=y CONFIG_FINSH_USING_MSH_DEFAULT=y CONFIG_FINSH_USING_MSH_ONLY=y CONFIG_FINSH_ARG_MAX=10 -# end of Command shell # # Device virtual file system @@ -120,7 +121,6 @@ CONFIG_RT_USING_DFS_DEVFS=y # CONFIG_RT_USING_DFS_RAMFS is not set # CONFIG_RT_USING_DFS_UFFS is not set # CONFIG_RT_USING_DFS_JFFS2 is not set -# end of Device virtual file system # # Device Drivers @@ -141,7 +141,9 @@ CONFIG_RT_SERIAL_RB_BUFSZ=64 # CONFIG_RT_USING_MTD_NOR is not set # CONFIG_RT_USING_MTD_NAND is not set # CONFIG_RT_USING_PM is not set -# CONFIG_RT_USING_RTC is not set +CONFIG_RT_USING_RTC=y +# CONFIG_RT_USING_ALARM is not set +# CONFIG_RT_USING_SOFT_RTC is not set # CONFIG_RT_USING_SDIO is not set # CONFIG_RT_USING_SPI is not set # CONFIG_RT_USING_WDT is not set @@ -158,8 +160,6 @@ CONFIG_RT_SERIAL_RB_BUFSZ=64 # # CONFIG_RT_USING_USB_HOST is not set # CONFIG_RT_USING_USB_DEVICE is not set -# end of Using USB -# end of Device Drivers # # POSIX layer and C standard library @@ -171,7 +171,6 @@ CONFIG_RT_USING_POSIX=y # CONFIG_RT_USING_POSIX_TERMIOS is not set # CONFIG_RT_USING_POSIX_AIO is not set # CONFIG_RT_USING_MODULE is not set -# end of POSIX layer and C standard library # # Network @@ -181,32 +180,26 @@ CONFIG_RT_USING_POSIX=y # Socket abstraction layer # # CONFIG_RT_USING_SAL is not set -# end of Socket abstraction layer # # Network interface device # # CONFIG_RT_USING_NETDEV is not set -# end of Network interface device # # light weight TCP/IP stack # # CONFIG_RT_USING_LWIP is not set -# end of light weight TCP/IP stack # # AT commands # # CONFIG_RT_USING_AT is not set -# end of AT commands -# end of Network # # VBUS(Virtual Software BUS) # # CONFIG_RT_USING_VBUS is not set -# end of VBUS(Virtual Software BUS) # # Utilities @@ -214,8 +207,6 @@ CONFIG_RT_USING_POSIX=y # CONFIG_RT_USING_RYM is not set # CONFIG_RT_USING_ULOG is not set # CONFIG_RT_USING_UTEST is not set -# end of Utilities -# end of RT-Thread Components # # RT-Thread online packages @@ -247,17 +238,12 @@ CONFIG_RT_USING_POSIX=y # Marvell WiFi # # CONFIG_PKG_USING_WLANMARVELL is not set -# end of Marvell WiFi # # Wiced WiFi # # CONFIG_PKG_USING_WLAN_WICED is not set -# end of Wiced WiFi - # CONFIG_PKG_USING_RW007 is not set -# end of Wi-Fi - # CONFIG_PKG_USING_COAP is not set # CONFIG_PKG_USING_NOPOLL is not set # CONFIG_PKG_USING_NETUTILS is not set @@ -277,8 +263,6 @@ CONFIG_RT_USING_POSIX=y # CONFIG_PKG_USING_JIOT-C-SDK is not set # CONFIG_PKG_USING_UCLOUD_IOT_SDK is not set # CONFIG_PKG_USING_JOYLINK is not set -# end of IoT Cloud - # CONFIG_PKG_USING_NIMBLE is not set # CONFIG_PKG_USING_OTA_DOWNLOADER is not set # CONFIG_PKG_USING_IPMSG is not set @@ -297,7 +281,6 @@ CONFIG_RT_USING_POSIX=y # CONFIG_PKG_USING_CAPNP is not set # CONFIG_PKG_USING_RT_CJSON_TOOLS is not set # CONFIG_PKG_USING_AGILE_TELNET is not set -# end of IoT - internet of things # # security packages @@ -306,7 +289,6 @@ CONFIG_RT_USING_POSIX=y # CONFIG_PKG_USING_libsodium is not set # CONFIG_PKG_USING_TINYCRYPT is not set # CONFIG_PKG_USING_TFM is not set -# end of security packages # # language packages @@ -314,7 +296,6 @@ CONFIG_RT_USING_POSIX=y # CONFIG_PKG_USING_LUA is not set # CONFIG_PKG_USING_JERRYSCRIPT is not set # CONFIG_PKG_USING_MICROPYTHON is not set -# end of language packages # # multimedia packages @@ -324,7 +305,6 @@ CONFIG_RT_USING_POSIX=y # CONFIG_PKG_USING_STEMWIN is not set # CONFIG_PKG_USING_WAVPLAYER is not set # CONFIG_PKG_USING_TJPGD is not set -# end of multimedia packages # # tools packages @@ -343,7 +323,6 @@ CONFIG_RT_USING_POSIX=y # CONFIG_PKG_USING_CHINESE_FONT_LIBRARY is not set # CONFIG_PKG_USING_LUNAR_CALENDAR is not set # CONFIG_PKG_USING_BS8116A is not set -# end of tools packages # # system packages @@ -366,7 +345,6 @@ CONFIG_RT_USING_POSIX=y # CONFIG_PKG_USING_SYSWATCH is not set # CONFIG_PKG_USING_SYS_LOAD_MONITOR is not set # CONFIG_PKG_USING_PLCCORE is not set -# end of system packages # # peripheral libraries and drivers @@ -407,7 +385,11 @@ CONFIG_RT_USING_POSIX=y # CONFIG_PKG_USING_MAX7219 is not set # CONFIG_PKG_USING_BEEP is not set # CONFIG_PKG_USING_EASYBLINK is not set -# end of peripheral libraries and drivers +CONFIG_PKG_USING_NUCLEI_SDK=y +CONFIG_PKG_NUCLEI_SDK_PATH="/packages/peripherals/nuclei_sdk" +# CONFIG_PKG_USING_NUCLEI_SDK_V022 is not set +CONFIG_PKG_USING_NUCLEI_SDK_LATEST_VERSION=y +CONFIG_PKG_NUCLEI_SDK_VER="latest" # # miscellaneous packages @@ -435,8 +417,6 @@ CONFIG_RT_USING_POSIX=y # CONFIG_PKG_USING_FILESYSTEM_SAMPLES is not set # CONFIG_PKG_USING_NETWORK_SAMPLES is not set # CONFIG_PKG_USING_PERIPHERAL_SAMPLES is not set -# end of samples: kernel and components samples - # CONFIG_PKG_USING_HELLO is not set # CONFIG_PKG_USING_VI is not set # CONFIG_PKG_USING_NNOM is not set @@ -446,8 +426,6 @@ CONFIG_RT_USING_POSIX=y # CONFIG_PKG_USING_VT100 is not set # CONFIG_PKG_USING_ULAPACK is not set # CONFIG_PKG_USING_UKAL is not set -# end of miscellaneous packages -# end of RT-Thread online packages # # Hardware Drivers Config @@ -458,18 +436,14 @@ CONFIG_SOC_GD32VF103V=y # Onboard Peripheral Drivers # CONFIG_BSP_USING_USART=y -# end of Onboard Peripheral Drivers # # On-chip Peripheral Drivers # CONFIG_BSP_USING_UART=y CONFIG_BSP_USING_UART4=y -# end of On-chip Peripheral Drivers # # Board extended module Drivers # -# end of Hardware Drivers Config - CONFIG_SOC_GD32VF103=y diff --git a/bsp/nuclei/gd32vf103v_rvstar/Kconfig b/bsp/nuclei/gd32vf103/Kconfig similarity index 83% rename from bsp/nuclei/gd32vf103v_rvstar/Kconfig rename to bsp/nuclei/gd32vf103/Kconfig index c5c5d671d3..3d72a4aba7 100644 --- a/bsp/nuclei/gd32vf103v_rvstar/Kconfig +++ b/bsp/nuclei/gd32vf103/Kconfig @@ -20,7 +20,10 @@ source "$PKGS_DIR/Kconfig" source "board/Kconfig" config SOC_GD32VF103 - bool + bool + select ARCH_NUCLEI + select ARCH_RISCV32 + select PKG_USING_NUCLEI_SDK select RT_USING_COMPONENTS_INIT select RT_USING_USER_MAIN default y diff --git a/bsp/nuclei/gd32vf103v_rvstar/README.md b/bsp/nuclei/gd32vf103/README.md similarity index 100% rename from bsp/nuclei/gd32vf103v_rvstar/README.md rename to bsp/nuclei/gd32vf103/README.md diff --git a/bsp/nuclei/gd32vf103v_rvstar/SConscript b/bsp/nuclei/gd32vf103/SConscript similarity index 100% rename from bsp/nuclei/gd32vf103v_rvstar/SConscript rename to bsp/nuclei/gd32vf103/SConscript diff --git a/bsp/nuclei/gd32vf103v_rvstar/SConstruct b/bsp/nuclei/gd32vf103/SConstruct similarity index 91% rename from bsp/nuclei/gd32vf103v_rvstar/SConstruct rename to bsp/nuclei/gd32vf103/SConstruct index 7c62ef372f..c1959a8314 100644 --- a/bsp/nuclei/gd32vf103v_rvstar/SConstruct +++ b/bsp/nuclei/gd32vf103/SConstruct @@ -33,17 +33,11 @@ Export('RTT_ROOT') Export('rtconfig') GDB = rtconfig.GDB -nuclei_sdk_root = rtconfig.NUCLEI_SDK_ROOT -openocd_cfg = rtconfig.OPENOCD_CFG.replace('\\', '/') - # prepare building environment objs = PrepareBuilding(env, RTT_ROOT) - -# include libraries -objs.extend(SConscript(os.path.join(nuclei_sdk_root, 'SConscript'))) - +openocd_cfg = rtconfig.NUCLEI_SDK_OPENOCD_CFG.replace('\\', '/') # make a building DoBuilding(TARGET, objs) diff --git a/bsp/nuclei/gd32vf103v_rvstar/applications/SConscript b/bsp/nuclei/gd32vf103/applications/SConscript similarity index 100% rename from bsp/nuclei/gd32vf103v_rvstar/applications/SConscript rename to bsp/nuclei/gd32vf103/applications/SConscript diff --git a/bsp/nuclei/gd32vf103v_rvstar/applications/main.c b/bsp/nuclei/gd32vf103/applications/main.c similarity index 83% rename from bsp/nuclei/gd32vf103v_rvstar/applications/main.c rename to bsp/nuclei/gd32vf103/applications/main.c index 6ffaa8e253..a013e6604d 100644 --- a/bsp/nuclei/gd32vf103v_rvstar/applications/main.c +++ b/bsp/nuclei/gd32vf103/applications/main.c @@ -10,11 +10,12 @@ #include #include +#include -#define THREAD_PRIORITY 20 +#define THREAD_PRIORITY 19 #define THREAD_STACK_SIZE 396 #define THREAD_TIMESLICE 5 -#define THREAD_NUM 2 +#define THREAD_NUM 2 //#define APP_DEBUG_PRINT /* Align stack when using static thread */ @@ -32,6 +33,9 @@ static void thread_entry(void *parameter) rt_kprintf("thread %d count: %d\n", (rt_uint32_t)parameter, count++); #endif rt_thread_mdelay(500); + if ((rt_uint32_t)parameter < (LEDn-1)) { + gd_rvstar_led_toggle((rt_uint32_t)parameter); + } } } @@ -63,12 +67,17 @@ int main(void) rt_uint32_t count = 0; create_thread_demo(); + for (int i = 0; i < LEDn; i ++) { + gd_rvstar_led_init(i); + } + while (1) { #ifdef APP_DEBUG_PRINT rt_kprintf("Main thread count: %d\n", count++); #endif rt_thread_mdelay(1000); + gd_rvstar_led_toggle(LED3); } } diff --git a/bsp/nuclei/gd32vf103v_rvstar/board/Kconfig b/bsp/nuclei/gd32vf103/board/Kconfig similarity index 100% rename from bsp/nuclei/gd32vf103v_rvstar/board/Kconfig rename to bsp/nuclei/gd32vf103/board/Kconfig diff --git a/bsp/nuclei/gd32vf103v_rvstar/board/SConscript b/bsp/nuclei/gd32vf103/board/SConscript similarity index 100% rename from bsp/nuclei/gd32vf103v_rvstar/board/SConscript rename to bsp/nuclei/gd32vf103/board/SConscript diff --git a/bsp/nuclei/gd32vf103v_rvstar/board/board.c b/bsp/nuclei/gd32vf103/board/board.c similarity index 100% rename from bsp/nuclei/gd32vf103v_rvstar/board/board.c rename to bsp/nuclei/gd32vf103/board/board.c diff --git a/bsp/nuclei/gd32vf103v_rvstar/board/board.h b/bsp/nuclei/gd32vf103/board/board.h similarity index 100% rename from bsp/nuclei/gd32vf103v_rvstar/board/board.h rename to bsp/nuclei/gd32vf103/board/board.h diff --git a/bsp/nuclei/gd32vf103v_rvstar/drivers/SConscript b/bsp/nuclei/gd32vf103/drivers/SConscript similarity index 100% rename from bsp/nuclei/gd32vf103v_rvstar/drivers/SConscript rename to bsp/nuclei/gd32vf103/drivers/SConscript diff --git a/bsp/nuclei/gd32vf103v_rvstar/drivers/drv_usart.c b/bsp/nuclei/gd32vf103/drivers/drv_usart.c similarity index 100% rename from bsp/nuclei/gd32vf103v_rvstar/drivers/drv_usart.c rename to bsp/nuclei/gd32vf103/drivers/drv_usart.c diff --git a/bsp/nuclei/gd32vf103v_rvstar/drivers/drv_usart.h b/bsp/nuclei/gd32vf103/drivers/drv_usart.h similarity index 100% rename from bsp/nuclei/gd32vf103v_rvstar/drivers/drv_usart.h rename to bsp/nuclei/gd32vf103/drivers/drv_usart.h diff --git a/bsp/nuclei/gd32vf103v_rvstar/rtconfig.h b/bsp/nuclei/gd32vf103/rtconfig.h similarity index 69% rename from bsp/nuclei/gd32vf103v_rvstar/rtconfig.h rename to bsp/nuclei/gd32vf103/rtconfig.h index ce15042649..2bcbab6db5 100644 --- a/bsp/nuclei/gd32vf103v_rvstar/rtconfig.h +++ b/bsp/nuclei/gd32vf103/rtconfig.h @@ -1,7 +1,8 @@ #ifndef RT_CONFIG_H__ #define RT_CONFIG_H__ -/* Generated by Kconfiglib (https://github.com/ulfalizer/Kconfiglib) */ +/* Automatically generated file; DO NOT EDIT. */ +/* RT-Thread Configuration */ /* RT-Thread Kernel */ @@ -29,14 +30,12 @@ #define RT_USING_EVENT #define RT_USING_MAILBOX #define RT_USING_MESSAGEQUEUE -/* end of Inter-Thread communication */ /* Memory Management */ #define RT_USING_MEMPOOL #define RT_USING_SMALL_MEM #define RT_USING_HEAP -/* end of Memory Management */ /* Kernel Device Object */ @@ -44,9 +43,10 @@ #define RT_USING_CONSOLE #define RT_CONSOLEBUF_SIZE 128 #define RT_CONSOLE_DEVICE_NAME "uart4" -/* end of Kernel Device Object */ #define RT_VER_NUM 0x40003 -/* end of RT-Thread Kernel */ +#define ARCH_RISCV +#define ARCH_RISCV32 +#define ARCH_NUCLEI /* RT-Thread Components */ @@ -57,7 +57,6 @@ /* C++ features */ -/* end of C++ features */ /* Command shell */ @@ -74,7 +73,6 @@ #define FINSH_USING_MSH_DEFAULT #define FINSH_USING_MSH_ONLY #define FINSH_ARG_MAX 10 -/* end of Command shell */ /* Device virtual file system */ @@ -84,7 +82,6 @@ #define DFS_FILESYSTEM_TYPES_MAX 2 #define DFS_FD_MAX 16 #define RT_USING_DFS_DEVFS -/* end of Device virtual file system */ /* Device Drivers */ @@ -92,45 +89,35 @@ #define RT_PIPE_BUFSZ 512 #define RT_USING_SERIAL #define RT_SERIAL_RB_BUFSZ 64 +#define RT_USING_RTC /* Using USB */ -/* end of Using USB */ -/* end of Device Drivers */ /* POSIX layer and C standard library */ #define RT_USING_LIBC #define RT_USING_POSIX -/* end of POSIX layer and C standard library */ /* Network */ /* Socket abstraction layer */ -/* end of Socket abstraction layer */ /* Network interface device */ -/* end of Network interface device */ /* light weight TCP/IP stack */ -/* end of light weight TCP/IP stack */ /* AT commands */ -/* end of AT commands */ -/* end of Network */ /* VBUS(Virtual Software BUS) */ -/* end of VBUS(Virtual Software BUS) */ /* Utilities */ -/* end of Utilities */ -/* end of RT-Thread Components */ /* RT-Thread online packages */ @@ -141,50 +128,38 @@ /* Marvell WiFi */ -/* end of Marvell WiFi */ /* Wiced WiFi */ -/* end of Wiced WiFi */ -/* end of Wi-Fi */ /* IoT Cloud */ -/* end of IoT Cloud */ -/* end of IoT - internet of things */ /* security packages */ -/* end of security packages */ /* language packages */ -/* end of language packages */ /* multimedia packages */ -/* end of multimedia packages */ /* tools packages */ -/* end of tools packages */ /* system packages */ -/* end of system packages */ /* peripheral libraries and drivers */ -/* end of peripheral libraries and drivers */ +#define PKG_USING_NUCLEI_SDK +#define PKG_USING_NUCLEI_SDK_LATEST_VERSION /* miscellaneous packages */ /* samples: kernel and components samples */ -/* end of samples: kernel and components samples */ -/* end of miscellaneous packages */ -/* end of RT-Thread online packages */ /* Hardware Drivers Config */ @@ -193,17 +168,14 @@ /* Onboard Peripheral Drivers */ #define BSP_USING_USART -/* end of Onboard Peripheral Drivers */ /* On-chip Peripheral Drivers */ #define BSP_USING_UART #define BSP_USING_UART4 -/* end of On-chip Peripheral Drivers */ /* Board extended module Drivers */ -/* end of Hardware Drivers Config */ #define SOC_GD32VF103 #endif diff --git a/bsp/nuclei/gd32vf103v_rvstar/rtconfig.py b/bsp/nuclei/gd32vf103/rtconfig.py similarity index 63% rename from bsp/nuclei/gd32vf103v_rvstar/rtconfig.py rename to bsp/nuclei/gd32vf103/rtconfig.py index 8b08e0d9a3..ea6050a967 100644 --- a/bsp/nuclei/gd32vf103v_rvstar/rtconfig.py +++ b/bsp/nuclei/gd32vf103/rtconfig.py @@ -18,10 +18,11 @@ else: # EXEC_PATH = os.getenv('RTT_EXEC_PATH') BUILD = 'debug' -NUCLEI_SDK_ROOT = os.path.abspath("../nuclei_sdk") -SOC_LIBRARY_ROOT = os.path.join(NUCLEI_SDK_ROOT, "SoC", "gd32vf103") -LINK_FILE = os.path.join(SOC_LIBRARY_ROOT, "Board", "gd32vf103v_rvstar", "Source", "GCC", "gcc_gd32vf103_flashxip.ld") -OPENOCD_CFG = os.path.join(SOC_LIBRARY_ROOT, "Board", "gd32vf103v_rvstar", "openocd_gd32vf103.cfg") +# Fixed configurations below +NUCLEI_SDK_SOC = "gd32vf103" +NUCLEI_SDK_BOARD = "gd32vf103v_rvstar" +NUCLEI_SDK_DOWNLOAD = "flashxip" +NUCLEI_SDK_CORE = "n205" if PLATFORM == 'gcc': # toolchains @@ -37,12 +38,10 @@ if PLATFORM == 'gcc': OBJDUMP = PREFIX + 'objdump' OBJCPY = PREFIX + 'objcopy' - DEVICE = '-march=rv32imac -mabi=ilp32 -mcmodel=medany ' - CFLAGS = DEVICE + ' -ffunction-sections -fdata-sections -fno-common ' + CFLAGS = ' -ffunction-sections -fdata-sections -fno-common ' AFLAGS = CFLAGS - LFLAGS = DEVICE + ' --specs=nano.specs --specs=nosys.specs -nostartfiles -Wl,--gc-sections ' - LFLAGS += ' -Wl,-cref,-Map=rtthread.map -u _printf_float' - LFLAGS += ' -T ' + LINK_FILE + LFLAGS = ' --specs=nano.specs --specs=nosys.specs -nostartfiles -Wl,--gc-sections ' + LFLAGS += ' -Wl,-cref,-Map=rtthread.map' LFLAGS += ' -u _isatty -u _write -u _sbrk -u _read -u _close -u _fstat -u _lseek ' CPATH = '' LPATH = ''