uC/Probe 应用 uCOSIII 配置

μ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_EN is set to DEF_ENABLED

Make sure OS_CFG_STAT_TASK_EN is set to DEF_ENABLED

Make sure OS_CFG_TASK_PROFILE_EN is set to DEF_ENABLED

Make sure CPU_CFG_INT_DIS_MEAS_EN is set to DEF_ENABLED

You need to provide a timestamp timer 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()

and CPU_Init())

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

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值