From f02d3ccb4233f58d5bf59eb78843d7bbb579c7e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8B=E9=87=8C=E5=B7=B4=E4=BA=BA?= Date: Sun, 23 Mar 2025 18:46:10 +0800 Subject: [PATCH] [bsp][stm32][stm32h723-st-nucleo] fix bug#9995 : startup file names change to H723 (#10137) [bsp][stm32][stm32h723-st-nucleo] fix bug #https://github.com/RT-Thread/rt-thread/issues/9995 : startup file names change to H723 --- bsp/stm32/stm32h723-st-nucleo/.config | 179 +++---- .../stm32h723-st-nucleo/board/SConscript | 10 +- bsp/stm32/stm32h723-st-nucleo/project.uvoptx | 436 +++++++++--------- bsp/stm32/stm32h723-st-nucleo/project.uvprojx | 174 +++---- bsp/stm32/stm32h723-st-nucleo/rtconfig.h | 45 +- 5 files changed, 426 insertions(+), 418 deletions(-) diff --git a/bsp/stm32/stm32h723-st-nucleo/.config b/bsp/stm32/stm32h723-st-nucleo/.config index b0504279fc..b160e6bf12 100644 --- a/bsp/stm32/stm32h723-st-nucleo/.config +++ b/bsp/stm32/stm32h723-st-nucleo/.config @@ -10,92 +10,104 @@ CONFIG_BOARD_STM32H723_NUCLEO=y # # -# ------------rt_memset options------------ -# -# CONFIG_RT_KLIBC_USING_USER_MEMSET is not set -# CONFIG_RT_KLIBC_USING_LIBC_MEMSET is not set -# CONFIG_RT_KLIBC_USING_TINY_MEMSET is not set - -# -# ------------rt_memcpy options------------ -# -# CONFIG_RT_KLIBC_USING_USER_MEMCPY is not set -# CONFIG_RT_KLIBC_USING_LIBC_MEMCPY is not set -# CONFIG_RT_KLIBC_USING_TINY_MEMCPY is not set - -# -# ------------rt_memmove options------------ -# -# CONFIG_RT_KLIBC_USING_USER_MEMMOVE is not set -# CONFIG_RT_KLIBC_USING_LIBC_MEMMOVE is not set - -# -# ------------rt_memcmp options------------ -# -# CONFIG_RT_KLIBC_USING_USER_MEMCMP is not set -# CONFIG_RT_KLIBC_USING_LIBC_MEMCMP is not set - -# -# ------------rt_strstr options------------ -# -# CONFIG_RT_KLIBC_USING_USER_STRSTR is not set -# CONFIG_RT_KLIBC_USING_LIBC_STRSTR is not set - -# -# ------------rt_strcasecmp options------------ -# -# CONFIG_RT_KLIBC_USING_USER_STRCASECMP is not set - -# -# ------------rt_strncpy options------------ -# -# CONFIG_RT_KLIBC_USING_USER_STRNCPY is not set -# CONFIG_RT_KLIBC_USING_LIBC_STRNCPY is not set - -# -# ------------rt_strcpy options------------ -# -# CONFIG_RT_KLIBC_USING_USER_STRCPY is not set -# CONFIG_RT_KLIBC_USING_LIBC_STRCPY is not set - -# -# ------------rt_strncmp options------------ -# -# CONFIG_RT_KLIBC_USING_USER_STRNCMP is not set -# CONFIG_RT_KLIBC_USING_LIBC_STRNCMP is not set - -# -# ------------rt_strcmp options------------ -# -# CONFIG_RT_KLIBC_USING_USER_STRCMP is not set -# CONFIG_RT_KLIBC_USING_LIBC_STRCMP is not set - -# -# ------------rt_strlen options------------ -# -# CONFIG_RT_KLIBC_USING_USER_STRLEN is not set -# CONFIG_RT_KLIBC_USING_LIBC_STRLEN is not set - -# -# ------------rt_strlen options------------ -# - -# -# ------------rt_strnlen options------------ -# -# CONFIG_RT_KLIBC_USING_USER_STRNLEN is not set - -# -# ------------rt_vsscanf options------------ -# -# CONFIG_RT_KLIBC_USING_LIBC_VSSCANF is not set - -# -# ------------rt_vsnprintf options------------ +# rt_vsnprintf options # # CONFIG_RT_KLIBC_USING_LIBC_VSNPRINTF is not set # CONFIG_RT_KLIBC_USING_VSNPRINTF_LONGLONG is not set # CONFIG_RT_KLIBC_USING_VSNPRINTF_STANDARD is not set +# end of rt_vsnprintf options + +# +# rt_vsscanf options +# +# CONFIG_RT_KLIBC_USING_LIBC_VSSCANF is not set +# end of rt_vsscanf options + +# +# rt_memset options +# +# CONFIG_RT_KLIBC_USING_USER_MEMSET is not set +# CONFIG_RT_KLIBC_USING_LIBC_MEMSET is not set +# CONFIG_RT_KLIBC_USING_TINY_MEMSET is not set +# end of rt_memset options + +# +# rt_memcpy options +# +# CONFIG_RT_KLIBC_USING_USER_MEMCPY is not set +# CONFIG_RT_KLIBC_USING_LIBC_MEMCPY is not set +# CONFIG_RT_KLIBC_USING_TINY_MEMCPY is not set +# end of rt_memcpy options + +# +# rt_memmove options +# +# CONFIG_RT_KLIBC_USING_USER_MEMMOVE is not set +# CONFIG_RT_KLIBC_USING_LIBC_MEMMOVE is not set +# end of rt_memmove options + +# +# rt_memcmp options +# +# CONFIG_RT_KLIBC_USING_USER_MEMCMP is not set +# CONFIG_RT_KLIBC_USING_LIBC_MEMCMP is not set +# end of rt_memcmp options + +# +# rt_strstr options +# +# CONFIG_RT_KLIBC_USING_USER_STRSTR is not set +# CONFIG_RT_KLIBC_USING_LIBC_STRSTR is not set +# end of rt_strstr options + +# +# rt_strcasecmp options +# +# CONFIG_RT_KLIBC_USING_USER_STRCASECMP is not set +# end of rt_strcasecmp options + +# +# rt_strncpy options +# +# CONFIG_RT_KLIBC_USING_USER_STRNCPY is not set +# CONFIG_RT_KLIBC_USING_LIBC_STRNCPY is not set +# end of rt_strncpy options + +# +# rt_strcpy options +# +# CONFIG_RT_KLIBC_USING_USER_STRCPY is not set +# CONFIG_RT_KLIBC_USING_LIBC_STRCPY is not set +# end of rt_strcpy options + +# +# rt_strncmp options +# +# CONFIG_RT_KLIBC_USING_USER_STRNCMP is not set +# CONFIG_RT_KLIBC_USING_LIBC_STRNCMP is not set +# end of rt_strncmp options + +# +# rt_strcmp options +# +# CONFIG_RT_KLIBC_USING_USER_STRCMP is not set +# CONFIG_RT_KLIBC_USING_LIBC_STRCMP is not set +# end of rt_strcmp options + +# +# rt_strlen options +# +# CONFIG_RT_KLIBC_USING_USER_STRLEN is not set +# CONFIG_RT_KLIBC_USING_LIBC_STRLEN is not set +# end of rt_strlen options + +# +# rt_strnlen options +# +# CONFIG_RT_KLIBC_USING_USER_STRNLEN is not set +# end of rt_strnlen options + +# CONFIG_RT_UTEST_TC_USING_KLIBC is not set # end of klibc options CONFIG_RT_NAME_MAX=8 @@ -132,6 +144,7 @@ CONFIG_RT_DEBUGING_ASSERT=y CONFIG_RT_DEBUGING_COLOR=y CONFIG_RT_DEBUGING_CONTEXT=y # CONFIG_RT_DEBUGING_AUTO_INIT is not set +# CONFIG_RT_USING_CI_ACTION is not set # # Inter-Thread communication @@ -227,6 +240,7 @@ CONFIG_RT_USING_SERIAL_V1=y # CONFIG_RT_USING_SERIAL_V2 is not set CONFIG_RT_SERIAL_USING_DMA=y CONFIG_RT_SERIAL_RB_BUFSZ=64 +# CONFIG_RT_USING_SERIAL_BYPASS is not set # CONFIG_RT_USING_CAN is not set # CONFIG_RT_USING_CPUTIME is not set # CONFIG_RT_USING_I2C is not set @@ -1263,6 +1277,7 @@ CONFIG_BOARD_SERIES_STM32_NUCLEO_144=y # CONFIG_BSP_USING_GPIO=y CONFIG_BSP_USING_UART=y +CONFIG_BSP_STM32_UART_V1_TX_TIMEOUT=6000 CONFIG_BSP_USING_UART3=y # CONFIG_BSP_USING_CRC is not set # CONFIG_BSP_USING_RNG is not set diff --git a/bsp/stm32/stm32h723-st-nucleo/board/SConscript b/bsp/stm32/stm32h723-st-nucleo/board/SConscript index 2ed225df9d..ed1f5def43 100644 --- a/bsp/stm32/stm32h723-st-nucleo/board/SConscript +++ b/bsp/stm32/stm32h723-st-nucleo/board/SConscript @@ -15,15 +15,15 @@ path += [cwd + '/CubeMX_Config/Inc'] startup_path_prefix = SDK_LIB if rtconfig.PLATFORM in ['gcc']: - src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h743xx.s'] + src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h723xx.s'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: - src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h743xx.s'] + src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h723xx.s'] elif rtconfig.PLATFORM in ['iccarm']: - src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/startup_stm32h743xx.s'] + src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/iar/startup_stm32h723xx.s'] -# STM32H743xx || STM32H750xx || STM32F753xx +# STM32H743xx || STM32H750xx || STM32F753xx || STM32H723xx # You can select chips from the list above -CPPDEFINES = ['STM32H743xx'] +CPPDEFINES = ['STM32H723xx'] group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES) Return('group') diff --git a/bsp/stm32/stm32h723-st-nucleo/project.uvoptx b/bsp/stm32/stm32h723-st-nucleo/project.uvoptx index 3fc23b624c..78e0deb71a 100644 --- a/bsp/stm32/stm32h723-st-nucleo/project.uvoptx +++ b/bsp/stm32/stm32h723-st-nucleo/project.uvoptx @@ -117,26 +117,6 @@ STLink\ST-LINKIII-KEIL_SWO.dll - - 0 - ARMRTXEVENTFLAGS - -L70 -Z18 -C0 -M0 -T1 - - - 0 - DLGTARM - (1010=-1,-1,-1,-1,0)(6017=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(6016=-1,-1,-1,-1,0)(1012=-1,-1,-1,-1,0) - - - 0 - ARMDBGFLAGS - - - - 0 - DLGUARM - (105=-1,-1,-1,-1,0) - 0 UL2CM3 @@ -145,7 +125,7 @@ 0 ST-LINKIII-KEIL_SWO - -U002D00463432511330343838 -O206 -SF10000 -C0 -A0 -I0 -HNlocalhost -HP7184 -P1 -N00("ARM CoreSight SW-DP (ARM Core") -D00(6BA02477) -L00(0) -TO131090 -TC10000000 -TT10000000 -TP21 -TDS8000 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO7 -FD20000000 -FC8000 -FN1 -FF0STM32H72x-73x_1024.FLM -FS08000000 -FL0100000 -FP0($$Device:STM32H723ZGTx$CMSIS\Flash\STM32H72x-73x_1024.FLM) + -U002D00463432511330343838 -O206 -SF10000 -C0 -A0 -I0 -HNlocalhost -HP7184 -P1 -N00("") -D00(00000000) -L00(0) -TO131090 -TC10000000 -TT10000000 -TP21 -TDS8000 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO7 -FD20000000 -FC8000 -FN1 -FF0STM32H72x-73x_1024.FLM -FS08000000 -FL0100000 -FP0($$Device:STM32H723ZGTx$CMSIS\Flash\STM32H72x-73x_1024.FLM) @@ -155,12 +135,12 @@ 0 0 - 1 + 0 0 0 0 0 - 1 + 0 0 0 0 @@ -327,7 +307,7 @@ DeviceDrivers - 1 + 0 0 0 0 @@ -490,8 +470,8 @@ 0 0 0 - ..\libraries\STM32H7xx_HAL\CMSIS\Device\ST\STM32H7xx\Source\Templates\arm\startup_stm32h743xx.s - startup_stm32h743xx.s + ..\libraries\STM32H7xx_HAL\CMSIS\Device\ST\STM32H7xx\Source\Templates\arm\startup_stm32h723xx.s + startup_stm32h723xx.s 0 0 @@ -570,8 +550,8 @@ 0 0 0 - ..\..\..\components\finsh\cmd.c - cmd.c + ..\..\..\components\finsh\shell.c + shell.c 0 0 @@ -582,8 +562,8 @@ 0 0 0 - ..\..\..\components\finsh\shell.c - shell.c + ..\..\..\components\finsh\msh.c + msh.c 0 0 @@ -594,8 +574,8 @@ 0 0 0 - ..\..\..\components\finsh\msh_parse.c - msh_parse.c + ..\..\..\components\finsh\cmd.c + cmd.c 0 0 @@ -606,8 +586,8 @@ 0 0 0 - ..\..\..\components\finsh\msh.c - msh.c + ..\..\..\components\finsh\msh_parse.c + msh_parse.c 0 0 @@ -814,8 +794,8 @@ 0 0 0 - ..\..\..\src\klibc\rt_vsnprintf_tiny.c - rt_vsnprintf_tiny.c + ..\..\..\src\klibc\rt_vsscanf.c + rt_vsscanf.c 0 0 @@ -826,8 +806,8 @@ 0 0 0 - ..\..\..\src\klibc\rt_vsscanf.c - rt_vsscanf.c + ..\..\..\src\klibc\kerrno.c + kerrno.c 0 0 @@ -838,8 +818,8 @@ 0 0 0 - ..\..\..\src\klibc\kerrno.c - kerrno.c + ..\..\..\src\klibc\rt_vsnprintf_tiny.c + rt_vsnprintf_tiny.c 0 0 @@ -962,42 +942,6 @@ 0 0 0 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_cortex.c - stm32h7xx_hal_cortex.c - 0 - 0 - - - 9 - 59 - 1 - 0 - 0 - 0 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_dma_ex.c - stm32h7xx_hal_dma_ex.c - 0 - 0 - - - 9 - 60 - 1 - 0 - 0 - 0 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_cryp.c - stm32h7xx_hal_cryp.c - 0 - 0 - - - 9 - 61 - 1 - 0 - 0 - 0 ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_uart_ex.c stm32h7xx_hal_uart_ex.c 0 @@ -1005,7 +949,7 @@ 9 - 62 + 59 1 0 0 @@ -1017,151 +961,7 @@ 9 - 63 - 1 - 0 - 0 - 0 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_mdma.c - stm32h7xx_hal_mdma.c - 0 - 0 - - - 9 - 64 - 1 - 0 - 0 - 0 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_rng.c - stm32h7xx_hal_rng.c - 0 - 0 - - - 9 - 65 - 1 - 0 - 0 - 0 - ..\libraries\STM32H7xx_HAL\CMSIS\Device\ST\STM32H7xx\Source\Templates\system_stm32h7xx.c - system_stm32h7xx.c - 0 - 0 - - - 9 - 66 - 1 - 0 - 0 - 0 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_gpio.c - stm32h7xx_hal_gpio.c - 0 - 0 - - - 9 - 67 - 1 - 0 - 0 - 0 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_sram.c - stm32h7xx_hal_sram.c - 0 - 0 - - - 9 - 68 - 1 - 0 - 0 - 0 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_pwr_ex.c - stm32h7xx_hal_pwr_ex.c - 0 - 0 - - - 9 - 69 - 1 - 0 - 0 - 0 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_rcc.c - stm32h7xx_hal_rcc.c - 0 - 0 - - - 9 - 70 - 1 - 0 - 0 - 0 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal.c - stm32h7xx_hal.c - 0 - 0 - - - 9 - 71 - 1 - 0 - 0 - 0 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_rcc_ex.c - stm32h7xx_hal_rcc_ex.c - 0 - 0 - - - 9 - 72 - 1 - 0 - 0 - 0 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_cec.c - stm32h7xx_hal_cec.c - 0 - 0 - - - 9 - 73 - 1 - 0 - 0 - 0 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_uart.c - stm32h7xx_hal_uart.c - 0 - 0 - - - 9 - 74 - 1 - 0 - 0 - 0 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_dma.c - stm32h7xx_hal_dma.c - 0 - 0 - - - 9 - 75 + 60 1 0 0 @@ -1173,7 +973,43 @@ 9 - 76 + 61 + 1 + 0 + 0 + 0 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_dma_ex.c + stm32h7xx_hal_dma_ex.c + 0 + 0 + + + 9 + 62 + 1 + 0 + 0 + 0 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal.c + stm32h7xx_hal.c + 0 + 0 + + + 9 + 63 + 1 + 0 + 0 + 0 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_cryp.c + stm32h7xx_hal_cryp.c + 0 + 0 + + + 9 + 64 1 0 0 @@ -1185,19 +1021,55 @@ 9 - 77 + 65 1 0 0 0 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_pwr.c - stm32h7xx_hal_pwr.c + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_rng.c + stm32h7xx_hal_rng.c 0 0 9 - 78 + 66 + 1 + 0 + 0 + 0 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_sram.c + stm32h7xx_hal_sram.c + 0 + 0 + + + 9 + 67 + 1 + 0 + 0 + 0 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_dma.c + stm32h7xx_hal_dma.c + 0 + 0 + + + 9 + 68 + 1 + 0 + 0 + 0 + ..\libraries\STM32H7xx_HAL\CMSIS\Device\ST\STM32H7xx\Source\Templates\system_stm32h7xx.c + system_stm32h7xx.c + 0 + 0 + + + 9 + 69 1 0 0 @@ -1209,7 +1081,19 @@ 9 - 79 + 70 + 1 + 0 + 0 + 0 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_rcc_ex.c + stm32h7xx_hal_rcc_ex.c + 0 + 0 + + + 9 + 71 1 0 0 @@ -1219,6 +1103,102 @@ 0 0 + + 9 + 72 + 1 + 0 + 0 + 0 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_mdma.c + stm32h7xx_hal_mdma.c + 0 + 0 + + + 9 + 73 + 1 + 0 + 0 + 0 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_gpio.c + stm32h7xx_hal_gpio.c + 0 + 0 + + + 9 + 74 + 1 + 0 + 0 + 0 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_pwr_ex.c + stm32h7xx_hal_pwr_ex.c + 0 + 0 + + + 9 + 75 + 1 + 0 + 0 + 0 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_uart.c + stm32h7xx_hal_uart.c + 0 + 0 + + + 9 + 76 + 1 + 0 + 0 + 0 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_pwr.c + stm32h7xx_hal_pwr.c + 0 + 0 + + + 9 + 77 + 1 + 0 + 0 + 0 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_rcc.c + stm32h7xx_hal_rcc.c + 0 + 0 + + + 9 + 78 + 1 + 0 + 0 + 0 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_cec.c + stm32h7xx_hal_cec.c + 0 + 0 + + + 9 + 79 + 1 + 0 + 0 + 0 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_cortex.c + stm32h7xx_hal_cortex.c + 0 + 0 + diff --git a/bsp/stm32/stm32h723-st-nucleo/project.uvprojx b/bsp/stm32/stm32h723-st-nucleo/project.uvprojx index e1fa3a6f0f..9dd911b769 100644 --- a/bsp/stm32/stm32h723-st-nucleo/project.uvprojx +++ b/bsp/stm32/stm32h723-st-nucleo/project.uvprojx @@ -337,9 +337,9 @@ 0 - __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND, USE_HAL_DRIVER, RT_USING_ARMLIBC, RT_USING_LIBC, __STDC_LIMIT_MACROS, STM32H743xx + __STDC_LIMIT_MACROS, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND, RT_USING_LIBC, STM32H723xx, USE_HAL_DRIVER, RT_USING_ARMLIBC - ..\..\..\components\drivers\include;..\..\..\components\libc\posix\io\poll;..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\libcpu\arm\common;..\libraries\HAL_Drivers\CMSIS\Include;..\..\..\components\drivers\smp_call;..\..\..\components\libc\posix\io\eventfd;..\..\..\components\libc\compilers\common\extension;..\..\..\components\drivers\phy;..\..\..\components\finsh;applications;..\..\..\components\drivers\include;..\libraries\HAL_Drivers\drivers\config;..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Inc;..\..\..\components\libc\posix\ipc;board;..\..\..\libcpu\arm\cortex-m7;..\..\..\components\libc\posix\io\epoll;.;..\libraries\STM32H7xx_HAL\CMSIS\Device\ST\STM32H7xx\Include;..\..\..\components\libc\compilers\common\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\include;..\libraries\HAL_Drivers;board\CubeMX_Config\Inc;..\libraries\HAL_Drivers\drivers + ..\libraries\HAL_Drivers\drivers\config;applications;..\..\..\components\libc\posix\io\epoll;board;..\libraries\HAL_Drivers\CMSIS\Include;..\..\..\components\libc\posix\io\eventfd;..\..\..\components\drivers\include;..\..\..\components\drivers\smp_call;..\libraries\HAL_Drivers\drivers;..\..\..\components\drivers\phy;..\libraries\STM32H7xx_HAL\CMSIS\Device\ST\STM32H7xx\Include;..\..\..\components\drivers\include;..\..\..\components\drivers\include;..\..\..\include;.;board\CubeMX_Config\Inc;..\..\..\components\libc\posix\ipc;..\..\..\components\drivers\include;..\..\..\components\libc\compilers\common\extension;..\..\..\components\drivers\include;..\..\..\components\libc\compilers\common\extension\fcntl\octal;..\..\..\libcpu\arm\cortex-m7;..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Inc\Legacy;..\..\..\components\finsh;..\..\..\libcpu\arm\common;..\..\..\components\libc\compilers\common\include;..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Inc;..\..\..\components\libc\posix\io\poll;..\libraries\HAL_Drivers @@ -1116,9 +1116,9 @@ Drivers - startup_stm32h743xx.s + startup_stm32h723xx.s 2 - ..\libraries\STM32H7xx_HAL\CMSIS\Device\ST\STM32H7xx\Source\Templates\arm\startup_stm32h743xx.s + ..\libraries\STM32H7xx_HAL\CMSIS\Device\ST\STM32H7xx\Source\Templates\arm\startup_stm32h723xx.s stm32h7xx_hal_msp.c @@ -1150,26 +1150,26 @@ Finsh - - cmd.c - 1 - ..\..\..\components\finsh\cmd.c - shell.c 1 ..\..\..\components\finsh\shell.c - - msh_parse.c - 1 - ..\..\..\components\finsh\msh_parse.c - msh.c 1 ..\..\..\components\finsh\msh.c + + cmd.c + 1 + ..\..\..\components\finsh\cmd.c + + + msh_parse.c + 1 + ..\..\..\components\finsh\msh_parse.c + @@ -2020,11 +2020,6 @@ klibc - - rt_vsnprintf_tiny.c - 1 - ..\..\..\src\klibc\rt_vsnprintf_tiny.c - rt_vsscanf.c 1 @@ -2035,6 +2030,11 @@ 1 ..\..\..\src\klibc\kerrno.c + + rt_vsnprintf_tiny.c + 1 + ..\..\..\src\klibc\rt_vsnprintf_tiny.c + kstdio.c 1 @@ -2085,21 +2085,6 @@ Libraries - - stm32h7xx_hal_cortex.c - 1 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_cortex.c - - - stm32h7xx_hal_dma_ex.c - 1 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_dma_ex.c - - - stm32h7xx_hal_cryp.c - 1 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_cryp.c - stm32h7xx_hal_uart_ex.c 1 @@ -2111,39 +2096,14 @@ ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_crc_ex.c - stm32h7xx_hal_mdma.c + stm32h7xx_hal_cryp_ex.c 1 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_mdma.c + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_cryp_ex.c - stm32h7xx_hal_rng.c + stm32h7xx_hal_dma_ex.c 1 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_rng.c - - - system_stm32h7xx.c - 1 - ..\libraries\STM32H7xx_HAL\CMSIS\Device\ST\STM32H7xx\Source\Templates\system_stm32h7xx.c - - - stm32h7xx_hal_gpio.c - 1 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_gpio.c - - - stm32h7xx_hal_sram.c - 1 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_sram.c - - - stm32h7xx_hal_pwr_ex.c - 1 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_pwr_ex.c - - - stm32h7xx_hal_rcc.c - 1 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_rcc.c + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_dma_ex.c stm32h7xx_hal.c @@ -2151,29 +2111,9 @@ ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal.c - stm32h7xx_hal_rcc_ex.c + stm32h7xx_hal_cryp.c 1 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_rcc_ex.c - - - stm32h7xx_hal_cec.c - 1 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_cec.c - - - stm32h7xx_hal_uart.c - 1 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_uart.c - - - stm32h7xx_hal_dma.c - 1 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_dma.c - - - stm32h7xx_hal_cryp_ex.c - 1 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_cryp_ex.c + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_cryp.c stm32h7xx_hal_comp.c @@ -2181,20 +2121,80 @@ ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_comp.c - stm32h7xx_hal_pwr.c + stm32h7xx_hal_rng.c 1 - ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_pwr.c + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_rng.c + + + stm32h7xx_hal_sram.c + 1 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_sram.c + + + stm32h7xx_hal_dma.c + 1 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_dma.c + + + system_stm32h7xx.c + 1 + ..\libraries\STM32H7xx_HAL\CMSIS\Device\ST\STM32H7xx\Source\Templates\system_stm32h7xx.c stm32h7xx_hal_usart.c 1 ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_usart.c + + stm32h7xx_hal_rcc_ex.c + 1 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_rcc_ex.c + stm32h7xx_hal_crc.c 1 ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_crc.c + + stm32h7xx_hal_mdma.c + 1 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_mdma.c + + + stm32h7xx_hal_gpio.c + 1 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_gpio.c + + + stm32h7xx_hal_pwr_ex.c + 1 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_pwr_ex.c + + + stm32h7xx_hal_uart.c + 1 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_uart.c + + + stm32h7xx_hal_pwr.c + 1 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_pwr.c + + + stm32h7xx_hal_rcc.c + 1 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_rcc.c + + + stm32h7xx_hal_cec.c + 1 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_cec.c + + + stm32h7xx_hal_cortex.c + 1 + ..\libraries\STM32H7xx_HAL\STM32H7xx_HAL_Driver\Src\stm32h7xx_hal_cortex.c + diff --git a/bsp/stm32/stm32h723-st-nucleo/rtconfig.h b/bsp/stm32/stm32h723-st-nucleo/rtconfig.h index 2bd7d8242c..d90ca13944 100644 --- a/bsp/stm32/stm32h723-st-nucleo/rtconfig.h +++ b/bsp/stm32/stm32h723-st-nucleo/rtconfig.h @@ -8,49 +8,61 @@ /* klibc options */ -/* ------------rt_memset options------------ */ +/* rt_vsnprintf options */ +/* end of rt_vsnprintf options */ -/* ------------rt_memcpy options------------ */ +/* rt_vsscanf options */ +/* end of rt_vsscanf options */ -/* ------------rt_memmove options------------ */ +/* rt_memset options */ +/* end of rt_memset options */ -/* ------------rt_memcmp options------------ */ +/* rt_memcpy options */ +/* end of rt_memcpy options */ -/* ------------rt_strstr options------------ */ +/* rt_memmove options */ +/* end of rt_memmove options */ -/* ------------rt_strcasecmp options------------ */ +/* rt_memcmp options */ +/* end of rt_memcmp options */ -/* ------------rt_strncpy options------------ */ +/* rt_strstr options */ +/* end of rt_strstr options */ -/* ------------rt_strcpy options------------ */ +/* rt_strcasecmp options */ +/* end of rt_strcasecmp options */ -/* ------------rt_strncmp options------------ */ +/* rt_strncpy options */ +/* end of rt_strncpy options */ -/* ------------rt_strcmp options------------ */ +/* rt_strcpy options */ +/* end of rt_strcpy options */ -/* ------------rt_strlen options------------ */ +/* rt_strncmp options */ +/* end of rt_strncmp options */ -/* ------------rt_strlen options------------ */ +/* rt_strcmp options */ -/* ------------rt_strnlen options------------ */ +/* end of rt_strcmp options */ +/* rt_strlen options */ -/* ------------rt_vsscanf options------------ */ +/* end of rt_strlen options */ +/* rt_strnlen options */ -/* ------------rt_vsnprintf options------------ */ - +/* end of rt_strnlen options */ /* end of klibc options */ #define RT_NAME_MAX 8 #define RT_CPUS_NR 1 @@ -373,6 +385,7 @@ #define BSP_USING_GPIO #define BSP_USING_UART +#define BSP_STM32_UART_V1_TX_TIMEOUT 6000 #define BSP_USING_UART3 /* end of On-chip Peripheral Drivers */