添加了终端打印选择RTT或者串口,只需在rtconfig.h中调用宏即可

This commit is contained in:
小马_666 2024-09-05 13:41:12 +08:00
parent cc9a664bcd
commit 45eb922605
35 changed files with 5754 additions and 5863 deletions

View File

@ -2,47 +2,49 @@
* @Author: mbw * @Author: mbw
* @Date: 2024-08-30 11:34:58 * @Date: 2024-08-30 11:34:58
* @LastEditors: mbw && 1600520629@qq.com * @LastEditors: mbw && 1600520629@qq.com
* @LastEditTime: 2024-08-30 11:52:09 * @LastEditTime: 2024-09-05 11:13:47
* @FilePath: \USART1_Interrupt - RT-Thread\LIB\RTT\user_rtt.h * @FilePath: \USART1_Interrupt - RT-Thread\LIB\RTT\user_rtt.h
* @Description: * @Description:
* @ * @
* @Copyright (c) 2024 by ${git_name_email}, All Rights Reserved. * @Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
*/ */
/*
* @Author: xmprocat
* @Date: 2023-03-20 20:26:22
* @LastEditors: xmprocat
* @LastEditTime: 2023-03-20 20:26:42
* @Description:
*/
#ifndef _USER_RTT_H_ #ifndef _USER_RTT_H_
#define _USER_RTT_H_ #define _USER_RTT_H_
#include "SEGGER_RTT.h" #include "SEGGER_RTT.h"
#define LOG_TAG "user_rtt"
#define LOG_LVL LOG_LVL_DBG
#include <ulog.h>
#define LOG_DEBUG 1 #define LOG_DEBUG 1
#if LOG_DEBUG #if LOG_DEBUG
#define LOG_PROTO(type, color, format, ...) \
#define LOG_PROTO(type,color,format,...) \ SEGGER_RTT_printf(0, " %s%s" format "\r\n%s", \
SEGGER_RTT_printf(0," %s%s"format"\r\n%s", \ color, \
color, \ type, \
type, \ ##__VA_ARGS__, \
##__VA_ARGS__, \ RTT_CTRL_RESET)
RTT_CTRL_RESET)
/* 清屏*/ /* 清屏*/
#define LOG_CLEAR() SEGGER_RTT_WriteString(0, " "RTT_CTRL_CLEAR) #define LOG_CLEAR() SEGGER_RTT_WriteString(0, " " RTT_CTRL_CLEAR)
/* 无颜色日志输出 */ /* 无颜色日志输出 */
#define RTT_LOG(format,...) LOG_PROTO("","",format,##__VA_ARGS__) #define RTT_LOG(format, ...) LOG_PROTO("", "", format, ##__VA_ARGS__)
/* 有颜色格式日志输出 */
#define RTT_LOG_I(format,...) LOG_PROTO("I: ", RTT_CTRL_TEXT_BRIGHT_GREEN , format, ##__VA_ARGS__)
#define RTT_LOG_W(format,...) LOG_PROTO("W: ", RTT_CTRL_TEXT_BRIGHT_YELLOW, format, ##__VA_ARGS__)
#define RTT_LOG_E(format,...) LOG_PROTO("E: ", RTT_CTRL_TEXT_BRIGHT_RED , format, ##__VA_ARGS__)
#define RTT_LOG_D(format,...) LOG_PROTO("D: ", RTT_CTRL_TEXT_BRIGHT_BLACK , format, ##__VA_ARGS__)
/* 有颜色格式日志输出 */
#ifdef DEBUG_OUTPUT_SELECT
#define RTT_LOG_I LOG_I
#define RTT_LOG_W LOG_W
#define RTT_LOG_E LOG_E
#define RTT_LOG_D LOG_D
#else
#define RTT_LOG_I(format, ...) LOG_PROTO("I: ", RTT_CTRL_TEXT_BRIGHT_GREEN, format, ##__VA_ARGS__)
#define RTT_LOG_W(format, ...) LOG_PROTO("W: ", RTT_CTRL_TEXT_BRIGHT_YELLOW, format, ##__VA_ARGS__)
#define RTT_LOG_E(format, ...) LOG_PROTO("E: ", RTT_CTRL_TEXT_BRIGHT_RED, format, ##__VA_ARGS__)
#define RTT_LOG_D(format, ...) LOG_PROTO("D: ", RTT_CTRL_TEXT_BRIGHT_BLACK, format, ##__VA_ARGS__)
#endif // DEBUG
#else #else
#define LOG_CLEAR() #define LOG_CLEAR()
#define LOG #define LOG
@ -53,4 +55,3 @@
#endif #endif
#endif // !_USER_RTT_H_ #endif // !_USER_RTT_H_

View File

