Hi everyone,
I have a problem with one function and function parameters. I am using:
- CodeWarrior for MCU
Version: 10.6
Build Id:140329
with Hearst Board with S12ZVC on it.
I have a function like this:
void detrend(uint16 *nfft, sint32 newelement, sint16 *timedata, sint32 average)
Problematic are nfft and timedata. To nfft I pass the address of single variable, to timedata I pass the beginning of an array.
nfft itself is always allocated in the address range of an array pointed by timedata.
The same thing occurs when I use regular function local variable instead of pointer for nfft, only then this local variable is allocated in the address range of the array pointed by timedata.
Any ideas?
Thanks