hello,
I am using TMs320lf2407 to do motor control. After create the project, the system controls motor movement well.
Now I am just wondering how I can do system optimization related to code size and execution speed. I searcher information for this topic, however, I only found some papers reted to high-end processor like 6000 series. Is there some regular ways or step to optimize 2407 system, like memory optimization, how to see which part of code occupy most of system execution time while running ? Any suggestion are welcome. Thanks a lot.
Hi Bridge,
You've probably posted this in the wrong forum.
Anyhow before doing any optimization you should ask yourself why do you want to optimize and if you really need to. Usually any optimization causes that code is more difficult to maintain. Once you get it working.
Your tools would be memory map for code size measurement an external IO pin with scope for code execution timing. You should first identify what you need to optimize (code size or execution speed. It is rare that you can optimize both unless you rewrite much of the program in assembly), by how much you need to optimize it and where is probably the best place to start optimizing.
Regards, Mitja