@ -115,44 +115,44 @@
/*============================ MACROFIED FUNCTIONS ===========================*/ /*============================ MACROFIED FUNCTIONS ===========================*/
/*============================ TYPES =========================================*/ /*============================ TYPES =========================================*/
/*! // /*!
\brief Structure type to access the System Timer (SysTick). // \brief Structure type to access the System Timer (SysTick).
*/ // */
typedef struct // typedef struct
{ // {
__IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */ // __IOM uint32_t CTRL; /*!< Offset: 0x000 (R/W) SysTick Control and Status Register */
__IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */ // __IOM uint32_t LOAD; /*!< Offset: 0x004 (R/W) SysTick Reload Value Register */
__IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */ // __IOM uint32_t VAL; /*!< Offset: 0x008 (R/W) SysTick Current Value Register */
__IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */ // __IM uint32_t CALIB; /*!< Offset: 0x00C (R/ ) SysTick Calibration Register */
} SysTick_Type; // } SysTick_Type;
/*! // /*!
\brief Structure type to access the System Control Block (SCB). // \brief Structure type to access the System Control Block (SCB).
*/ // */
typedef struct // typedef struct
{ // {
__IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */ // __IM uint32_t CPUID; /*!< Offset: 0x000 (R/ ) CPUID Base Register */
__IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */ // __IOM uint32_t ICSR; /*!< Offset: 0x004 (R/W) Interrupt Control and State Register */
__IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */ // __IOM uint32_t VTOR; /*!< Offset: 0x008 (R/W) Vector Table Offset Register */
__IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */ // __IOM uint32_t AIRCR; /*!< Offset: 0x00C (R/W) Application Interrupt and Reset Control Register */
__IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */ // __IOM uint32_t SCR; /*!< Offset: 0x010 (R/W) System Control Register */
__IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */ // __IOM uint32_t CCR; /*!< Offset: 0x014 (R/W) Configuration Control Register */
__IOM uint8_t SHP[12U]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */ // __IOM uint8_t SHP[12U]; /*!< Offset: 0x018 (R/W) System Handlers Priority Registers (4-7, 8-11, 12-15) */
__IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */ // __IOM uint32_t SHCSR; /*!< Offset: 0x024 (R/W) System Handler Control and State Register */
__IOM uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */ // __IOM uint32_t CFSR; /*!< Offset: 0x028 (R/W) Configurable Fault Status Register */
__IOM uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */ // __IOM uint32_t HFSR; /*!< Offset: 0x02C (R/W) HardFault Status Register */
__IOM uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */ // __IOM uint32_t DFSR; /*!< Offset: 0x030 (R/W) Debug Fault Status Register */
__IOM uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */ // __IOM uint32_t MMFAR; /*!< Offset: 0x034 (R/W) MemManage Fault Address Register */
__IOM uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */ // __IOM uint32_t BFAR; /*!< Offset: 0x038 (R/W) BusFault Address Register */
__IOM uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */ // __IOM uint32_t AFSR; /*!< Offset: 0x03C (R/W) Auxiliary Fault Status Register */
__IM uint32_t PFR[2U]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */ // __IM uint32_t PFR[2U]; /*!< Offset: 0x040 (R/ ) Processor Feature Register */
__IM uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */ // __IM uint32_t DFR; /*!< Offset: 0x048 (R/ ) Debug Feature Register */
__IM uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */ // __IM uint32_t ADR; /*!< Offset: 0x04C (R/ ) Auxiliary Feature Register */
__IM uint32_t MMFR[4U]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */ // __IM uint32_t MMFR[4U]; /*!< Offset: 0x050 (R/ ) Memory Model Feature Register */
__IM uint32_t ISAR[5U]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */ // __IM uint32_t ISAR[5U]; /*!< Offset: 0x060 (R/ ) Instruction Set Attributes Register */
uint32_t RESERVED0[5U]; // uint32_t RESERVED0[5U];
__IOM uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */ // __IOM uint32_t CPACR; /*!< Offset: 0x088 (R/W) Coprocessor Access Control Register */
} SCB_Type; // } SCB_Type;
struct __task_cycle_info_t { struct __task_cycle_info_t {
task_cycle_info_t tInfo; //!< cycle information task_cycle_info_t tInfo; //!< cycle information
@ -183,26 +183,26 @@ volatile static int64_t s_lSystemClockCounts = 0;
/*============================ IMPLEMENTATION ================================*/ /*============================ IMPLEMENTATION ================================*/
/*============================ INCLUDES ======================================*/ /*============================ INCLUDES ======================================*/
__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks) // __STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks)
{ // {
if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk) // if ((ticks - 1UL) > SysTick_LOAD_RELOAD_Msk)
{ // {
return (1UL); /* Reload value impossible */ // return (1UL); /* Reload value impossible */
} // }
//__IRQ_SAFE { // //__IRQ_SAFE {
SysTick->CTRL = 0; // SysTick->CTRL = 0;
SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */ // SysTick->LOAD = (uint32_t)(ticks - 1UL); /* set reload register */
//NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */ // //NVIC_SetPriority (SysTick_IRQn, (1UL << __NVIC_PRIO_BITS) - 1UL); /* set Priority for Systick Interrupt */
SysTick->VAL = 0UL; /* Load the SysTick Counter Value */ // SysTick->VAL = 0UL; /* Load the SysTick Counter Value */
SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | // SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk |
SysTick_CTRL_TICKINT_Msk | // SysTick_CTRL_TICKINT_Msk |
SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */ // SysTick_CTRL_ENABLE_Msk; /* Enable SysTick IRQ and SysTick Timer */
//SCB->ICSR = SCB_ICSR_PENDSTCLR_Msk; // //SCB->ICSR = SCB_ICSR_PENDSTCLR_Msk;
//} // //}
return (0UL); /* Function successful */ // return (0UL); /* Function successful */
} // }
void user_code_insert_to_systick_handler(void) void user_code_insert_to_systick_handler(void)
{ {

View File

@ -101,14 +101,14 @@ void __ensure_systick_wrapper(void)
#define DBG_TAG "perf_counter" #define DBG_TAG "perf_counter"
#define DBG_LVL DBG_INFO #define DBG_LVL DBG_INFO
#include <rtdbg.h> #include <ulog.h>
static int _perf_counter_init(void) static int _perf_counter_init(void)
{ {
extern uint32_t SystemCoreClock; extern uint32_t SystemCoreClock;
init_cycle_counter(true); init_cycle_counter(true);
RTT_LOG_I("_perf_counter_init"); RTT_LOG_I("_perf_counter_init");
RTT_LOG_I("perf_counter init, SystemCoreClock:%d", SystemCoreClock); RTT_LOG_I("perf_counter init, SystemCoreClock:%d", SystemCoreClock);
return 0; return 0;

Binary file not shown.

View File

@ -27,30 +27,42 @@ Project File Date: 09/04/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' Build target 'USART1_Interrupt'
compiling cpu.c...
compiling idle.c... compiling idle.c...
compiling slab.c... compiling slab.c...
compiling dev_pin.c...
compiling cpu.c...
compiling cmd.c...
compiling ulog.c... compiling ulog.c...
../bsp/src/bsp_flash.c(17): warning: In file included from... ../bsp/src/bsp_flash.c(17): warning: In file included from...
../LIB/perf_counter\perf_counter.h(285): warning: Please enable GNU extensions, it is required by __cycleof__() and __super_loop_monitor__() [-W#warnings] ../LIB/perf_counter\perf_counter.h(285): warning: Please enable GNU extensions, it is required by __cycleof__() and __super_loop_monitor__() [-W#warnings]
285 | #warning Please enable GNU extensions, it is required by __cycleof__() and \ 285 | #warning Please enable GNU extensions, it is required by __cycleof__() and \
| ^ | ^
1 warning generated. ../bsp/src/bsp_flash.c(19): warning: 'LOG_TAG' macro redefined [-Wmacro-redefined]
19 | #define LOG_TAG "bsp_flash" // 该模å<C2A1>—对应的标签ã€ä¸<C3A4>定义时,默认:NO_TAG
| ^
../LIB/RTT\user_rtt.h(15): note: previous definition is here
15 | #define LOG_TAG "user_rtt"
| ^
2 warnings generated.
compiling bsp_flash.c... compiling bsp_flash.c...
../drivers/src/drv_uart.c(25): warning: 'LOG_TAG' macro redefined [-Wmacro-redefined]
25 | #define LOG_TAG "drv_uart"
| ^
../LIB/RTT\user_rtt.h(15): note: previous definition is here
15 | #define LOG_TAG "user_rtt"
| ^
1 warning generated.
compiling drv_uart.c...
compiling ipc.c... compiling ipc.c...
linking... linking...
Program Size: Code=31374 RO-data=7614 RW-data=144 ZI-data=9256 Program Size: Code=30238 RO-data=7062 RW-data=144 ZI-data=9768
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 :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö_________| 57.37 % ( 9.18 KB / 16.00 KB) [6984 B] 16.00 KB :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö________| 60.50 % ( 9.68 KB / 16.00 KB) [6472 B]
flash: flash:
ER_IROM1 :0x8000000 ER_IROM1 :0x8000000
64.00 KB :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö_________| 59.49 % ( 38.07 KB / 64.00 KB) [26548 B] 64.00 KB :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö_________| 56.92 % ( 36.43 KB / 64.00 KB) [28236 B]
".\CIU32_L051_M307R.axf" - 0 Error(s), 1 Warning(s). ".\CIU32_L051_M307R.axf" - 0 Error(s), 3 Warning(s).
<h2>Software Packages used:</h2> <h2>Software Packages used:</h2>
@ -63,7 +75,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:02
</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

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@ -368,7 +368,7 @@
<Group> <Group>
<GroupName>RTOS/src</GroupName> <GroupName>RTOS/src</GroupName>
<tvExp>1</tvExp> <tvExp>0</tvExp>
<tvExpOptDlg>0</tvExpOptDlg> <tvExpOptDlg>0</tvExpOptDlg>
<cbSel>0</cbSel> <cbSel>0</cbSel>
<RteFlg>0</RteFlg> <RteFlg>0</RteFlg>

View File

@ -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)(0x66D90FE2)(-xc -std=c99 --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 -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./main.o -MD) F (..\user\Source\main.c)(0x66D92839)(-xc -std=c99 --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 -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)
@ -196,11 +196,11 @@ I (..\RTOS\components\finsh\finsh_api.hi.\bsp\inc\bsp_history.h)(0x00000000)
I (..\bsp\inc\bsp_rtc.hi.\RTOS\inc\rthw.h)(0x00000000) I (..\bsp\inc\bsp_rtc.hi.\RTOS\inc\rthw.h)(0x00000000)
I (C:\Keil_v5\ARM\ARMCLANG\include\stdlib.hs\LIB\RTT\user_rtt.h)(0x00000000) I (C:\Keil_v5\ARM\ARMCLANG\include\stdlib.hs\LIB\RTT\user_rtt.h)(0x00000000)
I (..\LIB\RTT\SEGGER_RTT.h\.\LIB\RTT\SEGGER_RTT_Conf.h)(0x00000000) I (..\LIB\RTT\SEGGER_RTT.h\.\LIB\RTT\SEGGER_RTT_Conf.h)(0x00000000)
I (..\RTOS\components\utilities\ulog\ulog.h)(0x666E44C6)
I (..\RTOS\components\utilities\ulog\ulog_def.h)(0x666E44C6)
I (..\LIB\perf_counter\perf_counter.h)(0x66D187B8) I (..\LIB\perf_counter\perf_counter.h)(0x66D187B8)
I (..\Peripheral\CMSIS\Core\cmsis_compiler.h)(0x65800BC8) I (..\Peripheral\CMSIS\Core\cmsis_compiler.h)(0x65800BC8)
I (..\LIB\perf_counter\rtconfig_preinc.h)(0x66D17F95) I (..\LIB\perf_counter\rtconfig_preinc.h)(0x66D17F95)
I (..\RTOS\components\utilities\ulog\ulog.h)(0x666E44C6)
I (..\RTOS\components\utilities\ulog\ulog_def.h)(0x666E44C6)
F (..\startup\startup_ciu32l051.s)(0x66C6D715)(--cpu Cortex-M0+ -g --pd "__MICROLIB SETA 1" --diag_suppress=A1950W -IC:\Users\16005\AppData\Local\Arm\Packs\HED\CIU32L0xx_DFP\1.2.5\Drivers\CMSIS\Device\CIU32L051\Include --pd "__UVISION_VERSION SETA 539" --pd "CIU32L051 SETA 1" --list .\listings\startup_ciu32l051.lst --xref -o .\startup_ciu32l051.o --depend .\startup_ciu32l051.d) F (..\startup\startup_ciu32l051.s)(0x66C6D715)(--cpu Cortex-M0+ -g --pd "__MICROLIB SETA 1" --diag_suppress=A1950W -IC:\Users\16005\AppData\Local\Arm\Packs\HED\CIU32L0xx_DFP\1.2.5\Drivers\CMSIS\Device\CIU32L051\Include --pd "__UVISION_VERSION SETA 539" --pd "CIU32L051 SETA 1" --list .\listings\startup_ciu32l051.lst --xref -o .\startup_ciu32l051.o --depend .\startup_ciu32l051.d)
F (..\RTOS\components\finsh\cmd.c)(0x66D91B4B)(-xc -std=c99 --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 -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./cmd.o -MD) F (..\RTOS\components\finsh\cmd.c)(0x66D91B4B)(-xc -std=c99 --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 -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./cmd.o -MD)
I (..\RTOS\inc\rtthread.hs.\RTOS\rtconfig.h)(0x00000000) I (..\RTOS\inc\rtthread.hs.\RTOS\rtconfig.h)(0x00000000)
@ -444,7 +444,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)(0x66D5821E)(-xc -std=c99 --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 -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./board.o -MD) F (..\RTOS\src\board.c)(0x66D942DE)(-xc -std=c99 --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 -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)
@ -1391,7 +1391,7 @@ I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_wwdg.h)(0x65800BC5)
I (..\RTOS\components\drivers\inc\dev_pin.h)(0x66D90FE2) I (..\RTOS\components\drivers\inc\dev_pin.h)(0x66D90FE2)
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)(0x66D90D8D) I (..\drivers\inc\drv_gpio.h)(0x66D90D8D)
F (..\drivers\src\drv_uart.c)(0x66D90239)(-xc -std=c99 --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 -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./drv_uart.o -MD) F (..\drivers\src\drv_uart.c)(0x66D94391)(-xc -std=c99 --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 -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)
@ -2386,7 +2386,7 @@ I (C:\Keil_v5\ARM\ARMCLANG\include\stddef.h)(0x6569B012)
I (C:\Keil_v5\ARM\ARMCLANG\include\stdint.h)(0x6569B012) I (C:\Keil_v5\ARM\ARMCLANG\include\stdint.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)
F (..\LIB\perf_counter\perf_counter.c)(0x66D187C4)(-xc -std=c99 --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 -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./perf_counter.o -MD) F (..\LIB\perf_counter\perf_counter.c)(0x66D9217E)(-xc -std=c99 --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 -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./perf_counter.o -MD)
I (C:\Keil_v5\ARM\ARMCLANG\include\stdint.h)(0x6569B012) I (C:\Keil_v5\ARM\ARMCLANG\include\stdint.h)(0x6569B012)
I (C:\Keil_v5\ARM\ARMCLANG\include\stdbool.h)(0x6569B012) I (C:\Keil_v5\ARM\ARMCLANG\include\stdbool.h)(0x6569B012)
I (C:\Keil_v5\ARM\ARMCLANG\include\string.h)(0x6569B012) I (C:\Keil_v5\ARM\ARMCLANG\include\string.h)(0x6569B012)
@ -2399,7 +2399,46 @@ I (C:\Keil_v5\ARM\ARMCLANG\include\stddef.h)(0x6569B012)
I (..\LIB\perf_counter\rtconfig_preinc.hf.\LIB\RTT\user_rtt.h)(0x00000000) I (..\LIB\perf_counter\rtconfig_preinc.hf.\LIB\RTT\user_rtt.h)(0x00000000)
I (..\LIB\RTT\SEGGER_RTT.ho.\LIB\RTT\SEGGER_RTT_Conf.h)(0x00000000) I (..\LIB\RTT\SEGGER_RTT.ho.\LIB\RTT\SEGGER_RTT_Conf.h)(0x00000000)
I (C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h_\RTOS\inc\stdarg.h)(0x00000000) I (C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h_\RTOS\inc\stdarg.h)(0x00000000)
F (..\LIB\perf_counter\perf_os_patch_rt_thread.c)(0x66D174C0)(-xc -std=c99 --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 -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./perf_os_patch_rt_thread.o -MD) I (..\RTOS\components\utilities\ulog\ulog.h_.\RTOS\inc\rtthread.h)(0x00000000)
I (..\RTOS\rtconfig.h\.\RTOS\components\finsh\finsh_config.h)(0x00000000)
I (..\RTOS\inc\rtdebug.hR.\RTOS\inc\rtdef.hs.\RTOS\inc\rtservice.h)(0x00000000)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std.h)(0x66138664)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_config.h)(0x65800BC6)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_rcc.h)(0x65E679B7)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_common.h)(0x65800BC5)
I (..\Peripheral\CMSIS\Device\ciu32l051.h)(0x65E68265)
I (..\Peripheral\CMSIS\Core\core_cm0plus.h)(0x65800BC8)
I (D:\SXDT\Project\HED\4G\USART1_Interrupt - RT-Thread\Peripheral\CMSIS\Core\cmsis_version.h)(0x65800BC8)
I (D:\SXDT\Project\HED\4G\USART1_Interrupt - RT-Thread\Peripheral\CMSIS\Core\cmsis_compiler.h)(0x65800BC8)
I (..\Peripheral\CMSIS\Device\system_ciu32l051.h)(0x65800BC6)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_adc.h)(0x66138664)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_aes.h)(0x65800BC5)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_comp.h)(0x661645AE)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_crc.h)(0x65800BC6)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_dbg.h)(0x6656B817)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_dma.h)(0x65800BC6)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_exti.h)(0x65E67A4D)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_flash.h)(0x66D6BBA1)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_gpio.h)(0x6656A3F6)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_i2c.h)(0x65800BC5)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_iwdg.h)(0x65800BC5)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_lcd.h)(0x661645AE)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_lptim.h)(0x665E764E)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_lpuart.h)(0x65800BC6)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_pmu.h)(0x65800BC6)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_rtc.h)(0x65800BC5)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_spi.h)(0x65800BC5)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_syscfg.h)(0x6613CF0C)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_tamp.h)(0x65E6836D)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_tim.h)(0x66ACA92A)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_trng.h)(0x65800BC5)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_usart.h)(0x65800BC6)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_vrefbuf.h)(0x65800BC6)
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_wwdg.h)(0x65800BC5)
I (..\RTOS\components\drivers\inc\dev_pin.h)(0x66D90FE2)
I (..\RTOS\components\finsh\finsh_api.h)(0x66C2AAF0)
I (..\RTOS\components\utilities\ulog\ulog_def.h)(0x666E44C6)
F (..\LIB\perf_counter\perf_os_patch_rt_thread.c)(0x66D921EA)(-xc -std=c99 --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 -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./perf_os_patch_rt_thread.o -MD)
I (..\RTOS\rtconfig.hr.\RTOS\components\finsh\finsh_config.h)(0x00000000) I (..\RTOS\rtconfig.hr.\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)
I (..\RTOS\inc\rtservice.h)(0x66C2AAF4) I (..\RTOS\inc\rtservice.h)(0x66C2AAF4)
@ -2448,7 +2487,7 @@ I (..\LIB\perf_counter\perf_counter.h)(0x66D187B8)
I (..\Peripheral\CMSIS\Core\cmsis_compiler.h)(0x65800BC8) I (..\Peripheral\CMSIS\Core\cmsis_compiler.h)(0x65800BC8)
I (..\LIB\perf_counter\rtconfig_preinc.he.\LIB\RTT\user_rtt.h)(0x00000000) I (..\LIB\perf_counter\rtconfig_preinc.he.\LIB\RTT\user_rtt.h)(0x00000000)
I (..\LIB\RTT\SEGGER_RTT.ho.\LIB\RTT\SEGGER_RTT_Conf.h)(0x00000000) I (..\LIB\RTT\SEGGER_RTT.ho.\LIB\RTT\SEGGER_RTT_Conf.h)(0x00000000)
I (C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h_\RTOS\inc\rtdbg.h)(0x00000000) I (C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h)(0x6569B012)
I (..\RTOS\components\utilities\ulog\ulog.h)(0x666E44C6) I (..\RTOS\components\utilities\ulog\ulog.h)(0x666E44C6)
I (..\RTOS\components\utilities\ulog\ulog_def.h)(0x666E44C6) I (..\RTOS\components\utilities\ulog\ulog_def.h)(0x666E44C6)
F (..\RTOS\components\utilities\ulog\ulog.c)(0x666E44C6)(-xc -std=c99 --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 -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./ulog.o -MD) F (..\RTOS\components\utilities\ulog\ulog.c)(0x666E44C6)(-xc -std=c99 --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 -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051 -o ./ulog.o -MD)

