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.
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.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.