Problem with FFT example, MCU 33EP512MU810
Problem with FFT example, MCU 33EP512MU810
Hello all: Please, I need some guide for run FFT example with 33ep512mu810, EasyPicFusionv7 board. MikroC issues "not enough RAM", Trouble seems to be with ydata space although I read in datasheet this MCU have 16K for ydata . I changed Input_Samples array to xdata space with no results. May anyone tell me what's wrong?
- stefan.filipovic
- mikroElektronika team
- Posts: 1135
- Joined: 18 Dec 2018 10:30
Re: Problem with FFT example, MCU 33EP512MU810
Hi,
For a dsPIC33EP family, you need to define InputSamples in Y data space as a far memory qualifier (as shown below). Please read the FFT Library help file.
Also, you will need to explicit typecast InputSamples array wherever it is called as an argument of the memset function as shown below.
Kind regards,
For a dsPIC33EP family, you need to define InputSamples in Y data space as a far memory qualifier (as shown below). Please read the FFT Library help file.
Code: Select all
far ydata unsigned InputSamples[NUM_OF_SAMPLES * 2];
Code: Select all
memset((unsigned *)InputSamples, 0, 1024);
Stefan Filipović
Re: Problem with FFT example, MCU 33EP512MU810
Hi Stefan: thanks for your aid, problem solved. FFT example is running OK. Best regards.
- stefan.filipovic
- mikroElektronika team
- Posts: 1135
- Joined: 18 Dec 2018 10:30