Problem with DSP_MEM bean.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Problem with DSP_MEM bean.

3,084 次查看
jeypi
Contributor I
Hello,
 
I am working with MC56F8346 and PE. Code Warrior version is 5.6.1.1658. I put the DSP_MEM bean in my project and configured it. But when I try to call a function like:
 
pBuffer = MEM1_memCalloc(10, sizeof(UWord16));
 
the compiler shows the error:
 
Link Error   : Undefined : "FmemNumEMpartitions"
Referenced from "FmemMalloc" in mem.c
I searched "FmemNumEMpartitions" in mem.c and didn't find anything. Did anybody already solve this problem?
 
Thanks,
 
João Paulo.
标签 (1)
标记 (1)
0 项奖励
回复
6 回复数

482 次查看
trytohelp
NXP Employee
NXP Employee
the example ....
 
Message Edited by t.dowe on 2009-10-15 05:49 PM
0 项奖励
回复

482 次查看
jeypi
Contributor I
Hello,
 
The example helped a lot. The problem was some missing parts of linker file (.cmd). Now the application is running correctly. But another doubt: do you know how I can write or allocate memory in a specific address. For example, if I want to allocate an array in a external ram memory, in the address 0x002001, how can I do it?
 
Thanks a lot,
 
João Paulo.
 
 
0 项奖励
回复

482 次查看
trytohelp
NXP Employee
NXP Employee
Hi,
 
See below extract of the manual.
 

Specifying Variable Addresses in C

The user can tell the compiler to specify the address of a variable in a C file using the :

operator. The constant value following the : operator is the word address of the global

variable (i.e., int OneReg : 0xBCD ; specifies that the global variable OneReg

resides at word address 0xBCD).

NOTE

The Linker does not reserve space for global variables declared with the :

operator.

 
Regards
Pascal
0 项奖励
回复

482 次查看
jeypi
Contributor I
Hello,
 
I used the operator : but i didn't work. The variable OneReg was allocated at memory address 0x0000 (RAM memory). Is there something wrong with the code?
 
int OneReg : 0xBCD
 
Thanks,
 
João Paulo.
0 项奖励
回复

482 次查看
trytohelp
NXP Employee
NXP Employee
Hi,
 
Attached you will find an example.
Hope this will help you.
 
Regards
Pascal
 
Message Edited by t.dowe on 2009-10-15 05:50 PM
0 项奖励
回复

482 次查看
trytohelp
NXP Employee
NXP Employee
Hi,
 
I don't know the tool version you're using.
On my side I tried with the DSC 8.2.
I create an example via the wizard, include the mem bean.
See the example attached.
 
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.
We recommend you to download the Evaluation edition.
A Professional Evaluation license is provided for first 30 days.
After 30 days the product will function at the Special Edition level.
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.
 
Regards
Pascal
0 项奖励
回复