Jump to content


error message when running software


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

#1 bizertino

    Member

  • Members
  • PipPip
  • 14 posts

Posted 12 February 2009 - 10:15 AM

hello,

i m using codevelopper to accelerate some calculations, when the hardware module is associated to a virtexII pro platform with microblaze processor it shows me en error in terminal window "malloc failed malloc failed"

i have tried some exemple ( helloworld, fft256, blackschols ) and just the helloworld exemple is showing the right result, the other no!

i m using opb bus, i have tried to enlarge heap end stack memory, using sdram memory and no change always "malloc failed". the software ( i mean xxxx_sw ) is welly written ane verified.

If somone can help ?

#2 RalphBodenner

    Advanced Member

  • Admin
  • PipPipPip
  • 348 posts

Posted 18 February 2009 - 11:28 AM

Hi,

What is the base address of the heap memory? If it is zero, then the co_process_create function will interpret the result of malloc as NULL and print the error message you describe.

Another possible source of the problem is an older version of Xilinx EDK. Which version are you using?

Regards,
Ralph

Ralph Bodenner
Impulse Accelerated Technologies, Inc.

#3 bizertino

    Member

  • Members
  • PipPip
  • 14 posts

Posted 19 February 2009 - 08:20 AM

QUOTE (RalphBodenner @ Feb 18 2009, 11:28 AM) <{POST_SNAPBACK}>
Hi,

What is the base address of the heap memory? If it is zero, then the co_process_create function will interpret the result of malloc as NULL and print the error message you describe.

Another possible source of the problem is an older version of Xilinx EDK. Which version are you using?

Regards,
Ralph


Hello,

thanks for the reply, i'm using EDK 8.2i. I m trying your suggestion,
thanks again.

#4 bizertino

    Member

  • Members
  • PipPip
  • 14 posts

Posted 26 February 2009 - 06:53 AM

I tried your proposition but still the same error !

#5 RalphBodenner

    Advanced Member

  • Admin
  • PipPipPip
  • 348 posts

Posted 27 February 2009 - 09:38 AM

Have you run the XMD debugger on the MicroBlaze to see which function is causing the "malloc failed!" messages to be printed?

Which version of CoDeveloper are you using, and which PSP have you chosen when building the example projects?

Thanks,
Ralph

Ralph Bodenner
Impulse Accelerated Technologies, Inc.

#6 bizertino

    Member

  • Members
  • PipPip
  • 14 posts

Posted 02 April 2009 - 12:56 PM

QUOTE (RalphBodenner @ Feb 27 2009, 10:38 AM) <{POST_SNAPBACK}>
Have you run the XMD debugger on the MicroBlaze to see which function is causing the "malloc failed!" messages to be printed?

Which version of CoDeveloper are you using, and which PSP have you chosen when building the example projects?

Thanks,
Ralph

I m using CoDevelopper 3.20.b.6 and the PSP chosen is Xilinx Microblaze OPB

#7 meix

    Advanced Member

  • Impulse Staff
  • PipPipPip
  • 32 posts

Posted 03 April 2009 - 12:37 PM

Hi bizertino,

Can you send us your EDK project for a diagnosis? Please clean your project first to keep the transfer size smaller.

Thanks,

Mei

#8 bizertino

    Member

  • Members
  • PipPip
  • 14 posts

Posted 05 April 2009 - 11:37 AM

QUOTE (meix @ Apr 3 2009, 01:37 PM) <{POST_SNAPBACK}>
Hi bizertino,

Can you send us your EDK project for a diagnosis? Please clean your project first to keep the transfer size smaller.

Thanks,

Mei


Thanks for replying, do you mean this email adress support@ImpulseAccelerated.com ?
have i to mention other addditionnal informations ?

thanks again.

#9 meix

    Advanced Member

  • Impulse Staff
  • PipPipPip
  • 32 posts

Posted 06 April 2009 - 11:35 AM

Hi bizertino,

You can post the zipped project files to the forum as an attachment. If you prefer to continue our discussion privately, sending emails to support@impulsec.com is fine. No additional information is needed as long as we know it's from you, and related to this forum thread.

Mei


#10 bizertino

    Member

  • Members
  • PipPip
  • 14 posts

Posted 08 May 2009 - 03:31 AM

hi,

my pb is now resolved, enlarging memory resolved it, i don't know why! i tried this before and doesn't work,
now is fine thanks for your help.







1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users