problem allocating memory with malloc function

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

problem allocating memory with malloc function

2,991 Views
frbetelu
Contributor I
Hi,

I have a problem allocating memory whit malloc function. I can allocate only 488 bytes with these function.
I´m working on a 56F8323 EVM. Also, I'm using DSP56800E Configuration Tool and DSP56800E Quick Start API for peripheral managment.

Please help!  Thank you very, very much.
Labels (1)
Tags (1)
0 Kudos
3 Replies

419 Views
frbetelu
Contributor I
Thank You, but don´t worry. My problem is resolved by editing the LCF file. I changed the Heap size.

Best regards,

FRB


Message Edited by frbetelu on 2008-06-18 02:40 PM
0 Kudos

419 Views
Fred37b
Contributor I

Hi,

 

It seems I've got the same problems like 

 

I build a program for a DSP56F807, I use 2 PWM, serial communication, I²C and SPI communication and I want to use the malloc function to dynamically allocate memory but when my project become very big it seems the malloc doesn't work very well.

 

I think i should changed the heap size but I don't know how I'm supposed to do that.

 

I heard there is an another function like malloc but especially for the DSP56xxx series, it is true ?

 

Best Regards

0 Kudos

419 Views
trytohelp
NXP Employee
NXP Employee
Hi,
 
To investigate this type of request I recommend you to log it directly in the Technical support system.
Please use Freescale on line support web page.
  - Go to following URL: http://www.freescale.com/TechSupport
  - Click on Submit a Service Request. You will come to a login page.
  - You can submit your request through the web from there.
 
Please provide us more details about the Tool version used.
To do that you must:
* CW:
Start the IDE and click on Help | About Metrowerks CodeWarrior.
Click on Installed Products 
Provide us all info displayed.
Or you can save them in a txt file.
 
Can you please provide us your example reproducing the issue ?
 
Regards
Pascal
 
The Freescale 56800/E Digital Signal Controllers Version 8.2 is available.
You can download this version on our web site via the link:
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-56800E-DSC
For details please have a look in:
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-56800E-DSC&tab=In-Depth_Tab
In the download tab you can download the Special Edition or the Evaluation.
The Special edition contains the special edition license limited to 32 kb of Code.
If you need another version of the license please contact your local distributor.
You can purchase it directly from the web site too.
We changed the pricing and packaging structure for Codewarrior Tool.
Now there are 4 suites:
 special (free version)
 basic
 standard
 professional
Please refer to the link for details:
http://www.freescale.com/webapp/sps/site/overview.jsp?nodeId=0127262E703BC5
Go to the www.freescale.com and click on My Freescale.
After you were logged, select CodeWarrior Licensing under MY Secure Application.
In the new dialog you can manage your license file.
Keep in mind you can have several versions installed on the same PC.
There is only one restriction: install them on separate folder.
If you're using an old version, please backup your project before to try it with this new version.
If you will meet some compatibility issue you could back to the older version without problem.
 
 
0 Kudos