View File

@ -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]: 0x984c [Size]: 0x91b4
[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]: 0x24b8 [Size]: 0x26b8
[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 :|ĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄö_________| 57.37 % ( 9.18 KB / 16.00 KB) [6984 B] 16.00 KB :|ĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄö________| 60.50 % ( 9.68 KB / 16.00 KB) [6472 B]
ER_IROM1 :0x8000000 ER_IROM1 :0x8000000
64.00 KB :|ĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄö_________| 59.49 % ( 38.07 KB / 64.00 KB) [26548 B] 64.00 KB :|ĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄö_________| 56.92 % ( 36.43 KB / 64.00 KB) [28236 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.

View File

@ -1,68 +1,67 @@
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
bsp_flash.o,11.258361%,4511,4,3032,1479,0,4 cmd.o,11.651472%,4473,0,2872,1601,0,0
cmd.o,11.163522%,4473,0,2872,1601,0,0 bsp_flash.o,9.968741%,3827,4,2880,947,0,4
ipc.o,6.124588%,2454,0,1440,1014,0,0 ipc.o,6.392290%,2454,0,1440,1014,0,0
kservice.o,5.410801%,2168,268,1912,256,0,268 kservice.o,5.647304%,2168,268,1912,256,0,268
ulog.o,5.373365%,2153,589,1950,203,0,589 ulog.o,5.629070%,2161,589,1950,211,0,589
thread.o,5.350904%,2144,12,1902,242,0,12 thread.o,5.584788%,2144,12,1902,242,0,12
mem.o,4.692024%,1880,72,1512,368,0,72 drv_uart.o,5.363376%,2059,3696,2002,57,0,3696
shell.o,4.489867%,1799,281,1768,31,0,281 mem.o,4.897109%,1880,72,1512,368,0,72
drv_uart.o,4.459918%,1787,3180,1708,79,0,3180 shell.o,4.686116%,1799,281,1768,31,0,281
bsp_history.o,3.776081%,1513,1684,1404,109,0,1684 bsp_history.o,3.836937%,1473,1684,1384,89,0,1684
timer.o,2.887591%,1157,20,1002,155,0,20 timer.o,3.013806%,1157,20,1002,155,0,20
object.o,2.662973%,1067,148,832,107,128,20 object.o,2.779370%,1067,148,832,107,128,20
drv_gpio.o,2.575621%,1032,0,232,800,0,0 drv_gpio.o,2.688200%,1032,0,232,800,0,0
mc_p.l,2.548168%,1021,4,884,133,4,0 mc_p.l,2.659547%,1021,4,884,133,4,0
device.o,2.540681%,1018,0,706,312,0,0 device.o,2.651732%,1018,0,706,312,0,0
segger_rtt_printf.o,2.490766%,998,0,998,0,0,0 msh.o,2.461579%,945,0,784,161,0,0
msh.o,2.358490%,945,0,784,161,0,0 bsp_rtc.o,1.820787%,699,6,600,99,0,6
bsp_rtc.o,1.744534%,699,6,600,99,0,6 lwrb.o,1.594165%,612,0,612,0,0,0
segger_rtt.o,1.587302%,636,1208,610,26,0,1208 scheduler.o,1.307632%,502,280,484,18,0,280
lwrb.o,1.352700%,542,0,542,0,0,0 dev_pin.o,1.109664%,426,56,364,62,0,56
scheduler.o,1.252870%,502,280,484,18,0,280 ciu32l051_std_lpuart.o,0.864809%,332,0,332,0,0,0
dev_pin.o,1.063193%,426,56,364,62,0,56 main.o,0.851784%,327,0,276,51,0,0
ciu32l051_std_lpuart.o,0.828591%,332,0,332,0,0,0 perf_counter.o,0.849179%,326,56,314,4,8,48
perf_counter.o,0.773685%,310,56,298,4,8,48 cpuport.o,0.802292%,308,12,308,0,0,12
cpuport.o,0.768693%,308,12,308,0,0,12 idle.o,0.703308%,270,416,248,22,0,416
idle.o,0.673854%,270,416,248,22,0,416 components.o,0.635582%,244,0,228,16,0,0
components.o,0.608965%,244,0,228,16,0,0 ciu32l051_std_rtc.o,0.614743%,236,0,236,0,0,0
ciu32l051_std_rtc.o,0.588999%,236,0,236,0,0,0 startup_ciu32l051.o,0.573066%,220,1024,28,192,0,1024
startup_ciu32l051.o,0.549067%,220,1024,28,192,0,1024 context_rvds.o,0.562647%,216,0,216,0,0,0
context_rvds.o,0.539084%,216,0,216,0,0,0 ciu32l051_std_rcc.o,0.562647%,216,0,216,0,0,0
ciu32l051_std_rcc.o,0.539084%,216,0,216,0,0,0 board.o,0.541808%,208,0,208,0,0,0
drv_common.o,0.509134%,204,0,204,0,0,0 drv_common.o,0.531388%,204,0,204,0,0,0
system_ciu32l051.o,0.499151%,200,4,164,32,4,0 system_ciu32l051.o,0.520969%,200,4,164,32,4,0
main.o,0.484177%,194,0,148,46,0,0 ciu32l051_std_flash.o,0.489711%,188,0,188,0,0,0
ciu32l051_std_flash.o,0.469202%,188,0,188,0,0,0 ciu32l051_std_usart.o,0.484501%,186,0,186,0,0,0
ciu32l051_std_usart.o,0.464211%,186,0,186,0,0,0 _strtoul.o,0.432404%,166,0,166,0,0,0
_strtoul.o,0.414296%,166,0,166,0,0,0 ciu32l051_std_gpio.o,0.401146%,154,0,154,0,0,0
perf_os_patch_rt_thread.o,0.394330%,158,0,154,4,0,0 ctype_o.o,0.367283%,141,0,8,133,0,0
ciu32l051_std_gpio.o,0.384347%,154,0,154,0,0,0 perf_os_patch_rt_thread.o,0.341235%,131,0,118,13,0,0
ctype_o.o,0.351902%,141,0,8,133,0,0 segger_rtt.o,0.338630%,130,1208,104,26,0,1208
board.o,0.324448%,130,0,130,0,0,0 strtol.o,0.291743%,112,0,112,0,0,0
strtol.o,0.279525%,112,0,112,0,0,0 ciu32l051_std_dma.o,0.260484%,100,0,100,0,0,0
ciu32l051_std_dma.o,0.249576%,100,0,100,0,0,0 uldiv.o,0.250065%,96,0,96,0,0,0
uldiv.o,0.239593%,96,0,96,0,0,0 console_be.o,0.234436%,90,48,86,4,0,48
console_be.o,0.224618%,90,48,86,4,0,48 irq.o,0.229226%,88,12,88,0,0,12
irq.o,0.219627%,88,12,88,0,0,12 uidiv_div0.o,0.161500%,62,0,62,0,0,0
uidiv_div0.o,0.154737%,62,0,62,0,0,0 clock.o,0.140662%,54,4,54,0,0,4
clock.o,0.134771%,54,4,54,0,0,4 init.o,0.125033%,48,0,48,0,0,0
init.o,0.119796%,48,0,48,0,0,0 cpp_init.o,0.104194%,40,0,40,0,0,0
cpp_init.o,0.099830%,40,0,40,0,0,0 memseta.o,0.093774%,36,0,36,0,0,0
memseta.o,0.089847%,36,0,36,0,0,0 memcpya.o,0.093774%,36,0,36,0,0,0
memcpya.o,0.089847%,36,0,36,0,0,0 llushr.o,0.088565%,34,0,34,0,0,0
llushr.o,0.084856%,34,0,34,0,0,0 llshl.o,0.083355%,32,0,32,0,0,0
llshl.o,0.079864%,32,0,32,0,0,0 strncmp.o,0.078145%,30,0,30,0,0,0
strncmp.o,0.074873%,30,0,30,0,0,0 handlers.o,0.078145%,30,0,30,0,0,0
handlers.o,0.074873%,30,0,30,0,0,0 _chval.o,0.078145%,30,0,30,0,0,0
_chval.o,0.074873%,30,0,30,0,0,0 strncpy.o,0.067726%,26,0,26,0,0,0
strncpy.o,0.064890%,26,0,26,0,0,0 memcmp.o,0.067726%,26,0,26,0,0,0
memcmp.o,0.064890%,26,0,26,0,0,0 atoi.o,0.067726%,26,0,26,0,0,0
atoi.o,0.064890%,26,0,26,0,0,0 ciu32l051_std.o,0.062516%,24,0,24,0,0,0
ciu32l051_std.o,0.059898%,24,0,24,0,0,0 strlen.o,0.036468%,14,0,14,0,0,0
strlen.o,0.034941%,14,0,14,0,0,0 errno.o,0.031258%,12,4,8,0,4,0
errno.o,0.029949%,12,4,8,0,4,0 entry9a.o,0.020839%,8,0,8,0,0,0
entry9a.o,0.019966%,8,0,8,0,0,0 entry2.o,0.020839%,8,0,8,0,0,0
entry2.o,0.019966%,8,0,8,0,0,0 entry8a.o,0.010419%,4,0,4,0,0,0
entry8a.o,0.009983%,4,0,4,0,0,0 entry5.o,0.010419%,4,0,4,0,0,0
entry5.o,0.009983%,4,0,4,0,0,0

1 File_name flash percent flash ram Code RO_data RW_data ZI_data
2 bsp_flash.o cmd.o 11.258361% 11.651472% 4511 4473 4 0 3032 2872 1479 1601 0 4 0
3 cmd.o bsp_flash.o 11.163522% 9.968741% 4473 3827 0 4 2872 2880 1601 947 0 0 4
4 ipc.o 6.124588% 6.392290% 2454 0 1440 1014 0 0
5 kservice.o 5.410801% 5.647304% 2168 268 1912 256 0 268
6 ulog.o 5.373365% 5.629070% 2153 2161 589 1950 203 211 0 589
7 thread.o 5.350904% 5.584788% 2144 12 1902 242 0 12
8 mem.o drv_uart.o 4.692024% 5.363376% 1880 2059 72 3696 1512 2002 368 57 0 72 3696
9 shell.o mem.o 4.489867% 4.897109% 1799 1880 281 72 1768 1512 31 368 0 281 72
10 drv_uart.o shell.o 4.459918% 4.686116% 1787 1799 3180 281 1708 1768 79 31 0 3180 281
11 bsp_history.o 3.776081% 3.836937% 1513 1473 1684 1404 1384 109 89 0 1684
12 timer.o 2.887591% 3.013806% 1157 20 1002 155 0 20
13 object.o 2.662973% 2.779370% 1067 148 832 107 128 20
14 drv_gpio.o 2.575621% 2.688200% 1032 0 232 800 0 0
15 mc_p.l 2.548168% 2.659547% 1021 4 884 133 4 0
16 device.o 2.540681% 2.651732% 1018 0 706 312 0 0
17 segger_rtt_printf.o msh.o 2.490766% 2.461579% 998 945 0 998 784 0 161 0 0
18 msh.o bsp_rtc.o 2.358490% 1.820787% 945 699 0 6 784 600 161 99 0 0 6
19 bsp_rtc.o lwrb.o 1.744534% 1.594165% 699 612 6 0 600 612 99 0 0 6 0
20 segger_rtt.o scheduler.o 1.587302% 1.307632% 636 502 1208 280 610 484 26 18 0 1208 280
21 lwrb.o dev_pin.o 1.352700% 1.109664% 542 426 0 56 542 364 0 62 0 0 56
22 scheduler.o ciu32l051_std_lpuart.o 1.252870% 0.864809% 502 332 280 0 484 332 18 0 0 280 0
23 dev_pin.o main.o 1.063193% 0.851784% 426 327 56 0 364 276 62 51 0 56 0
24 ciu32l051_std_lpuart.o perf_counter.o 0.828591% 0.849179% 332 326 0 56 332 314 0 4 0 8 0 48
25 perf_counter.o cpuport.o 0.773685% 0.802292% 310 308 56 12 298 308 4 0 8 0 48 12
26 cpuport.o idle.o 0.768693% 0.703308% 308 270 12 416 308 248 0 22 0 12 416
27 idle.o components.o 0.673854% 0.635582% 270 244 416 0 248 228 22 16 0 416 0
28 components.o ciu32l051_std_rtc.o 0.608965% 0.614743% 244 236 0 228 236 16 0 0 0
29 ciu32l051_std_rtc.o startup_ciu32l051.o 0.588999% 0.573066% 236 220 0 1024 236 28 0 192 0 0 1024
30 startup_ciu32l051.o context_rvds.o 0.549067% 0.562647% 220 216 1024 0 28 216 192 0 0 1024 0
31 context_rvds.o ciu32l051_std_rcc.o 0.539084% 0.562647% 216 0 216 0 0 0
32 ciu32l051_std_rcc.o board.o 0.539084% 0.541808% 216 208 0 216 208 0 0 0
33 drv_common.o 0.509134% 0.531388% 204 0 204 0 0 0
34 system_ciu32l051.o 0.499151% 0.520969% 200 4 164 32 4 0
35 main.o ciu32l051_std_flash.o 0.484177% 0.489711% 194 188 0 148 188 46 0 0 0
36 ciu32l051_std_flash.o ciu32l051_std_usart.o 0.469202% 0.484501% 188 186 0 188 186 0 0 0
37 ciu32l051_std_usart.o _strtoul.o 0.464211% 0.432404% 186 166 0 186 166 0 0 0
38 _strtoul.o ciu32l051_std_gpio.o 0.414296% 0.401146% 166 154 0 166 154 0 0 0
39 perf_os_patch_rt_thread.o ctype_o.o 0.394330% 0.367283% 158 141 0 154 8 4 133 0 0
40 ciu32l051_std_gpio.o perf_os_patch_rt_thread.o 0.384347% 0.341235% 154 131 0 154 118 0 13 0 0
41 ctype_o.o segger_rtt.o 0.351902% 0.338630% 141 130 0 1208 8 104 133 26 0 0 1208
42 board.o strtol.o 0.324448% 0.291743% 130 112 0 130 112 0 0 0
43 strtol.o ciu32l051_std_dma.o 0.279525% 0.260484% 112 100 0 112 100 0 0 0
44 ciu32l051_std_dma.o uldiv.o 0.249576% 0.250065% 100 96 0 100 96 0 0 0
45 uldiv.o console_be.o 0.239593% 0.234436% 96 90 0 48 96 86 0 4 0 0 48
46 console_be.o irq.o 0.224618% 0.229226% 90 88 48 12 86 88 4 0 0 48 12
47 irq.o uidiv_div0.o 0.219627% 0.161500% 88 62 12 0 88 62 0 0 12 0
48 uidiv_div0.o clock.o 0.154737% 0.140662% 62 54 0 4 62 54 0 0 0 4
49 clock.o init.o 0.134771% 0.125033% 54 48 4 0 54 48 0 0 4 0
50 init.o cpp_init.o 0.119796% 0.104194% 48 40 0 48 40 0 0 0
51 cpp_init.o memseta.o 0.099830% 0.093774% 40 36 0 40 36 0 0 0
52 memseta.o memcpya.o 0.089847% 0.093774% 36 0 36 0 0 0
53 memcpya.o llushr.o 0.089847% 0.088565% 36 34 0 36 34 0 0 0
54 llushr.o llshl.o 0.084856% 0.083355% 34 32 0 34 32 0 0 0
55 llshl.o strncmp.o 0.079864% 0.078145% 32 30 0 32 30 0 0 0
56 strncmp.o handlers.o 0.074873% 0.078145% 30 0 30 0 0 0
57 handlers.o _chval.o 0.074873% 0.078145% 30 0 30 0 0 0
58 _chval.o strncpy.o 0.074873% 0.067726% 30 26 0 30 26 0 0 0
59 strncpy.o memcmp.o 0.064890% 0.067726% 26 0 26 0 0 0
60 memcmp.o atoi.o 0.064890% 0.067726% 26 0 26 0 0 0
61 atoi.o ciu32l051_std.o 0.064890% 0.062516% 26 24 0 26 24 0 0 0
62 ciu32l051_std.o strlen.o 0.059898% 0.036468% 24 14 0 24 14 0 0 0
63 strlen.o errno.o 0.034941% 0.031258% 14 12 0 4 14 8 0 0 4 0
64 errno.o entry9a.o 0.029949% 0.020839% 12 8 4 0 8 0 4 0 0
65 entry9a.o entry2.o 0.019966% 0.020839% 8 0 8 0 0 0
66 entry2.o entry8a.o 0.019966% 0.010419% 8 4 0 8 4 0 0 0
67 entry8a.o entry5.o 0.009983% 0.010419% 4 0 4 0 0 0
entry5.o 0.009983% 4 0 4 0 0 0

View File

@ -1,25 +1,25 @@
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,33.858604%,3180,1787,1708,79,0,3180 drv_uart.o,37.303188%,3696,2059,2002,57,0,3696
bsp_history.o,17.930153%,1684,1513,1404,109,0,1684 bsp_history.o,16.996367%,1684,1473,1384,89,0,1684
segger_rtt.o,12.862010%,1208,636,610,26,0,1208 segger_rtt.o,12.192168%,1208,130,104,26,0,1208
startup_ciu32l051.o,10.902896%,1024,220,28,192,0,1024 startup_ciu32l051.o,10.335083%,1024,220,28,192,0,1024
ulog.o,6.271295%,589,2153,1950,203,0,589 ulog.o,5.944691%,589,2161,1950,211,0,589
idle.o,4.429302%,416,270,248,22,0,416 idle.o,4.198627%,416,270,248,22,0,416
shell.o,2.991908%,281,1799,1768,31,0,281 shell.o,2.836092%,281,1799,1768,31,0,281
scheduler.o,2.981261%,280,502,484,18,0,280 scheduler.o,2.825999%,280,502,484,18,0,280
kservice.o,2.853492%,268,2168,1912,256,0,268 kservice.o,2.704885%,268,2168,1912,256,0,268
object.o,1.575809%,148,1067,832,107,128,20 object.o,1.493742%,148,1067,832,107,128,20
mem.o,0.766610%,72,1880,1512,368,0,72 mem.o,0.726686%,72,1880,1512,368,0,72
perf_counter.o,0.596252%,56,310,298,4,8,48 perf_counter.o,0.565200%,56,326,314,4,8,48
dev_pin.o,0.596252%,56,426,364,62,0,56 dev_pin.o,0.565200%,56,426,364,62,0,56
console_be.o,0.511073%,48,90,86,4,0,48 console_be.o,0.484457%,48,90,86,4,0,48
timer.o,0.212947%,20,1157,1002,155,0,20 timer.o,0.201857%,20,1157,1002,155,0,20
thread.o,0.127768%,12,2144,1902,242,0,12 thread.o,0.121114%,12,2144,1902,242,0,12
irq.o,0.127768%,12,88,88,0,0,12 irq.o,0.121114%,12,88,88,0,0,12
cpuport.o,0.127768%,12,308,308,0,0,12 cpuport.o,0.121114%,12,308,308,0,0,12
bsp_rtc.o,0.063884%,6,699,600,99,0,6 bsp_rtc.o,0.060557%,6,699,600,99,0,6
mc_p.l,0.042589%,4,1021,884,133,4,0 mc_p.l,0.040371%,4,1021,884,133,4,0
errno.o,0.042589%,4,12,8,0,4,0 errno.o,0.040371%,4,12,8,0,4,0
system_ciu32l051.o,0.042589%,4,200,164,32,4,0 system_ciu32l051.o,0.040371%,4,200,164,32,4,0
clock.o,0.042589%,4,54,54,0,0,4 clock.o,0.040371%,4,54,54,0,0,4
bsp_flash.o,0.042589%,4,4511,3032,1479,0,4 bsp_flash.o,0.040371%,4,3827,2880,947,0,4

1 File_name ram_percent ram flash Code RO_data RW_data ZI_data
2 drv_uart.o 33.858604% 37.303188% 3180 3696 1787 2059 1708 2002 79 57 0 3180 3696
3 bsp_history.o 17.930153% 16.996367% 1684 1513 1473 1404 1384 109 89 0 1684
4 segger_rtt.o 12.862010% 12.192168% 1208 636 130 610 104 26 0 1208
5 startup_ciu32l051.o 10.902896% 10.335083% 1024 220 28 192 0 1024
6 ulog.o 6.271295% 5.944691% 589 2153 2161 1950 203 211 0 589
7 idle.o 4.429302% 4.198627% 416 270 248 22 0 416
8 shell.o 2.991908% 2.836092% 281 1799 1768 31 0 281
9 scheduler.o 2.981261% 2.825999% 280 502 484 18 0 280
10 kservice.o 2.853492% 2.704885% 268 2168 1912 256 0 268
11 object.o 1.575809% 1.493742% 148 1067 832 107 128 20
12 mem.o 0.766610% 0.726686% 72 1880 1512 368 0 72
13 perf_counter.o 0.596252% 0.565200% 56 310 326 298 314 4 8 48
14 dev_pin.o 0.596252% 0.565200% 56 426 364 62 0 56
15 console_be.o 0.511073% 0.484457% 48 90 86 4 0 48
16 timer.o 0.212947% 0.201857% 20 1157 1002 155 0 20
17 thread.o 0.127768% 0.121114% 12 2144 1902 242 0 12
18 irq.o 0.127768% 0.121114% 12 88 88 0 0 12
19 cpuport.o 0.127768% 0.121114% 12 308 308 0 0 12
20 bsp_rtc.o 0.063884% 0.060557% 6 699 600 99 0 6
21 mc_p.l 0.042589% 0.040371% 4 1021 884 133 4 0
22 errno.o 0.042589% 0.040371% 4 12 8 0 4 0
23 system_ciu32l051.o 0.042589% 0.040371% 4 200 164 32 4 0
24 clock.o 0.042589% 0.040371% 4 54 54 0 0 4
25 bsp_flash.o 0.042589% 0.040371% 4 4511 3827 3032 2880 1479 947 0 4

Binary file not shown.

View File

@ -46,8 +46,8 @@
..\bsp\inc\bsp_rtc.h ..\RTOS\inc\rthw.h \ ..\bsp\inc\bsp_rtc.h ..\RTOS\inc\rthw.h \
C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h ..\LIB\RTT\user_rtt.h \ C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h ..\LIB\RTT\user_rtt.h \
..\LIB\RTT\SEGGER_RTT.h ..\LIB\RTT\SEGGER_RTT_Conf.h \ ..\LIB\RTT\SEGGER_RTT.h ..\LIB\RTT\SEGGER_RTT_Conf.h \
..\RTOS\components\utilities\ulog\ulog.h \
..\RTOS\components\utilities\ulog\ulog_def.h \
..\LIB\perf_counter\perf_counter.h \ ..\LIB\perf_counter\perf_counter.h \
..\Peripheral\CMSIS\Core\cmsis_compiler.h \ ..\Peripheral\CMSIS\Core\cmsis_compiler.h \
..\LIB\perf_counter\rtconfig_preinc.h \ ..\LIB\perf_counter\rtconfig_preinc.h
..\RTOS\components\utilities\ulog\ulog.h \
..\RTOS\components\utilities\ulog\ulog_def.h

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -10,4 +10,43 @@
C:\Keil_v5\ARM\ARMCLANG\include\stddef.h \ C:\Keil_v5\ARM\ARMCLANG\include\stddef.h \
..\LIB\perf_counter\rtconfig_preinc.h ..\LIB\RTT\user_rtt.h \ ..\LIB\perf_counter\rtconfig_preinc.h ..\LIB\RTT\user_rtt.h \
..\LIB\RTT\SEGGER_RTT.h ..\LIB\RTT\SEGGER_RTT_Conf.h \ ..\LIB\RTT\SEGGER_RTT.h ..\LIB\RTT\SEGGER_RTT_Conf.h \
C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h ..\RTOS\inc\stdarg.h C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h ..\RTOS\inc\stdarg.h \
..\RTOS\components\utilities\ulog\ulog.h ..\RTOS\inc\rtthread.h \
..\RTOS\rtconfig.h ..\RTOS\components\finsh\finsh_config.h \
..\RTOS\inc\rtdebug.h ..\RTOS\inc\rtdef.h ..\RTOS\inc\rtservice.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_config.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_rcc.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_common.h \
..\Peripheral\CMSIS\Device\ciu32l051.h \
..\Peripheral\CMSIS\Core\core_cm0plus.h \
D:\SXDT\Project\HED\4G\USART1_Interrupt\ -\ RT-Thread\Peripheral\CMSIS\Core\cmsis_version.h \
D:\SXDT\Project\HED\4G\USART1_Interrupt\ -\ RT-Thread\Peripheral\CMSIS\Core\cmsis_compiler.h \
..\Peripheral\CMSIS\Device\system_ciu32l051.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_adc.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_aes.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_comp.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_crc.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_dbg.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_dma.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_exti.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_flash.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_gpio.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_i2c.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_iwdg.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_lcd.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_lptim.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_lpuart.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_pmu.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_rtc.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_spi.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_syscfg.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_tamp.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_tim.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_trng.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_usart.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_vrefbuf.h \
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_wwdg.h \
..\RTOS\components\drivers\inc\dev_pin.h \
..\RTOS\components\finsh\finsh_api.h \
..\RTOS\components\utilities\ulog\ulog_def.h

Binary file not shown.

View File

@ -48,6 +48,6 @@
..\Peripheral\CMSIS\Core\cmsis_compiler.h \ ..\Peripheral\CMSIS\Core\cmsis_compiler.h \
..\LIB\perf_counter\rtconfig_preinc.h ..\LIB\RTT\user_rtt.h \ ..\LIB\perf_counter\rtconfig_preinc.h ..\LIB\RTT\user_rtt.h \
..\LIB\RTT\SEGGER_RTT.h ..\LIB\RTT\SEGGER_RTT_Conf.h \ ..\LIB\RTT\SEGGER_RTT.h ..\LIB\RTT\SEGGER_RTT_Conf.h \
C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h ..\RTOS\inc\rtdbg.h \ C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h \
..\RTOS\components\utilities\ulog\ulog.h \ ..\RTOS\components\utilities\ulog\ulog.h \
..\RTOS\components\utilities\ulog\ulog_def.h ..\RTOS\components\utilities\ulog\ulog_def.h

Binary file not shown.

Binary file not shown.

View File

@ -192,7 +192,7 @@
#define PKG_USING_PERF_COUNTER_V2241 #define PKG_USING_PERF_COUNTER_V2241
// #define DEBUG_OUTPUT_SELECT #define DEBUG_OUTPUT_SELECT
// <<< end of configuration section >>> // <<< end of configuration section >>>
#endif #endif

View File

@ -84,8 +84,8 @@ void rt_hw_board_init()
/* System Tick Configuration */ /* System Tick Configuration */
std_delay_init(); std_delay_init();
_SysTick_Config(SystemCoreClock / RT_TICK_PER_SECOND); _SysTick_Config(SystemCoreClock / RT_TICK_PER_SECOND);
#ifndef DEBUG_OUTPUT_SELECT #ifdef DEBUG_OUTPUT_SELECT
SEGGER_RTT_Init(); SEGGER_RTT_Init();
#endif // DEBUG_OUTPUT_SELECT #endif // DEBUG_OUTPUT_SELECT

View File

@ -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-04 11:54:28 * @LastEditTime: 2024-09-05 11:19:23
* @FilePath: \USART1_Interrupt - RT-Thread\drivers\inc\drv_uart.h * @FilePath: \USART1_Interrupt - RT-Thread\drivers\inc\drv_uart.h
* @Description: * @Description:
* @ * @
@ -57,7 +57,7 @@ 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 (512U) #define UART1_TX_RB_LENGTH (1024U)
#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

View File

@ -100,12 +100,12 @@ void Uart1_Dma_Send_Data(uint32_t *source, uint32_t number)
dma_config.src_addr = (uint32_t)source; dma_config.src_addr = (uint32_t)source;
dma_config.dst_addr = (uint32_t)&USART1->TDR; dma_config.dst_addr = (uint32_t)&USART1->TDR;
dma_config.data_number = number; dma_config.data_number = number;
dma_config.dma_channel = DMA_CHANNEL_1; dma_config.dma_channel = UART1_DMA_TX_CHANNEL;
std_dma_start_transmit(&dma_config); std_dma_start_transmit(&dma_config);
} }
/** /**
* @brief DMA通道0初始化 * @brief DMA通道初始化
* @retval * @retval
*/ */
void Uart1_Dma_Init(void) void Uart1_Dma_Init(void)
@ -139,6 +139,8 @@ void Uart1_Dma_Init(void)
std_dma_interrupt_enable(UART1_DMA_RX_CHANNEL, DMA_INTERRUPT_TF); std_dma_interrupt_enable(UART1_DMA_RX_CHANNEL, DMA_INTERRUPT_TF);
std_dma_interrupt_enable(UART1_DMA_RX_CHANNEL, DMA_INTERRUPT_TH); std_dma_interrupt_enable(UART1_DMA_RX_CHANNEL, DMA_INTERRUPT_TH);
std_dma_interrupt_enable(UART1_DMA_RX_CHANNEL, DMA_INTERRUPT_TE); std_dma_interrupt_enable(UART1_DMA_RX_CHANNEL, DMA_INTERRUPT_TE);
/* 使能发送中断 */
// std_dma_interrupt_enable(UART1_DMA_TX_CHANNEL, DMA_INTERRUPT_TF);
/* NVIC初始化 */ /* NVIC初始化 */
NVIC_SetPriority(UART1_DMA_RX_IRQ_CHANNEL, 0); NVIC_SetPriority(UART1_DMA_RX_IRQ_CHANNEL, 0);
@ -149,6 +151,7 @@ void Uart1_Dma_Init(void)
Uart1_Dma_Rec_Data_Cfg(_uart1_rx_dma_buffer); // DMA接收数据配置 Uart1_Dma_Rec_Data_Cfg(_uart1_rx_dma_buffer); // DMA接收数据配置
std_dma_enable(UART1_DMA_RX_CHANNEL); std_dma_enable(UART1_DMA_RX_CHANNEL);
std_dma_disable(UART1_DMA_TX_CHANNEL);
} }
/** /**
@ -308,7 +311,7 @@ void LPUART1_Init(uint32_t baudrate, uint32_t par)
/* UASRT1初始化 */ /* UASRT1初始化 */
_Lpuart_Init(baudrate, par); _Lpuart_Init(baudrate, par);
LOG_I("USART1 Init"); LOG_I("LPUART1_Init");
} }
/** /**
@ -357,11 +360,13 @@ static void _UART1_RxCheck(void)
* \brief Check if DMA is active and if not try to send data * \brief Check if DMA is active and if not try to send data
* \return `1` if transfer just started, `0` if on-going or no data to transmit * \return `1` if transfer just started, `0` if on-going or no data to transmit
*/ */
static uint8_t _UART1_StartTxDMATransfer(void) static void _UART1_StartTxDMATransfer(void)
{ {
uint8_t started = 0; // uint32_t primask;
rt_enter_critical();
rt_enter_critical();
// primask = __get_PRIMASK();
// __disable_irq();
if (_uart1_tx_dma_current_len == 0 && (_uart1_tx_dma_current_len = lwrb_get_linear_block_read_length(&uart1_tx_rb)) > 0) if (_uart1_tx_dma_current_len == 0 && (_uart1_tx_dma_current_len = lwrb_get_linear_block_read_length(&uart1_tx_rb)) > 0)
{ {
/* Disable channel if enabled */ /* Disable channel if enabled */
@ -371,15 +376,15 @@ static uint8_t _UART1_StartTxDMATransfer(void)
std_dma_clear_flag(DMA_CLEAR_TF1); std_dma_clear_flag(DMA_CLEAR_TF1);
Uart1_Dma_Send_Data(lwrb_get_linear_block_read_address(&uart1_tx_rb), _uart1_tx_dma_current_len); Uart1_Dma_Send_Data(lwrb_get_linear_block_read_address(&uart1_tx_rb), _uart1_tx_dma_current_len);
std_dma_interrupt_enable(DMA_CHANNEL_1, DMA_INTERRUPT_TF); // 发送时打开DMA通道中断 std_dma_interrupt_enable(UART1_DMA_TX_CHANNEL, DMA_INTERRUPT_TF); // 发送时打开DMA通道中断
/* enable transfer */ /* enable transfer */
std_dma_enable(UART1_DMA_TX_CHANNEL); std_dma_enable(UART1_DMA_TX_CHANNEL);
std_usart_dma_tx_enable(USART1); std_usart_dma_tx_enable(USART1);
started = 1;
} }
// __set_PRIMASK(primask);
rt_exit_critical(); rt_exit_critical();
return started;
} }
rt_uint32_t UART1_Write(const void *data, size_t len) rt_uint32_t UART1_Write(const void *data, size_t len)
@ -551,6 +556,7 @@ void DMA_Channel1_IRQHandler(void)
std_dma_clear_flag(DMA_CLEAR_TF1); std_dma_clear_flag(DMA_CLEAR_TF1);
lwrb_skip(&uart1_tx_rb, _uart1_tx_dma_current_len); /* Skip buffer, it has been successfully sent out */ lwrb_skip(&uart1_tx_rb, _uart1_tx_dma_current_len); /* Skip buffer, it has been successfully sent out */
_uart1_tx_dma_current_len = 0; /* Reset data length */ _uart1_tx_dma_current_len = 0; /* Reset data length */
_UART1_StartTxDMATransfer();
} }
/* leave interrupt */ /* leave interrupt */

