Hecheng Hu schrieb:
Could anyone explain how to use "python msp430-profile.py"?
this is fresh and not yet finished.
its the beginning of a statistical profiler for the msp430 (or at least
try to build one ;-). it samples the inernal address bus through the
JTAG interface while the cpu is running an normal speed.
this has a few drawbacks. only about 6000 samples per second are made so
not every executed instruction is "seen". access to data is also
registered. it may be that random values are sampled (i don't knwo how
the JTAG logic synchronizes MAB reads with the CPU altering the MAB).
first results indicate that there are a few false reads but that it
basicaly works.
running msp430-profile will reset the target and run it (parallel port
jtag only). on ctrl+c it prints out a list of addresses and how many
times they were sampled. i'm also working on a GUI which would display
the source listing and the lines that were executed (not available yet).
chris