Address error problem when migrating expanded sign.gen proj

Beta Testing discussion on mikroPascal PRO for PIC.
Post Reply
Author
Message
OT
Posts: 581
Joined: 19 May 2005 05:08
Location: Fairbanks, Alaska

Address error problem when migrating expanded sign.gen proj

#1 Post by OT » 23 Dec 2009 10:57

The project runs fine under version 6. In the Pro version it causes freeze-up and an address error trap to be released, or if the trap is deactivated it will continuously reset the chip, but not at the WDT frequency. (Initial write to LCD is OK).
It uses a large array to contain several different waveforms:

Code: Select all

const WaveSamples: array[1..6] of array[2048] of word =
    //sine wave
  ((0,0,0,0,1,1,1,2,2 ... etc.
I have not been able to trace what causes this problem; the project compiles fine. Could there be problems related to the large array?
I submitted the two versions of the project on the support page.

The project is an expanded menu driven (LCD) version of the signal_generator project provided with the dsp routines in an earlier compiler version, and it was adapted for dsPIC30F4013 and added response to up/down buttons (through RD8/9 interrupts) to set frequency etc.

OT
Posts: 581
Joined: 19 May 2005 05:08
Location: Fairbanks, Alaska

#2 Post by OT » 23 Dec 2009 11:00

Please ignore, I posted in the wrong forum - reposting to dsPIC forum.

Post Reply

Return to “mikroPascal PRO for PIC Beta Testing”