增加固件版本号V1.00.01(app_version.h);新增sysinfo命令查询FreeRTOS运行信息(任务表/heap/uptime)

This commit is contained in:
evan.liu 2026-09-01 21:01:32 +08:00
parent e17648f7fe
commit 135a42452b
46 changed files with 2524 additions and 2170 deletions

View File

@ -28,6 +28,7 @@ mcm-ddc-04/
│ ├── bsp_led.c/.h # LED1(PB0)/LED2(PA6) 初始化、on/off/toggle │ ├── bsp_led.c/.h # LED1(PB0)/LED2(PA6) 初始化、on/off/toggle
│ ├── app_tasks.c/.h # 3 个 FreeRTOS 任务 + 日志队列(生产者-消费者模型)+ 主动打印开关(默认关) │ ├── app_tasks.c/.h # 3 个 FreeRTOS 任务 + 日志队列(生产者-消费者模型)+ 主动打印开关(默认关)
│ ├── app_cli.c/.h # CLI 独立任务:行接收/解析/执行/应答(应答走 DMA TX),命令表驱动 │ ├── app_cli.c/.h # CLI 独立任务:行接收/解析/执行/应答(应答走 DMA TX),命令表驱动
│ ├── app_version.h # 固件版本号 APP_FW_VERSION
│ ├── n32wb03x_it.c/.h # NMI / HardFault 异常处理 + USART1_IRQHandler(转发到 bsp_usart_rx_isr_handler) │ ├── n32wb03x_it.c/.h # NMI / HardFault 异常处理 + USART1_IRQHandler(转发到 bsp_usart_rx_isr_handler)
│ └── FreeRTOSConfig.h # heap 20KB,SVC/PendSV/SysTick 映射给 FreeRTOS port │ └── FreeRTOSConfig.h # heap 20KB,SVC/PendSV/SysTick 映射给 FreeRTOS port
├── MDK-ARM/ ├── MDK-ARM/
@ -53,7 +54,7 @@ SDK 源码(固件库、CMSIS、FreeRTOS V9.0.0、启动文件)通过相对
``` ```
构建成功后自动执行 `fromelf --bin --output=.\bin\embeddedSrc.bin .\Objects\embeddedSrc.axf`。 构建成功后自动执行 `fromelf --bin --output=.\bin\embeddedSrc.bin .\Objects\embeddedSrc.axf`。
当前基线结果:**0 Error(s), 0 Warning(s)**,体积 `Code=15692 RO-data=944 RW-data=112 ZI-data=23496`。 当前基线结果:**0 Error(s), 0 Warning(s)**,体积 `Code=16944 RO-data=1020 RW-data=112 ZI-data=23880`。
烧录与运行: 烧录与运行:

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,6 @@
.\objects\app_cli.o: ..\app\app_cli.c .\objects\app_cli.o: ..\app\app_cli.c
.\objects\app_cli.o: ..\app\app_cli.h .\objects\app_cli.o: ..\app\app_cli.h
.\objects\app_cli.o: ..\app\app_version.h
.\objects\app_cli.o: ..\app\bsp_usart.h .\objects\app_cli.o: ..\app\bsp_usart.h
.\objects\app_cli.o: ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\device\n32wb03x.h .\objects\app_cli.o: ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\device\n32wb03x.h
.\objects\app_cli.o: ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\core\core_cm0.h .\objects\app_cli.o: ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\core\core_cm0.h

Binary file not shown.

Binary file not shown.

View File