View File

@ -2,7 +2,7 @@
* @Author: mbw * @Author: mbw
* @Date: 2024-08-19 10:10:06 * @Date: 2024-08-19 10:10:06
* @LastEditors: mbw && 1600520629@qq.com * @LastEditors: mbw && 1600520629@qq.com
* @LastEditTime: 2024-09-05 08:59:16 * @LastEditTime: 2024-09-05 13:38:33
* @FilePath: \USART1_Interrupt - RT-Thread\user\Source\main.c * @FilePath: \USART1_Interrupt - RT-Thread\user\Source\main.c
* @Description: * @Description:
* *
@ -41,55 +41,20 @@
/*-------------------------------------------functions------------------------------------------*/ /*-------------------------------------------functions------------------------------------------*/
int LED_Init(void)
{
std_rcc_gpio_clk_enable(RCC_PERIPH_CLK_GPIOA|RCC_PERIPH_CLK_GPIOB);
std_gpio_init_t tmp_gpio_cfg = {0};
tmp_gpio_cfg.pin = GPIO_PIN_8;
tmp_gpio_cfg.mode = GPIO_MODE_OUTPUT;
tmp_gpio_cfg.output_type = GPIO_OUTPUT_PUSHPULL;
tmp_gpio_cfg.pull = GPIO_NOPULL;
std_gpio_init(GPIOB, &tmp_gpio_cfg);
return RT_EOK;
}
// INIT_APP_EXPORT(LED_Init);
int main(void) int main(void)
{ {
// uint8_t rtctime[3], rtcdate[3]; // uint8_t rtctime[3], rtcdate[3];
// LOG_I("test CIU32 L051 RT-Thread!\r\n"); 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);
// UART1_SendString("test CIU32 L051 uart1 dma send RT-Thread!\r\n");
// LPUART1_SendString("test CIU32 L051 Lpuart1 interrupt send RT-Thread!\r\n");
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT); rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
RTT_LOG_D("LED0_PIN = %d\r\n", LED0_PIN);
while (1) while (1)
{ {
rt_pin_write(LED0_PIN, PIN_HIGH); rt_pin_write(LED0_PIN, PIN_HIGH);
rt_thread_mdelay(1000); rt_thread_mdelay(1000);
rt_pin_write(LED0_PIN, PIN_LOW); rt_pin_write(LED0_PIN, PIN_LOW);
rt_thread_mdelay(1000); rt_thread_mdelay(1000);
// std_gpio_reset_pin(GPIOB, GPIO_PIN_8);
// rt_thread_mdelay(500);
// std_gpio_set_pin(GPIOB, GPIO_PIN_8);
// rt_thread_mdelay(500);
// UART1_SendString("test CIU32 L051 uart1 dma send RT-Thread!\r\n");
// LPUART1_SendString("test CIU32 L051 lpuart1 send RT-Thread!\r\n");
/* »ñÈ¡ÈÕÀúÈÕÆÚÓëʱ¼ä */
// BSP_Rtc_Get_Calendar(rtcdate, rtctime);
// LOG_D("RTC Time: %04d-%02d-%02d %02d:%02d:%02d\n",
// 2000 + std_rtc_convert_bcd2bin(rtcdate[0]),std_rtc_convert_bcd2bin(rtcdate[1]), std_rtc_convert_bcd2bin(rtcdate[2]),
// std_rtc_convert_bcd2bin(rtctime[0]), std_rtc_convert_bcd2bin(rtctime[1]), std_rtc_convert_bcd2bin(rtctime[2]));
} }
} }