This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Why filter coefficients are changed after restart in software simulator



Hi,

I am debug a filter program. This code originates from a DSP application book. It uses circular addressing in assembly lanuage, with a separate filter coefficient file bp1750.cof. This file fits our requirement. The strange thing is that the coefficients are changed after restart for a second time debug. If I reload the program in CCS Debug, the problem is the same with that of restart. I don't think it is normal way.

I add the relavant code here. The C header is:

#include   <stdio.h>

#include  "bp1750.cof"

    

The bp1750.cof is:

#define N 128               /*length of filter*/

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,

-44,26,-28,54,192,-28,

-377,-134,475,381,-409,-586,

191,617,54,-419,-137,82,

-89,175,629,-95,-1296,-478,

1762,1488,-1702,-2646,955,3526,

368,-3751,-1901,3161,3161,-1901,

-3751,368,3526,955,-2646,-1702,

1488,1762,-478,-1296,-95,629,

175,-89,82,-137,-419,54,

617,191,-586,-409,381,475,

-134,-377,-28,192,54,-28,

26,-44,-134,17,197,61,

-186,-129,119,146,-41,-113,

-8,55,15,-8,7,-12,

-34,4,47,14,-41,-27,

24,28,-7,-19,-1,8,

2,-1

};

...............

Is there a way to avoid filter coefficients changed without leaving the CCS Debug and re-enter?

Thanks.