@ -27,27 +27,27 @@ Project File Date: 09/01/2026
<h2>Output:</h2> <h2>Output:</h2>
*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'D:\Keil_v5\ARM\ARMCC\Bin' *** Using Compiler 'V5.06 update 6 (build 750)', folder: 'D:\Keil_v5\ARM\ARMCC\Bin'
Rebuild target 'N32WB03X' Rebuild target 'N32WB03X'
assembling startup_n32wb03x.s...
compiling queue.c...
compiling list.c...
compiling timers.c... compiling timers.c...
compiling misc.c... assembling startup_n32wb03x.s...
compiling tasks.c... compiling list.c...
compiling heap_4.c... compiling queue.c...
compiling n32wb03x_dma.c... compiling n32wb03x_dma.c...
compiling port.c...
compiling n32wb03x_usart.c...
compiling system_n32wb03x.c... compiling system_n32wb03x.c...
compiling n32wb03x_usart.c...
compiling misc.c...
compiling heap_4.c...
compiling n32wb03x_gpio.c... compiling n32wb03x_gpio.c...
compiling n32wb03x_rcc.c... compiling n32wb03x_rcc.c...
compiling tasks.c...
compiling port.c...
compiling main.c... compiling main.c...
compiling bsp_led.c...
compiling bsp_usart.c... compiling bsp_usart.c...
compiling app_tasks.c... compiling bsp_led.c...
compiling n32wb03x_it.c... compiling n32wb03x_it.c...
compiling app_cli.c... compiling app_cli.c...
compiling app_tasks.c...
linking... linking...
Program Size: Code=15692 RO-data=944 RW-data=112 ZI-data=23496 Program Size: Code=16944 RO-data=1020 RW-data=112 ZI-data=23880
FromELF: creating hex file... FromELF: creating hex file...
After Build - User command #1: fromelf --bin --output=.\bin\embeddedSrc.bin .\Objects\embeddedSrc.axf After Build - User command #1: fromelf --bin --output=.\bin\embeddedSrc.bin .\Objects\embeddedSrc.axf
".\Objects\embeddedSrc.axf" - 0 Error(s), 0 Warning(s). ".\Objects\embeddedSrc.axf" - 0 Error(s), 0 Warning(s).
@ -63,7 +63,7 @@ Package Vendor: Nationstech
D:\Keil_v5\Arm\Packs\Nationstech\N32WB03X_DFP\1.4.0\firmware\CMSIS\device D:\Keil_v5\Arm\Packs\Nationstech\N32WB03X_DFP\1.4.0\firmware\CMSIS\device
<h2>Collection of Component Files used:</h2> <h2>Collection of Component Files used:</h2>
Build Time Elapsed: 00:00:02 Build Time Elapsed: 00:00:01
</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

View File

