修改了下个单元模块的大小,降低了点内存占用
This commit is contained in:
parent
81693fe158
commit
d7a851b5ba
|
@ -193,7 +193,7 @@
|
||||||
"<virtual_root>/drivers/src/driver_usart.c",
|
"<virtual_root>/drivers/src/driver_usart.c",
|
||||||
"<virtual_root>/drivers/src/common.c"
|
"<virtual_root>/drivers/src/common.c"
|
||||||
],
|
],
|
||||||
"toolchain": "AC5",
|
"toolchain": "AC6",
|
||||||
"compileConfig": {
|
"compileConfig": {
|
||||||
"cpuType": "Cortex-M0+",
|
"cpuType": "Cortex-M0+",
|
||||||
"floatingPointHardware": "none",
|
"floatingPointHardware": "none",
|
||||||
|
@ -206,7 +206,7 @@
|
||||||
"id": 1,
|
"id": 1,
|
||||||
"mem": {
|
"mem": {
|
||||||
"startAddr": "0x20000000",
|
"startAddr": "0x20000000",
|
||||||
"size": "0x5000"
|
"size": "0x4000"
|
||||||
},
|
},
|
||||||
"isChecked": true,
|
"isChecked": true,
|
||||||
"noInit": false
|
"noInit": false
|
||||||
|
@ -313,12 +313,6 @@
|
||||||
"command": "cd .\\MDK && copy \"${OutDir}\\${ProjectName}.axf\" \"Objects\\${ProjectName}.axf\"",
|
"command": "cd .\\MDK && copy \"${OutDir}\\${ProjectName}.axf\" \"Objects\\${ProjectName}.axf\"",
|
||||||
"disable": false,
|
"disable": false,
|
||||||
"abortAfterFailed": true
|
"abortAfterFailed": true
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "\"D:\\SXDT\\Official_information\\HDDZ\\demo\\CIU32_L051_PROJECT\\USART1_Interrupt - RT-Thread\\keil5_disp_size_bar\\keil5_disp_size_bar.exe\"",
|
|
||||||
"command": "cd .\\MDK && \"D:\\SXDT\\Official_information\\HDDZ\\demo\\CIU32_L051_PROJECT\\USART1_Interrupt - RT-Thread\\keil5_disp_size_bar\\keil5_disp_size_bar.exe\"",
|
|
||||||
"disable": false,
|
|
||||||
"abortAfterFailed": true
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"global": {
|
"global": {
|
||||||
|
@ -344,15 +338,23 @@
|
||||||
"AC6": {
|
"AC6": {
|
||||||
"version": 3,
|
"version": 3,
|
||||||
"beforeBuildTasks": [],
|
"beforeBuildTasks": [],
|
||||||
"afterBuildTasks": [],
|
"afterBuildTasks": [
|
||||||
|
{
|
||||||
|
"name": "\"D:\\SXDT\\Official_information\\HDDZ\\demo\\CIU32_L051_PROJECT\\USART1_Interrupt - RT-Thread\\keil5_disp_size_bar\\keil5_disp_size_bar.exe\"",
|
||||||
|
"disable": false,
|
||||||
|
"abortAfterFailed": true,
|
||||||
|
"command": "cd .\\MDK && \"D:\\SXDT\\Official_information\\HDDZ\\demo\\CIU32_L051_PROJECT\\USART1_Interrupt - RT-Thread\\keil5_disp_size_bar\\keil5_disp_size_bar.exe\""
|
||||||
|
}
|
||||||
|
],
|
||||||
"global": {
|
"global": {
|
||||||
"output-debug-info": "enable"
|
"output-debug-info": "enable"
|
||||||
},
|
},
|
||||||
"c/cpp-compiler": {
|
"c/cpp-compiler": {
|
||||||
"optimization": "level-image-size",
|
"optimization": "level-image-size",
|
||||||
"language-c": "c99",
|
"language-c": "gnu99",
|
||||||
"language-cpp": "c++98",
|
"language-cpp": "gnu++98",
|
||||||
"warnings": "ac5-like-warnings"
|
"warnings": "ac5-like-warnings",
|
||||||
|
"link-time-optimization": true
|
||||||
},
|
},
|
||||||
"asm-compiler": {
|
"asm-compiler": {
|
||||||
"$use": "asm-auto"
|
"$use": "asm-auto"
|
||||||
|
|
Binary file not shown.
|
@ -26,26 +26,86 @@ Project File Date: 09/19/2024
|
||||||
|
|
||||||
<h2>Output:</h2>
|
<h2>Output:</h2>
|
||||||
*** Using Compiler 'V6.21', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
|
*** Using Compiler 'V6.21', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
|
||||||
Build target 'USART1_Interrupt'
|
Rebuild target 'USART1_Interrupt'
|
||||||
Note: source file '..\RTOS\components\drivers\src\dev_pin.c' - object file renamed from '.\dev_pin.o' to '.\dev_pin_1.o'.
|
assembling startup_ciu32l051.s...
|
||||||
compiling cpu.c...
|
|
||||||
compiling slab.c...
|
|
||||||
compiling bsp_io_dev.c...
|
|
||||||
compiling bsp_button.c...
|
compiling bsp_button.c...
|
||||||
|
compiling bsp_rtc.c...
|
||||||
|
compiling finsh_port.c...
|
||||||
|
compiling bsp_io_dev.c...
|
||||||
|
compiling main.c...
|
||||||
|
compiling bsp_wdg.c...
|
||||||
|
compiling bsp_sensor.c...
|
||||||
|
compiling bsp_adc.c...
|
||||||
|
compiling bsp_history.c...
|
||||||
|
compiling msh.c...
|
||||||
|
compiling cmd.c...
|
||||||
compiling bsp_flash.c...
|
compiling bsp_flash.c...
|
||||||
|
compiling shell.c...
|
||||||
|
compiling board.c...
|
||||||
|
compiling clock.c...
|
||||||
|
compiling components.c...
|
||||||
|
compiling cpu.c...
|
||||||
|
compiling cpuport.c...
|
||||||
compiling idle.c...
|
compiling idle.c...
|
||||||
compiling ulog.c...
|
compiling irq.c...
|
||||||
|
compiling memheap.c...
|
||||||
|
compiling mempool.c...
|
||||||
|
assembling context_rvds.S...
|
||||||
|
compiling mem.c...
|
||||||
|
compiling kservice.c...
|
||||||
|
compiling slab.c...
|
||||||
|
compiling object.c...
|
||||||
|
compiling scheduler.c...
|
||||||
compiling ipc.c...
|
compiling ipc.c...
|
||||||
|
compiling timer.c...
|
||||||
|
compiling thread.c...
|
||||||
|
compiling device.c...
|
||||||
|
compiling drv_common.c...
|
||||||
|
compiling drv_gpio.c...
|
||||||
|
compiling ciu32l051_std.c...
|
||||||
|
compiling ciu32l051_std_adc.c...
|
||||||
|
compiling drv_uart.c...
|
||||||
|
compiling ciu32l051_std_comp.c...
|
||||||
|
compiling ciu32l051_std_aes.c...
|
||||||
|
compiling ciu32l051_std_crc.c...
|
||||||
|
compiling ciu32l051_std_dma.c...
|
||||||
|
compiling ciu32l051_std_exti.c...
|
||||||
|
compiling ciu32l051_std_flash.c...
|
||||||
|
compiling ciu32l051_std_i2c.c...
|
||||||
|
compiling ciu32l051_std_gpio.c...
|
||||||
|
compiling ciu32l051_std_lcd.c...
|
||||||
|
compiling ciu32l051_std_lptim.c...
|
||||||
|
compiling ciu32l051_std_lpuart.c...
|
||||||
|
compiling ciu32l051_std_pmu.c...
|
||||||
|
compiling ciu32l051_std_rcc.c...
|
||||||
|
compiling ciu32l051_std_tamp.c...
|
||||||
|
compiling ciu32l051_std_rtc.c...
|
||||||
|
compiling ciu32l051_std_spi.c...
|
||||||
|
compiling ciu32l051_std_trng.c...
|
||||||
|
compiling ciu32l051_std_tim.c...
|
||||||
|
compiling SEGGER_RTT_printf.c...
|
||||||
|
compiling system_ciu32l051.c...
|
||||||
|
compiling ciu32l051_std_usart.c...
|
||||||
|
compiling lwutil.c...
|
||||||
|
compiling lwrb.c...
|
||||||
|
compiling flexible_button.c...
|
||||||
|
compiling SEGGER_RTT.c...
|
||||||
|
compiling dev_pin.c...
|
||||||
|
compiling agile_led.c...
|
||||||
|
compiling ringbuffer.c...
|
||||||
|
compiling completion.c...
|
||||||
|
compiling console_be.c...
|
||||||
|
compiling ulog.c...
|
||||||
linking...
|
linking...
|
||||||
Program Size: Code=40354 RO-data=7954 RW-data=136 ZI-data=11008
|
Program Size: Code=40382 RO-data=7790 RW-data=136 ZI-data=10368
|
||||||
FromELF: creating hex file...
|
FromELF: creating hex file...
|
||||||
After Build - User command #1: "D:\SXDT\Official_information\HDDZ\demo\CIU32_L051_PROJECT\USART1_Interrupt - RT-Thread\keil5_disp_size_bar\keil5_disp_size_bar.exe"
|
After Build - User command #1: "D:\SXDT\Official_information\HDDZ\demo\CIU32_L051_PROJECT\USART1_Interrupt - RT-Thread\keil5_disp_size_bar\keil5_disp_size_bar.exe"
|
||||||
ram:
|
ram:
|
||||||
RW_IRAM1 :0x20000000
|
RW_IRAM1 :0x20000000
|
||||||
16.00 KB :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö_______| 68.02 % ( 10.88 KB / 16.00 KB) [5240 B]
|
16.00 KB :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö________| 64.11 % ( 10.26 KB / 16.00 KB) [5880 B]
|
||||||
flash:
|
flash:
|
||||||
ER_IROM1 :0x8000000
|
ER_IROM1 :0x8000000
|
||||||
64.00 KB :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö______| 73.71 % ( 47.18 KB / 64.00 KB) [17228 B]
|
64.00 KB :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö______| 73.50 % ( 47.04 KB / 64.00 KB) [17364 B]
|
||||||
".\CIU32_L051_M307R.axf" - 0 Error(s), 0 Warning(s).
|
".\CIU32_L051_M307R.axf" - 0 Error(s), 0 Warning(s).
|
||||||
|
|
||||||
<h2>Software Packages used:</h2>
|
<h2>Software Packages used:</h2>
|
||||||
|
@ -59,7 +119,7 @@ Package Vendor: HED
|
||||||
C:/Users/16005/AppData/Local/Arm/Packs/HED/CIU32L0xx_DFP/1.2.5/Drivers/CMSIS/Device/CIU32L051/Include
|
C:/Users/16005/AppData/Local/Arm/Packs/HED/CIU32L0xx_DFP/1.2.5/Drivers/CMSIS/Device/CIU32L051/Include
|
||||||
|
|
||||||
<h2>Collection of Component Files used:</h2>
|
<h2>Collection of Component Files used:</h2>
|
||||||
Build Time Elapsed: 00:00:01
|
Build Time Elapsed: 00:00:03
|
||||||
</pre>
|
</pre>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -63,7 +63,7 @@
|
||||||
".\lwutil.o"
|
".\lwutil.o"
|
||||||
".\agile_led.o"
|
".\agile_led.o"
|
||||||
".\flexible_button.o"
|
".\flexible_button.o"
|
||||||
".\dev_pin_1.o"
|
".\dev_pin.o"
|
||||||
".\ringbuffer.o"
|
".\ringbuffer.o"
|
||||||
".\completion.o"
|
".\completion.o"
|
||||||
".\ulog.o"
|
".\ulog.o"
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because one or more lines are too long
|
@ -257,7 +257,7 @@
|
||||||
|
|
||||||
<Group>
|
<Group>
|
||||||
<GroupName>User/src</GroupName>
|
<GroupName>User/src</GroupName>
|
||||||
<tvExp>0</tvExp>
|
<tvExp>1</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<cbSel>0</cbSel>
|
<cbSel>0</cbSel>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
Dependencies for Project 'USART1_Interrupt', Target 'USART1_Interrupt': (DO NOT MODIFY !)
|
Dependencies for Project 'USART1_Interrupt', Target 'USART1_Interrupt': (DO NOT MODIFY !)
|
||||||
CompilerVersion: 6210000::V6.21::ARMCLANG
|
CompilerVersion: 6210000::V6.21::ARMCLANG
|
||||||
F (..\user\Source\main.c)(0x66EBD3FF)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./main.o -MD)
|
F (..\user\Source\main.c)(0x66ECE1D4)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./main.o -MD)
|
||||||
I (..\RTOS\components\finsh\finsh_config.ha.\RTOS\inc\rtdebug.h)(0x00000000)
|
I (..\RTOS\components\finsh\finsh_config.ha.\RTOS\inc\rtdebug.h)(0x00000000)
|
||||||
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.ha.\RTOS\inc\rtservice.h)(0x00000000)
|
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.ha.\RTOS\inc\rtservice.h)(0x00000000)
|
||||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std.h)(0x66138664)
|
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std.h)(0x66138664)
|
||||||
|
@ -151,7 +151,7 @@ I (C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h)(0x6569B012)
|
||||||
I (..\RTOS\components\drivers\inc\completion.h)(0x66EBC82A)
|
I (..\RTOS\components\drivers\inc\completion.h)(0x66EBC82A)
|
||||||
I (..\RTOS\components\utilities\ulog\ulog.h)(0x66D94573)
|
I (..\RTOS\components\utilities\ulog\ulog.h)(0x66D94573)
|
||||||
I (..\RTOS\components\utilities\ulog\ulog_def.h)(0x666E44C6)
|
I (..\RTOS\components\utilities\ulog\ulog_def.h)(0x666E44C6)
|
||||||
F (..\bsp\src\bsp_flash.c)(0x66EBE64F)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./bsp_flash.o -MD)
|
F (..\bsp\src\bsp_flash.c)(0x66ECE04C)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./bsp_flash.o -MD)
|
||||||
I (..\RTOS\inc\rtthread.hl.\RTOS\rtconfig.h)(0x00000000)
|
I (..\RTOS\inc\rtthread.hl.\RTOS\rtconfig.h)(0x00000000)
|
||||||
I (..\RTOS\components\finsh\finsh_config.hh.\RTOS\inc\rtdebug.h)(0x00000000)
|
I (..\RTOS\components\finsh\finsh_config.hh.\RTOS\inc\rtdebug.h)(0x00000000)
|
||||||
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.hh.\RTOS\inc\rtservice.h)(0x00000000)
|
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.hh.\RTOS\inc\rtservice.h)(0x00000000)
|
||||||
|
@ -294,7 +294,7 @@ I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_vrefbuf.h)(0x65800BC6)
|
||||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_wwdg.h)(0x65800BC5)
|
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_wwdg.h)(0x65800BC5)
|
||||||
I (..\RTOS\components\drivers\inc\dev_pin.h)(0x66D9591B)
|
I (..\RTOS\components\drivers\inc\dev_pin.h)(0x66D9591B)
|
||||||
I (..\RTOS\components\finsh\finsh_api.hi.\LIB\agile_led\agile_led.h)(0x00000000)
|
I (..\RTOS\components\finsh\finsh_api.hi.\LIB\agile_led\agile_led.h)(0x00000000)
|
||||||
F (..\bsp\src\bsp_adc.c)(0x66EA657B)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./bsp_adc.o -MD)
|
F (..\bsp\src\bsp_adc.c)(0x66ECE523)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./bsp_adc.o -MD)
|
||||||
I (..\RTOS\inc\rtthread.h\.\RTOS\rtconfig.h)(0x00000000)
|
I (..\RTOS\inc\rtthread.h\.\RTOS\rtconfig.h)(0x00000000)
|
||||||
I (..\RTOS\components\finsh\finsh_config.hh.\RTOS\inc\rtdebug.h)(0x00000000)
|
I (..\RTOS\components\finsh\finsh_config.hh.\RTOS\inc\rtdebug.h)(0x00000000)
|
||||||
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.hh.\RTOS\inc\rtservice.h)(0x00000000)
|
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.hh.\RTOS\inc\rtservice.h)(0x00000000)
|
||||||
|
@ -637,7 +637,7 @@ I (C:\Keil_v5\ARM\ARMCLANG\include\ctype.h)(0x6569B012)
|
||||||
I (C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h)(0x6569B012)
|
I (C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h)(0x6569B012)
|
||||||
I (C:\Keil_v5\ARM\ARMCLANG\include\string.h)(0x6569B012)
|
I (C:\Keil_v5\ARM\ARMCLANG\include\string.h)(0x6569B012)
|
||||||
I (..\RTOS\components\finsh\shell.hs.\RTOS\components\finsh\msh.h)(0x00000000)
|
I (..\RTOS\components\finsh\shell.hs.\RTOS\components\finsh\msh.h)(0x00000000)
|
||||||
F (..\RTOS\src\board.c)(0x66EA6B3D)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./board.o -MD)
|
F (..\RTOS\src\board.c)(0x66ECD406)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./board.o -MD)
|
||||||
I (..\RTOS\inc\rthw.hc.\RTOS\inc\rtthread.hN.\RTOS\rtconfig.h)(0x00000000)
|
I (..\RTOS\inc\rthw.hc.\RTOS\inc\rtthread.hN.\RTOS\rtconfig.h)(0x00000000)
|
||||||
I (..\RTOS\components\finsh\finsh_config.hh.\RTOS\inc\rtdebug.h)(0x00000000)
|
I (..\RTOS\components\finsh\finsh_config.hh.\RTOS\inc\rtdebug.h)(0x00000000)
|
||||||
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.hh.\RTOS\inc\rtservice.h)(0x00000000)
|
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.hh.\RTOS\inc\rtservice.h)(0x00000000)
|
||||||
|
@ -1538,8 +1538,8 @@ I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_vrefbuf.h)(0x65800BC6)
|
||||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_wwdg.h)(0x65800BC5)
|
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_wwdg.h)(0x65800BC5)
|
||||||
I (..\RTOS\components\drivers\inc\dev_pin.h)(0x66D9591B)
|
I (..\RTOS\components\drivers\inc\dev_pin.h)(0x66D9591B)
|
||||||
I (..\RTOS\components\finsh\finsh_api.hi.\RTOS\inc\rthw.h)(0x00000000)
|
I (..\RTOS\components\finsh\finsh_api.hi.\RTOS\inc\rthw.h)(0x00000000)
|
||||||
I (..\drivers\inc\drv_gpio.h)(0x66EBB44C)
|
I (..\drivers\inc\drv_gpio.h)(0x66ECE4F9)
|
||||||
F (..\drivers\src\drv_uart.c)(0x66EBD9C1)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./drv_uart.o -MD)
|
F (..\drivers\src\drv_uart.c)(0x66ECE819)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./drv_uart.o -MD)
|
||||||
I (..\RTOS\inc\rtthread.ht.\RTOS\rtconfig.h)(0x00000000)
|
I (..\RTOS\inc\rtthread.ht.\RTOS\rtconfig.h)(0x00000000)
|
||||||
I (..\RTOS\components\finsh\finsh_config.hh.\RTOS\inc\rtdebug.h)(0x00000000)
|
I (..\RTOS\components\finsh\finsh_config.hh.\RTOS\inc\rtdebug.h)(0x00000000)
|
||||||
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.hh.\RTOS\inc\rtservice.h)(0x00000000)
|
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.hh.\RTOS\inc\rtservice.h)(0x00000000)
|
||||||
|
@ -2587,7 +2587,7 @@ I (..\RTOS\components\utilities\ulog\ulog_def.h1.\RTOS\inc\rtdbg.h)(0x00000000)
|
||||||
F (..\LIB\FlexibleButton-master\flexible_button.c)(0x668D0631)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./flexible_button.o -MD)
|
F (..\LIB\FlexibleButton-master\flexible_button.c)(0x668D0631)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./flexible_button.o -MD)
|
||||||
I (..\LIB\FlexibleButton-master\flexible_button.h)(0x66B5791C)
|
I (..\LIB\FlexibleButton-master\flexible_button.h)(0x66B5791C)
|
||||||
I (C:\Keil_v5\ARM\ARMCLANG\include\stdint.h)(0x6569B012)
|
I (C:\Keil_v5\ARM\ARMCLANG\include\stdint.h)(0x6569B012)
|
||||||
F (..\RTOS\components\drivers\src\dev_pin.c)(0x66D91B77)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./dev_pin_1.o -MD)
|
F (..\RTOS\components\drivers\src\dev_pin.c)(0x66D91B77)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -I ../RTOS/inc -I ../RTOS/components/finsh -I ../drivers/inc -I ../Peripheral/CIU32L051_Lib/Include -I ../Peripheral/CMSIS/Core -I ../Peripheral/CMSIS/Device -I ../startup -I ../user/Include -I ../RTOS -I ../RTOS/components/utilities/ulog -I ../RTOS/components/utilities/ulog/backend -I ../RTOS/components/drivers/inc -I ../LIB/lwrb -I ../LIB/RTT -I ../bsp/inc -I ../LIB/LwUtil -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./dev_pin.o -MD)
|
||||||
I (..\RTOS\components\drivers\inc\dev_pin.h)(0x66D9591B)
|
I (..\RTOS\components\drivers\inc\dev_pin.h)(0x66D9591B)
|
||||||
I (..\RTOS\rtconfig.h\.\RTOS\components\finsh\finsh_config.h)(0x00000000)
|
I (..\RTOS\rtconfig.h\.\RTOS\components\finsh\finsh_config.h)(0x00000000)
|
||||||
I (..\RTOS\inc\rtdebug.hR.\RTOS\inc\rtdef.hs.\RTOS\inc\stdarg.h)(0x00000000)
|
I (..\RTOS\inc\rtdebug.hR.\RTOS\inc\rtdef.hs.\RTOS\inc\stdarg.h)(0x00000000)
|
||||||
|
|
|
@ -6,18 +6,18 @@
|
||||||
[Found keyword]: ----------Execution Region----------
|
[Found keyword]: ----------Execution Region----------
|
||||||
[name]: ER_IROM1
|
[name]: ER_IROM1
|
||||||
[Exec base]: 0x8000000
|
[Exec base]: 0x8000000
|
||||||
[Size]: 0xbcb4
|
[Size]: 0xbc2c
|
||||||
[Max]: 0x10000
|
[Max]: 0x10000
|
||||||
[Found keyword]: ----------Execution Region----------
|
[Found keyword]: ----------Execution Region----------
|
||||||
[name]: RW_IRAM1
|
[name]: RW_IRAM1
|
||||||
[Exec base]: 0x20000000
|
[Exec base]: 0x20000000
|
||||||
[Size]: 0x2b88
|
[Size]: 0x2908
|
||||||
[Max]: 0x4000
|
[Max]: 0x4000
|
||||||
[parse_keil_map over printf bar]:
|
[parse_keil_map over printf bar]:
|
||||||
RW_IRAM1 :0x20000000
|
RW_IRAM1 :0x20000000
|
||||||
16.00 KB :|ĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄö_______| 68.02 % ( 10.88 KB / 16.00 KB) [5240 B]
|
16.00 KB :|ĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄö________| 64.11 % ( 10.26 KB / 16.00 KB) [5880 B]
|
||||||
ER_IROM1 :0x8000000
|
ER_IROM1 :0x8000000
|
||||||
64.00 KB :|ĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄö______| 73.71 % ( 47.18 KB / 64.00 KB) [17228 B]
|
64.00 KB :|ĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄö______| 73.50 % ( 47.04 KB / 64.00 KB) [17364 B]
|
||||||
[export csv]: ./USART1_Interrupt_sort_by_flash.csv
|
[export csv]: ./USART1_Interrupt_sort_by_flash.csv
|
||||||
[export csv]: ./USART1_Interrupt_sort_by_ram.csv
|
[export csv]: ./USART1_Interrupt_sort_by_ram.csv
|
||||||
[export xlsx]: USART1_Interrupt_analysis.xlsx
|
[export xlsx]: USART1_Interrupt_analysis.xlsx
|
||||||
|
|
Binary file not shown.
|
@ -1,93 +1,94 @@
|
||||||
File_name,flash percent,flash,ram,Code,RO_data,RW_data,ZI_data
|
File_name,flash percent,flash,ram,Code,RO_data,RW_data,ZI_data
|
||||||
cmd.o,8.415171%,4473,0,2872,1601,0,0
|
cmd.o,8.436757%,4473,0,2872,1601,0,0
|
||||||
bsp_flash.o,7.512135%,3993,4,2952,1041,0,4
|
mc_p.l,7.022143%,3723,4,3586,133,4,0
|
||||||
mc_p.l,7.004177%,3723,4,3586,133,4,0
|
bsp_flash.o,6.727904%,3567,4,2660,907,0,4
|
||||||
ipc.o,5.971329%,3174,0,2160,1014,0,0
|
ipc.o,5.986646%,3174,0,2160,1014,0,0
|
||||||
drv_uart.o,4.242390%,2255,2212,2198,57,0,2212
|
thread.o,4.062771%,2154,12,1912,242,0,12
|
||||||
kservice.o,4.078715%,2168,140,1912,256,0,140
|
ulog.o,4.045796%,2145,333,1934,211,0,333
|
||||||
thread.o,4.052376%,2154,12,1912,242,0,12
|
kservice.o,3.987325%,2114,140,1858,256,0,140
|
||||||
ulog.o,4.035444%,2145,333,1934,211,0,333
|
main.o,3.713833%,1969,1036,1764,205,0,1036
|
||||||
main.o,3.809685%,2025,1292,1820,205,0,1292
|
mem.o,3.545965%,1880,72,1512,368,0,72
|
||||||
mem.o,3.536893%,1880,72,1512,368,0,72
|
shell.o,3.393187%,1799,153,1768,31,0,153
|
||||||
shell.o,3.384506%,1799,153,1768,31,0,153
|
drv_uart.o,3.280018%,1739,1420,1722,17,0,1420
|
||||||
agile_led.o,2.859616%,1520,708,1320,200,0,708
|
agile_led.o,2.866951%,1520,708,1320,200,0,708
|
||||||
bsp_history.o,2.504045%,1331,1436,1252,79,0,1436
|
bsp_history.o,2.518013%,1335,1180,1256,79,0,1180
|
||||||
timer.o,2.176694%,1157,20,1002,155,0,20
|
timer.o,2.182278%,1157,20,1002,155,0,20
|
||||||
object.o,2.007375%,1067,148,832,107,128,20
|
object.o,2.012524%,1067,148,832,107,128,20
|
||||||
drv_gpio.o,1.964104%,1044,0,244,800,0,0
|
drv_gpio.o,1.969143%,1044,0,244,800,0,0
|
||||||
mf_p.l,1.937766%,1030,0,1030,0,0,0
|
mf_p.l,1.942736%,1030,0,1030,0,0,0
|
||||||
bsp_button.o,1.932122%,1027,684,636,391,0,684
|
bsp_button.o,1.937078%,1027,684,636,391,0,684
|
||||||
device.o,1.847462%,982,0,670,312,0,0
|
device.o,1.852201%,982,0,670,312,0,0
|
||||||
msh.o,1.777853%,945,0,784,161,0,0
|
msh.o,1.782413%,945,0,784,161,0,0
|
||||||
bsp_sensor.o,1.691312%,899,1256,882,17,0,1256
|
bsp_sensor.o,1.695651%,899,1256,882,17,0,1256
|
||||||
scanf_fp.o,1.689431%,898,0,898,0,0,0
|
scanf_fp.o,1.693764%,898,0,898,0,0,0
|
||||||
_scanf.o,1.550213%,824,0,824,0,0,0
|
_scanf.o,1.554189%,824,0,824,0,0,0
|
||||||
bsp_rtc.o,1.315047%,699,6,600,99,0,6
|
bsp_adc.o,1.554189%,824,748,812,12,0,748
|
||||||
completion.o,1.241675%,660,0,572,88,0,0
|
bsp_rtc.o,1.318420%,699,6,600,99,0,6
|
||||||
lwrb.o,1.192761%,634,0,634,0,0,0
|
completion.o,1.244860%,660,0,572,88,0,0
|
||||||
flexible_button.o,1.015916%,540,16,540,0,0,16
|
lwrb.o,1.195820%,634,0,634,0,0,0
|
||||||
scheduler.o,0.967002%,514,280,496,18,0,280
|
flexible_button.o,1.018522%,540,16,540,0,0,16
|
||||||
dev_pin_1.o,0.914324%,486,76,448,38,0,76
|
scheduler.o,0.969482%,514,280,496,18,0,280
|
||||||
ciu32l051_std_lpuart.o,0.624600%,332,0,332,0,0,0
|
dev_pin.o,0.916670%,486,76,448,38,0,76
|
||||||
_scanf_int.o,0.620838%,330,0,330,0,0,0
|
ciu32l051_std_lpuart.o,0.626202%,332,0,332,0,0,0
|
||||||
cpuport.o,0.579448%,308,12,308,0,0,12
|
_scanf_int.o,0.622430%,330,0,330,0,0,0
|
||||||
board.o,0.523009%,278,0,278,0,0,0
|
cpuport.o,0.580935%,308,12,308,0,0,12
|
||||||
idle.o,0.507958%,270,416,248,22,0,416
|
board.o,0.524350%,278,0,278,0,0,0
|
||||||
components.o,0.459044%,244,0,228,16,0,0
|
idle.o,0.509261%,270,416,248,22,0,416
|
||||||
ddiv.o,0.451518%,240,0,240,0,0,0
|
components.o,0.460221%,244,0,228,16,0,0
|
||||||
depilogue.o,0.443993%,236,0,236,0,0,0
|
ddiv.o,0.452676%,240,0,240,0,0,0
|
||||||
ciu32l051_std_rtc.o,0.443993%,236,0,236,0,0,0
|
depilogue.o,0.445132%,236,0,236,0,0,0
|
||||||
_scanf_str.o,0.436468%,232,0,232,0,0,0
|
ciu32l051_std_rtc.o,0.445132%,236,0,236,0,0,0
|
||||||
bsp_wdg.o,0.436468%,232,656,220,12,0,656
|
_scanf_str.o,0.437587%,232,0,232,0,0,0
|
||||||
startup_ciu32l051.o,0.413892%,220,1024,28,192,0,1024
|
bsp_wdg.o,0.437587%,232,656,220,12,0,656
|
||||||
context_rvds.o,0.406366%,216,0,216,0,0,0
|
startup_ciu32l051.o,0.414953%,220,1024,28,192,0,1024
|
||||||
ciu32l051_std_rcc.o,0.406366%,216,0,216,0,0,0
|
context_rvds.o,0.407409%,216,0,216,0,0,0
|
||||||
dmul.o,0.391316%,208,0,208,0,0,0
|
ciu32l051_std_rcc.o,0.407409%,216,0,216,0,0,0
|
||||||
drv_common.o,0.383790%,204,0,204,0,0,0
|
dmul.o,0.392320%,208,0,208,0,0,0
|
||||||
system_ciu32l051.o,0.376265%,200,4,164,32,4,0
|
drv_common.o,0.384775%,204,0,204,0,0,0
|
||||||
ciu32l051_std_flash.o,0.353689%,188,0,188,0,0,0
|
system_ciu32l051.o,0.377230%,200,4,164,32,4,0
|
||||||
ciu32l051_std_usart.o,0.349927%,186,0,186,0,0,0
|
ciu32l051_std_flash.o,0.354597%,188,0,188,0,0,0
|
||||||
strtod.o,0.338639%,180,0,180,0,0,0
|
ciu32l051_std_usart.o,0.350824%,186,0,186,0,0,0
|
||||||
_strtoul.o,0.312300%,166,0,166,0,0,0
|
strtod.o,0.339507%,180,0,180,0,0,0
|
||||||
ciu32l051_std_gpio.o,0.289724%,154,0,154,0,0,0
|
_strtoul.o,0.313101%,166,0,166,0,0,0
|
||||||
ctype_o.o,0.265267%,141,0,8,133,0,0
|
ciu32l051_std_gpio.o,0.290467%,154,0,154,0,0,0
|
||||||
fepilogue.o,0.244572%,130,0,130,0,0,0
|
ciu32l051_std_adc.o,0.279150%,148,0,148,0,0,0
|
||||||
strtol.o,0.210709%,112,0,112,0,0,0
|
ctype_o.o,0.265947%,141,0,8,133,0,0
|
||||||
ciu32l051_std_dma.o,0.188133%,100,0,100,0,0,0
|
fepilogue.o,0.245200%,130,0,130,0,0,0
|
||||||
uldiv.o,0.180607%,96,0,96,0,0,0
|
strtol.o,0.211249%,112,0,112,0,0,0
|
||||||
console_be.o,0.169319%,90,48,86,4,0,48
|
ciu32l051_std_dma.o,0.188615%,100,0,100,0,0,0
|
||||||
bsp_io_dev.o,0.167438%,89,16,76,13,0,16
|
uldiv.o,0.181071%,96,0,96,0,0,0
|
||||||
irq.o,0.165557%,88,12,88,0,0,12
|
console_be.o,0.169754%,90,48,86,4,0,48
|
||||||
_sgetc.o,0.127930%,68,0,68,0,0,0
|
bsp_io_dev.o,0.167868%,89,16,76,13,0,16
|
||||||
uidiv_div0.o,0.116642%,62,0,62,0,0,0
|
irq.o,0.165981%,88,12,88,0,0,12
|
||||||
__0sscanf.o,0.112880%,60,0,60,0,0,0
|
_sgetc.o,0.128258%,68,0,68,0,0,0
|
||||||
bsp_adc.o,0.112880%,60,92,60,0,0,92
|
uidiv_div0.o,0.116941%,62,0,62,0,0,0
|
||||||
d2f.o,0.105354%,56,0,56,0,0,0
|
__0sscanf.o,0.113169%,60,0,60,0,0,0
|
||||||
clock.o,0.101592%,54,4,54,0,0,4
|
d2f.o,0.105625%,56,0,56,0,0,0
|
||||||
llmul.o,0.090304%,48,0,48,0,0,0
|
clock.o,0.101852%,54,4,54,0,0,4
|
||||||
init.o,0.090304%,48,0,48,0,0,0
|
llmul.o,0.090535%,48,0,48,0,0,0
|
||||||
m_ps.l,0.082778%,44,0,44,0,0,0
|
init.o,0.090535%,48,0,48,0,0,0
|
||||||
dcmplt.o,0.082778%,44,0,44,0,0,0
|
m_ps.l,0.082991%,44,0,44,0,0,0
|
||||||
dcmple.o,0.082778%,44,0,44,0,0,0
|
dcmplt.o,0.082991%,44,0,44,0,0,0
|
||||||
dcmpge.o,0.082778%,44,0,44,0,0,0
|
dcmple.o,0.082991%,44,0,44,0,0,0
|
||||||
scanf_char.o,0.082778%,44,0,44,0,0,0
|
dcmpge.o,0.082991%,44,0,44,0,0,0
|
||||||
atof.o,0.082778%,44,0,44,0,0,0
|
scanf_char.o,0.082991%,44,0,44,0,0,0
|
||||||
memseta.o,0.067728%,36,0,36,0,0,0
|
atof.o,0.082991%,44,0,44,0,0,0
|
||||||
memcpya.o,0.067728%,36,0,36,0,0,0
|
memseta.o,0.067901%,36,0,36,0,0,0
|
||||||
errno.o,0.067728%,36,4,32,0,4,0
|
memcpya.o,0.067901%,36,0,36,0,0,0
|
||||||
llushr.o,0.063965%,34,0,34,0,0,0
|
errno.o,0.067901%,36,4,32,0,4,0
|
||||||
llshl.o,0.060202%,32,0,32,0,0,0
|
llushr.o,0.064129%,34,0,34,0,0,0
|
||||||
strncmp.o,0.056440%,30,0,30,0,0,0
|
llshl.o,0.060357%,32,0,32,0,0,0
|
||||||
handlers.o,0.056440%,30,0,30,0,0,0
|
strncmp.o,0.056585%,30,0,30,0,0,0
|
||||||
_chval.o,0.056440%,30,0,30,0,0,0
|
handlers.o,0.056585%,30,0,30,0,0,0
|
||||||
dfltul.o,0.052677%,28,0,28,0,0,0
|
_chval.o,0.056585%,30,0,30,0,0,0
|
||||||
strncpy.o,0.048914%,26,0,26,0,0,0
|
dfltul.o,0.052812%,28,0,28,0,0,0
|
||||||
memcmp.o,0.048914%,26,0,26,0,0,0
|
strncpy.o,0.049040%,26,0,26,0,0,0
|
||||||
atoi.o,0.048914%,26,0,26,0,0,0
|
memcmp.o,0.049040%,26,0,26,0,0,0
|
||||||
ciu32l051_std.o,0.045152%,24,0,24,0,0,0
|
atoi.o,0.049040%,26,0,26,0,0,0
|
||||||
strchr.o,0.037627%,20,0,20,0,0,0
|
ciu32l051_std.o,0.045268%,24,0,24,0,0,0
|
||||||
isspace_o.o,0.033864%,18,0,18,0,0,0
|
strchr.o,0.037723%,20,0,20,0,0,0
|
||||||
strlen.o,0.026339%,14,0,14,0,0,0
|
isspace_o.o,0.033951%,18,0,18,0,0,0
|
||||||
entry9a.o,0.015051%,8,0,8,0,0,0
|
strlen.o,0.026406%,14,0,14,0,0,0
|
||||||
entry2.o,0.015051%,8,0,8,0,0,0
|
entry9a.o,0.015089%,8,0,8,0,0,0
|
||||||
entry5.o,0.007525%,4,0,4,0,0,0
|
entry2.o,0.015089%,8,0,8,0,0,0
|
||||||
|
entry5.o,0.007545%,4,0,4,0,0,0
|
||||||
|
|
|
|
@ -1,31 +1,31 @@
|
||||||
File_name,ram_percent,ram,flash,Code,RO_data,RW_data,ZI_data
|
File_name,ram_percent,ram,flash,Code,RO_data,RW_data,ZI_data
|
||||||
drv_uart.o,19.856373%,2212,2255,2198,57,0,2212
|
drv_uart.o,13.534122%,1420,1739,1722,17,0,1420
|
||||||
bsp_history.o,12.890485%,1436,1331,1252,79,0,1436
|
bsp_sensor.o,11.971025%,1256,899,882,17,0,1256
|
||||||
main.o,11.597846%,1292,2025,1820,205,0,1292
|
bsp_history.o,11.246664%,1180,1335,1256,79,0,1180
|
||||||
bsp_sensor.o,11.274686%,1256,899,882,17,0,1256
|
main.o,9.874190%,1036,1969,1764,205,0,1036
|
||||||
startup_ciu32l051.o,9.192101%,1024,220,28,192,0,1024
|
startup_ciu32l051.o,9.759817%,1024,220,28,192,0,1024
|
||||||
agile_led.o,6.355476%,708,1520,1320,200,0,708
|
bsp_adc.o,7.129241%,748,824,812,12,0,748
|
||||||
bsp_button.o,6.140036%,684,1027,636,391,0,684
|
agile_led.o,6.747998%,708,1520,1320,200,0,708
|
||||||
bsp_wdg.o,5.888690%,656,232,220,12,0,656
|
bsp_button.o,6.519253%,684,1027,636,391,0,684
|
||||||
idle.o,3.734291%,416,270,248,22,0,416
|
bsp_wdg.o,6.252383%,656,232,220,12,0,656
|
||||||
ulog.o,2.989228%,333,2145,1934,211,0,333
|
idle.o,3.964926%,416,270,248,22,0,416
|
||||||
scheduler.o,2.513465%,280,514,496,18,0,280
|
ulog.o,3.173847%,333,2145,1934,211,0,333
|
||||||
shell.o,1.373429%,153,1799,1768,31,0,153
|
scheduler.o,2.668700%,280,514,496,18,0,280
|
||||||
object.o,1.328546%,148,1067,832,107,128,20
|
shell.o,1.458254%,153,1799,1768,31,0,153
|
||||||
kservice.o,1.256732%,140,2168,1912,256,0,140
|
object.o,1.410599%,148,1067,832,107,128,20
|
||||||
bsp_adc.o,0.825853%,92,60,60,0,0,92
|
kservice.o,1.334350%,140,2114,1858,256,0,140
|
||||||
dev_pin_1.o,0.682226%,76,486,448,38,0,76
|
dev_pin.o,0.724361%,76,486,448,38,0,76
|
||||||
mem.o,0.646320%,72,1880,1512,368,0,72
|
mem.o,0.686237%,72,1880,1512,368,0,72
|
||||||
console_be.o,0.430880%,48,90,86,4,0,48
|
console_be.o,0.457491%,48,90,86,4,0,48
|
||||||
timer.o,0.179533%,20,1157,1002,155,0,20
|
timer.o,0.190621%,20,1157,1002,155,0,20
|
||||||
flexible_button.o,0.143627%,16,540,540,0,0,16
|
flexible_button.o,0.152497%,16,540,540,0,0,16
|
||||||
bsp_io_dev.o,0.143627%,16,89,76,13,0,16
|
bsp_io_dev.o,0.152497%,16,89,76,13,0,16
|
||||||
thread.o,0.107720%,12,2154,1912,242,0,12
|
thread.o,0.114373%,12,2154,1912,242,0,12
|
||||||
irq.o,0.107720%,12,88,88,0,0,12
|
irq.o,0.114373%,12,88,88,0,0,12
|
||||||
cpuport.o,0.107720%,12,308,308,0,0,12
|
cpuport.o,0.114373%,12,308,308,0,0,12
|
||||||
bsp_rtc.o,0.053860%,6,699,600,99,0,6
|
bsp_rtc.o,0.057186%,6,699,600,99,0,6
|
||||||
mc_p.l,0.035907%,4,3723,3586,133,4,0
|
mc_p.l,0.038124%,4,3723,3586,133,4,0
|
||||||
errno.o,0.035907%,4,36,32,0,4,0
|
errno.o,0.038124%,4,36,32,0,4,0
|
||||||
system_ciu32l051.o,0.035907%,4,200,164,32,4,0
|
system_ciu32l051.o,0.038124%,4,200,164,32,4,0
|
||||||
clock.o,0.035907%,4,54,54,0,0,4
|
clock.o,0.038124%,4,54,54,0,0,4
|
||||||
bsp_flash.o,0.035907%,4,3993,2952,1041,0,4
|
bsp_flash.o,0.038124%,4,3567,2660,907,0,4
|
||||||
|
|
|
BIN
MDK/board.o
BIN
MDK/board.o
Binary file not shown.
BIN
MDK/bsp_adc.o
BIN
MDK/bsp_adc.o
Binary file not shown.
BIN
MDK/bsp_flash.o
BIN
MDK/bsp_flash.o
Binary file not shown.
Binary file not shown.
BIN
MDK/drv_uart.o
BIN
MDK/drv_uart.o
Binary file not shown.
BIN
MDK/kservice.o
BIN
MDK/kservice.o
Binary file not shown.
BIN
MDK/main.o
BIN
MDK/main.o
Binary file not shown.
|
@ -53,6 +53,8 @@
|
||||||
// <c1>Using rt_using_heap
|
// <c1>Using rt_using_heap
|
||||||
// <i>Using rt_using_heap
|
// <i>Using rt_using_heap
|
||||||
#define RT_USING_HEAP
|
#define RT_USING_HEAP
|
||||||
|
|
||||||
|
// #define RT_USING_MEMHEAP
|
||||||
// </c>
|
// </c>
|
||||||
// <c1>Using rt_using_user_main
|
// <c1>Using rt_using_user_main
|
||||||
// <i>Using rt_using_user_main
|
// <i>Using rt_using_user_main
|
||||||
|
@ -147,7 +149,7 @@
|
||||||
// </c>
|
// </c>
|
||||||
// <c1>using tiny size of memory
|
// <c1>using tiny size of memory
|
||||||
// <i>using tiny size of memory
|
// <i>using tiny size of memory
|
||||||
//#define RT_USING_TINY_SIZE
|
#define RT_USING_TINY_SIZE
|
||||||
// </c>
|
// </c>
|
||||||
// </h>
|
// </h>
|
||||||
|
|
||||||
|
|
|
@ -98,9 +98,6 @@ void rt_hw_board_init()
|
||||||
#ifndef DEBUG_OUTPUT_SELECT
|
#ifndef DEBUG_OUTPUT_SELECT
|
||||||
SEGGER_RTT_Init();
|
SEGGER_RTT_Init();
|
||||||
#endif // DEBUG_OUTPUT_SELECT
|
#endif // DEBUG_OUTPUT_SELECT
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SysTick_Handler(void)
|
void SysTick_Handler(void)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @Author: mbw
|
* @Author: mbw
|
||||||
* @Date: 2024-09-05 15:04:14
|
* @Date: 2024-09-05 15:04:14
|
||||||
* @LastEditors: mbw && 1600520629@qq.com
|
* @LastEditors: mbw && 1600520629@qq.com
|
||||||
* @LastEditTime: 2024-09-14 16:22:29
|
* @LastEditTime: 2024-09-20 10:59:22
|
||||||
* @FilePath: \USART1_Interrupt - RT-Thread\bsp\inc\bsp_adc.h
|
* @FilePath: \USART1_Interrupt - RT-Thread\bsp\inc\bsp_adc.h
|
||||||
* @Description:
|
* @Description:
|
||||||
* @
|
* @
|
||||||
|
@ -35,12 +35,12 @@ typedef enum
|
||||||
// 存储采集的数据
|
// 存储采集的数据
|
||||||
extern rt_uint16_t adc_buffer[ADC_BUFFER_SIZE];
|
extern rt_uint16_t adc_buffer[ADC_BUFFER_SIZE];
|
||||||
|
|
||||||
#define VIN_THREAD_STACK_SIZE (1024)
|
#define VIN_THREAD_STACK_SIZE (512)
|
||||||
#define VIN_THREAD_PRIORITY (10)
|
#define VIN_THREAD_PRIORITY (10)
|
||||||
#define VIN_THREAD_TIMESLICE (20)
|
#define VIN_THREAD_TIMESLICE (20)
|
||||||
|
|
||||||
// #define VIN_VOLTAGE_RATIO (4.19148936F)
|
#define VIN_VOLTAGE_RATIO (4.19148936F)
|
||||||
#define VIN_VOLTAGE_RATIO (1)
|
// #define VIN_VOLTAGE_RATIO (1)
|
||||||
// 不含输入二极管的压降
|
// 不含输入二极管的压降
|
||||||
// (4.7/19.7) * 13V = 3.1V, 3.1/3.3*4096 = 3723
|
// (4.7/19.7) * 13V = 3.1V, 3.1/3.3*4096 = 3723
|
||||||
// #define VIN_ADC_HIGH_THRESHOLD (uint16_t)3847 // 13V
|
// #define VIN_ADC_HIGH_THRESHOLD (uint16_t)3847 // 13V
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
/*
|
/***
|
||||||
* @Author: MBW
|
* @Author: mbw
|
||||||
* @Date: 2024-03-20 17:12:31
|
* @Date: 2024-08-23 10:14:23
|
||||||
* @LastEditors: MBW
|
* @LastEditors: mbw && 1600520629@qq.com
|
||||||
* @LastEditTime: 2024-03-27 09:57:40
|
* @LastEditTime: 2024-09-20 10:42:54
|
||||||
* @FilePath: \CX32L003_PROJECT\bsp\inc\bsp_history.h
|
* @FilePath: \USART1_Interrupt - RT-Thread\bsp\inc\bsp_history.h
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
* @
|
||||||
|
* @Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
|
||||||
*/
|
*/
|
||||||
#ifndef __BSP_HISTORY_H__
|
#ifndef __BSP_HISTORY_H__
|
||||||
#define __BSP_HISTORY_H__
|
#define __BSP_HISTORY_H__
|
||||||
|
@ -13,7 +14,7 @@
|
||||||
#include "rtthread.h"
|
#include "rtthread.h"
|
||||||
#include "rtdef.h"
|
#include "rtdef.h"
|
||||||
|
|
||||||
#define HR_THREAD_STACK_SIZE (1280)
|
#define HR_THREAD_STACK_SIZE (1024)
|
||||||
#define HR_THREAD_PRIORITY (10)
|
#define HR_THREAD_PRIORITY (10)
|
||||||
#define HR_THREAD_TIMESLICE (5)
|
#define HR_THREAD_TIMESLICE (5)
|
||||||
|
|
||||||
|
@ -40,30 +41,6 @@ typedef enum
|
||||||
kPowerOnRecord, // at least 50
|
kPowerOnRecord, // at least 50
|
||||||
kSensorFailureRecord, // at least 1
|
kSensorFailureRecord, // at least 1
|
||||||
kGetCurrentTime,
|
kGetCurrentTime,
|
||||||
|
|
||||||
/*扩展指令*/
|
|
||||||
// 以下是在国标原基础上所扩展的
|
|
||||||
kGetCurrentTimeSecond, // include second
|
|
||||||
|
|
||||||
kSetCurrentTime,
|
|
||||||
kSetFactoryTime,
|
|
||||||
kSetExpirationTime,
|
|
||||||
|
|
||||||
kSetAlarmValue,
|
|
||||||
|
|
||||||
kOutSysStatus, // 0x0E 不能动,因为说明书里面写好了
|
|
||||||
|
|
||||||
kGetAlarmValue,
|
|
||||||
|
|
||||||
kGetMqVoltage,
|
|
||||||
|
|
||||||
kSetSysStatus,
|
|
||||||
kGetSysStatus,
|
|
||||||
|
|
||||||
kEraseRecords,
|
|
||||||
|
|
||||||
kGetFactoryTime,
|
|
||||||
kGetExpirationTime,
|
|
||||||
} TeFrameC2;
|
} TeFrameC2;
|
||||||
|
|
||||||
#pragma pack(1)
|
#pragma pack(1)
|
||||||
|
|
|
@ -281,7 +281,7 @@ int BSP_Vin_Detection_Init(void)
|
||||||
return RT_EOK;
|
return RT_EOK;
|
||||||
}
|
}
|
||||||
#ifdef RT_USING_COMPONENTS_INIT
|
#ifdef RT_USING_COMPONENTS_INIT
|
||||||
// INIT_APP_EXPORT(BSP_Vin_Detection_Init);
|
INIT_APP_EXPORT(BSP_Vin_Detection_Init);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @Author: mbw
|
* @Author: mbw
|
||||||
* @Date: 2024-08-22 16:15:08
|
* @Date: 2024-08-22 16:15:08
|
||||||
* @LastEditors: mbw && 1600520629@qq.com
|
* @LastEditors: mbw && 1600520629@qq.com
|
||||||
* @LastEditTime: 2024-09-19 16:51:57
|
* @LastEditTime: 2024-09-20 10:39:08
|
||||||
* @FilePath: \USART1_Interrupt - RT-Thread\bsp\src\bsp_flash.c
|
* @FilePath: \USART1_Interrupt - RT-Thread\bsp\src\bsp_flash.c
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
||||||
|
@ -857,44 +857,44 @@ ErrorStatus Flash_Write_Record(TeRecord record)
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void TEST_Flash_Write_Record(int argc, char **argv)
|
// static void TEST_Flash_Write_Record(int argc, char **argv)
|
||||||
{
|
// {
|
||||||
|
|
||||||
if (argc == 3)
|
// if (argc == 3)
|
||||||
{
|
// {
|
||||||
TeRecord record = (TeRecord)atoi(argv[1]);
|
// TeRecord record = (TeRecord)atoi(argv[1]);
|
||||||
int num = atoi(argv[2]);
|
// int num = atoi(argv[2]);
|
||||||
|
|
||||||
for (int i = 1; i <= num; i++)
|
// for (int i = 1; i <= num; i++)
|
||||||
{
|
// {
|
||||||
RTT_LOG_I("Flash_Write_(%d)Record:%d", record, i);
|
// RTT_LOG_I("Flash_Write_(%d)Record:%d", record, i);
|
||||||
Flash_Write_Record(record);
|
// Flash_Write_Record(record);
|
||||||
rt_thread_mdelay(200); // 1min
|
// rt_thread_mdelay(200); // 1min
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
LOG_E("TEST_Flash_Write_Record --use _cmd_ [record(0~6)] [num]");
|
// LOG_E("TEST_Flash_Write_Record --use _cmd_ [record(0~6)] [num]");
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
MSH_CMD_EXPORT(TEST_Flash_Write_Record, "TEST_Flash_Write_Record");
|
// MSH_CMD_EXPORT(TEST_Flash_Write_Record, "TEST_Flash_Write_Record");
|
||||||
|
|
||||||
static void TEST_Flash_Read_Record(int argc, char **argv)
|
// static void TEST_Flash_Read_Record(int argc, char **argv)
|
||||||
{
|
// {
|
||||||
TuFlashHrRecordFrame RecoderFrame = {0};
|
// TuFlashHrRecordFrame RecoderFrame = {0};
|
||||||
|
|
||||||
if (argc == 3)
|
// if (argc == 3)
|
||||||
{
|
// {
|
||||||
TeRecord record = (TeRecord)atoi(argv[1]);
|
// TeRecord record = (TeRecord)atoi(argv[1]);
|
||||||
int num = atoi(argv[2]);
|
// int num = atoi(argv[2]);
|
||||||
Flash_Read_Record(&RecoderFrame, record, num);
|
// Flash_Read_Record(&RecoderFrame, record, num);
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
LOG_E("TEST_Flash_Read_Record --use _cmd_ [record(0~6)] [num]");
|
// LOG_E("TEST_Flash_Read_Record --use _cmd_ [record(0~6)] [num]");
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
MSH_CMD_EXPORT(TEST_Flash_Read_Record, "TEST_Flash_Read_Record");
|
// MSH_CMD_EXPORT(TEST_Flash_Read_Record, "TEST_Flash_Read_Record");
|
||||||
|
|
||||||
/*获取当前项目记录数*/
|
/*获取当前项目记录数*/
|
||||||
uint16_t Flash_GetNum_Records(TeRecord record)
|
uint16_t Flash_GetNum_Records(TeRecord record)
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
#define NET_PWR_PIN GET_PIN(A, 1)
|
#define NET_PWR_PIN GET_PIN(A, 1)
|
||||||
#define NET_RST_PIN GET_PIN(A, 2)
|
#define NET_RST_PIN GET_PIN(A, 2)
|
||||||
#define USIM_DECT_PIN GET_PIN(A, 3)
|
#define USIM_DECT_PIN GET_PIN(A, 3)
|
||||||
#define ENABLE_3_8_V GET_PIN(A, 4)
|
#define ENABLE_3_8_V GET_PIN(A, 5)
|
||||||
|
|
||||||
/*voice 引脚*/
|
/*voice 引脚*/
|
||||||
// #define VOICE_CLK_PIN GET_PIN(B, 12)
|
// #define VOICE_CLK_PIN GET_PIN(B, 12)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @Author: mbw
|
* @Author: mbw
|
||||||
* @Date: 2024-08-20 15:51:16
|
* @Date: 2024-08-20 15:51:16
|
||||||
* @LastEditors: mbw && 1600520629@qq.com
|
* @LastEditors: mbw && 1600520629@qq.com
|
||||||
* @LastEditTime: 2024-09-19 16:01:01
|
* @LastEditTime: 2024-09-20 10:06:56
|
||||||
* @FilePath: \USART1_Interrupt - RT-Thread\drivers\inc\drv_uart.h
|
* @FilePath: \USART1_Interrupt - RT-Thread\drivers\inc\drv_uart.h
|
||||||
* @Description:
|
* @Description:
|
||||||
* @
|
* @
|
||||||
|
@ -50,11 +50,12 @@ typedef enum
|
||||||
|
|
||||||
#define UART1_RX_BUFFER_LENGTH (128U)
|
#define UART1_RX_BUFFER_LENGTH (128U)
|
||||||
#define UART1_RX_RB_LENGTH (128U)
|
#define UART1_RX_RB_LENGTH (128U)
|
||||||
#define UART1_TX_RB_LENGTH (768U)
|
#define UART1_TX_RB_LENGTH (896U)
|
||||||
|
|
||||||
#define UART1_DMA_RX_CHANNEL DMA_CHANNEL_0
|
#define UART1_DMA_RX_CHANNEL DMA_CHANNEL_0
|
||||||
#define UART1_DMA_TX_CHANNEL DMA_CHANNEL_1
|
#define UART1_DMA_TX_CHANNEL DMA_CHANNEL_1
|
||||||
|
|
||||||
|
|
||||||
#define UART1_DMA_RX_IRQ_CHANNEL DMA_Channel0_IRQn
|
#define UART1_DMA_RX_IRQ_CHANNEL DMA_Channel0_IRQn
|
||||||
#define UART1_DMA_TX_IRQ_CHANNEL DMA_Channel1_IRQn
|
#define UART1_DMA_TX_IRQ_CHANNEL DMA_Channel1_IRQn
|
||||||
|
|
||||||
|
@ -62,28 +63,16 @@ rt_uint32_t UART1_Write(const void* data, size_t len);
|
||||||
rt_uint32_t UART1_SendString(const char* str);
|
rt_uint32_t UART1_SendString(const char* str);
|
||||||
|
|
||||||
/*-------------------------------------------UART2-------------------------------------------------*/
|
/*-------------------------------------------UART2-------------------------------------------------*/
|
||||||
// #define UART2_RX_THREAD_STACK_SIZE (1152)
|
|
||||||
// #define UART2_RX_THREAD_PRIORITY (10)
|
|
||||||
// #define UART2_RX_THREAD_TIMESLICE (5)
|
|
||||||
|
|
||||||
#define UART2_RX_BUFFER_LENGTH (64U)
|
#define UART2_RX_BUFFER_LENGTH (64U)
|
||||||
#define UART2_RX_RB_LENGTH (128U)
|
#define UART2_RX_RB_LENGTH (128U)
|
||||||
|
|
||||||
/*-------------------------------------------UART3-------------------------------------------------*/
|
/*-------------------------------------------UART3-------------------------------------------------*/
|
||||||
// #define UART3_RX_THREAD_STACK_SIZE (1152)
|
|
||||||
// #define UART3_RX_THREAD_PRIORITY (15)
|
|
||||||
// #define UART3_RX_THREAD_TIMESLICE (5)
|
|
||||||
|
|
||||||
#define UART3_RX_BUFFER_LENGTH (256U)
|
#define UART3_RX_BUFFER_LENGTH (256U)
|
||||||
#define UART3_RX_RB_LENGTH (128U)
|
#define UART3_RX_RB_LENGTH (128U)
|
||||||
#define UART3_TX_RB_LENGTH (256U)
|
#define UART3_TX_RB_LENGTH (256U)
|
||||||
|
|
||||||
|
|
||||||
/*-------------------------------------------LPUART1-------------------------------------------------*/
|
/*-------------------------------------------LPUART1-------------------------------------------------*/
|
||||||
// #define LPUART1_RX_THREAD_STACK_SIZE (512)
|
|
||||||
// #define LPUART1_RX_THREAD_PRIORITY (10)
|
|
||||||
// #define LPUART1_RX_THREAD_TIMESLICE (5)
|
|
||||||
|
|
||||||
#define LPUART1_RX_BUFFER_LENGTH (16U)
|
#define LPUART1_RX_BUFFER_LENGTH (16U)
|
||||||
#define LPUART1_RX_RB_LENGTH (16U)
|
#define LPUART1_RX_RB_LENGTH (16U)
|
||||||
#define LPUART1_TX_RB_LENGTH (128U)
|
#define LPUART1_TX_RB_LENGTH (128U)
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define LOG_LVL LOG_LVL_DBG
|
#define LOG_LVL LOG_LVL_DBG
|
||||||
#include <ulog.h>
|
#include <ulog.h>
|
||||||
|
|
||||||
#define UART1_DMA_RX_ENABLE
|
// #define UART1_DMA_RX_ENABLE
|
||||||
|
|
||||||
struct rt_semaphore uart3_rx_sem;
|
struct rt_semaphore uart3_rx_sem;
|
||||||
/*-------------------------------------用户自定义-----------------*/
|
/*-------------------------------------用户自定义-----------------*/
|
||||||
|
@ -138,7 +138,6 @@ void Uart1_Dma_Rec_Data_Cfg(void)
|
||||||
dma_config.src_addr = (uint32_t)&USART1->RDR;
|
dma_config.src_addr = (uint32_t)&USART1->RDR;
|
||||||
dma_config.dst_addr = (uint32_t)_uart1_rx_dma_buffer;
|
dma_config.dst_addr = (uint32_t)_uart1_rx_dma_buffer;
|
||||||
dma_config.data_number = LWUTIL_ARRAYSIZE(_uart1_rx_dma_buffer);
|
dma_config.data_number = LWUTIL_ARRAYSIZE(_uart1_rx_dma_buffer);
|
||||||
// dma_config.data_number = 128;
|
|
||||||
dma_config.dma_channel = DMA_CHANNEL_0;
|
dma_config.dma_channel = DMA_CHANNEL_0;
|
||||||
std_dma_start_transmit(&dma_config);
|
std_dma_start_transmit(&dma_config);
|
||||||
}
|
}
|
||||||
|
@ -607,6 +606,7 @@ static void _UART1_StartTxDMATransfer(void)
|
||||||
/* Disable channel if enabled */
|
/* Disable channel if enabled */
|
||||||
std_dma_disable(UART1_DMA_TX_CHANNEL); // 如果DMA通道只给串口1使用,那只需要在初始化使能就行,不需要关闭
|
std_dma_disable(UART1_DMA_TX_CHANNEL); // 如果DMA通道只给串口1使用,那只需要在初始化使能就行,不需要关闭
|
||||||
std_usart_dma_tx_disable(USART1);
|
std_usart_dma_tx_disable(USART1);
|
||||||
|
|
||||||
std_dma_interrupt_disable(UART1_DMA_TX_CHANNEL, DMA_INTERRUPT_TF); // 发送完成关闭DMA通道中断
|
std_dma_interrupt_disable(UART1_DMA_TX_CHANNEL, DMA_INTERRUPT_TF); // 发送完成关闭DMA通道中断
|
||||||
/* Clear all flags */
|
/* Clear all flags */
|
||||||
std_dma_clear_flag(DMA_CLEAR_TF1);
|
std_dma_clear_flag(DMA_CLEAR_TF1);
|
||||||
|
@ -847,7 +847,6 @@ void DMA_Channel1_IRQHandler(void)
|
||||||
{
|
{
|
||||||
/* enter interrupt */
|
/* enter interrupt */
|
||||||
rt_interrupt_enter();
|
rt_interrupt_enter();
|
||||||
|
|
||||||
/* DMA传输完成中断服务 */
|
/* DMA传输完成中断服务 */
|
||||||
if ((std_dma_get_interrupt_enable(UART1_DMA_TX_CHANNEL, DMA_INTERRUPT_TF)) && (std_dma_get_flag(DMA_FLAG_TF1)))
|
if ((std_dma_get_interrupt_enable(UART1_DMA_TX_CHANNEL, DMA_INTERRUPT_TF)) && (std_dma_get_flag(DMA_FLAG_TF1)))
|
||||||
{
|
{
|
||||||
|
@ -1067,7 +1066,7 @@ INIT_PREV_EXPORT(_UART_SemCreate);
|
||||||
|
|
||||||
int rt_hw_usart_init(void)
|
int rt_hw_usart_init(void)
|
||||||
{
|
{
|
||||||
__UART1_Init(BAUD_RATE_115200, USART_PARITY_NONE); // 这个是初始化串口配置,下面的是对接设备框架
|
__UART1_Init(BAUD_RATE_921600, USART_PARITY_NONE); // 这个是初始化串口配置,下面的是对接设备框架
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
#define ALARM_THREAD_PRIORITY 20
|
#define ALARM_THREAD_PRIORITY 20
|
||||||
#define ALARM_THREAD_TIMESLICE 50
|
#define ALARM_THREAD_TIMESLICE 50
|
||||||
|
|
||||||
#define RT_ALARM_THREAD_STACK_SIZE (1024)
|
#define RT_ALARM_THREAD_STACK_SIZE (768)
|
||||||
|
|
||||||
ALIGN(RT_ALIGN_SIZE)
|
ALIGN(RT_ALIGN_SIZE)
|
||||||
static rt_uint8_t alarm_thread_stack[RT_ALARM_THREAD_STACK_SIZE];
|
static rt_uint8_t alarm_thread_stack[RT_ALARM_THREAD_STACK_SIZE];
|
||||||
|
@ -37,18 +37,7 @@ EventIndex event_index;
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
// uint8_t rtctime[3], rtcdate[3];
|
|
||||||
|
|
||||||
LOG_I("test CIU32 L051 RT-Thread!\r\n");
|
|
||||||
LOG_I("SystemCoreClock = %d MHZ\n", SystemCoreClock / 1000000);
|
LOG_I("SystemCoreClock = %d MHZ\n", SystemCoreClock / 1000000);
|
||||||
|
|
||||||
while (1)
|
|
||||||
{
|
|
||||||
// rt_pin_write(LED0_PIN, PIN_HIGH);
|
|
||||||
// rt_thread_mdelay(1000);
|
|
||||||
// rt_pin_write(LED0_PIN, PIN_LOW);
|
|
||||||
rt_thread_mdelay(1000);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 系统复位
|
// 系统复位
|
||||||
|
@ -169,7 +158,6 @@ static void Alarm_Thread_Recv_Event(void *param)
|
||||||
Get_Sys_Event_Flag(kFaultRcyEvent), //故障恢复
|
Get_Sys_Event_Flag(kFaultRcyEvent), //故障恢复
|
||||||
RT_EVENT_FLAG_OR | RT_EVENT_FLAG_CLEAR,
|
RT_EVENT_FLAG_OR | RT_EVENT_FLAG_CLEAR,
|
||||||
RT_WAITING_FOREVER, &received_event);
|
RT_WAITING_FOREVER, &received_event);
|
||||||
|
|
||||||
if (result == RT_EOK)
|
if (result == RT_EOK)
|
||||||
{
|
{
|
||||||
if (received_event & Get_Sys_Event_Flag(kPowerOnEvent)) //上电
|
if (received_event & Get_Sys_Event_Flag(kPowerOnEvent)) //上电
|
||||||
|
|
Loading…
Reference in New Issue