Skip to content

Commit

Permalink
Merge pull request #5 from ErikChanGit/master
Browse files Browse the repository at this point in the history
release rt-thread v4.0.5
  • Loading branch information
eclipsesw authored Jan 10, 2022
2 parents a877abe + 7dc2457 commit ca195bb
Show file tree
Hide file tree
Showing 766 changed files with 147,062 additions and 6,769 deletions.
26 changes: 26 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
# RT-Thread v4.0.5 released

Change log since v4.0.4

## Kernel

- Remove weak symbol from `rt_memset` , `rt_memcmp`, and add it for `rt_vsnprintf`

## Components

- Update Libc
- Fix the error when invoking `fopen` with mode "b"
- [AT] Fix the overflow problem of input array
- lwIP
- Fix the problem of implicit declaration of "lwip_ip4_route_src"
- Solve the conflict between multi BYTE_ORDERs

## BSP

- [qemu-vexpress-gemini] fix build errors
- STM32
- Add SOC_SERIES_STM32G0 to use "stm32_wdt.hiwdg.Init.Window = 0x00000FFF"; otherwise, the watchdog will always reset.
- [STM32L4] Fix the failure of the first erase after programming
- [GD32F4xx] Fix the problem of startup file
- Revert STM32 stack size to 0x400, which is set by mistake in [#5129](https://github.com/RT-Thread/rt-thread/pull/5129)

# RT-Thread v4.0.4 released

Change log since v4.0.3
Expand Down
64 changes: 45 additions & 19 deletions bsp/qemu-vexpress-a9/.config
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ CONFIG_RT_CONSOLE_DEVICE_NAME="uart0"
# CONFIG_RT_PRINTF_LONGLONG is not set
# end of Kernel Device Object

CONFIG_RT_VER_NUM=0x40004
CONFIG_RT_VER_NUM=0x40005
# end of RT-Thread Kernel

CONFIG_ARCH_ARM=y
Expand Down Expand Up @@ -475,13 +475,14 @@ CONFIG_RT_USING_LWP=y
# CONFIG_PKG_USING_LORA_GW_DRIVER_LIB is not set
# CONFIG_PKG_USING_LORA_PKT_SNIFFER is not set
# CONFIG_PKG_USING_HM is not set
# CONFIG_PKG_USING_SMALL_MODBUS is not set
# end of IoT - internet of things

#
# security packages
#
# CONFIG_PKG_USING_MBEDTLS is not set
# CONFIG_PKG_USING_libsodium is not set
# CONFIG_PKG_USING_LIBSODIUM is not set
# CONFIG_PKG_USING_TINYCRYPT is not set
# CONFIG_PKG_USING_TFM is not set
# CONFIG_PKG_USING_YD_CRYPTO is not set
Expand All @@ -499,17 +500,25 @@ CONFIG_RT_USING_LWP=y
#
# multimedia packages
#
# CONFIG_PKG_USING_OPENMV is not set
# CONFIG_PKG_USING_MUPDF is not set
# CONFIG_PKG_USING_STEMWIN is not set

#
# lvgl: powerful and easy-to-use embedded GUI library
# LVGL: powerful and easy-to-use embedded GUI library
#
# CONFIG_PKG_USING_LITTLEVGL2RTT is not set
# CONFIG_PKG_USING_LVGL is not set
# end of lvgl: powerful and easy-to-use embedded GUI library
# CONFIG_PKG_USING_LITTLEVGL2RTT is not set
# CONFIG_PKG_USING_LV_MUSIC_DEMO is not set
# end of LVGL: powerful and easy-to-use embedded GUI library

#
# u8g2: a monochrome graphic library
#
# CONFIG_PKG_USING_U8G2_OFFICIAL is not set
# CONFIG_PKG_USING_U8G2 is not set
# end of u8g2: a monochrome graphic library

# CONFIG_PKG_USING_OPENMV is not set
# CONFIG_PKG_USING_MUPDF is not set
# CONFIG_PKG_USING_STEMWIN is not set
# CONFIG_PKG_USING_WAVPLAYER is not set
# CONFIG_PKG_USING_TJPGD is not set
# CONFIG_PKG_USING_PDFGEN is not set
Expand All @@ -522,11 +531,15 @@ CONFIG_RT_USING_LWP=y
# CONFIG_PKG_USING_UGUI is not set

#
# u8g2: a monochrome graphic library
# PainterEngine: A cross-platform graphics application framework written in C language
#
# CONFIG_PKG_USING_U8G2_OFFICIAL is not set
# CONFIG_PKG_USING_U8G2 is not set
# end of u8g2: a monochrome graphic library
# CONFIG_PKG_USING_PAINTERENGINE is not set
# CONFIG_PKG_USING_PAINTERENGINE_AUX is not set
# end of PainterEngine: A cross-platform graphics application framework written in C language

# CONFIG_PKG_USING_MCURSES is not set
# CONFIG_PKG_USING_TERMBOX is not set
# CONFIG_PKG_USING_VT100 is not set
# end of multimedia packages

#
Expand Down Expand Up @@ -570,21 +583,36 @@ CONFIG_RT_USING_LWP=y
# CONFIG_PKG_USING_MEM_SANDBOX is not set
# CONFIG_PKG_USING_SOLAR_TERMS is not set
# CONFIG_PKG_USING_GAN_ZHI is not set
# CONFIG_PKG_USING_FDT is not set
# end of tools packages

#
# system packages
#

#
# acceleration: Assembly language or algorithmic acceleration packages
# enhanced kernel services
#
# CONFIG_PKG_USING_RT_MEMCPY_CM is not set
# CONFIG_PKG_USING_RT_KPRINTF_THREADSAFE is not set
# CONFIG_PKG_USING_RT_VSNPRINTF_FULL is not set
# end of enhanced kernel services

#
# acceleration: Assembly language or algorithmic acceleration packages
#
# CONFIG_PKG_USING_QFPLIB_M0_FULL is not set
# CONFIG_PKG_USING_QFPLIB_M0_TINY is not set
# CONFIG_PKG_USING_QFPLIB_M3 is not set
# end of acceleration: Assembly language or algorithmic acceleration packages

#
# CMSIS: ARM Cortex-M Microcontroller Software Interface Standard
#
# CONFIG_PKG_USING_CMSIS_5 is not set
# CONFIG_PKG_USING_CMSIS_RTOS2 is not set
# end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard

#
# Micrium: Micrium software products porting for RT-Thread
#
Expand All @@ -596,6 +624,7 @@ CONFIG_RT_USING_LWP=y
# CONFIG_PKG_USING_UC_MODBUS is not set
# end of Micrium: Micrium software products porting for RT-Thread

# CONFIG_RT_USING_ARDUINO is not set
# CONFIG_PKG_USING_GUIENGINE is not set
# CONFIG_PKG_USING_PERSIMMON is not set
# CONFIG_PKG_USING_CAIRO is not set
Expand All @@ -605,7 +634,6 @@ CONFIG_RT_USING_LWP=y
# CONFIG_PKG_USING_FLASHDB is not set
# CONFIG_PKG_USING_SQLITE is not set
# CONFIG_PKG_USING_RTI is not set
# CONFIG_PKG_USING_CMSIS is not set
# CONFIG_PKG_USING_DFS_YAFFS is not set
# CONFIG_PKG_USING_LITTLEFS is not set
# CONFIG_PKG_USING_DFS_JFFS2 is not set
Expand All @@ -622,14 +650,14 @@ CONFIG_RT_USING_LWP=y
# CONFIG_PKG_USING_QBOOT is not set
# CONFIG_PKG_USING_PPOOL is not set
# CONFIG_PKG_USING_OPENAMP is not set
# CONFIG_PKG_USING_RT_KPRINTF_THREADSAFE is not set
# CONFIG_PKG_USING_LPM is not set
# CONFIG_PKG_USING_TLSF is not set
# CONFIG_PKG_USING_EVENT_RECORDER is not set
# CONFIG_PKG_USING_ARM_2D is not set
# CONFIG_PKG_USING_WCWIDTH is not set
# CONFIG_PKG_USING_MCUBOOT is not set
# CONFIG_PKG_USING_TINYUSB is not set
# CONFIG_PKG_USING_USB_STACK is not set
# end of system packages

#
Expand Down Expand Up @@ -706,6 +734,7 @@ CONFIG_RT_USING_LWP=y
# CONFIG_PKG_USING_MISAKA_RGB_BLING is not set
# CONFIG_PKG_USING_BL_MCU_SDK is not set
# CONFIG_PKG_USING_SOFT_SERIAL is not set
# CONFIG_PKG_USING_MB85RS16 is not set
# end of peripheral libraries and drivers

#
Expand Down Expand Up @@ -747,6 +776,7 @@ CONFIG_RT_USING_LWP=y
# CONFIG_PKG_USING_SNAKE is not set
# CONFIG_PKG_USING_TETRIS is not set
# CONFIG_PKG_USING_DONUT is not set
# CONFIG_PKG_USING_COWSAY is not set
# end of entertainment: terminal games and other interesting software packages

# CONFIG_PKG_USING_LIBCSV is not set
Expand All @@ -770,14 +800,10 @@ CONFIG_RT_USING_LWP=y
# CONFIG_PKG_USING_VI is not set
# CONFIG_PKG_USING_KI is not set
# CONFIG_PKG_USING_ARMv7M_DWT is not set
# CONFIG_PKG_USING_VT100 is not set
# CONFIG_PKG_USING_UKAL is not set
# CONFIG_PKG_USING_CRCLIB is not set
# CONFIG_PKG_USING_LWGPS is not set
# CONFIG_PKG_USING_STATE_MACHINE is not set
# CONFIG_PKG_USING_MCURSES is not set
# CONFIG_PKG_USING_COWSAY is not set
# CONFIG_PKG_USING_TERMBOX is not set
# end of miscellaneous packages
# end of RT-Thread online packages

Expand Down
19 changes: 15 additions & 4 deletions bsp/qemu-vexpress-a9/rtconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
#define RT_CONSOLEBUF_SIZE 256
#define RT_CONSOLE_DEVICE_NAME "uart0"
/* end of Kernel Device Object */
#define RT_VER_NUM 0x40004
#define RT_VER_NUM 0x40005
/* end of RT-Thread Kernel */
#define ARCH_ARM
#define RT_USING_CPU_FFS
Expand Down Expand Up @@ -294,14 +294,17 @@

/* multimedia packages */

/* LVGL: powerful and easy-to-use embedded GUI library */

/* lvgl: powerful and easy-to-use embedded GUI library */

/* end of lvgl: powerful and easy-to-use embedded GUI library */
/* end of LVGL: powerful and easy-to-use embedded GUI library */

/* u8g2: a monochrome graphic library */

/* end of u8g2: a monochrome graphic library */

/* PainterEngine: A cross-platform graphics application framework written in C language */

/* end of PainterEngine: A cross-platform graphics application framework written in C language */
/* end of multimedia packages */

/* tools packages */
Expand All @@ -310,10 +313,18 @@

/* system packages */

/* enhanced kernel services */

/* end of enhanced kernel services */

/* acceleration: Assembly language or algorithmic acceleration packages */

/* end of acceleration: Assembly language or algorithmic acceleration packages */

/* CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */

/* end of CMSIS: ARM Cortex-M Microcontroller Software Interface Standard */

/* Micrium: Micrium software products porting for RT-Thread */

/* end of Micrium: Micrium software products porting for RT-Thread */
Expand Down
2 changes: 1 addition & 1 deletion bsp/stm32/libraries/HAL_Drivers/drv_flash/drv_flash_l4.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ int stm32_flash_erase(rt_uint32_t addr, size_t size)
HAL_FLASH_Unlock();

/* Clear OPTVERR bit set on virgin samples */
__HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_OPTVERR);
__HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_OPTVERR | FLASH_FLAG_PGSERR);
/* Get the 1st page to erase */
FirstPage = GetPage(addr);
/* Get the number of pages to erase from 1st page */
Expand Down
2 changes: 1 addition & 1 deletion bsp/stm32/libraries/HAL_Drivers/drv_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ int rt_wdt_init(void)