@ -175,7 +175,7 @@ I (D:\Keil_v5\ARM\ARMCC\include\stdlib.h)(0x5EC775FC)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h)(0x60DC5C77) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h)(0x60DC5C77)
I (D:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x5EC775FC) I (D:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x5EC775FC)
I (D:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x5EC775FC) I (D:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x5EC775FC)
I (..\app\FreeRTOSConfig.h)(0x6A96C5B9) I (..\app\FreeRTOSConfig.h)(0x6A96CB6E)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\projdefs.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\projdefs.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\portable.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\portable.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\deprecated_definitions.h)(0x60DC5C77) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\deprecated_definitions.h)(0x60DC5C77)
@ -188,7 +188,7 @@ I (D:\Keil_v5\ARM\ARMCC\include\string.h)(0x5EC77604)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h)(0x60DC5C77) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h)(0x60DC5C77)
I (D:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x5EC775FC) I (D:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x5EC775FC)
I (D:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x5EC775FC) I (D:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x5EC775FC)
I (..\app\FreeRTOSConfig.h)(0x6A96C5B9) I (..\app\FreeRTOSConfig.h)(0x6A96CB6E)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\projdefs.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\projdefs.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\portable.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\portable.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\deprecated_definitions.h)(0x60DC5C77) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\deprecated_definitions.h)(0x60DC5C77)
@ -203,7 +203,7 @@ I (D:\Keil_v5\ARM\ARMCC\include\string.h)(0x5EC77604)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h)(0x60DC5C77) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h)(0x60DC5C77)
I (D:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x5EC775FC) I (D:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x5EC775FC)
I (D:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x5EC775FC) I (D:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x5EC775FC)
I (..\app\FreeRTOSConfig.h)(0x6A96C5B9) I (..\app\FreeRTOSConfig.h)(0x6A96CB6E)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\projdefs.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\projdefs.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\portable.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\portable.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\deprecated_definitions.h)(0x60DC5C77) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\deprecated_definitions.h)(0x60DC5C77)
@ -213,12 +213,13 @@ I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\list.h)(0x60DC5C77) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\list.h)(0x60DC5C77)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\timers.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\timers.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\stack_macros.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\stack_macros.h)(0x60DC5C76)
I (D:\Keil_v5\ARM\ARMCC\include\stdio.h)(0x5EC775FC)
F (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\timers.c)(0x60DC5C76)(--c99 -c --cpu Cortex-M0 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\app -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\core -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\device -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\n32wb03x_std_periph_driver\inc -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\portable\RVDS\ARM_CM0 -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include -ID:\Keil_v5\Arm\Packs\Nationstech\N32WB03X_DFP\1.4.0\firmware\CMSIS\device -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="531" -DN32WB03x -DUSE_STDPERIPH_DRIVER -DN32WB03X -DUSE_STDPERIPH_DRIVER -o .\objects\timers.o --omf_browse .\objects\timers.crf --depend .\objects\timers.d) F (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\timers.c)(0x60DC5C76)(--c99 -c --cpu Cortex-M0 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\app -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\core -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\device -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\n32wb03x_std_periph_driver\inc -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\portable\RVDS\ARM_CM0 -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include -ID:\Keil_v5\Arm\Packs\Nationstech\N32WB03X_DFP\1.4.0\firmware\CMSIS\device -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="531" -DN32WB03x -DUSE_STDPERIPH_DRIVER -DN32WB03X -DUSE_STDPERIPH_DRIVER -o .\objects\timers.o --omf_browse .\objects\timers.crf --depend .\objects\timers.d)
I (D:\Keil_v5\ARM\ARMCC\include\stdlib.h)(0x5EC775FC) I (D:\Keil_v5\ARM\ARMCC\include\stdlib.h)(0x5EC775FC)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h)(0x60DC5C77) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h)(0x60DC5C77)
I (D:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x5EC775FC) I (D:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x5EC775FC)
I (D:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x5EC775FC) I (D:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x5EC775FC)
I (..\app\FreeRTOSConfig.h)(0x6A96C5B9) I (..\app\FreeRTOSConfig.h)(0x6A96CB6E)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\projdefs.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\projdefs.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\portable.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\portable.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\deprecated_definitions.h)(0x60DC5C77) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\deprecated_definitions.h)(0x60DC5C77)
@ -232,7 +233,7 @@ F (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h)(0x60DC5C77) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h)(0x60DC5C77)
I (D:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x5EC775FC) I (D:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x5EC775FC)
I (D:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x5EC775FC) I (D:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x5EC775FC)
I (..\app\FreeRTOSConfig.h)(0x6A96C5B9) I (..\app\FreeRTOSConfig.h)(0x6A96CB6E)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\projdefs.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\projdefs.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\portable.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\portable.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\deprecated_definitions.h)(0x60DC5C77) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\deprecated_definitions.h)(0x60DC5C77)
@ -245,7 +246,7 @@ I (D:\Keil_v5\ARM\ARMCC\include\stdlib.h)(0x5EC775FC)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h)(0x60DC5C77) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h)(0x60DC5C77)
I (D:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x5EC775FC) I (D:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x5EC775FC)
I (D:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x5EC775FC) I (D:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x5EC775FC)
I (..\app\FreeRTOSConfig.h)(0x6A96C5B9) I (..\app\FreeRTOSConfig.h)(0x6A96CB6E)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\projdefs.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\projdefs.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\portable.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\portable.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\deprecated_definitions.h)(0x60DC5C77) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\deprecated_definitions.h)(0x60DC5C77)
@ -253,7 +254,7 @@ I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\mpu_wrappers.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\mpu_wrappers.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\task.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\task.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\list.h)(0x60DC5C77) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\list.h)(0x60DC5C77)
F (..\app\main.c)(0x6A96C3A9)(--c99 -c --cpu Cortex-M0 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\app -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\core -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\device -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\n32wb03x_std_periph_driver\inc -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\portable\RVDS\ARM_CM0 -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include -ID:\Keil_v5\Arm\Packs\Nationstech\N32WB03X_DFP\1.4.0\firmware\CMSIS\device -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="531" -DN32WB03x -DUSE_STDPERIPH_DRIVER -DN32WB03X -DUSE_STDPERIPH_DRIVER -o .\objects\main.o --omf_browse .\objects\main.crf --depend .\objects\main.d) F (..\app\main.c)(0x6A96CB84)(--c99 -c --cpu Cortex-M0 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\app -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\core -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\device -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\n32wb03x_std_periph_driver\inc -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\portable\RVDS\ARM_CM0 -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include -ID:\Keil_v5\Arm\Packs\Nationstech\N32WB03X_DFP\1.4.0\firmware\CMSIS\device -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="531" -DN32WB03x -DUSE_STDPERIPH_DRIVER -DN32WB03X -DUSE_STDPERIPH_DRIVER -o .\objects\main.o --omf_browse .\objects\main.crf --depend .\objects\main.d)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\device\n32wb03x.h)(0x68CD0B30) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\device\n32wb03x.h)(0x68CD0B30)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\core\core_cm0.h)(0x5FA56A96) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\core\core_cm0.h)(0x5FA56A96)
I (D:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x5EC775FC) I (D:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x5EC775FC)
@ -284,7 +285,7 @@ I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\n32wb03x_std_periph_driver\inc
I (D:\Keil_v5\ARM\ARMCC\include\stdio.h)(0x5EC775FC) I (D:\Keil_v5\ARM\ARMCC\include\stdio.h)(0x5EC775FC)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h)(0x60DC5C77) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h)(0x60DC5C77)
I (D:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x5EC775FC) I (D:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x5EC775FC)
I (..\app\FreeRTOSConfig.h)(0x6A96C5B9) I (..\app\FreeRTOSConfig.h)(0x6A96CB6E)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\projdefs.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\projdefs.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\portable.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\portable.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\deprecated_definitions.h)(0x60DC5C77) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\deprecated_definitions.h)(0x60DC5C77)
@ -296,6 +297,7 @@ I (..\app\bsp_usart.h)(0x6A96C2A9)
I (..\app\bsp_led.h)(0x6A96BAAF) I (..\app\bsp_led.h)(0x6A96BAAF)
I (..\app\app_tasks.h)(0x6A96C2F1) I (..\app\app_tasks.h)(0x6A96C2F1)
I (..\app\app_cli.h)(0x6A96C353) I (..\app\app_cli.h)(0x6A96C353)
I (..\app\app_version.h)(0x6A96CB6E)
F (..\app\bsp_usart.c)(0x6A96C2D9)(--c99 -c --cpu Cortex-M0 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\app -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\core -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\device -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\n32wb03x_std_periph_driver\inc -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\portable\RVDS\ARM_CM0 -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include -ID:\Keil_v5\Arm\Packs\Nationstech\N32WB03X_DFP\1.4.0\firmware\CMSIS\device -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="531" -DN32WB03x -DUSE_STDPERIPH_DRIVER -DN32WB03X -DUSE_STDPERIPH_DRIVER -o .\objects\bsp_usart.o --omf_browse .\objects\bsp_usart.crf --depend .\objects\bsp_usart.d) F (..\app\bsp_usart.c)(0x6A96C2D9)(--c99 -c --cpu Cortex-M0 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\app -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\core -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\device -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\n32wb03x_std_periph_driver\inc -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\portable\RVDS\ARM_CM0 -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include -ID:\Keil_v5\Arm\Packs\Nationstech\N32WB03X_DFP\1.4.0\firmware\CMSIS\device -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="531" -DN32WB03x -DUSE_STDPERIPH_DRIVER -DN32WB03X -DUSE_STDPERIPH_DRIVER -o .\objects\bsp_usart.o --omf_browse .\objects\bsp_usart.crf --depend .\objects\bsp_usart.d)
I (..\app\bsp_usart.h)(0x6A96C2A9) I (..\app\bsp_usart.h)(0x6A96C2A9)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\device\n32wb03x.h)(0x68CD0B30) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\device\n32wb03x.h)(0x68CD0B30)
@ -328,7 +330,7 @@ I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\n32wb03x_std_periph_driver\inc
I (D:\Keil_v5\ARM\ARMCC\include\stdio.h)(0x5EC775FC) I (D:\Keil_v5\ARM\ARMCC\include\stdio.h)(0x5EC775FC)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h)(0x60DC5C77) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h)(0x60DC5C77)
I (D:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x5EC775FC) I (D:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x5EC775FC)
I (..\app\FreeRTOSConfig.h)(0x6A96C5B9) I (..\app\FreeRTOSConfig.h)(0x6A96CB6E)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\projdefs.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\projdefs.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\portable.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\portable.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\deprecated_definitions.h)(0x60DC5C77) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\deprecated_definitions.h)(0x60DC5C77)
@ -401,7 +403,7 @@ I (..\app\bsp_usart.h)(0x6A96C2A9)
I (D:\Keil_v5\ARM\ARMCC\include\stdio.h)(0x5EC775FC) I (D:\Keil_v5\ARM\ARMCC\include\stdio.h)(0x5EC775FC)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h)(0x60DC5C77) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h)(0x60DC5C77)
I (D:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x5EC775FC) I (D:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x5EC775FC)
I (..\app\FreeRTOSConfig.h)(0x6A96C5B9) I (..\app\FreeRTOSConfig.h)(0x6A96CB6E)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\projdefs.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\projdefs.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\portable.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\portable.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\deprecated_definitions.h)(0x60DC5C77) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\deprecated_definitions.h)(0x60DC5C77)
@ -410,8 +412,9 @@ I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\task.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\task.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\list.h)(0x60DC5C77) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\list.h)(0x60DC5C77)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\queue.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\queue.h)(0x60DC5C76)
F (..\app\app_cli.c)(0x6A96CA08)(--c99 -c --cpu Cortex-M0 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\app -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\core -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\device -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\n32wb03x_std_periph_driver\inc -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\portable\RVDS\ARM_CM0 -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include -ID:\Keil_v5\Arm\Packs\Nationstech\N32WB03X_DFP\1.4.0\firmware\CMSIS\device -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="531" -DN32WB03x -DUSE_STDPERIPH_DRIVER -DN32WB03X -DUSE_STDPERIPH_DRIVER -o .\objects\app_cli.o --omf_browse .\objects\app_cli.crf --depend .\objects\app_cli.d) F (..\app\app_cli.c)(0x6A96CBB8)(--c99 -c --cpu Cortex-M0 -D__MICROLIB -g -O0 --apcs=interwork --split_sections -I ..\app -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\core -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\device -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\n32wb03x_std_periph_driver\inc -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\portable\RVDS\ARM_CM0 -I ..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include -ID:\Keil_v5\Arm\Packs\Nationstech\N32WB03X_DFP\1.4.0\firmware\CMSIS\device -ID:\Keil_v5\ARM\CMSIS\Include -D__UVISION_VERSION="531" -DN32WB03x -DUSE_STDPERIPH_DRIVER -DN32WB03X -DUSE_STDPERIPH_DRIVER -o .\objects\app_cli.o --omf_browse .\objects\app_cli.crf --depend .\objects\app_cli.d)
I (..\app\app_cli.h)(0x6A96C353) I (..\app\app_cli.h)(0x6A96C353)
I (..\app\app_version.h)(0x6A96CB6E)
I (..\app\bsp_usart.h)(0x6A96C2A9) I (..\app\bsp_usart.h)(0x6A96C2A9)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\device\n32wb03x.h)(0x68CD0B30) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\device\n32wb03x.h)(0x68CD0B30)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\core\core_cm0.h)(0x5FA56A96) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\firmware\CMSIS\core\core_cm0.h)(0x5FA56A96)
@ -447,7 +450,7 @@ I (D:\Keil_v5\ARM\ARMCC\include\string.h)(0x5EC77604)
I (D:\Keil_v5\ARM\ARMCC\include\stdarg.h)(0x5EC775FC) I (D:\Keil_v5\ARM\ARMCC\include\stdarg.h)(0x5EC775FC)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h)(0x60DC5C77) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h)(0x60DC5C77)
I (D:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x5EC775FC) I (D:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x5EC775FC)
I (..\app\FreeRTOSConfig.h)(0x6A96C5B9) I (..\app\FreeRTOSConfig.h)(0x6A96CB6E)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\projdefs.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\projdefs.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\portable.h)(0x60DC5C76) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\portable.h)(0x60DC5C76)
I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\deprecated_definitions.h)(0x60DC5C77) I (..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\deprecated_definitions.h)(0x60DC5C77)

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -42,3 +42,4 @@
.\objects\main.o: ..\app\bsp_led.h .\objects\main.o: ..\app\bsp_led.h
.\objects\main.o: ..\app\app_tasks.h .\objects\main.o: ..\app\app_tasks.h
.\objects\main.o: ..\app\app_cli.h .\objects\main.o: ..\app\app_cli.h
.\objects\main.o: ..\app\app_version.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.

