uC/Probe 应用 uCOSIII 配置

来源:互联网 发布:淘宝首页图片大小 编辑:程序博客网 时间:2024/06/16 09:05
μC/OS-III要求

Similar to μC/OS-II, in order to display the μC/OS-III Awareness Screens you have to

configure and initialize a few things in your C project:


Make sure OS_CFG_DBG_ENis set to DEF_ENABLED

Make sure OS_CFG_STAT_TASK_ENis set to DEF_ENABLED

Make sure OS_CFG_TASK_PROFILE_ENis set to DEF_ENABLED

Make sure CPU_CFG_INT_DIS_MEAS_ENis set to DEF_ENABLED

You need to provide a timestamptimer which is used to measure delta time
between events such as task execution time, CPU usage on a per-task basis, etc.
For ARM Cortex-M, we use the
cycles counter and for Renesas RX, we typically use
CMT1. Ideally, they should be an 'UP' timer as fast as the CPU cycles but in some
cases could be in the few MHz range. Implementation details are typically found in

CPU_TS_TmrInit()and BSP_TS_TmrInit().

Call OSStatTaskCPUUsageInit()in the first task that starts (after BSP_Init() and

CPU_Init())

Call CPU_IntDisMeasMaxCurReset()in the first task that starts (after BSP_Init()

andCPU_Init())

Call OSStatReset()in the first task that starts (after BSP_Init()and CPU_Init())

Make sure optimization is set toLOW because the tools will remove unused
variables which could be needed for debug
 

原创粉丝点击