stm32_wdt.hiwdg.Init.Reload = 0x00000FFF;
#if defined(SOC_SERIES_STM32F0) || defined(SOC_SERIES_STM32L4) || defined(SOC_SERIES_STM32F7) \
|| defined(SOC_SERIES_STM32H7) || defined(SOC_SERIES_STM32L0)
|| defined(SOC_SERIES_STM32H7) || defined(SOC_SERIES_STM32L0) || defined(SOC_SERIES_STM32G0)
stm32_wdt.hiwdg.Init.Window = 0x00000FFF;
#endif
stm32_wdt.is_start = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ MEMORY
RAM (rw) : ORIGIN = 0x20000000, LENGTH = 32k /* 32K sram */
}
ENTRY(Reset_Handler)
_system_stack_size = 0x000;
_system_stack_size = 0x400;

SECTIONS
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ MEMORY
RAM (rw) : ORIGIN = 0x20000000, LENGTH = 20k /* 20K sram */
}
ENTRY(Reset_Handler)
_system_stack_size = 0x000;
_system_stack_size = 0x400;

SECTIONS
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ MEMORY
RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 20K sram */
}
ENTRY(Reset_Handler)
_system_stack_size = 0x000;
_system_stack_size = 0x400;

SECTIONS
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ MEMORY
RAM (rw) : ORIGIN = 0x20000000, LENGTH = 16k /* 16K sram */
}
ENTRY(Reset_Handler)
_system_stack_size = 0x000;
_system_stack_size = 0x400;

