RAM Size

General discussion on mikroPascal for dsPIC30/33 and PIC24.
Post Reply
Author
Message
bevrard
Posts: 23
Joined: 07 Jun 2008 20:05

RAM Size

#1 Post by bevrard » 17 Apr 2010 14:34

Hello

I'm using a pic24hj128gp206

in the mlk file i found :
//RAMVARSpace
#pragma SetRAMSpace(0x0800,0x27FF)

it is a space for 0x2000 bytes 8192 byte ( same size that on the microchip datasheet)

after linking i have with my project :

Used RAM 3677
Free Ram 419


Total : 4096 ! the half

I need add a big array and I can't use all the RAM

something is wrong but i don't know where in def or mlk file

Thanks for your help

piort
Posts: 1379
Joined: 28 Dec 2005 16:42
Location: Laval,Québec,Canada,Earth... :-)
Contact:

Re: RAM Size

#2 Post by piort » 17 Apr 2010 22:35

hi, in older version of MP for dspic, the compiler use 8 bit of the 14 bit of the memory. so a lost of 30% but that is suppose to be fix in the futur version of MP Pro for dspic... Do you have try the Pro version ? If you have a registred older version Me will give you a upgrades key for free ;-)

HTH a bit ;-)

Post Reply

Return to “mikroPascal for dsPIC30/33 and PIC24 General”