Francis-
> im having a bit of a problem with coding in CCS
Studio DSK 2.12
>
> i have several "printf" lines in my code and it causes infinite loops
> in execution. i usually tend to have many consecutive "printf" lines
> as a way of debugging (in order to see the values of my variables in
> specific parts of my program.
>
> my code is as simple as this:
>
> include
> void main(){
> //some intializations here
>
> printf("RESULT 1 = %d \n", X1);
> .
> .
> .
> printf("RESULT 10 = %d \n", X10);
>
> //some code here
>
> }
>
> but CCS only outputs lines until RESULT7 and goes on with the infinite
> loop even though there's no instructions in the program to repeat.
>
> im thinking its some sort of a bug in the stdio.h header file but i'm
> not really sure.
Try using LOG_printf() instead. printf() places a heavy strain on the JTAG
interface
between DSP target and host CCS software. Some of the newer DSK cards, like
6713 and
5510, have a turtle slow JTAG bitrate, and enough printf() will shut them
down
depending on what other DSP code is running.
-Jeff