Tool/software: Code Composer Studio
To All,
I am using the CCS Version: 5.5.0.00077. I have to optimize the size for the heap and stack.
Q1 After using call_graph tool, the maximum amount of stack is 2424. May I know how to setup stack size based on known information?
Q2 I have printed out the malloc total size:1056.
I allocated Heap size of 0x450 and execute the program in CCS, there was error in console:
TMS320C6713: Error: Illegal opcode at pc = 0x00028594 Illegal opcode (40b167e7) at pc = 0x00028598 Illegal opcode at pc = 0x00028598
when I allocated Heap size of 0x500,there was sometimes error in console:
TMS320C6713: Error: *** Runtime error at PC = 00000030 Resource(s) D Unit/Read Port on side B in conflict in E1 phase. Ref SPRU189F Sec 3.7, Sec 4.5, Sec 7.2
Finally, I allocated Heap size of 0x550 and it was working.
May I know how to determine heap size to fit the heap requirement?
Thanks.
Betty Yeh