TI E2E Community
Digital Signal Processors (DSP)
C6000 Multicore DSP
C64x Multicore DSP Forum
problem to execute a program on DSP TMS320C6474 in CCStudio v3.3
I am working on a DSP TMS320C6474 , this morning I ran a program on this DSP under CCStudio v3.3 but I had this message:
Error: Illegal opcode (00001001) at pc = 0x00800000 Illegal opcode at pc = 0x00800000
Please help me to solve this problem
Your PC (Program Counter) is set to 0x00800000 which is the beginning of the local-mapped L2 memory and there is the value 0x00001001 at that location. You can observe this in the Disassembly Window if you view that address. If you try to execute by running or single-stepping at this instruction, CCS will make this report message to tell you that invalid program code is being executed.
You will need to determine one or both of
1. Why is 0x00001001 at this location? Is this the expected value for your program or is this unexpected behavior?
Immediately after loading your program, look at this location and determine if this value is there. If so, your program load caused it to be there; if not, then it gets written later by your program or other operation and you must determine that source.
2. Why is the PC at this location? Is this the expected location for your program to be running?
Immediately after loading your program, look in the Disassembly Window to see where your PC is set. Be sure to turn off the option to Go Main automatically. The entry point will usually have the label _c_int00.
Depending on all of these answers, you will be closer to solving your problem.
Search for answers, Ask a question, click Verify when complete, Help others, Learn more.
Today I met the same problem. When I execute a function, that memory location(and memory near it) is overwritten. When I set the heap and stack size bigger, everything runs well. I guess the stack is not enough for the program, so it crashes other memory location.
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.