View File

@ -14,3 +14,4 @@
.\objects\tasks.o: ..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\list.h .\objects\tasks.o: ..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\list.h
.\objects\tasks.o: ..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\timers.h .\objects\tasks.o: ..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\timers.h
.\objects\tasks.o: ..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\stack_macros.h .\objects\tasks.o: ..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\include\stack_macros.h
.\objects\tasks.o: D:\Keil_v5\ARM\ARMCC\Bin\..\include\stdio.h

Binary file not shown.

Binary file not shown.

View File

@ -1,8 +1,17 @@
*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'D:\Keil_v5\ARM\ARMCC\Bin' *** Using Compiler 'V5.06 update 6 (build 750)', folder: 'D:\Keil_v5\ARM\ARMCC\Bin'
Build target 'N32WB03X' Build target 'N32WB03X'
compiling list.c...
compiling tasks.c...
compiling queue.c...
compiling heap_4.c...
compiling timers.c...
compiling port.c...
compiling app_tasks.c...
compiling main.c...
compiling bsp_usart.c...
compiling app_cli.c... compiling app_cli.c...
linking... linking...
Program Size: Code=15692 RO-data=944 RW-data=112 ZI-data=23496 Program Size: Code=16944 RO-data=1020 RW-data=112 ZI-data=23880
FromELF: creating hex file... FromELF: creating hex file...
After Build - User command #1: fromelf --bin --output=.\bin\embeddedSrc.bin .\Objects\embeddedSrc.axf After Build - User command #1: fromelf --bin --output=.\bin\embeddedSrc.bin .\Objects\embeddedSrc.axf
".\Objects\embeddedSrc.axf" - 0 Error(s), 0 Warning(s). ".\Objects\embeddedSrc.axf" - 0 Error(s), 0 Warning(s).

