2010-05-13 05:23:40     Not enough L1 instruction sram for G729 fdpic lib

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

2010-05-13 05:23:40     Not enough L1 instruction sram for G729 fdpic lib

Bill Xie (CHINA)

Message: 89367   

 

Hi,

 

    USing G729 enc slower with flat G729 lib. I want to improve encode rate in uClinux. So application link  G729 fdpic lib. Application exe  run in board with error:

 

Not enough L1 instruction sram

Unable to load executable

SIGSEGV

 

 

 

Using g729ab_fdpic to test with the same result.

 

but  L1 instruction with 32k free,No othe applicton use the L1 instruction stram.

 

root:/home> cat /proc/sram

--- SRAM Scratchpad     Size   PID State

ffb00008-ffb01000       4088     0 FREE

--- SRAM L1 Data A      Size   PID State

ff800000-ff801400       5120   148 ALLOCATED

ff801400-ff804000      11264     0 FREE

--- SRAM L1 Data B      Size   PID State

ff900000-ff908000      32768     0 FREE

--- SRAM L1 Instruction Size   PID State

ffa00028-ffa08000      32728     0 FREE

 

 

 

I search about this topic that no answer can be solved this problem.

 

Best Regard

 

Bill

 

 

 

   

QuoteReplyEditDelete

 

 

2010-05-13 10:20:00     Re: Not enough L1 instruction sram for G729 fdpic lib

Robin Getz (UNITED STATES)

Message: 89372   

 

Bill:

 

What chip are you running things on? (531?)

 

-Robin

QuoteReplyEditDelete

 

 

2010-05-13 21:15:52     Re: Not enough L1 instruction sram for G729 fdpic lib

Bill Xie (CHINA)

Message: 89390   

 

Robin,

 

     Using  bf516.

 

Best Regards

 

-Bill

QuoteReplyEditDelete

 

 

2010-05-14 11:53:32     Re: Not enough L1 instruction sram for G729 fdpic lib

Robin Getz (UNITED STATES)

Message: 89412   

 

Bill:

 

516 has a reduced amount of instruction L1 compared to most other Blackfin's. - It might not be big enough.

 

What is the size of the sections of the library?

 

-Robin

QuoteReplyEditDelete

 

 

2010-05-15 20:48:19     Re: Not enough L1 instruction sram for G729 fdpic lib

Mike Frysinger (UNITED STATES)

Message: 89441   

 

so free up L1 or dont use it

QuoteReplyEditDelete

 

 

2010-05-16 23:03:15     Re: Not enough L1 instruction sram for G729 fdpic lib

Bill Xie (CHINA)

Message: 89462   

 

    Thank you. bf516 the max L1 instruction is 32k. so canot free L1.

 

I  get g729 3.0 lib from ADI. This lib can use in bf516 by VDSP and the lib code put in L1 instuction.I want using this

 

lib in uClinux, but when  write test problem in uClinux with some problem. For example:

 

 

 

  VDSP ldf

 

      L1_code_a

      {

 

               ....

         INPUT_SECTION_ALIGN(4)

         INPUT_SECTIONS($OBJECTS(adi_fast_prio0_code))

         INPUT_SECTIONS($OBJECTS(adi_fast_prio2_code))

         INPUT_SECTIONS($OBJECTS(adi_slow_noprio_code))

 

       ...

 

    }

 

 

 

   From  http://docs.blackfin.uclinux.org/doku.php?id=visualdsp:port_linking&s[]=vdsp&s[]=ldf

 

   about transform  "INPUT_SECTIONS" from VDSP ldf  to GNU LDS:

 

     The GNU linker does not treat input sections specially. If you want to use the same input to multiple outputs, then specify the input by name multiple times. The wildcard globbing will not pick up things that have already been caught.

 

   How to put "adi_fast_prio0_code" in L1 code in uClinux ?

 

Best regards

 

-Bill

QuoteReplyEditDelete

 

 

2010-05-17 00:23:17     Re: Not enough L1 instruction sram for G729 fdpic lib

Mike Frysinger (UNITED STATES)

Message: 89463   

 

do not use the VDSP code you got from ADI.  if you want to use that, you're completely on your own.  use the code already part of the uclinux-dist.

 

uclinux-dist/lib/libbfgdots/

QuoteReplyEditDelete

 

 

2010-05-19 06:55:38     Re: Not enough L1 instruction sram for G729 fdpic lib

Sonic Zhang (CHINA)

Message: 89544   

 

Which rev. of the bf516? g.729 codec won't work on bf516 v 0.0, because there is a L1 SRAM anomaly. Only half L1 SRAM is available. Use v0.1 and above instead.

QuoteReplyEditDelete

 

 

2010-05-19 21:34:59     Re: Not enough L1 instruction sram for G729 fdpic lib

Bill Xie (CHINA)

Message: 89563   

 

Thank you.In my board bf516 revision is 0.1.

QuoteReplyEditDelete

Attachments

    Outcomes