2008-11-25 05:16:27     BF537 sram_alloc

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

2008-11-25 05:16:27     BF537 sram_alloc

Daniele Pagani (ITALY)

Message: 65781   

 

Dear Sirs,

 

in according to:

 

http://docs.blackfin.uclinux.org/doku.php?id=using_l1_memory#dynamically_allocating1

 

I'm using the function sram_alloc.

 

Then, this is my /proc/sram:

 

L1 Data A

 

ff8000C0-ff803f18 15960 27 ALLOCATED

 

ff803f18-ff804000 232 0 FREE

 

L1 Data B

 

ff900000-ff900320 800 27 ALLOCATED

 

ff900320-ff904000 15584 0 FREE

 

So, in my application, I choose to use:

 

...=sram_alloc(...,L1_DATA_B_SRAM)...

 

Anyway, I can not allocate something more than 2K byte (I try to allocate differents buffers of 128 byte each).

 

"Can not allocate" means that the function return NULL.

 

Where is the problem?

 

EzKit BF537 - STAMP BF537 - uClinux-dist-2008R1.5-RC3

 

Best regards,

 

Daniele.

 

 

TranslateQuoteReplyEditDelete

 

 

2008-11-25 07:51:10     Re: BF537 sram_alloc

Daniele Pagani (ITALY)

Message: 65785   

 

OK, sorry,

 

I've solved the problem.

 

In kernel configuration I need to set the number of piece:

 

config_l1_max_piece

 

Thank you anyway.

 

Best regards,

 

Daniele.

Attachments

    Outcomes