Hi,
I debug a simple filter C/asm mix program. I find that if the filter coefficient is set to short, like:
#define N 33
short h[N]=
{
-1,2,8,-1,-19,-7,
28,24,-27,-41,14,47,
4,-34,-12,7,-8,15,
55,-8,-113,-41,146,119,
-129,-186,61,197,17,-134}
The content of 'h' will change every time the program reloaded in software simulator (CCS v5.2.1, Windows 7). This is annoying that I have to exit Debug and re-enter Debug. This costs much more time to exit and load again.
I find the filter coefficient h can set to 'const short h[N]'. This remedies the content changing problem. But a new problem appears for this arrangement. The printf does not print output in the Console. Even the printf does not output a simple array (not related to 'h' at all), This seems that a new memory segment (from const short) inflicts the printf function.
I cannot find a method to solve the two problem at once.
Thanks.