From 31a048e428e0f5192045d54794310af2734a3c98 Mon Sep 17 00:00:00 2001 From: hwq Date: Wed, 17 Sep 2025 09:11:22 +0800 Subject: [PATCH] prj to mdks --- apps/boot/{ => application}/func/aes.c | 0 apps/boot/{ => application}/func/app.c | 0 apps/boot/{ => application}/func/firmware.c | 0 .../{ => application}/func/no_semihosting.c | 0 apps/boot/{ => application}/func/transfer.c | 0 apps/boot/{ => application}/func/utils.c | 0 apps/boot/{ => application}/func/ymodem.c | 0 apps/boot/{ => application}/include/aes.h | 0 apps/boot/{ => application}/include/app.h | 0 .../{ => application}/include/app_config.h | 0 .../boot/{ => application}/include/firmware.h | 0 apps/boot/{ => application}/include/main.h | 0 .../include/stm32f4xx_hal_conf.h | 0 .../{ => application}/include/stm32f4xx_it.h | 0 .../boot/{ => application}/include/transfer.h | 0 apps/boot/{ => application}/include/utils.h | 0 apps/boot/{ => application}/include/ymodem.h | 0 apps/boot/{ => application}/main.c | 0 .../{ => application}/stm32f4xx_hal_msp.c | 0 apps/boot/{ => application}/stm32f4xx_it.c | 0 .../boot/{ => application}/system_stm32f4xx.c | 0 apps/boot/{bsp => board}/bsp_common.h | 0 apps/boot/{bsp => board}/bsp_flash.c | 0 apps/boot/{bsp => board}/bsp_flash.h | 0 apps/boot/{bsp => board}/bsp_gpio.c | 0 apps/boot/{bsp => board}/bsp_gpio.h | 0 apps/boot/{bsp => board}/bsp_key.c | 0 apps/boot/{bsp => board}/bsp_key.h | 0 apps/boot/{bsp => board}/bsp_uart.c | 0 apps/boot/{bsp => board}/bsp_uart.h | 0 apps/boot/{bsp => board}/bsp_uart_config.h | 0 apps/boot/{bsp => board}/bsp_uart_port.c | 0 apps/boot/{bsp => board}/common.h | 0 apps/boot/{bsp => board}/drv_timer.c | 0 apps/boot/{bsp => board}/drv_timer.h | 0 {mdks => apps/boot}/boot.uvprojx | 102 +- apps/boot/linker_scripts/link.icf | 30 + apps/boot/linker_scripts/link.lds | 159 + apps/boot/linker_scripts/link.sct | 15 + apps/chrg/board/linker_scripts/link.icf | 6 +- apps/chrg/board/linker_scripts/link.lds | 2 +- apps/chrg/chrg.uvprojx | 12 +- mdks/all_mdks.uvmpw | 6 +- mdks/chrg.uvprojx | 2902 ----------------- 44 files changed, 268 insertions(+), 2966 deletions(-) rename apps/boot/{ => application}/func/aes.c (100%) rename apps/boot/{ => application}/func/app.c (100%) rename apps/boot/{ => application}/func/firmware.c (100%) rename apps/boot/{ => application}/func/no_semihosting.c (100%) rename apps/boot/{ => application}/func/transfer.c (100%) rename apps/boot/{ => application}/func/utils.c (100%) rename apps/boot/{ => application}/func/ymodem.c (100%) rename apps/boot/{ => application}/include/aes.h (100%) rename apps/boot/{ => application}/include/app.h (100%) rename apps/boot/{ => application}/include/app_config.h (100%) rename apps/boot/{ => application}/include/firmware.h (100%) rename apps/boot/{ => application}/include/main.h (100%) rename apps/boot/{ => application}/include/stm32f4xx_hal_conf.h (100%) rename apps/boot/{ => application}/include/stm32f4xx_it.h (100%) rename apps/boot/{ => application}/include/transfer.h (100%) rename apps/boot/{ => application}/include/utils.h (100%) rename apps/boot/{ => application}/include/ymodem.h (100%) rename apps/boot/{ => application}/main.c (100%) rename apps/boot/{ => application}/stm32f4xx_hal_msp.c (100%) rename apps/boot/{ => application}/stm32f4xx_it.c (100%) rename apps/boot/{ => application}/system_stm32f4xx.c (100%) rename apps/boot/{bsp => board}/bsp_common.h (100%) rename apps/boot/{bsp => board}/bsp_flash.c (100%) rename apps/boot/{bsp => board}/bsp_flash.h (100%) rename apps/boot/{bsp => board}/bsp_gpio.c (100%) rename apps/boot/{bsp => board}/bsp_gpio.h (100%) rename apps/boot/{bsp => board}/bsp_key.c (100%) rename apps/boot/{bsp => board}/bsp_key.h (100%) rename apps/boot/{bsp => board}/bsp_uart.c (100%) rename apps/boot/{bsp => board}/bsp_uart.h (100%) rename apps/boot/{bsp => board}/bsp_uart_config.h (100%) rename apps/boot/{bsp => board}/bsp_uart_port.c (100%) rename apps/boot/{bsp => board}/common.h (100%) rename apps/boot/{bsp => board}/drv_timer.c (100%) rename apps/boot/{bsp => board}/drv_timer.h (100%) rename {mdks => apps/boot}/boot.uvprojx (84%) create mode 100644 apps/boot/linker_scripts/link.icf create mode 100644 apps/boot/linker_scripts/link.lds create mode 100644 apps/boot/linker_scripts/link.sct delete mode 100644 mdks/chrg.uvprojx diff --git a/apps/boot/func/aes.c b/apps/boot/application/func/aes.c similarity index 100% rename from apps/boot/func/aes.c rename to apps/boot/application/func/aes.c diff --git a/apps/boot/func/app.c b/apps/boot/application/func/app.c similarity index 100% rename from apps/boot/func/app.c rename to apps/boot/application/func/app.c diff --git a/apps/boot/func/firmware.c b/apps/boot/application/func/firmware.c similarity index 100% rename from apps/boot/func/firmware.c rename to apps/boot/application/func/firmware.c diff --git a/apps/boot/func/no_semihosting.c b/apps/boot/application/func/no_semihosting.c similarity index 100% rename from apps/boot/func/no_semihosting.c rename to apps/boot/application/func/no_semihosting.c diff --git a/apps/boot/func/transfer.c b/apps/boot/application/func/transfer.c similarity index 100% rename from apps/boot/func/transfer.c rename to apps/boot/application/func/transfer.c diff --git a/apps/boot/func/utils.c b/apps/boot/application/func/utils.c similarity index 100% rename from apps/boot/func/utils.c rename to apps/boot/application/func/utils.c diff --git a/apps/boot/func/ymodem.c b/apps/boot/application/func/ymodem.c similarity index 100% rename from apps/boot/func/ymodem.c rename to apps/boot/application/func/ymodem.c diff --git a/apps/boot/include/aes.h b/apps/boot/application/include/aes.h similarity index 100% rename from apps/boot/include/aes.h rename to apps/boot/application/include/aes.h diff --git a/apps/boot/include/app.h b/apps/boot/application/include/app.h similarity index 100% rename from apps/boot/include/app.h rename to apps/boot/application/include/app.h diff --git a/apps/boot/include/app_config.h b/apps/boot/application/include/app_config.h similarity index 100% rename from apps/boot/include/app_config.h rename to apps/boot/application/include/app_config.h diff --git a/apps/boot/include/firmware.h b/apps/boot/application/include/firmware.h similarity index 100% rename from apps/boot/include/firmware.h rename to apps/boot/application/include/firmware.h diff --git a/apps/boot/include/main.h b/apps/boot/application/include/main.h similarity index 100% rename from apps/boot/include/main.h rename to apps/boot/application/include/main.h diff --git a/apps/boot/include/stm32f4xx_hal_conf.h b/apps/boot/application/include/stm32f4xx_hal_conf.h similarity index 100% rename from apps/boot/include/stm32f4xx_hal_conf.h rename to apps/boot/application/include/stm32f4xx_hal_conf.h diff --git a/apps/boot/include/stm32f4xx_it.h b/apps/boot/application/include/stm32f4xx_it.h similarity index 100% rename from apps/boot/include/stm32f4xx_it.h rename to apps/boot/application/include/stm32f4xx_it.h diff --git a/apps/boot/include/transfer.h b/apps/boot/application/include/transfer.h similarity index 100% rename from apps/boot/include/transfer.h rename to apps/boot/application/include/transfer.h diff --git a/apps/boot/include/utils.h b/apps/boot/application/include/utils.h similarity index 100% rename from apps/boot/include/utils.h rename to apps/boot/application/include/utils.h diff --git a/apps/boot/include/ymodem.h b/apps/boot/application/include/ymodem.h similarity index 100% rename from apps/boot/include/ymodem.h rename to apps/boot/application/include/ymodem.h diff --git a/apps/boot/main.c b/apps/boot/application/main.c similarity index 100% rename from apps/boot/main.c rename to apps/boot/application/main.c diff --git a/apps/boot/stm32f4xx_hal_msp.c b/apps/boot/application/stm32f4xx_hal_msp.c similarity index 100% rename from apps/boot/stm32f4xx_hal_msp.c rename to apps/boot/application/stm32f4xx_hal_msp.c diff --git a/apps/boot/stm32f4xx_it.c b/apps/boot/application/stm32f4xx_it.c similarity index 100% rename from apps/boot/stm32f4xx_it.c rename to apps/boot/application/stm32f4xx_it.c diff --git a/apps/boot/system_stm32f4xx.c b/apps/boot/application/system_stm32f4xx.c similarity index 100% rename from apps/boot/system_stm32f4xx.c rename to apps/boot/application/system_stm32f4xx.c diff --git a/apps/boot/bsp/bsp_common.h b/apps/boot/board/bsp_common.h similarity index 100% rename from apps/boot/bsp/bsp_common.h rename to apps/boot/board/bsp_common.h diff --git a/apps/boot/bsp/bsp_flash.c b/apps/boot/board/bsp_flash.c similarity index 100% rename from apps/boot/bsp/bsp_flash.c rename to apps/boot/board/bsp_flash.c diff --git a/apps/boot/bsp/bsp_flash.h b/apps/boot/board/bsp_flash.h similarity index 100% rename from apps/boot/bsp/bsp_flash.h rename to apps/boot/board/bsp_flash.h diff --git a/apps/boot/bsp/bsp_gpio.c b/apps/boot/board/bsp_gpio.c similarity index 100% rename from apps/boot/bsp/bsp_gpio.c rename to apps/boot/board/bsp_gpio.c diff --git a/apps/boot/bsp/bsp_gpio.h b/apps/boot/board/bsp_gpio.h similarity index 100% rename from apps/boot/bsp/bsp_gpio.h rename to apps/boot/board/bsp_gpio.h diff --git a/apps/boot/bsp/bsp_key.c b/apps/boot/board/bsp_key.c similarity index 100% rename from apps/boot/bsp/bsp_key.c rename to apps/boot/board/bsp_key.c diff --git a/apps/boot/bsp/bsp_key.h b/apps/boot/board/bsp_key.h similarity index 100% rename from apps/boot/bsp/bsp_key.h rename to apps/boot/board/bsp_key.h diff --git a/apps/boot/bsp/bsp_uart.c b/apps/boot/board/bsp_uart.c similarity index 100% rename from apps/boot/bsp/bsp_uart.c rename to apps/boot/board/bsp_uart.c diff --git a/apps/boot/bsp/bsp_uart.h b/apps/boot/board/bsp_uart.h similarity index 100% rename from apps/boot/bsp/bsp_uart.h rename to apps/boot/board/bsp_uart.h diff --git a/apps/boot/bsp/bsp_uart_config.h b/apps/boot/board/bsp_uart_config.h similarity index 100% rename from apps/boot/bsp/bsp_uart_config.h rename to apps/boot/board/bsp_uart_config.h diff --git a/apps/boot/bsp/bsp_uart_port.c b/apps/boot/board/bsp_uart_port.c similarity index 100% rename from apps/boot/bsp/bsp_uart_port.c rename to apps/boot/board/bsp_uart_port.c diff --git a/apps/boot/bsp/common.h b/apps/boot/board/common.h similarity index 100% rename from apps/boot/bsp/common.h rename to apps/boot/board/common.h diff --git a/apps/boot/bsp/drv_timer.c b/apps/boot/board/drv_timer.c similarity index 100% rename from apps/boot/bsp/drv_timer.c rename to apps/boot/board/drv_timer.c diff --git a/apps/boot/bsp/drv_timer.h b/apps/boot/board/drv_timer.h similarity index 100% rename from apps/boot/bsp/drv_timer.h rename to apps/boot/board/drv_timer.h diff --git a/mdks/boot.uvprojx b/apps/boot/boot.uvprojx similarity index 84% rename from mdks/boot.uvprojx rename to apps/boot/boot.uvprojx index ef00664..11b31c0 100644 --- a/mdks/boot.uvprojx +++ b/apps/boot/boot.uvprojx @@ -16,7 +16,7 @@ STM32F405RGTx STMicroelectronics - Keil.STM32F4xx_DFP.3.1.0 + Keil.STM32F4xx_DFP.2.17.1 https://www.keil.com/pack/ IRAM(0x20000000,0x00020000) IRAM2(0x10000000,0x00010000) IROM(0x08000000,0x00100000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ELITTLE @@ -339,7 +339,7 @@ USE_HAL_DRIVER,STM32F405xx - ..\libs\stm32f4\STM32F4_HAL\Inc;..\libs\stm32f4\STM32F4_HAL\Inc\Legacy;..\libs\stm32f4\STM32F4_CMSIS\Include;..\libs\cmsis-core\Include;..\apps\boot\include;..\apps\boot\bsp + ..\..\libs\stm32f4\STM32F4_HAL\Inc;..\..\libs\stm32f4\STM32F4_HAL\Inc\Legacy;..\..\libs\stm32f4\STM32F4_CMSIS\Include;..\..\libs\cmsis-core\Include;.\application\include;.\board @@ -361,16 +361,16 @@ - 1 + 0 0 0 0 - 1 + 0 0 0x08000000 0x20000000 - .\Objects\boot.sct + .\linker_scripts\link.sct @@ -386,42 +386,42 @@ main.c 1 - ..\apps\boot\main.c + .\application\main.c main.h 5 - ..\apps\boot\include\main.h + .\application\include\main.h stm32f4xx_hal_msp.c 1 - ..\apps\boot\stm32f4xx_hal_msp.c + .\application\stm32f4xx_hal_msp.c stm32f4xx_hal_conf.h 5 - ..\apps\boot\include\stm32f4xx_hal_conf.h + .\application\include\stm32f4xx_hal_conf.h stm32f4xx_it.c 1 - ..\apps\boot\stm32f4xx_it.c + .\application\stm32f4xx_it.c stm32f4xx_it.h 5 - ..\apps\boot\include\stm32f4xx_it.h + .\application\include\stm32f4xx_it.h system_stm32f4xx.c 1 - ..\apps\boot\system_stm32f4xx.c + .\application\system_stm32f4xx.c startup_stm32f405xx.s 2 - ..\libs\stm32f4\STm32F4_CMSIS\Source\Templates\arm\startup_stm32f405xx.s + ..\..\libs\stm32f4\STm32F4_CMSIS\Source\Templates\arm\startup_stm32f405xx.s @@ -431,7 +431,7 @@ app_config.h 5 - ..\apps\boot\include\app_config.h + .\application\include\app_config.h @@ -441,37 +441,37 @@ aes.c 1 - ..\apps\boot\func\aes.c + .\application\func\aes.c app.c 1 - ..\apps\boot\func\app.c + .\application\func\app.c transfer.c 1 - ..\apps\boot\func\transfer.c + .\application\func\transfer.c firmware.c 1 - ..\apps\boot\func\firmware.c + .\application\func\firmware.c ymodem.c 1 - ..\apps\boot\func\ymodem.c + .\application\func\ymodem.c utils.c 1 - ..\apps\boot\func\utils.c + .\application\func\utils.c no_semihosting.c 1 - ..\apps\boot\func\no_semihosting.c + .\application\func\no_semihosting.c @@ -481,72 +481,72 @@ bsp_common.h 5 - ..\apps\boot\bsp\bsp_common.h + .\board\bsp_common.h bsp_flash.c 1 - ..\apps\boot\bsp\bsp_flash.c + .\board\bsp_flash.c bsp_flash.h 5 - ..\apps\boot\bsp\bsp_flash.h + .\board\bsp_flash.h bsp_gpio.c 1 - ..\apps\boot\bsp\bsp_gpio.c + .\board\bsp_gpio.c bsp_gpio.h 5 - ..\apps\boot\bsp\bsp_gpio.h + .\board\bsp_gpio.h bsp_key.c 1 - ..\apps\boot\bsp\bsp_key.c + .\board\bsp_key.c bsp_key.h 5 - ..\apps\boot\bsp\bsp_key.h + .\board\bsp_key.h drv_timer.c 1 - ..\apps\boot\bsp\drv_timer.c + .\board\drv_timer.c drv_timer.h 5 - ..\apps\boot\bsp\drv_timer.h + .\board\drv_timer.h bsp_uart.c 1 - ..\apps\boot\bsp\bsp_uart.c + .\board\bsp_uart.c bsp_uart.h 5 - ..\apps\boot\bsp\bsp_uart.h + .\board\bsp_uart.h bsp_uart_config.h 5 - ..\apps\boot\bsp\bsp_uart_config.h + .\board\bsp_uart_config.h bsp_uart_port.c 1 - ..\apps\boot\bsp\bsp_uart_port.c + .\board\bsp_uart_port.c common.h 5 - ..\apps\boot\bsp\common.h + .\board\common.h @@ -556,82 +556,82 @@ stm32f4xx_hal.c 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal.c + ..\..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal.c stm32f4xx_hal_cortex.c 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_cortex.c + ..\..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_cortex.c stm32f4xx_hal_dma.c 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_dma.c + ..\..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_dma.c stm32f4xx_hal_dma_ex.c 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_dma_ex.c + ..\..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_dma_ex.c stm32f4xx_hal_exti.c 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_exti.c + ..\..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_exti.c stm32f4xx_hal_flash.c 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_flash.c + ..\..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_flash.c stm32f4xx_hal_flash_ex.c 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_flash_ex.c + ..\..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_flash_ex.c stm32f4xx_hal_flash_ramfunc.c 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_flash_ramfunc.c + ..\..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_flash_ramfunc.c stm32f4xx_hal_gpio.c 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_gpio.c + ..\..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_gpio.c stm32f4xx_hal_pwr.c 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_pwr.c + ..\..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_pwr.c stm32f4xx_hal_pwr_ex.c 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_pwr_ex.c + ..\..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_pwr_ex.c stm32f4xx_hal_rcc.c 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_rcc.c + ..\..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_rcc.c stm32f4xx_hal_rcc_ex.c 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_rcc_ex.c + ..\..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_rcc_ex.c stm32f4xx_hal_tim.c 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_tim.c + ..\..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_tim.c stm32f4xx_hal_tim_ex.c 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_tim_ex.c + ..\..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_tim_ex.c stm32f4xx_hal_uart.c 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_uart.c + ..\..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_uart.c diff --git a/apps/boot/linker_scripts/link.icf b/apps/boot/linker_scripts/link.icf new file mode 100644 index 0000000..9910345 --- /dev/null +++ b/apps/boot/linker_scripts/link.icf @@ -0,0 +1,30 @@ +/*###ICF### Section handled by ICF editor, don't touch! ****/ +/*-Editor annotation file-*/ +/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ +/*-Specials-*/ +define symbol __ICFEDIT_intvec_start__ = 0x08000000; +/*-Memory Regions-*/ +define symbol __ICFEDIT_region_ROM_start__ = 0x08000000; +define symbol __ICFEDIT_region_ROM_end__ = 0x0800FFFF; +define symbol __ICFEDIT_region_RAM1_start__ = 0x20000000; +define symbol __ICFEDIT_region_RAM1_end__ = 0x2001FFFF; +define symbol __ICFEDIT_region_RAM2_start__ = 0x10000000; +define symbol __ICFEDIT_region_RAM2_end__ = 0x1000FFFF; +/*-Sizes-*/ +define symbol __ICFEDIT_size_cstack__ = 0x0400; +define symbol __ICFEDIT_size_heap__ = 0x000; +/**** End of ICF editor section. ###ICF###*/ + +define memory mem with size = 4G; +define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__]; +define region RAM1_region = mem:[from __ICFEDIT_region_RAM1_start__ to __ICFEDIT_region_RAM1_end__]; + +define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { }; + +initialize by copy { readwrite }; +do not initialize { section .noinit }; + +place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec }; + +place in ROM_region { readonly }; +place in RAM1_region { readwrite, last block CSTACK }; diff --git a/apps/boot/linker_scripts/link.lds b/apps/boot/linker_scripts/link.lds new file mode 100644 index 0000000..7003f23 --- /dev/null +++ b/apps/boot/linker_scripts/link.lds @@ -0,0 +1,159 @@ +/* + * linker script for STM32F4xx with GNU ld + * bernard.xiong 2009-10-14 + * flybreak 2018-11-19 Add support for RAM2 + */ + +/* Program Entry, set to mark it as "used" and avoid gc */ +MEMORY +{ + CODE (rx) : ORIGIN = 0x08000000, LENGTH = 64k /* 64KB flash */ + RAM1 (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128K sram */ + RAM2 (rw) : ORIGIN = 0x10000000, LENGTH = 64k /* 64K sram */ +} +ENTRY(Reset_Handler) +_system_stack_size = 0x400; + +SECTIONS +{ + .text : + { + . = ALIGN(4); + _stext = .; + KEEP(*(.isr_vector)) /* Startup code */ + + . = ALIGN(4); + *(.text) /* remaining code */ + *(.text.*) /* remaining code */ + *(.rodata) /* read-only data (constants) */ + *(.rodata*) + *(.glue_7) + *(.glue_7t) + *(.gnu.linkonce.t*) + + /* section information for finsh shell */ + . = ALIGN(4); + __fsymtab_start = .; + KEEP(*(FSymTab)) + __fsymtab_end = .; + + . = ALIGN(4); + __vsymtab_start = .; + KEEP(*(VSymTab)) + __vsymtab_end = .; + + /* section information for initial. */ + . = ALIGN(4); + __rt_init_start = .; + KEEP(*(SORT(.rti_fn*))) + __rt_init_end = .; + + . = ALIGN(4); + + PROVIDE(__ctors_start__ = .); + KEEP (*(SORT(.init_array.*))) + KEEP (*(.init_array)) + PROVIDE(__ctors_end__ = .); + + . = ALIGN(4); + + _etext = .; + } > CODE = 0 + + /* .ARM.exidx is sorted, so has to go in its own output section. */ + __exidx_start = .; + .ARM.exidx : + { + *(.ARM.exidx* .gnu.linkonce.armexidx.*) + + /* This is used by the startup in order to initialize the .data secion */ + _sidata = .; + } > CODE + __exidx_end = .; + + /* .data section which is used for initialized data */ + + .data : AT (_sidata) + { + . = ALIGN(4); + /* This is used by the startup in order to initialize the .data secion */ + _sdata = . ; + + *(.data) + *(.data.*) + *(.gnu.linkonce.d*) + + PROVIDE(__dtors_start__ = .); + KEEP(*(SORT(.dtors.*))) + KEEP(*(.dtors)) + PROVIDE(__dtors_end__ = .); + + . = ALIGN(4); + /* This is used by the startup in order to initialize the .data secion */ + _edata = . ; + } >RAM1 + + .stack : + { + . = ALIGN(4); + _sstack = .; + . = . + _system_stack_size; + . = ALIGN(4); + _estack = .; + } >RAM1 + + __bss_start = .; + .bss : + { + . = ALIGN(4); + /* This is used by the startup in order to initialize the .bss secion */ + _sbss = .; + + *(.bss) + *(.bss.*) + *(COMMON) + + . = ALIGN(4); + /* This is used by the startup in order to initialize the .bss secion */ + _ebss = . ; + + *(.bss.init) + } > RAM1 + __bss_end = .; + + _end = .; + + /* Stabs debugging sections. */ + .stab 0 : { *(.stab) } + .stabstr 0 : { *(.stabstr) } + .stab.excl 0 : { *(.stab.excl) } + .stab.exclstr 0 : { *(.stab.exclstr) } + .stab.index 0 : { *(.stab.index) } + .stab.indexstr 0 : { *(.stab.indexstr) } + .comment 0 : { *(.comment) } + /* DWARF debug sections. + * Symbols in the DWARF debugging sections are relative to the beginning + * of the section so we begin them at 0. */ + /* DWARF 1 */ + .debug 0 : { *(.debug) } + .line 0 : { *(.line) } + /* GNU DWARF 1 extensions */ + .debug_srcinfo 0 : { *(.debug_srcinfo) } + .debug_sfnames 0 : { *(.debug_sfnames) } + /* DWARF 1.1 and DWARF 2 */ + .debug_aranges 0 : { *(.debug_aranges) } + .debug_pubnames 0 : { *(.debug_pubnames) } + /* DWARF 2 */ + .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } + .debug_abbrev 0 : { *(.debug_abbrev) } + .debug_line 0 : { *(.debug_line) } + .debug_frame 0 : { *(.debug_frame) } + .debug_str 0 : { *(.debug_str) } + .debug_loc 0 : { *(.debug_loc) } + .debug_macinfo 0 : { *(.debug_macinfo) } + /* SGI/MIPS DWARF 2 extensions */ + .debug_weaknames 0 : { *(.debug_weaknames) } + .debug_funcnames 0 : { *(.debug_funcnames) } + .debug_typenames 0 : { *(.debug_typenames) } + .debug_varnames 0 : { *(.debug_varnames) } +} diff --git a/apps/boot/linker_scripts/link.sct b/apps/boot/linker_scripts/link.sct new file mode 100644 index 0000000..5757378 --- /dev/null +++ b/apps/boot/linker_scripts/link.sct @@ -0,0 +1,15 @@ +; ************************************************************* +; *** Scatter-Loading Description File generated by uVision *** +; ************************************************************* + +LR_IROM1 0x08000000 0x00010000 { ; load region size_region + ER_IROM1 0x08000000 0x00010000 { ; load address = execution address + *.o (RESET, +First) + *(InRoot$$Sections) + .ANY (+RO) + } + RW_IRAM1 0x20000000 0x00020000 { ; RW data + .ANY (+RW +ZI) + } +} + diff --git a/apps/chrg/board/linker_scripts/link.icf b/apps/chrg/board/linker_scripts/link.icf index 03968b9..7798d6a 100644 --- a/apps/chrg/board/linker_scripts/link.icf +++ b/apps/chrg/board/linker_scripts/link.icf @@ -2,10 +2,10 @@ /*-Editor annotation file-*/ /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */ /*-Specials-*/ -define symbol __ICFEDIT_intvec_start__ = 0x08010000; +define symbol __ICFEDIT_intvec_start__ = 0x08040000; /*-Memory Regions-*/ -define symbol __ICFEDIT_region_ROM_start__ = 0x08010000; -define symbol __ICFEDIT_region_ROM_end__ = 0x0803FFFF; +define symbol __ICFEDIT_region_ROM_start__ = 0x08040000; +define symbol __ICFEDIT_region_ROM_end__ = 0x0807FFFF; define symbol __ICFEDIT_region_RAM1_start__ = 0x20000000; define symbol __ICFEDIT_region_RAM1_end__ = 0x2001FFFF; define symbol __ICFEDIT_region_RAM2_start__ = 0x10000000; diff --git a/apps/chrg/board/linker_scripts/link.lds b/apps/chrg/board/linker_scripts/link.lds index 201271d..c8d4059 100644 --- a/apps/chrg/board/linker_scripts/link.lds +++ b/apps/chrg/board/linker_scripts/link.lds @@ -7,7 +7,7 @@ /* Program Entry, set to mark it as "used" and avoid gc */ MEMORY { - CODE (rx) : ORIGIN = 0x08010000, LENGTH = 256k /* 256KB flash */ + CODE (rx) : ORIGIN = 0x08040000, LENGTH = 256k /* 256KB flash */ RAM1 (rw) : ORIGIN = 0x20000000, LENGTH = 128k /* 128K sram */ RAM2 (rw) : ORIGIN = 0x10000000, LENGTH = 64k /* 64K sram */ } diff --git a/apps/chrg/chrg.uvprojx b/apps/chrg/chrg.uvprojx index 684da29..c0fbe8d 100644 --- a/apps/chrg/chrg.uvprojx +++ b/apps/chrg/chrg.uvprojx @@ -16,7 +16,7 @@ STM32F405RG STMicroelectronics - Keil.STM32F4xx_DFP.3.1.0 + Keil.STM32F4xx_DFP.2.17.1 https://www.keil.com/pack/ IRAM(0x20000000-0x2001FFFF) IRAM2(0x10000000-0x1000FFFF) IROM(0x8000000-0x80FFFFF) CLOCK(25000000) CPUTYPE("Cortex-M4") FPU2 @@ -53,7 +53,7 @@ 1 0 1 - 1 + 0 0 .\build\keil\List\ 1 @@ -328,8 +328,8 @@ 1 0 0 - 1 - 1 + 3 + 3 1 1 0 @@ -361,11 +361,11 @@ - 1 + 0 0 0 0 - 1 + 0 0 0x08000000 0x20000000 diff --git a/mdks/all_mdks.uvmpw b/mdks/all_mdks.uvmpw index 003457d..750406b 100644 --- a/mdks/all_mdks.uvmpw +++ b/mdks/all_mdks.uvmpw @@ -8,13 +8,13 @@ WorkSpace - .\boot.uvprojx - 1 + ..\apps\boot\boot.uvprojx 1 - .\chrg.uvprojx + ..\apps\chrg\chrg.uvprojx + 1 1 diff --git a/mdks/chrg.uvprojx b/mdks/chrg.uvprojx deleted file mode 100644 index ad437b5..0000000 --- a/mdks/chrg.uvprojx +++ /dev/null @@ -1,2902 +0,0 @@ - - - - 2.1 - -
### uVision Project, (C) Keil Software
- - - - chrg - 0x4 - ARM-ADS - 5060960::V5.06 update 7 (build 960)::.\ARMCC - 0 - - - STM32F405RG - STMicroelectronics - Keil.STM32F4xx_DFP.3.1.0 - https://www.keil.com/pack/ - IRAM(0x20000000-0x2001FFFF) IRAM2(0x10000000-0x1000FFFF) IROM(0x8000000-0x80FFFFF) CLOCK(25000000) CPUTYPE("Cortex-M4") FPU2 - - "Startup\ST\STM32F4xx\startup_stm32f40_41xxx.s" ("STM32F40/41xxx Startup Code") - UL2CM3(-O207 -S0 -C0 -FO7 -FD20000000 -FC800 -FN1 -FF0STM32F4xx_1024 -FS08000000 -FL0100000) - 6100 - stm32f4xx.h - - - - - - - -DSTM32F40_41xxx - - - SFD\ST\STM32F4xx\STM32F40x.sfr - 0 - 0 - - - - ST\STM32F4xx\ - ST\STM32F4xx\ - - 0 - 0 - 0 - 0 - 1 - - .\Objects\ - chrg - 1 - 0 - 1 - 1 - 0 - .\Objects\ - 1 - 0 - 0 - - 0 - 0 - - - 0 - 0 - 0 - 0 - - - 0 - 0 - - - 0 - 0 - 0 - 0 - - - 1 - 0 - fromelf --bin !L -o @L.bin - - 0 - 0 - 0 - 0 - - 0 - - - - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - SARMCM3.DLL - -MPU -REMAP - DCM.DLL - -pCM4 - SARMCM3.DLL - -MPU - TCM.DLL - -pCM4 - - - - 1 - 0 - 0 - 0 - 16 - - - - - 1 - 0 - 0 - 1 - 1 - 4096 - - 1 - BIN\UL2CM3.DLL - "" () - - - - - 0 - - - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - 1 - 0 - 1 - 1 - 0 - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 0 - "Cortex-M4" - - 0 - 0 - 0 - 1 - 1 - 0 - 0 - 1 - 0 - 0 - 1 - 0 - 8 - 0 - 0 - 0 - 0 - 3 - 3 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 1 - 0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x20000000 - 0x20000 - - - 1 - 0x8000000 - 0x100000 - - - 0 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x0 - 0x0 - - - 1 - 0x8040000 - 0x40000 - - - 1 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x0 - 0x0 - - - 0 - 0x20000000 - 0x20000 - - - 0 - 0x10000000 - 0x10000 - - - - - - 1 - 3 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 0 - 2 - 0 - 0 - 1 - 0 - 0 - 1 - 1 - 1 - 1 - 0 - 0 - 0 - - - STM32F405xx, RT_USING_ARMLIBC, RT_USING_LIBC, __RTTHREAD__, __CLK_TCK=RT_TICK_PER_SECOND, USE_HAL_DRIVER, __STDC_LIMIT_MACROS - - ..\rt-thread\components\drivers\include;..\apps\chrg\board\ports;..\rt-thread\components\drivers\include;..\apps\chrg\board\CubeMX_Config\Inc;..\rt-thread\components\finsh;..\rt-thread\components\drivers\include;..\rt-thread\components\drivers\include;..\rt-thread\components\drivers\include;..\libs\freemodbus\port;..\apps\chrg\applications;..\rt-thread\libcpu\arm\cortex-m4;..\rt-thread\components\libc\posix\ipc;..\apps\chrg\;..\libs\cmsis-core\Include;..\rt-thread\components\libc\posix\io\epoll;..\libs\stm32f4\STM32F4_HAL\Inc\Legacy;..\rt-thread\components\drivers\include;..\rt-thread\components\drivers\include;..\rt-thread\bsp\stm32\libraries\HAL_Drivers;..\rt-thread\components\libc\posix\io\poll;..\rt-thread\components\libc\posix\io\eventfd;..\rt-thread\components\drivers\include;..\apps\chrg\applications\bsp;..\apps\chrg\board;..\rt-thread\components\drivers\include;..\rt-thread\bsp\stm32\libraries\HAL_Drivers\drivers;..\rt-thread\libcpu\arm\common;..\libs\freemodbus\modbus\rtu;..\libs\freemodbus\modbus\include;..\rt-thread\components\fal\inc;..\libs\stm32f4\STM32F4_CMSIS\Include;..\rt-thread\components\drivers\smp_call;..\rt-thread\bsp\stm32\libraries\HAL_Drivers\drivers\drv_flash;..\rt-thread\components\drivers\include;..\rt-thread\components\drivers\phy;..\rt-thread\include;..\libs\freemodbus\modbus\ascii;..\rt-thread\bsp\stm32\libraries\HAL_Drivers\drivers\config;..\libs\stm32f4\STM32F4_HAL\Inc;..\rt-thread\components\libc\compilers\common\extension\fcntl\octal;..\rt-thread\components\libc\compilers\common\extension;..\libs\freemodbus\modbus\tcp;..\rt-thread\components\libc\compilers\common\include;..\apps\chrg\applications\thread - - - - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 - 1 - - - - - - - - - 1 - 0 - 0 - 0 - 1 - 0 - 0x08000000 - 0x20000000 - - ..\apps\chrg\board\linker_scripts\link.sct - - - - - - - - - - - Applications - - - chrg_wdt.c - 1 - ..\apps\chrg\applications\bsp\chrg_wdt.c - - - chrg_fal.c - 1 - ..\apps\chrg\applications\bsp\chrg_fal.c - - - chrg_tty.c - 1 - ..\apps\chrg\applications\bsp\chrg_tty.c - - - chrg_can.c - 1 - ..\apps\chrg\applications\bsp\chrg_can.c - - - chrg_intr.c - 1 - ..\apps\chrg\applications\bsp\chrg_intr.c - - - chrg_i2c.c - 1 - ..\apps\chrg\applications\bsp\chrg_i2c.c - - - chrg_pin.c - 1 - ..\apps\chrg\applications\bsp\chrg_pin.c - - - chrg_tmr.c - 1 - ..\apps\chrg\applications\bsp\chrg_tmr.c - - - chrg_switch.c - 1 - ..\apps\chrg\applications\bsp\chrg_switch.c - - - main.c - 1 - ..\apps\chrg\applications\main.c - - - chrg_clk.c - 1 - ..\apps\chrg\applications\bsp\chrg_clk.c - - - chrg_north.c - 1 - ..\apps\chrg\applications\thread\chrg_north.c - - - chrg_south.c - 1 - ..\apps\chrg\applications\thread\chrg_south.c - - - - - Compiler - - - syscall_mem.c - 1 - ..\rt-thread\components\libc\compilers\armlibc\syscall_mem.c - - - syscalls.c - 1 - ..\rt-thread\components\libc\compilers\armlibc\syscalls.c - - - cctype.c - 1 - ..\rt-thread\components\libc\compilers\common\cctype.c - - - cstdlib.c - 1 - ..\rt-thread\components\libc\compilers\common\cstdlib.c - - - cstring.c - 1 - ..\rt-thread\components\libc\compilers\common\cstring.c - - - ctime.c - 1 - ..\rt-thread\components\libc\compilers\common\ctime.c - - - cunistd.c - 1 - ..\rt-thread\components\libc\compilers\common\cunistd.c - - - cwchar.c - 1 - ..\rt-thread\components\libc\compilers\common\cwchar.c - - - - - DeviceDrivers - - - dev_can.c - 1 - ..\rt-thread\components\drivers\can\dev_can.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_IPC_SOURCE__ - - - - - - - - - device.c - 1 - ..\rt-thread\components\drivers\core\device.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_IPC_SOURCE__ - - - - - - - - - hwtimer.c - 1 - ..\rt-thread\components\drivers\hwtimer\hwtimer.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_IPC_SOURCE__ - - - - - - - - - dev_i2c_bit_ops.c - 1 - ..\rt-thread\components\drivers\i2c\dev_i2c_bit_ops.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_IPC_SOURCE__ - - - - - - - - - dev_i2c_core.c - 1 - ..\rt-thread\components\drivers\i2c\dev_i2c_core.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_IPC_SOURCE__ - - - - - - - - - dev_i2c_dev.c - 1 - ..\rt-thread\components\drivers\i2c\dev_i2c_dev.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_IPC_SOURCE__ - - - - - - - - - completion_comm.c - 1 - ..\rt-thread\components\drivers\ipc\completion_comm.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_IPC_SOURCE__ - - - - - - - - - completion_up.c - 1 - ..\rt-thread\components\drivers\ipc\completion_up.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_IPC_SOURCE__ - - - - - - - - - condvar.c - 1 - ..\rt-thread\components\drivers\ipc\condvar.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_IPC_SOURCE__ - - - - - - - - - dataqueue.c - 1 - ..\rt-thread\components\drivers\ipc\dataqueue.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_IPC_SOURCE__ - - - - - - - - - pipe.c - 1 - ..\rt-thread\components\drivers\ipc\pipe.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_IPC_SOURCE__ - - - - - - - - - ringblk_buf.c - 1 - ..\rt-thread\components\drivers\ipc\ringblk_buf.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_IPC_SOURCE__ - - - - - - - - - ringbuffer.c - 1 - ..\rt-thread\components\drivers\ipc\ringbuffer.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_IPC_SOURCE__ - - - - - - - - - waitqueue.c - 1 - ..\rt-thread\components\drivers\ipc\waitqueue.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_IPC_SOURCE__ - - - - - - - - - workqueue.c - 1 - ..\rt-thread\components\drivers\ipc\workqueue.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_IPC_SOURCE__ - - - - - - - - - dev_pin.c - 1 - ..\rt-thread\components\drivers\pin\dev_pin.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_IPC_SOURCE__ - - - - - - - - - dev_rtc.c - 1 - ..\rt-thread\components\drivers\rtc\dev_rtc.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_IPC_SOURCE__ - - - - - - - - - dev_serial.c - 1 - ..\rt-thread\components\drivers\serial\dev_serial.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_IPC_SOURCE__ - - - - - - - - - dev_watchdog.c - 1 - ..\rt-thread\components\drivers\watchdog\dev_watchdog.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_IPC_SOURCE__ - - - - - - - - - - - Drivers - - - stm32f4xx_hal_msp.c - 1 - ..\apps\chrg\board\CubeMX_Config\Src\stm32f4xx_hal_msp.c - - - board.c - 1 - ..\apps\chrg\board\board.c - - - drv_can.c - 1 - ..\rt-thread\bsp\stm32\libraries\HAL_Drivers\drivers\drv_can.c - - - drv_flash_f4.c - 1 - ..\rt-thread\bsp\stm32\libraries\HAL_Drivers\drivers\drv_flash\drv_flash_f4.c - - - drv_gpio.c - 1 - ..\rt-thread\bsp\stm32\libraries\HAL_Drivers\drivers\drv_gpio.c - - - drv_rtc.c - 1 - ..\rt-thread\bsp\stm32\libraries\HAL_Drivers\drivers\drv_rtc.c - - - drv_soft_i2c.c - 1 - ..\rt-thread\bsp\stm32\libraries\HAL_Drivers\drivers\drv_soft_i2c.c - - - drv_tim.c - 1 - ..\rt-thread\bsp\stm32\libraries\HAL_Drivers\drivers\drv_tim.c - - - drv_usart.c - 1 - ..\rt-thread\bsp\stm32\libraries\HAL_Drivers\drivers\drv_usart.c - - - drv_wdt.c - 1 - ..\rt-thread\bsp\stm32\libraries\HAL_Drivers\drivers\drv_wdt.c - - - drv_common.c - 1 - ..\rt-thread\bsp\stm32\libraries\HAL_Drivers\drv_common.c - - - - - Fal - - - fal_partition.c - 1 - ..\rt-thread\components\fal\src\fal_partition.c - - - fal_flash.c - 1 - ..\rt-thread\components\fal\src\fal_flash.c - - - fal_rtt.c - 1 - ..\rt-thread\components\fal\src\fal_rtt.c - - - fal.c - 1 - ..\rt-thread\components\fal\src\fal.c - - - - - Finsh - - - msh_parse.c - 1 - ..\rt-thread\components\finsh\msh_parse.c - - - msh.c - 1 - ..\rt-thread\components\finsh\msh.c - - - shell.c - 1 - ..\rt-thread\components\finsh\shell.c - - - cmd.c - 1 - ..\rt-thread\components\finsh\cmd.c - - - - - FreeModbus - - - user_mb_app.c - 1 - ..\libs\freemodbus\port\user_mb_app.c - - - mbfunccoils_m.c - 1 - ..\libs\freemodbus\modbus\functions\mbfunccoils_m.c - - - mbutils.c - 1 - ..\libs\freemodbus\modbus\functions\mbutils.c - - - mbfuncdisc_m.c - 1 - ..\libs\freemodbus\modbus\functions\mbfuncdisc_m.c - - - porttcp.c - 1 - ..\libs\freemodbus\port\porttcp.c - - - sample_mb_slave.c - 1 - ..\libs\freemodbus\samples\sample_mb_slave.c - - - mbfuncholding_m.c - 1 - ..\libs\freemodbus\modbus\functions\mbfuncholding_m.c - - - porttimer_m.c - 1 - ..\libs\freemodbus\port\porttimer_m.c - - - mbcrc.c - 1 - ..\libs\freemodbus\modbus\rtu\mbcrc.c - - - mbfuncinput_m.c - 1 - ..\libs\freemodbus\modbus\functions\mbfuncinput_m.c - - - user_mb_app_m.c - 1 - ..\libs\freemodbus\port\user_mb_app_m.c - - - mb_m.c - 1 - ..\libs\freemodbus\modbus\mb_m.c - - - portevent.c - 1 - ..\libs\freemodbus\port\portevent.c - - - sample_mb_master.c - 1 - ..\libs\freemodbus\samples\sample_mb_master.c - - - mbfuncother.c - 1 - ..\libs\freemodbus\modbus\functions\mbfuncother.c - - - port.c - 1 - ..\libs\freemodbus\port\port.c - - - portserial.c - 1 - ..\libs\freemodbus\port\portserial.c - - - mbrtu.c - 1 - ..\libs\freemodbus\modbus\rtu\mbrtu.c - - - mbfuncdiag.c - 1 - ..\libs\freemodbus\modbus\functions\mbfuncdiag.c - - - portserial_m.c - 1 - ..\libs\freemodbus\port\portserial_m.c - - - portevent_m.c - 1 - ..\libs\freemodbus\port\portevent_m.c - - - mbfuncinput.c - 1 - ..\libs\freemodbus\modbus\functions\mbfuncinput.c - - - mbfunccoils.c - 1 - ..\libs\freemodbus\modbus\functions\mbfunccoils.c - - - porttimer.c - 1 - ..\libs\freemodbus\port\porttimer.c - - - mb.c - 1 - ..\libs\freemodbus\modbus\mb.c - - - mbfuncdisc.c - 1 - ..\libs\freemodbus\modbus\functions\mbfuncdisc.c - - - mbrtu_m.c - 1 - ..\libs\freemodbus\modbus\rtu\mbrtu_m.c - - - mbfuncholding.c - 1 - ..\libs\freemodbus\modbus\functions\mbfuncholding.c - - - - - Kernel - - - clock.c - 1 - ..\rt-thread\src\clock.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_KERNEL_SOURCE__ - - - - - - - - - components.c - 1 - ..\rt-thread\src\components.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_KERNEL_SOURCE__ - - - - - - - - - cpu_up.c - 1 - ..\rt-thread\src\cpu_up.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_KERNEL_SOURCE__ - - - - - - - - - defunct.c - 1 - ..\rt-thread\src\defunct.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_KERNEL_SOURCE__ - - - - - - - - - idle.c - 1 - ..\rt-thread\src\idle.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_KERNEL_SOURCE__ - - - - - - - - - ipc.c - 1 - ..\rt-thread\src\ipc.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_KERNEL_SOURCE__ - - - - - - - - - irq.c - 1 - ..\rt-thread\src\irq.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_KERNEL_SOURCE__ - - - - - - - - - kservice.c - 1 - ..\rt-thread\src\kservice.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_KERNEL_SOURCE__ - - - - - - - - - mem.c - 1 - ..\rt-thread\src\mem.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_KERNEL_SOURCE__ - - - - - - - - - mempool.c - 1 - ..\rt-thread\src\mempool.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_KERNEL_SOURCE__ - - - - - - - - - object.c - 1 - ..\rt-thread\src\object.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_KERNEL_SOURCE__ - - - - - - - - - scheduler_comm.c - 1 - ..\rt-thread\src\scheduler_comm.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_KERNEL_SOURCE__ - - - - - - - - - scheduler_up.c - 1 - ..\rt-thread\src\scheduler_up.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_KERNEL_SOURCE__ - - - - - - - - - thread.c - 1 - ..\rt-thread\src\thread.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_KERNEL_SOURCE__ - - - - - - - - - timer.c - 1 - ..\rt-thread\src\timer.c - - - 2 - 0 - 0 - 0 - 0 - 1 - 0 - 0 - 0 - 0 - 3 - - - 1 - - - - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 2 - 0 - 2 - 2 - 2 - 2 - 2 - 0 - 0 - 2 - 2 - 2 - 2 - 2 - - - __RT_KERNEL_SOURCE__ - - - - - - - - - - - klibc - - - kstdio.c - 1 - ..\rt-thread\src\klibc\kstdio.c - - - rt_vsnprintf_tiny.c - 1 - ..\rt-thread\src\klibc\rt_vsnprintf_tiny.c - - - kerrno.c - 1 - ..\rt-thread\src\klibc\kerrno.c - - - kstring.c - 1 - ..\rt-thread\src\klibc\kstring.c - - - rt_vsscanf.c - 1 - ..\rt-thread\src\klibc\rt_vsscanf.c - - - - - libcpu - - - atomic_arm.c - 1 - ..\rt-thread\libcpu\arm\common\atomic_arm.c - - - div0.c - 1 - ..\rt-thread\libcpu\arm\common\div0.c - - - showmem.c - 1 - ..\rt-thread\libcpu\arm\common\showmem.c - - - context_rvds.S - 2 - ..\rt-thread\libcpu\arm\cortex-m4\context_rvds.S - - - cpuport.c - 1 - ..\rt-thread\libcpu\arm\cortex-m4\cpuport.c - - - - - STM32F4-CMSIS - - - startup_stm32f405xx.s - 2 - ..\libs\stm32f4\STM32F4_CMSIS\Source\Templates\arm\startup_stm32f405xx.s - - - system_stm32f4xx.c - 1 - ..\libs\stm32f4\STM32F4_CMSIS\Source\Templates\system_stm32f4xx.c - - - - - STM32F4-HAL - - - stm32f4xx_hal_gpio.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_gpio.c - - - stm32f4xx_hal_rtc.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_rtc.c - - - stm32f4xx_hal_cryp.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_cryp.c - - - stm32f4xx_hal_rcc.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_rcc.c - - - stm32f4xx_hal_can.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_can.c - - - stm32f4xx_hal_cortex.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_cortex.c - - - stm32f4xx_hal_rng.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_rng.c - - - stm32f4xx_hal_cryp_ex.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_cryp_ex.c - - - stm32f4xx_hal_wwdg.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_wwdg.c - - - stm32f4xx_hal_flash.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_flash.c - - - stm32f4xx_hal_tim_ex.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_tim_ex.c - - - stm32f4xx_hal_pwr_ex.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_pwr_ex.c - - - stm32f4xx_hal_iwdg.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_iwdg.c - - - stm32f4xx_hal_uart.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_uart.c - - - stm32f4xx_hal_flash_ramfunc.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_flash_ramfunc.c - - - stm32f4xx_hal_tim.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_tim.c - - - stm32f4xx_hal_crc.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_crc.c - - - stm32f4xx_hal_rcc_ex.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_rcc_ex.c - - - stm32f4xx_hal_dma_ex.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_dma_ex.c - - - stm32f4xx_hal_usart.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_usart.c - - - stm32f4xx_hal_lptim.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_lptim.c - - - stm32f4xx_hal_i2c_ex.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_i2c_ex.c - - - stm32f4xx_hal_rtc_ex.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_rtc_ex.c - - - stm32f4xx_hal_cec.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_cec.c - - - stm32f4xx_hal_pwr.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_pwr.c - - - stm32f4xx_hal_i2c.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_i2c.c - - - stm32f4xx_hal_dma.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_dma.c - - - stm32f4xx_hal_flash_ex.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal_flash_ex.c - - - stm32f4xx_hal.c - 1 - ..\libs\stm32f4\STM32F4_HAL\Src\stm32f4xx_hal.c - - - - - - - - - - - - - -