Displaying 3 results from an estimated 3 matches for "innov_save".
2007 Sep 13
2
innov_save, what is it? why does it hurt me so?
...I have been trying to get speex to work for a while now, and it's been
a real teeter-totter ride.  For a long time I noticed that I will get a
project to work and then without changing any code and programming it to
an eprom/flash the project will not work.  It turns out it was a value
called innov_save.  I found this bugger by zero filling data in my
program and then loading my code and running it, then filling my data
with 1s and tried running it.  when I filled it with 1's it never
worked.  I found innov_save will write over memory it shouldn't be when
I fill memory with 1's but not...
2007 Sep 14
1
innov_save, what is it? why does it hurt me so?
This must have been an enormous pain to track down.
The manual alloc routine in the TI directory (user_misc.h) clears the 
allocated memory, but maybe you have changed this.
>> it will just start filling data in, which it shouldn't.  I see that
>> innov_save is set at the beginning of a for loop at:
>> for (sub=0;sub<st->nbSubframes;sub++)
>>    {
> ...
>>       spx_word16_t *innov_save = NULL;
>>       spx_word16_t tmp;...
>
>> but for some reason that never made a difference even though I know I
>> step...
2007 Sep 13
0
innov_save, what is it? why does it hurt me so?
...t's been
> a real teeter-totter ride.  For a long time I noticed that I will get a
> project to work and then without changing any code and programming it to
> an eprom/flash the project will not work.  
That's an Heisenbug and the most common cause is uninitialised data.
I found innov_save will write over memory it shouldn't be when
> I fill memory with 1's but not when I fill it with zeros. 
Which is normal, see below.
>  When my DSP
> gets to this code chunk:
> if (innov_save){
>    for (i=0;i<st->subframeSize;i++)
>       innov_save[i] = EXTRACT16...