View File

@ -3607,8 +3607,8 @@
<Doc> <Doc>
<Name>..\app\main.c</Name> <Name>..\app\main.c</Name>
<ColumnNumber>0</ColumnNumber> <ColumnNumber>0</ColumnNumber>
<TopLine>13</TopLine> <TopLine>1</TopLine>
<CurrentLine>22</CurrentLine> <CurrentLine>21</CurrentLine>
<Folding>1</Folding> <Folding>1</Folding>
<ContractedFolders></ContractedFolders> <ContractedFolders></ContractedFolders>
<PaneID>0</PaneID> <PaneID>0</PaneID>
@ -3651,9 +3651,9 @@
</Doc> </Doc>
<Doc> <Doc>
<Name>..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\tasks.c</Name> <Name>..\..\nations-tec\N32WB03x_SDK_V2.0.0\middlewares\Third_Party\FreeRTOS\Source\tasks.c</Name>
<ColumnNumber>9</ColumnNumber> <ColumnNumber>27</ColumnNumber>
<TopLine>3463</TopLine> <TopLine>3463</TopLine>
<CurrentLine>3474</CurrentLine> <CurrentLine>3479</CurrentLine>
<Folding>1</Folding> <Folding>1</Folding>
<ContractedFolders></ContractedFolders> <ContractedFolders></ContractedFolders>
<PaneID>0</PaneID> <PaneID>0</PaneID>