SECTIONS
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ MEMORY
RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128K sram */
}
ENTRY(Reset_Handler)
_system_stack_size = 0x000;
_system_stack_size = 0x400;

SECTIONS
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ MEMORY
RAM (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128K sram */
}
ENTRY(Reset_Handler)
_system_stack_size = 0x000;
_system_stack_size = 0x400;

SECTIONS
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ MEMORY
RAM (rw) : ORIGIN = 0x24000000, LENGTH = 512k /* 512K sram */
}
ENTRY(Reset_Handler)
_system_stack_size = 0x000;
_system_stack_size = 0x400;

SECTIONS
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ MEMORY
RAM (rw) : ORIGIN = 0x20000000, LENGTH = 16k /* 16K sram */
}
ENTRY(Reset_Handler)
_system_stack_size = 0x000;
_system_stack_size = 0x400;

SECTIONS
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ MEMORY
RAM (rw) : ORIGIN = 0x20000000, LENGTH = 96k /* 96KB sram */
}
ENTRY(Reset_Handler)
_system_stack_size = 0x000;
_system_stack_size = 0x400;

SECTIONS
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ MEMORY
RAM (rw) : ORIGIN = 0x10040000, LENGTH = 128k /* 128K sram */
}
ENTRY(Reset_Handler)
_system_stack_size = 0x000;
_system_stack_size = 0x400;

SECTIONS
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ MEMORY
RAM (rw) : ORIGIN = 0x20000000, LENGTH = 192k /* 192KB sram */
}
ENTRY(Reset_Handler)
_system_stack_size = 0x000;
_system_stack_size = 0x400;

SECTIONS
{
Expand Down
Loading

0 comments on commit ca195bb

Please sign in to comment.