diff --git a/bsp/stm32l476-nucleo/.config b/bsp/stm32l476-nucleo/.config
index 7482c2f775..44a239f90d 100644
--- a/bsp/stm32l476-nucleo/.config
+++ b/bsp/stm32l476-nucleo/.config
@@ -13,13 +13,22 @@ CONFIG_RT_THREAD_PRIORITY_32=y
# CONFIG_RT_THREAD_PRIORITY_256 is not set
CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
-CONFIG_RT_DEBUG=y
CONFIG_RT_USING_OVERFLOW_CHECK=y
-CONFIG_RT_DEBUG_INIT=0
-CONFIG_RT_DEBUG_THREAD=0
CONFIG_RT_USING_HOOK=y
+CONFIG_RT_IDEL_HOOK_LIST_SIZE=4
CONFIG_IDLE_THREAD_STACK_SIZE=256
# CONFIG_RT_USING_TIMER_SOFT is not set
+CONFIG_RT_DEBUG=y
+# CONFIG_RT_DEBUG_INIT_CONFIG is not set
+# CONFIG_RT_DEBUG_THREAD_CONFIG is not set
+# CONFIG_RT_DEBUG_SCHEDULER_CONFIG is not set
+# CONFIG_RT_DEBUG_IPC_CONFIG is not set
+# CONFIG_RT_DEBUG_TIMER_CONFIG is not set
+# CONFIG_RT_DEBUG_IRQ_CONFIG is not set
+# CONFIG_RT_DEBUG_MEM_CONFIG is not set
+# CONFIG_RT_DEBUG_SLAB_CONFIG is not set
+# CONFIG_RT_DEBUG_MEMHEAP_CONFIG is not set
+# CONFIG_RT_DEBUG_MODULE_CONFIG is not set
#
# Inter-Thread communication
@@ -46,6 +55,7 @@ CONFIG_RT_USING_HEAP=y
# Kernel Device Object
#
CONFIG_RT_USING_DEVICE=y
+# CONFIG_RT_USING_DEVICE_OPS is not set
# CONFIG_RT_USING_INTERRUPT_INFO is not set
CONFIG_RT_USING_CONSOLE=y
CONFIG_RT_CONSOLEBUF_SIZE=128
@@ -58,6 +68,7 @@ CONFIG_RT_CONSOLE_DEVICE_NAME="uart2"
CONFIG_RT_USING_COMPONENTS_INIT=y
CONFIG_RT_USING_USER_MAIN=y
CONFIG_RT_MAIN_THREAD_STACK_SIZE=2048
+CONFIG_RT_MAIN_THREAD_PRIORITY=10
#
# C++ features
@@ -81,6 +92,7 @@ CONFIG_FINSH_CMD_SIZE=80
CONFIG_FINSH_USING_MSH=y
CONFIG_FINSH_USING_MSH_DEFAULT=y
# CONFIG_FINSH_USING_MSH_ONLY is not set
+CONFIG_FINSH_ARG_MAX=10
#
# Device virtual file system
@@ -91,12 +103,14 @@ CONFIG_FINSH_USING_MSH_DEFAULT=y
# Device Drivers
#
CONFIG_RT_USING_DEVICE_IPC=y
+CONFIG_RT_PIPE_BUFSZ=512
CONFIG_RT_USING_SERIAL=y
# CONFIG_RT_USING_CAN is not set
# CONFIG_RT_USING_HWTIMER is not set
# CONFIG_RT_USING_CPUTIME is not set
# CONFIG_RT_USING_I2C is not set
CONFIG_RT_USING_PIN=y
+# CONFIG_RT_USING_PWM is not set
# CONFIG_RT_USING_MTD_NOR is not set
# CONFIG_RT_USING_MTD_NAND is not set
# CONFIG_RT_USING_RTC is not set
@@ -104,6 +118,7 @@ CONFIG_RT_USING_PIN=y
# CONFIG_RT_USING_SPI is not set
# CONFIG_RT_USING_WDT is not set
# CONFIG_RT_USING_WIFI is not set
+# CONFIG_RT_USING_AUDIO is not set
#
# Using USB
@@ -118,9 +133,14 @@ CONFIG_RT_USING_LIBC=y
# CONFIG_RT_USING_PTHREADS is not set
#
-# Network stack
+# Network
#
+#
+# Socket abstraction layer
+#
+# CONFIG_RT_USING_SAL is not set
+
#
# light weight TCP/IP stack
#
@@ -131,6 +151,11 @@ CONFIG_RT_USING_LIBC=y
#
# CONFIG_RT_USING_MODBUS is not set
+#
+# AT commands
+#
+# CONFIG_RT_USING_AT is not set
+
#
# VBUS(Virtual Software BUS)
#
@@ -154,6 +179,7 @@ CONFIG_RT_USING_LIBC=y
# CONFIG_PKG_USING_MONGOOSE is not set
# CONFIG_PKG_USING_WEBTERMINAL is not set
# CONFIG_PKG_USING_CJSON is not set
+# CONFIG_PKG_USING_JSMN is not set
# CONFIG_PKG_USING_LJSON is not set
# CONFIG_PKG_USING_EZXML is not set
# CONFIG_PKG_USING_NANOPB is not set
@@ -176,6 +202,7 @@ CONFIG_RT_USING_LIBC=y
# CONFIG_PKG_USING_NOPOLL is not set
# CONFIG_PKG_USING_NETUTILS is not set
# CONFIG_PKG_USING_ONENET is not set
+# CONFIG_PKG_USING_AT_DEVICE is not set
#
# security packages
@@ -187,6 +214,7 @@ CONFIG_RT_USING_LIBC=y
#
# language packages
#
+# CONFIG_PKG_USING_LUA is not set
# CONFIG_PKG_USING_JERRYSCRIPT is not set
# CONFIG_PKG_USING_MICROPYTHON is not set
@@ -203,18 +231,16 @@ CONFIG_RT_USING_LIBC=y
# CONFIG_PKG_USING_EASYFLASH is not set
# CONFIG_PKG_USING_EASYLOGGER is not set
# CONFIG_PKG_USING_SYSTEMVIEW is not set
-# CONFIG_PKG_USING_IPERF is not set
#
# system packages
#
-
-#
-# RT-Thread GUI Engine
-#
# CONFIG_PKG_USING_GUIENGINE is not set
+# CONFIG_PKG_USING_CAIRO is not set
+# CONFIG_PKG_USING_PIXMAN is not set
# CONFIG_PKG_USING_LWEXT4 is not set
# CONFIG_PKG_USING_PARTITION is not set
+# CONFIG_PKG_USING_FAL is not set
# CONFIG_PKG_USING_SQLITE is not set
# CONFIG_PKG_USING_RTI is not set
# CONFIG_PKG_USING_LITTLEVGL2RTT is not set
@@ -224,15 +250,19 @@ CONFIG_RT_USING_LIBC=y
#
# CONFIG_PKG_USING_STM32F4_HAL is not set
# CONFIG_PKG_USING_STM32F4_DRIVERS is not set
+# CONFIG_PKG_USING_REALTEK_AMEBA is not set
#
# miscellaneous packages
#
+# CONFIG_PKG_USING_OPTPARSE is not set
# CONFIG_PKG_USING_FASTLZ is not set
# CONFIG_PKG_USING_MINILZO is not set
# CONFIG_PKG_USING_QUICKLZ is not set
# CONFIG_PKG_USING_MULTIBUTTON is not set
# CONFIG_PKG_USING_CANFESTIVAL is not set
+# CONFIG_PKG_USING_ZLIB is not set
+# CONFIG_PKG_USING_DSTR is not set
#
# sample package
@@ -254,19 +284,14 @@ CONFIG_RT_USING_LIBC=y
#
# Network Utilities
#
-# CONFIG_PKG_USING_WLAN_WICED_SRC is not set
+# CONFIG_PKG_USING_WICED is not set
# CONFIG_PKG_USING_CLOUDSDK is not set
# CONFIG_PKG_USING_COREMARK is not set
# CONFIG_PKG_USING_POWER_MANAGER is not set
# CONFIG_PKG_USING_RT_OTA is not set
-# CONFIG_PKG_USING_RT_AT is not set
# CONFIG_PKG_USING_RDB is not set
-
-#
-# Test Packages of RealThread
-#
-# CONFIG_PKG_USING_JERRYSCRIPT_WIN32 is not set
-# CONFIG_PKG_USING_JS_PERSIMMON is not set
+# CONFIG_PKG_USING_RTINSIGHT is not set
+# CONFIG_PKG_USING_STM32_SDIO is not set
# CONFIG_BSP_USING_UART1 is not set
CONFIG_BSP_USING_UART2=y
# CONFIG_BSP_USING_UART3 is not set
diff --git a/bsp/stm32l476-nucleo/project.uvoptx b/bsp/stm32l476-nucleo/project.uvoptx
index 21c5637fa1..490c38cbf8 100644
--- a/bsp/stm32l476-nucleo/project.uvoptx
+++ b/bsp/stm32l476-nucleo/project.uvoptx
@@ -103,7 +103,7 @@
1
0
0
- 0
+ 6
@@ -114,9 +114,14 @@
- BIN\UL2CM3.DLL
+ STLink\ST-LINKIII-KEIL_SWO.dll
+
+ 0
+ ST-LINKIII-KEIL_SWO
+ -U0668FF353637503457045527 -O206 -SF4000 -C0 -A0 -I0 -HNlocalhost -HP7184 -P2 -N00("ARM CoreSight SW-DP") -D00(2BA01477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8004 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO7 -FD20000000 -FC1000 -FN1 -FF0STM32L4xx_1024.FLM -FS08000000 -FL0100000 -FP0($$Device:STM32L476RGTx$CMSIS\Flash\STM32L4xx_1024.FLM)
+
0
UL2CM3
@@ -168,6 +173,7 @@
1
+ 1
0
2
10000000
@@ -176,8 +182,8 @@
- Drivers
- 0
+ Applications
+ 1
0
0
0
@@ -188,14 +194,34 @@
0
0
0
+ applications\main.c
+ main.c
+ 0
+ 0
+
+
+
+
+ Drivers
+ 0
+ 0
+ 0
+ 0
+
+ 2
+ 2
+ 1
+ 0
+ 0
+ 0
drivers\board.c
board.c
0
0
- 1
- 2
+ 2
+ 3
1
0
0
@@ -206,8 +232,8 @@
0
- 1
- 3
+ 2
+ 4
1
0
0
@@ -226,8 +252,8 @@
0
0
- 2
- 4
+ 3
+ 5
1
0
0
@@ -238,8 +264,8 @@
0
- 2
- 5
+ 3
+ 6
1
0
0
@@ -250,8 +276,8 @@
0
- 2
- 6
+ 3
+ 7
1
0
0
@@ -262,8 +288,8 @@
0
- 2
- 7
+ 3
+ 8
1
0
0
@@ -274,8 +300,8 @@
0
- 2
- 8
+ 3
+ 9
1
0
0
@@ -286,8 +312,8 @@
0
- 2
- 9
+ 3
+ 10
1
0
0
@@ -298,8 +324,8 @@
0
- 2
- 10
+ 3
+ 11
1
0
0
@@ -310,8 +336,8 @@
0
- 2
- 11
+ 3
+ 12
1
0
0
@@ -322,8 +348,8 @@
0
- 2
- 12
+ 3
+ 13
1
0
0
@@ -334,8 +360,8 @@
0
- 2
- 13
+ 3
+ 14
1
0
0
@@ -346,8 +372,8 @@
0
- 2
- 14
+ 3
+ 15
1
0
0
@@ -358,8 +384,8 @@
0
- 2
- 15
+ 3
+ 16
1
0
0
@@ -370,8 +396,8 @@
0
- 2
- 16
+ 3
+ 17
1
0
0
@@ -382,8 +408,8 @@
0
- 2
- 17
+ 3
+ 18
1
0
0
@@ -394,8 +420,8 @@
0
- 2
- 18
+ 3
+ 19
1
0
0
@@ -406,8 +432,8 @@
0
- 2
- 19
+ 3
+ 20
1
0
0
@@ -418,8 +444,8 @@
0
- 2
- 20
+ 3
+ 21
1
0
0
@@ -430,8 +456,8 @@
0
- 2
- 21
+ 3
+ 22
1
0
0
@@ -442,8 +468,8 @@
0
- 2
- 22
+ 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 94
+ 3
+ 95
1
0
0
@@ -1318,8 +1344,8 @@
0
- 2
- 95
+ 3
+ 96
1
0
0
@@ -1330,8 +1356,8 @@
0
- 2
- 96
+ 3
+ 97
1
0
0
@@ -1342,8 +1368,8 @@
0
- 2
- 97
+ 3
+ 98
1
0
0
@@ -1354,8 +1380,8 @@
0
- 2
- 98
+ 3
+ 99
1
0
0
@@ -1366,8 +1392,8 @@
0
- 2
- 99
+ 3
+ 100
1
0
0
@@ -1378,8 +1404,8 @@
0
- 2
- 100
+ 3
+ 101
2
0
0
@@ -1391,26 +1417,6 @@
-
- Applications
- 0
- 0
- 0
- 0
-
- 3
- 101
- 1
- 0
- 0
- 0
- applications\main.c
- main.c
- 0
- 0
-
-
-
Kernel
0
@@ -1520,6 +1526,18 @@
0
0
0
+ ..\..\src\mempool.c
+ mempool.c
+ 0
+ 0
+
+
+ 4
+ 111
+ 1
+ 0
+ 0
+ 0
..\..\src\object.c
object.c
0
@@ -1527,7 +1545,7 @@
4
- 111
+ 112
1
0
0
@@ -1539,7 +1557,7 @@
4
- 112
+ 113
1
0
0
@@ -1551,7 +1569,7 @@
4
- 113
+ 114
1
0
0
@@ -1563,7 +1581,7 @@
4
- 114
+ 115
1
0
0
@@ -1583,7 +1601,7 @@
0
5
- 115
+ 116
1
0
0
@@ -1595,7 +1613,7 @@
5
- 116
+ 117
2
0
0
@@ -1607,7 +1625,7 @@
5
- 117
+ 118
1
0
0
@@ -1619,7 +1637,7 @@
5
- 118
+ 119
1
0
0
@@ -1631,7 +1649,7 @@
5
- 119
+ 120
1
0
0
@@ -1643,62 +1661,6 @@
-
- libc
- 0
- 0
- 0
- 0
-
- 6
- 120
- 1
- 0
- 0
- 0
- ..\..\components\libc\compilers\armlibc\libc.c
- libc.c
- 0
- 0
-
-
- 6
- 121
- 1
- 0
- 0
- 0
- ..\..\components\libc\compilers\armlibc\mem_std.c
- mem_std.c
- 0
- 0
-
-
- 6
- 122
- 1
- 0
- 0
- 0
- ..\..\components\libc\compilers\armlibc\stubs.c
- stubs.c
- 0
- 0
-
-
- 6
- 123
- 1
- 0
- 0
- 0
- ..\..\components\libc\compilers\armlibc\time.c
- time.c
- 0
- 0
-
-
-
DeviceDrivers
0
@@ -1706,8 +1668,8 @@
0
0
- 7
- 124
+ 6
+ 121
1
0
0
@@ -1718,8 +1680,8 @@
0
- 7
- 125
+ 6
+ 122
1
0
0
@@ -1730,8 +1692,8 @@
0
- 7
- 126
+ 6
+ 123
1
0
0
@@ -1742,8 +1704,8 @@
0
- 7
- 127
+ 6
+ 124
1
0
0
@@ -1754,8 +1716,8 @@
0
- 7
- 128
+ 6
+ 125
1
0
0
@@ -1766,8 +1728,8 @@
0
- 7
- 129
+ 6
+ 126
1
0
0
@@ -1778,8 +1740,8 @@
0
- 7
- 130
+ 6
+ 127
1
0
0
@@ -1790,8 +1752,8 @@
0
- 7
- 131
+ 6
+ 128
1
0
0
@@ -1810,8 +1772,8 @@
0
0
- 8
- 132
+ 7
+ 129
1
0
0
@@ -1822,8 +1784,8 @@
0
- 8
- 133
+ 7
+ 130
1
0
0
@@ -1834,8 +1796,8 @@
0
- 8
- 134
+ 7
+ 131
1
0
0
@@ -1846,8 +1808,8 @@
0
- 8
- 135
+ 7
+ 132
1
0
0
@@ -1858,8 +1820,8 @@
0
- 8
- 136
+ 7
+ 133
1
0
0
@@ -1870,8 +1832,8 @@
0
- 8
- 137
+ 7
+ 134
1
0
0
@@ -1882,8 +1844,8 @@
0
- 8
- 138
+ 7
+ 135
1
0
0
@@ -1894,8 +1856,8 @@
0
- 8
- 139
+ 7
+ 136
1
0
0
@@ -1906,8 +1868,8 @@
0
- 8
- 140
+ 7
+ 137
1
0
0
@@ -1918,8 +1880,8 @@
0
- 8
- 141
+ 7
+ 138
1
0
0
@@ -1930,8 +1892,8 @@
0
- 8
- 142
+ 7
+ 139
1
0
0
@@ -1942,8 +1904,8 @@
0
- 8
- 143
+ 7
+ 140
1
0
0
@@ -1954,8 +1916,8 @@
0
- 8
- 144
+ 7
+ 141
1
0
0
@@ -1966,8 +1928,8 @@
0
- 8
- 145
+ 7
+ 142
1
0
0
@@ -1978,8 +1940,8 @@
0
- 8
- 146
+ 7
+ 143
1
0
0
@@ -1990,8 +1952,8 @@
0
- 8
- 147
+ 7
+ 144
1
0
0
@@ -2003,6 +1965,62 @@
+
+ libc
+ 0
+ 0
+ 0
+ 0
+
+ 8
+ 145
+ 1
+ 0
+ 0
+ 0
+ ..\..\components\libc\compilers\armlibc\libc.c
+ libc.c
+ 0
+ 0
+
+
+ 8
+ 146
+ 1
+ 0
+ 0
+ 0
+ ..\..\components\libc\compilers\armlibc\mem_std.c
+ mem_std.c
+ 0
+ 0
+
+
+ 8
+ 147
+ 1
+ 0
+ 0
+ 0
+ ..\..\components\libc\compilers\armlibc\stubs.c
+ stubs.c
+ 0
+ 0
+
+
+ 8
+ 148
+ 1
+ 0
+ 0
+ 0
+ ..\..\components\libc\compilers\armlibc\time.c
+ time.c
+ 0
+ 0
+
+
+
::CMSIS
0
diff --git a/bsp/stm32l476-nucleo/project.uvprojx b/bsp/stm32l476-nucleo/project.uvprojx
index d4f8ee4d0b..4701b4289e 100644
--- a/bsp/stm32l476-nucleo/project.uvprojx
+++ b/bsp/stm32l476-nucleo/project.uvprojx
@@ -184,6 +184,7 @@
0
0
2
+ 0
1
0
8
@@ -337,7 +338,7 @@
USE_HAL_DRIVER, STM32L476xx, RT_USING_ARM_LIBC
- drivers;Libraries\STM32L4xx_HAL_Driver\Inc;Libraries\CMSIS\Device\ST\STM32L4xx\Include;Libraries\CMSIS\Include;applications;.;..\..\include;..\..\libcpu\arm\cortex-m4;..\..\libcpu\arm\common;..\..\components\libc\compilers\armlibc;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\finsh
+ applications;.;drivers;Libraries\STM32L4xx_HAL_Driver\Inc;Libraries\CMSIS\Device\ST\STM32L4xx\Include;Libraries\CMSIS\Include;..\..\include;..\..\libcpu\arm\cortex-m4;..\..\libcpu\arm\common;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\finsh;..\..\components\libc\compilers\armlibc
@@ -378,6 +379,16 @@
+
+ Applications
+
+
+ main.c
+ 1
+ applications\main.c
+
+
+
Drivers
@@ -888,16 +899,6 @@
-
- Applications
-
-
- main.c
- 1
- applications\main.c
-
-
-
Kernel
@@ -941,6 +942,11 @@
1
..\..\src\mem.c
+
+ mempool.c
+ 1
+ ..\..\src\mempool.c
+
object.c
1
@@ -998,31 +1004,6 @@
-
- libc
-
-
- libc.c
- 1
- ..\..\components\libc\compilers\armlibc\libc.c
-
-
- mem_std.c
- 1
- ..\..\components\libc\compilers\armlibc\mem_std.c
-
-
- stubs.c
- 1
- ..\..\components\libc\compilers\armlibc\stubs.c
-
-
- time.c
- 1
- ..\..\components\libc\compilers\armlibc\time.c
-
-
-
DeviceDrivers
@@ -1153,6 +1134,31 @@
+
+ libc
+
+
+ libc.c
+ 1
+ ..\..\components\libc\compilers\armlibc\libc.c
+
+
+ mem_std.c
+ 1
+ ..\..\components\libc\compilers\armlibc\mem_std.c
+
+
+ stubs.c
+ 1
+ ..\..\components\libc\compilers\armlibc\stubs.c
+
+
+ time.c
+ 1
+ ..\..\components\libc\compilers\armlibc\time.c
+
+
+
::CMSIS
diff --git a/bsp/stm32l476-nucleo/rtconfig.h b/bsp/stm32l476-nucleo/rtconfig.h
index 56c7a4e632..7be9f6b5b6 100644
--- a/bsp/stm32l476-nucleo/rtconfig.h
+++ b/bsp/stm32l476-nucleo/rtconfig.h
@@ -8,18 +8,14 @@
#define RT_NAME_MAX 8
#define RT_ALIGN_SIZE 4
-/* RT_THREAD_PRIORITY_8 is not set */
#define RT_THREAD_PRIORITY_32
-/* RT_THREAD_PRIORITY_256 is not set */
#define RT_THREAD_PRIORITY_MAX 32
#define RT_TICK_PER_SECOND 100
-#define RT_DEBUG
#define RT_USING_OVERFLOW_CHECK
-#define RT_DEBUG_INIT 0
-#define RT_DEBUG_THREAD 0
#define RT_USING_HOOK
+#define RT_IDEL_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 256
-/* RT_USING_TIMER_SOFT is not set */
+#define RT_DEBUG
/* Inter-Thread communication */
@@ -28,36 +24,29 @@
#define RT_USING_EVENT
#define RT_USING_MAILBOX
#define RT_USING_MESSAGEQUEUE
-/* RT_USING_SIGNALS is not set */
/* Memory Management */
#define RT_USING_MEMPOOL
-/* RT_USING_MEMHEAP is not set */
-/* RT_USING_NOHEAP is not set */
#define RT_USING_SMALL_MEM
-/* RT_USING_SLAB is not set */
-/* RT_USING_MEMTRACE is not set */
#define RT_USING_HEAP
/* Kernel Device Object */
#define RT_USING_DEVICE
-/* RT_USING_INTERRUPT_INFO is not set */
#define RT_USING_CONSOLE
#define RT_CONSOLEBUF_SIZE 128
#define RT_CONSOLE_DEVICE_NAME "uart2"
-/* RT_USING_MODULE is not set */
/* RT-Thread Components */
#define RT_USING_COMPONENTS_INIT
#define RT_USING_USER_MAIN
#define RT_MAIN_THREAD_STACK_SIZE 2048
+#define RT_MAIN_THREAD_PRIORITY 10
/* C++ features */
-/* RT_USING_CPLUSPLUS is not set */
/* Command shell */
@@ -67,174 +56,95 @@
#define FINSH_HISTORY_LINES 5
#define FINSH_USING_SYMTAB
#define FINSH_USING_DESCRIPTION
-/* FINSH_ECHO_DISABLE_DEFAULT is not set */
#define FINSH_THREAD_PRIORITY 20
#define FINSH_THREAD_STACK_SIZE 4096
#define FINSH_CMD_SIZE 80
-/* FINSH_USING_AUTH is not set */
#define FINSH_USING_MSH
#define FINSH_USING_MSH_DEFAULT
-/* FINSH_USING_MSH_ONLY is not set */
+#define FINSH_ARG_MAX 10
/* Device virtual file system */
-/* RT_USING_DFS is not set */
/* Device Drivers */
#define RT_USING_DEVICE_IPC
+#define RT_PIPE_BUFSZ 512
#define RT_USING_SERIAL
-/* RT_USING_CAN is not set */
-/* RT_USING_HWTIMER is not set */
-/* RT_USING_CPUTIME is not set */
-/* RT_USING_I2C is not set */
#define RT_USING_PIN
-/* RT_USING_MTD_NOR is not set */
-/* RT_USING_MTD_NAND is not set */
-/* RT_USING_RTC is not set */
-/* RT_USING_SDIO is not set */
-/* RT_USING_SPI is not set */
-/* RT_USING_WDT is not set */
-/* RT_USING_WIFI is not set */
/* Using USB */
-/* RT_USING_USB_HOST is not set */
-/* RT_USING_USB_DEVICE is not set */
/* POSIX layer and C standard library */
#define RT_USING_LIBC
-/* RT_USING_PTHREADS is not set */
-/* Network stack */
+/* Network */
+
+/* Socket abstraction layer */
+
/* light weight TCP/IP stack */
-/* RT_USING_LWIP is not set */
/* Modbus master and slave stack */
-/* RT_USING_MODBUS is not set */
+
+/* AT commands */
+
/* VBUS(Virtual Software BUS) */
-/* RT_USING_VBUS is not set */
/* Utilities */
-/* RT_USING_LOGTRACE is not set */
-/* RT_USING_RYM is not set */
/* RT-Thread online packages */
/* IoT - internet of things */
-/* PKG_USING_PAHOMQTT is not set */
-/* PKG_USING_WEBCLIENT is not set */
-/* PKG_USING_MONGOOSE is not set */
-/* PKG_USING_WEBTERMINAL is not set */
-/* PKG_USING_CJSON is not set */
-/* PKG_USING_LJSON is not set */
-/* PKG_USING_EZXML is not set */
-/* PKG_USING_NANOPB is not set */
-/* PKG_USING_GAGENT_CLOUD is not set */
/* Wi-Fi */
/* Marvell WiFi */
-/* PKG_USING_WLANMARVELL is not set */
/* Wiced WiFi */
-/* PKG_USING_WLAN_WICED is not set */
-/* PKG_USING_COAP is not set */
-/* PKG_USING_NOPOLL is not set */
-/* PKG_USING_NETUTILS is not set */
-/* PKG_USING_ONENET is not set */
/* security packages */
-/* PKG_USING_MBEDTLS is not set */
-/* PKG_USING_libsodium is not set */
-/* PKG_USING_TINYCRYPT is not set */
/* language packages */
-/* PKG_USING_JERRYSCRIPT is not set */
-/* PKG_USING_MICROPYTHON is not set */
/* multimedia packages */
-/* PKG_USING_OPENMV is not set */
-/* PKG_USING_MUPDF is not set */
/* tools packages */
-/* PKG_USING_CMBACKTRACE is not set */
-/* PKG_USING_EASYFLASH is not set */
-/* PKG_USING_EASYLOGGER is not set */
-/* PKG_USING_SYSTEMVIEW is not set */
-/* PKG_USING_IPERF is not set */
/* system packages */
-/* RT-Thread GUI Engine */
-
-/* PKG_USING_GUIENGINE is not set */
-/* PKG_USING_LWEXT4 is not set */
-/* PKG_USING_PARTITION is not set */
-/* PKG_USING_SQLITE is not set */
-/* PKG_USING_RTI is not set */
-/* PKG_USING_LITTLEVGL2RTT is not set */
/* peripheral libraries and drivers */
-/* PKG_USING_STM32F4_HAL is not set */
-/* PKG_USING_STM32F4_DRIVERS is not set */
/* miscellaneous packages */
-/* PKG_USING_FASTLZ is not set */
-/* PKG_USING_MINILZO is not set */
-/* PKG_USING_QUICKLZ is not set */
-/* PKG_USING_MULTIBUTTON is not set */
-/* PKG_USING_CANFESTIVAL is not set */
/* sample package */
-/* PKG_USING_SAMPLES is not set */
/* example package: hello */
-/* PKG_USING_HELLO is not set */
/* Privated Packages of RealThread */
-/* PKG_USING_CODEC is not set */
-/* PKG_USING_PLAYER is not set */
-/* PKG_USING_PERSIMMON_SRC is not set */
/* Network Utilities */
-/* PKG_USING_WLAN_WICED_SRC is not set */
-/* PKG_USING_CLOUDSDK is not set */
-/* PKG_USING_COREMARK is not set */
-/* PKG_USING_POWER_MANAGER is not set */
-/* PKG_USING_RT_OTA is not set */
-/* PKG_USING_RT_AT is not set */
-/* PKG_USING_RDB is not set */
-
-/* Test Packages of RealThread */
-
-/* PKG_USING_JERRYSCRIPT_WIN32 is not set */
-/* PKG_USING_JS_PERSIMMON is not set */
-/* BSP_USING_UART1 is not set */
#define BSP_USING_UART2
-/* BSP_USING_UART3 is not set */
-/* BSP_USING_UART4 is not set */
-/* BSP_USING_UART5 is not set */
-/* BSP_USING_LPUART1 is not set */
#endif
diff --git a/bsp/stm32l476-nucleo/rtconfig.py b/bsp/stm32l476-nucleo/rtconfig.py
index 8f8aadaab5..77cb1ec84d 100644
--- a/bsp/stm32l476-nucleo/rtconfig.py
+++ b/bsp/stm32l476-nucleo/rtconfig.py
@@ -16,10 +16,8 @@ if CROSS_TOOL == 'gcc':
PLATFORM = 'gcc'
EXEC_PATH = '/usr/local/Cellar/arm-none-eabi-gcc/7-2017-q4-major/gcc/bin/'
elif CROSS_TOOL == 'keil':
- print('================ERROR============================')
- print('Not support iar yet!')
- print('=================================================')
- exit(0)
+ PLATFORM = 'armcc'
+ EXEC_PATH = 'C:/Keil'
elif CROSS_TOOL == 'iar':
print('================ERROR============================')
print('Not support iar yet!')
@@ -63,12 +61,34 @@ if PLATFORM == 'gcc':
M_CFLAGS = CFLAGS + ' -mlong-calls -Dsourcerygxx -O0 -fPIC '
M_LFLAGS = DEVICE + ' -Wl,-z,max-page-size=0x4 -shared -fPIC -e main -nostdlib'
-
+
elif PLATFORM == 'armcc':
- print('================ERROR============================')
- print('Not support iar yet!')
- print('=================================================')
- exit(0)
+ # toolchains
+ CC = 'armcc'
+ AS = 'armasm'
+ AR = 'armar'
+ LINK = 'armlink'
+ TARGET_EXT = 'axf'
+
+ DEVICE = ' --device DARMSTM'
+ CFLAGS = DEVICE + ' --apcs=interwork'
+ AFLAGS = DEVICE
+ LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread-stm32.map --scatter stm32_rom.sct'
+
+ CFLAGS += ' --c99'
+ CFLAGS += ' -I' + EXEC_PATH + '/ARM/RV31/INC'
+ LFLAGS += ' --libpath ' + EXEC_PATH + '/ARM/RV31/LIB'
+
+ EXEC_PATH += '/arm/bin40/'
+
+ if BUILD == 'debug':
+ CFLAGS += ' -g -O0'
+ AFLAGS += ' -g'
+ else:
+ CFLAGS += ' -O2'
+
+ POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
+
elif PLATFORM == 'iar':
print('================ERROR============================')
print('Not support iar yet!')