View File

@ -36,6 +36,7 @@
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 20 * 1024 ) ) #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 20 * 1024 ) )
#define configMAX_TASK_NAME_LEN ( 16 ) #define configMAX_TASK_NAME_LEN ( 16 )
#define configUSE_TRACE_FACILITY 1 #define configUSE_TRACE_FACILITY 1
#define configUSE_STATS_FORMATTING_FUNCTIONS 1
#define configUSE_16_BIT_TICKS 0 #define configUSE_16_BIT_TICKS 0
#define configIDLE_SHOULD_YIELD 1 #define configIDLE_SHOULD_YIELD 1
#define configUSE_MUTEXES 1 #define configUSE_MUTEXES 1

View File

@ -8,6 +8,7 @@
* Editing: backspace (0x08 / 0x7F) erases the last character. * Editing: backspace (0x08 / 0x7F) erases the last character.
*/ */
#include "app_cli.h" #include "app_cli.h"
#include "app_version.h"
#include "bsp_usart.h" #include "bsp_usart.h"
#include "bsp_led.h" #include "bsp_led.h"
#include "app_tasks.h" #include "app_tasks.h"
@ -81,10 +82,37 @@ static void CmdVersion(int argc, char* argv[])
{ {
(void)argc; (void)argc;
(void)argv; (void)argv;
cli_printf("firmware version: %s\r\n", APP_FW_VERSION);
cli_write("N32WB031 FreeRTOS + UART(DMA) + LED + CLI demo\r\n"); cli_write("N32WB031 FreeRTOS + UART(DMA) + LED + CLI demo\r\n");
cli_printf("SystemCoreClock = %lu Hz\r\n", (unsigned long)SystemCoreClock); cli_printf("SystemCoreClock = %lu Hz\r\n", (unsigned long)SystemCoreClock);
} }
/**
* @brief "sysinfo": show FreeRTOS runtime info (uptime, tasks, heap,
* per-task state/priority/stack high water mark).
*/
static void CmdSysInfo(int argc, char* argv[])
{
static char s_taskList[384]; /* vTaskList output buffer */
uint32_t ticks = (uint32_t)xTaskGetTickCount();
(void)argc;
(void)argv;
cli_printf("uptime: %lu ticks (%lu s)\r\n",
(unsigned long)ticks, (unsigned long)(ticks / configTICK_RATE_HZ));
cli_printf("tasks: %u\r\n", (unsigned int)uxTaskGetNumberOfTasks());
cli_printf("heap: total %u B, free %u B, min ever free %u B\r\n",
(unsigned int)configTOTAL_HEAP_SIZE,
(unsigned int)xPortGetFreeHeapSize(),
(unsigned int)xPortGetMinimumEverFreeHeapSize());
/* vTaskList lines already end with "\r\n"; stack column is in words */
cli_write("name state prio stack(w) num\r\n");
s_taskList[0] = '\0';
vTaskList(s_taskList);
cli_write(s_taskList);
}
/** /**
* @brief "log [on|off]": show or set the active log printing switch. * @brief "log [on|off]": show or set the active log printing switch.
*/ */
@ -167,7 +195,8 @@ static void CmdLed(int argc, char* argv[])
/* Command table; add new commands here */ /* Command table; add new commands here */
static const CliCmd_t s_cmds[] = { static const CliCmd_t s_cmds[] = {
{"help", "list all commands", CmdHelp}, {"help", "list all commands", CmdHelp},
{"version", "show firmware/clock info", CmdVersion}, {"version", "show firmware version", CmdVersion},
{"sysinfo", "show FreeRTOS runtime info (uptime/tasks/heap/task list)", CmdSysInfo},
{"log", "log [on|off]: active printing switch (default off)", CmdLog}, {"log", "log [on|off]: active printing switch (default off)", CmdLog},
{"led", "led <1|2> <on|off|toggle>: control board LED", CmdLed}, {"led", "led <1|2> <on|off|toggle>: control board LED", CmdLed},
}; };

