Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用Systemview统计中断频率不准确 #2

Open
mao-china opened this issue May 13, 2020 · 0 comments
Open

使用Systemview统计中断频率不准确 #2

mao-china opened this issue May 13, 2020 · 0 comments

Comments

@mao-china
Copy link

mao-china commented May 13, 2020

@BernardXiong @armink

问题现象

使用Systemview统计中断频率不准确,实际为100hz,systemview统计为150hz

代码环境
Cortex-M4内核,
Systick中断10ms一次,给rtthread 系统提供tick,
一个线程:

void thread1(void)
{
    while(1)
    {
        rt_thread_delay(2);
    }
}

在线程延时时间结束,会在systick中执行rt_schedule,在_cb_scheduler中会记录一次SEGGER_SYSVIEW_RecordEnterISR,导致systemview认为多进了一次中断;

只要在中断中执行了rt_schedule,中断频率统计得都不准确。

Systemview软件版本为2.52c,最新版本的软件已经看不到中断频率的统计了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant