Coldfire: Profiler dump file empty

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Coldfire: Profiler dump file empty

2,183件の閲覧回数
s2c97
Contributor I
I'm trying to get the profiler to function properly. I am using the CodeWarrior version 6.0 build 8 and am running the mcf5282 processor. The code compiles successfully. When I run the code I do see the profiler window opening the right dumpfile but that file is always empty. So I am not seeing any result. The other issue is (which I think is the main one) the code does not run if the "generate Code for Profiling" is checked! I can't see what I am missing. Here is the section of the code :

#include "profiler.h"
#include "ProfilerTimer.h"

int main(int argc, char *argv[])
{
ProfilerInit(collectDetailed, bestTimeBase, 20, 5);
ProfilerClear();
ProfilerSetStatus(1);
uart_init();
pit_init();
port_init();
fpga_init();
gpt_init();
qspi_init();
qadc_init();
qadc_check_status();
ProfilerSetStatus(0);
ProfilerDump("ProfilerDump_file");
ProfilerTerm();
...

}

thank you
s2c97

Message Edited by CrasyCat on 2007-04-13 11:15 AM

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 返信

1,028件の閲覧回数
CrasyCat
Specialist III
Hello
 
I would suggest you to first try the delivered profiler sample program.
 
Just open the project {Install}\(CodeWarrior_Examples)\SimpleProfiler\SimpleProfiler.mcp, select the build target Profiler (5282), build the project and try to run it on your board.
Is it working?
 
If it is working, just check the settings in the sample project and try to find out what is different.
Mainly make sure you are linking with the ProfileLibrary and that you have a proper implementation of the timer module for profiling.
Also make sure your application is not using/initializing  the timer you are using for profiling.
 
Please refer to the readme.txt in that sample directory for info on how to set up a project for profiling.
 
I hope that helps.
 
CrasyCat
0 件の賞賛
返信