# FreeRTOS_Test_STM32F411 **Repository Path**: H0x9DEFA478/FreeRTOS_Test_STM32_F411 ## Basic Information - **Project Name**: FreeRTOS_Test_STM32F411 - **Description**: FreeRTOS的调度性能测试 - **Primary Language**: C - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2021-12-20 - **Last Updated**: 2025-05-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # FreeRTOS_Test_STM32F411 #### 介绍 FreeRTOS的调度性能测试 创建两个线程, 两个信号量, 每个线程等待信号量,等待信号量成功后向对方释放信号量,达到连续调度的效果。 每100ms计算一次自增量,然后换算出结果 主要测试逻辑在文件 \FreeRTOS_Test_STM32F411\Code\APP\app_main.c中 #### 测试结果 芯片条件: stm32f411 96MHz Flash配置: 指令预取开 指令缓存开 数据缓存开 ARM编译器V5 配置条件: 占位线程数量Stress_IsExtThread==0 -O3优化+时间优化 -O0优化 Thread(Stress_IsTestISR==0) avg:11112.99/100ms 9.00us avg:8866.50/100ms 11.3us SVC_ISR(Stress_IsTestISR!=0) avg:9931.70/100ms 10.1us avg:8062.62/100ms 12.4us *后面us为单位的为每次调度所用的时间 100000us/cnt* 配置条件: 占位线程数量Stress_IsExtThread==48 -O3优化+时间优化 Thread(Stress_IsTestISR==0) avg:11099.80/100ms 9.01us SVC_ISR(Stress_IsTestISR!=0) avg:9880.88/100ms 10.12us