2010-09-30 10:37:06     How to get enough memory for application?

Document created by Aaronwu Employee on Aug 23, 2013
Version 1Show Document
  • View in full screen mode

2010-09-30 10:37:06     How to get enough memory for application?

HappyBlackfin Blackfin (CHINA)

Message: 94071   

 

I'm using uclinux & BF561. I want to get 24MByte SDRAM memory for my application:

 

Method A: Using malloc

 

Result: malloc failed.

 

 

 

Method B: Define all the data buffer must used as global data

 

Result: failed.

 

 

 

How to do ? Thanks!

 

Note: It's 64MByte SDRAM on my BF561 Board & the kernel used  <6048K.

QuoteReplyEditDelete

 

 

2010-09-30 10:50:18     Re: How to get enough memory for application?

Mike Frysinger (UNITED STATES)

Message: 94074   

 

dont allocate the memory in one chunk.  break it up.

 

please review the documentation wrt fragmentation:

  docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:difference_from_linux#virtual_memory

QuoteReplyEditDelete

Attachments

    Outcomes