Problem with FFT example, MCU 33EP512MU810

General discussion on mikroC PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
riclerici
Posts: 10
Joined: 18 Oct 2010 11:20

Problem with FFT example, MCU 33EP512MU810

#1 Post by riclerici » 13 May 2019 11:10

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?

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: Problem with FFT example, MCU 33EP512MU810

#2 Post by stefan.filipovic » 14 May 2019 11:28

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.

Code: Select all

far ydata unsigned InputSamples[NUM_OF_SAMPLES * 2];
Also, you will need to explicit typecast InputSamples array wherever it is called as an argument of the memset function as shown below.

Code: Select all

memset((unsigned *)InputSamples, 0, 1024); 
Kind regards,
Stefan Filipović

riclerici
Posts: 10
Joined: 18 Oct 2010 11:20

Re: Problem with FFT example, MCU 33EP512MU810

#3 Post by riclerici » 14 May 2019 14:27

Hi Stefan: thanks for your aid, problem solved. FFT example is running OK. Best regards.

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: Problem with FFT example, MCU 33EP512MU810

#4 Post by stefan.filipovic » 14 May 2019 14:51

Hi,

You're welcome.

Kind regards,
Stefan Filipović

Post Reply

Return to “mikroC PRO for dsPIC30/33 and PIC24 General”