View File

@ -0,0 +1,10 @@
/**
* @file app_version.h
* @brief Firmware version string.
*/
#ifndef __APP_VERSION_H__
#define __APP_VERSION_H__
#define APP_FW_VERSION "V1.00.01"
#endif /* __APP_VERSION_H__ */

View File

@ -12,6 +12,7 @@
#include "bsp_led.h" #include "bsp_led.h"
#include "app_tasks.h" #include "app_tasks.h"
#include "app_cli.h" #include "app_cli.h"
#include "app_version.h"
/** /**
* @brief Main program. * @brief Main program.
@ -25,6 +26,7 @@ int main(void)
bsp_usart_init(); bsp_usart_init();
printf("\n========================================\n"); printf("\n========================================\n");
printf(" N32WB031 FreeRTOS + UART + LED demo\n"); printf(" N32WB031 FreeRTOS + UART + LED demo\n");
printf(" Firmware version %s\n", APP_FW_VERSION);
printf(" SystemCoreClock = %lu Hz\n", (unsigned long)SystemCoreClock); printf(" SystemCoreClock = %lu Hz\n", (unsigned long)SystemCoreClock);
printf("========================================\n"); printf("========================================\n");

View File

@ -197,3 +197,18 @@ LED 任务照常翻转,仅在开关打开时才向日志队列投递消息。
- 命令行提示符由 `n32> ` 改为 `caiic->`(`app_cli.c` 中 `CLI_PROMPT` 宏)。 - 命令行提示符由 `n32> ` 改为 `caiic->`(`app_cli.c` 中 `CLI_PROMPT` 宏)。
- 编译:0 Error / 0 Warning;体积 `Code=15692 RO-data=944 RW-data=112 ZI-data=23496`。 - 编译:0 Error / 0 Warning;体积 `Code=15692 RO-data=944 RW-data=112 ZI-data=23496`。
---
日期:2026-09-01
## 14. 软件版本号 + sysinfo 系统信息命令
- 新增 `app/app_version.h`:`APP_FW_VERSION "V1.00.01"`,启动 banner 与 `version`
命令均输出版本号。
- 新增 CLI 命令 `sysinfo`:输出运行时间(tick/秒)、任务数、heap 总量/当前空闲/
历史最小空闲,以及 `vTaskList` 任务表(名称/状态/优先级/栈高水位/编号,
栈单位为字)。`vTaskList` 行尾自带 `\r\n`,直接 DMA 输出。
- `FreeRTOSConfig.h` 新增 `configUSE_STATS_FORMATTING_FUNCTIONS 1`(`vTaskList`
依赖,同时需要 `configUSE_TRACE_FACILITY 1`,已具备)。
- 编译:0 Error / 0 Warning;体积 `Code=16944 RO-data=1020 RW-data=112 ZI-data=23880`。