Jump to content


Problem about plb co_memory_create


  • You cannot reply to this topic
2 replies to this topic

#1 wangyiqun1985

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 21 April 2009 - 04:49 AM

I have a big problem.My platform is Virtex II Pro.I create a memory on the PLB bus.My code is

co_memory mem1;
mem1 = co_memory_create("mem1","mem1",MEMORY_SIZE * sizeof(co_int32));

But impulse c say I am wrong ,the wrong message is the following:
Undefined memory: mem1The following memories are defined for this platform: ext0 plbmem

I do not know why?Who can help me?

With regards
Yiqun Wang

#2 RalphBodenner

    Advanced Member

  • Admin
  • PipPipPip
  • 348 posts

Posted 21 April 2009 - 06:57 AM

Hi Yiqun,

As the error message suggests, there are two memory locations available when using the PSP you have selected: ext0 and plbmem. Use "plbmem" for the second argument to co_memory_create to create a memory on the PLB bus. Please read the section on the co_memory_create function in the CoDeveloper User's Guide for more details.

Regards,
Ralph
Ralph Bodenner
Impulse Accelerated Technologies, Inc.

#3 yan_lin_aung

    Member

  • Members
  • PipPip
  • 9 posts

Posted 23 April 2009 - 05:22 AM

Hi

I tested out DMA on the PLB bus quite a while ago.
This is what I have for the ImageFilterDMA example.

shrmem = co_memory_create("image", "plbmem", IMG_WIDTH * IMG_HEIGHT * sizeof(uint16));
shrmem2 = co_memory_create("image2", "plbmem", IMG_WIDTH * IMG_HEIGHT * sizeof(uint16));

co_architecture co_initialize()
{
return(co_architecture_create("img_arch", "xilinx_ppc_plb", config_img, NULL));
}


Hope this helps.


With regards

Yan Lin Aung





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users