This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C6RunLib Aborted.



Hi,
I am using c6RunLib from http://processors.wiki.ti.com/index.php/Getting_Started_With_C6Run_On_Beagleboard
I have modified the example emqbit to run my own program (Image recognition of the date and hour from a clock using Opencv with its DFT) on a BeagleBoard xM.
I have got cfft_arm and cfft_dsp.
My own program without c6Runlib last 5.1 seconds and gives correct results.
cfft_arm with c6Runlib last 7.9 seconds and gives correct results.
cfft_dsp with c6Runlib says only "Aborted".

Do you know why cfft_arm last more than my program?
Is it using the DSP?
Do you know why cfft_dsp is aborted?

Thank you.

  • I am using the C6Run_0_98_01_01.

    These are the results obtained with my app without C6Runlib, my app using C6Runlib as cfft_arm and my app using C6Runlib as cfft_dsp with the --C6Run:Debug.
    Do you know what is happening?


    root@beagleboard-dvsdk:/opt/examples/c6runlib/emqbit# /media/sda/home/root/libpa
    tternROBERTOc6accelBB/example/limvalite -x test6.xml 6clock_4.jpg

    6clock_4.jpg
    +Time: 5.147 sec.
     [[   HOUR_99]]:  -
      [       DAY]:  004
      [        X2]:  003
      [        X1]:  002
      [     MONTH]:  011
      [      YEAR]:  016
      [      HOUR]:  011

    root@beagleboard-dvsdk:/opt/examples/c6runlib/emqbit# ./cfft_arm -x test6.xml 6c
    lock_4.jpg

    6clock_4.jpg
    +Time: 7.953 sec.
     [[   HOUR_99]]:  -
      [       DAY]:  004
      [        X2]:  003
      [        X1]:  002
      [     MONTH]:  011
      [      YEAR]:  016
      [      HOUR]:  011

    root@beagleboard-dvsdk:/opt/examples/c6runlib/emqbit# ./cfft_dsp -x test6.xml 6c
    lock_4.jpg
    C6RUN_MEM_malloc(92)
    C6RUN_MEM_memalign(8,92)
    Entered C6RUN_SHAREDMEM_init()
    CMEM Debug: init: entered - ref_count 0, cmem_fd -2
    CMEM Debug: init: successfully opened /dev/cmem, matching driver version...
    CMEM Debug: getVersion: entered
    CMEM Debug: getVersion: exiting, ioctl CMEM_IOCGETVERSION returned 0x3000100
    CMEM Debug: init: ... match good (0x3000100)
    CMEM Debug: init: exiting, returning success
    CMEM_init() passed!
    CMEM Debug: alloc: entered w/ size 0x1d00000, params - type HEAP, flags CACHED, align 0x8
    CMEM Debug: allocHeap: allocated phys buffer 0x86300000
    CMEM Debug: allocHeap: mmap succeeded, returning virt buffer 0x41e52000
    C6RUN_SHAREDMEM_binBitShift = 12
    C6RUN_SHAREDMEM_binSize = 4096
    CMEM Debug: getPhys: entered w/ addr 0x41e52000
    CMEM Debug: getPhys: exiting, ioctl CMEM_IOCGETPHYS succeeded, returning 0x86300000
    CMEM_alloc() passed!
    Leaving C6RUN_SHAREDMEM_init()
    Insert - Bin: 0
      Buffer:  0x41E52008
      Pointer: 0x41E52010
    C6RUN_MEM_memalign returns = 0x41E52010
    C6RUN_MEM_malloc returns = 0x41E52010
    C6RUN_MEM_malloc(4120)
    C6RUN_MEM_memalign(8,4120)
    Bin spanning buffer at 0x41E52078
      realigning to start of next bin at 0x41E53000
    Insert - Bin: 1
      Buffer:  0x41E53000
      Pointer: 0x41E53008
    C6RUN_MEM_memalign returns = 0x41E53008
    C6RUN_MEM_malloc returns = 0x41E53008
    C6RUN_MEM_malloc(97)
    C6RUN_MEM_memalign(8,97)
    Insert - Bin: 0
      Buffer:  0x41E52078
      Pointer: 0x41E52080
    C6RUN_MEM_memalign returns = 0x41E52080
    C6RUN_MEM_malloc returns = 0x41E52080
    C6RUN_MEM_malloc(89)
    C6RUN_MEM_memalign(8,89)
    Insert - Bin: 0
      Buffer:  0x41E520F0
      Pointer: 0x41E520F8
    C6RUN_MEM_memalign returns = 0x41E520F8
    C6RUN_MEM_malloc returns = 0x41E520F8
    C6RUN_MEM_malloc(97)
    C6RUN_MEM_memalign(8,97)
    Insert - Bin: 0
      Buffer:  0x41E52160
      Pointer: 0x41E52168
    C6RUN_MEM_memalign returns = 0x41E52168
    C6RUN_MEM_malloc returns = 0x41E52168
    C6RUN_MEM_malloc(89)
    C6RUN_MEM_memalign(8,89)
    Insert - Bin: 0
      Buffer:  0x41E521D8
      Pointer: 0x41E521E0
    C6RUN_MEM_memalign returns = 0x41E521E0
    C6RUN_MEM_malloc returns = 0x41E521E0
    C6RUN_MEM_malloc(90)
    C6RUN_MEM_memalign(8,90)
    Insert - Bin: 0
      Buffer:  0x41E52248
      Pointer: 0x41E52250
    C6RUN_MEM_memalign returns = 0x41E52250
    C6RUN_MEM_malloc returns = 0x41E52250
    C6RUN_MEM_malloc(93)
    C6RUN_MEM_memalign(8,93)
    Insert - Bin: 0
      Buffer:  0x41E522B8
      Pointer: 0x41E522C0
    C6RUN_MEM_memalign returns = 0x41E522C0
    C6RUN_MEM_malloc returns = 0x41E522C0
    C6RUN_MEM_malloc(65)
    C6RUN_MEM_memalign(8,65)
    Insert - Bin: 0
      Buffer:  0x41E52328
      Pointer: 0x41E52330
    C6RUN_MEM_memalign returns = 0x41E52330
    C6RUN_MEM_malloc returns = 0x41E52330
    C6RUN_MEM_malloc(99)
    C6RUN_MEM_memalign(8,99)
    Insert - Bin: 0
      Buffer:  0x41E52380
      Pointer: 0x41E52388
    C6RUN_MEM_memalign returns = 0x41E52388
    C6RUN_MEM_malloc returns = 0x41E52388
    C6RUN_MEM_malloc(88)
    C6RUN_MEM_memalign(8,88)
    Insert - Bin: 0
      Buffer:  0x41E523F8
      Pointer: 0x41E52400
    C6RUN_MEM_memalign returns = 0x41E52400
    C6RUN_MEM_malloc returns = 0x41E52400
    C6RUN_MEM_malloc(61)
    C6RUN_MEM_memalign(8,61)
    Insert - Bin: 0
      Buffer:  0x41E52460
      Pointer: 0x41E52468
    C6RUN_MEM_memalign returns = 0x41E52468
    C6RUN_MEM_malloc returns = 0x41E52468
    C6RUN_MEM_malloc(16)
    C6RUN_MEM_memalign(8,16)
    Insert - Bin: 0
      Buffer:  0x41E524B0
      Pointer: 0x41E524B8
    C6RUN_MEM_memalign returns = 0x41E524B8
    C6RUN_MEM_malloc returns = 0x41E524B8
    C6RUN_MEM_malloc(16)
    C6RUN_MEM_memalign(8,16)
    Insert - Bin: 0
      Buffer:  0x41E524D0
      Pointer: 0x41E524D8
    C6RUN_MEM_memalign returns = 0x41E524D8
    C6RUN_MEM_malloc returns = 0x41E524D8
    C6RUN_MEM_malloc(64)
    C6RUN_MEM_memalign(8,64)
    Insert - Bin: 0
      Buffer:  0x41E524F0
      Pointer: 0x41E524F8
    C6RUN_MEM_memalign returns = 0x41E524F8
    C6RUN_MEM_malloc returns = 0x41E524F8
    C6RUN_MEM_malloc(16)
    C6RUN_MEM_memalign(8,16)
    Insert - Bin: 0
      Buffer:  0x41E52540
      Pointer: 0x41E52548
    C6RUN_MEM_memalign returns = 0x41E52548
    C6RUN_MEM_malloc returns = 0x41E52548
    C6RUN_MEM_malloc(16)
    C6RUN_MEM_memalign(8,16)
    Insert - Bin: 0
      Buffer:  0x41E52560
      Pointer: 0x41E52568
    C6RUN_MEM_memalign returns = 0x41E52568
    C6RUN_MEM_malloc returns = 0x41E52568
    C6RUN_MEM_malloc(16)
    C6RUN_MEM_memalign(8,16)
    Insert - Bin: 0
      Buffer:  0x41E52580
      Pointer: 0x41E52588
    C6RUN_MEM_memalign returns = 0x41E52588
    C6RUN_MEM_malloc returns = 0x41E52588
    C6RUN_MEM_malloc(16)
    C6RUN_MEM_memalign(8,16)
    Insert - Bin: 0
      Buffer:  0x41E525A0
      Pointer: 0x41E525A8
    C6RUN_MEM_memalign returns = 0x41E525A8
    C6RUN_MEM_malloc returns = 0x41E525A8
    C6RUN_MEM_malloc(16)
    C6RUN_MEM_memalign(8,16)
    Insert - Bin: 0
      Buffer:  0x41E525C0
      Pointer: 0x41E525C8
    C6RUN_MEM_memalign returns = 0x41E525C8
    C6RUN_MEM_malloc returns = 0x41E525C8
    C6RUN_MEM_malloc(16)
    C6RUN_MEM_memalign(8,16)
    Insert - Bin: 0
      Buffer:  0x41E525E0
      Pointer: 0x41E525E8
    C6RUN_MEM_memalign returns = 0x41E525E8
    C6RUN_MEM_malloc returns = 0x41E525E8
    C6RUN_MEM_malloc(4)
    C6RUN_MEM_memalign(8,4)
    Insert - Bin: 0
      Buffer:  0x41E52600
      Pointer: 0x41E52608
    C6RUN_MEM_memalign returns = 0x41E52608
    C6RUN_MEM_malloc returns = 0x41E52608
    C6RUN_MEM_malloc(4)
    C6RUN_MEM_memalign(8,4)
    Insert - Bin: 0
      Buffer:  0x41E52618
      Pointer: 0x41E52620
    C6RUN_MEM_memalign returns = 0x41E52620
    C6RUN_MEM_malloc returns = 0x41E52620
    C6RUN_MEM_malloc(22)
    C6RUN_MEM_memalign(8,22)
    Insert - Bin: 0
      Buffer:  0x41E52630
      Pointer: 0x41E52638
    C6RUN_MEM_memalign returns = 0x41E52638
    C6RUN_MEM_malloc returns = 0x41E52638
    C6RUN_MEM_malloc(4)
    C6RUN_MEM_memalign(8,4)
    Insert - Bin: 0
      Buffer:  0x41E52658
      Pointer: 0x41E52660
    C6RUN_MEM_memalign returns = 0x41E52660
    C6RUN_MEM_malloc returns = 0x41E52660
    C6RUN_MEM_malloc(4)
    C6RUN_MEM_memalign(8,4)
    Insert - Bin: 0
      Buffer:  0x41E52670
      Pointer: 0x41E52678
    C6RUN_MEM_memalign returns = 0x41E52678
    C6RUN_MEM_malloc returns = 0x41E52678
    C6RUN_MEM_malloc(30)
    C6RUN_MEM_memalign(8,30)
    Insert - Bin: 0
      Buffer:  0x41E52688
      Pointer: 0x41E52690
    C6RUN_MEM_memalign returns = 0x41E52690
    C6RUN_MEM_malloc returns = 0x41E52690
    C6RUN_MEM_malloc(4)
    C6RUN_MEM_memalign(8,4)
    Insert - Bin: 0
      Buffer:  0x41E526B8
      Pointer: 0x41E526C0
    C6RUN_MEM_memalign returns = 0x41E526C0
    C6RUN_MEM_malloc returns = 0x41E526C0
    C6RUN_MEM_malloc(4)
    C6RUN_MEM_memalign(8,4)
    Insert - Bin: 0
      Buffer:  0x41E526D0
      Pointer: 0x41E526D8
    C6RUN_MEM_memalign returns = 0x41E526D8
    C6RUN_MEM_malloc returns = 0x41E526D8
    C6RUN_MEM_malloc(30)
    C6RUN_MEM_memalign(8,30)
    Insert - Bin: 0
      Buffer:  0x41E526E8
      Pointer: 0x41E526F0
    C6RUN_MEM_memalign returns = 0x41E526F0
    C6RUN_MEM_malloc returns = 0x41E526F0
    C6RUN_MEM_malloc(4)
    C6RUN_MEM_memalign(8,4)
    Insert - Bin: 0
      Buffer:  0x41E52718
      Pointer: 0x41E52720
    C6RUN_MEM_memalign returns = 0x41E52720
    C6RUN_MEM_malloc returns = 0x41E52720
    C6RUN_MEM_malloc(4)
    C6RUN_MEM_memalign(8,4)
    Insert - Bin: 0
      Buffer:  0x41E52730
      Pointer: 0x41E52738
    C6RUN_MEM_memalign returns = 0x41E52738
    C6RUN_MEM_malloc returns = 0x41E52738
    C6RUN_MEM_malloc(30)
    C6RUN_MEM_memalign(8,30)
    Insert - Bin: 0
      Buffer:  0x41E52748
      Pointer: 0x41E52750
    C6RUN_MEM_memalign returns = 0x41E52750
    C6RUN_MEM_malloc returns = 0x41E52750
    C6RUN_MEM_malloc(4)
    C6RUN_MEM_memalign(8,4)
    Insert - Bin: 0
      Buffer:  0x41E52778
      Pointer: 0x41E52780
    C6RUN_MEM_memalign returns = 0x41E52780
    C6RUN_MEM_malloc returns = 0x41E52780
    C6RUN_MEM_malloc(4)
    C6RUN_MEM_memalign(8,4)
    Insert - Bin: 0
      Buffer:  0x41E52790
      Pointer: 0x41E52798
    C6RUN_MEM_memalign returns = 0x41E52798
    C6RUN_MEM_malloc returns = 0x41E52798
    C6RUN_MEM_malloc(23)
    C6RUN_MEM_memalign(8,23)
    Insert - Bin: 0
      Buffer:  0x41E527A8
      Pointer: 0x41E527B0
    C6RUN_MEM_memalign returns = 0x41E527B0
    C6RUN_MEM_malloc returns = 0x41E527B0
    C6RUN_MEM_malloc(4)
    C6RUN_MEM_memalign(8,4)
    Insert - Bin: 0
      Buffer:  0x41E527D0
      Pointer: 0x41E527D8
    C6RUN_MEM_memalign returns = 0x41E527D8
    C6RUN_MEM_malloc returns = 0x41E527D8
    C6RUN_MEM_malloc(4)
    C6RUN_MEM_memalign(8,4)
    Insert - Bin: 0
      Buffer:  0x41E527E8
      Pointer: 0x41E527F0
    C6RUN_MEM_memalign returns = 0x41E527F0
    C6RUN_MEM_malloc returns = 0x41E527F0
    C6RUN_MEM_malloc(21)
    C6RUN_MEM_memalign(8,21)
    Insert - Bin: 0
      Buffer:  0x41E52800
      Pointer: 0x41E52808
    C6RUN_MEM_memalign returns = 0x41E52808
    C6RUN_MEM_malloc returns = 0x41E52808
    C6RUN_MEM_malloc(4)
    C6RUN_MEM_memalign(8,4)
    Insert - Bin: 0
      Buffer:  0x41E52828
      Pointer: 0x41E52830
    C6RUN_MEM_memalign returns = 0x41E52830
    C6RUN_MEM_malloc returns = 0x41E52830
    C6RUN_MEM_malloc(4)
    C6RUN_MEM_memalign(8,4)
    Insert - Bin: 0
      Buffer:  0x41E52840
      Pointer: 0x41E52848
    C6RUN_MEM_memalign returns = 0x41E52848
    C6RUN_MEM_malloc returns = 0x41E52848
    C6RUN_MEM_malloc(51)
    C6RUN_MEM_memalign(8,51)
    Insert - Bin: 0
      Buffer:  0x41E52858
      Pointer: 0x41E52860
    C6RUN_MEM_memalign returns = 0x41E52860
    C6RUN_MEM_malloc returns = 0x41E52860
    C6RUN_MEM_malloc(4)
    C6RUN_MEM_memalign(8,4)
    Insert - Bin: 0
      Buffer:  0x41E528A0
      Pointer: 0x41E528A8
    C6RUN_MEM_memalign returns = 0x41E528A8
    C6RUN_MEM_malloc returns = 0x41E528A8
    C6RUN_MEM_malloc(4)
    C6RUN_MEM_memalign(8,4)
    Insert - Bin: 0
      Buffer:  0x41E528B8
      Pointer: 0x41E528C0
    C6RUN_MEM_memalign returns = 0x41E528C0
    C6RUN_MEM_malloc returns = 0x41E528C0
    C6RUN_MEM_malloc(47)
    C6RUN_MEM_memalign(8,47)
    Insert - Bin: 0
      Buffer:  0x41E528D0
      Pointer: 0x41E528D8
    C6RUN_MEM_memalign returns = 0x41E528D8
    C6RUN_MEM_malloc returns = 0x41E528D8
    C6RUN_MEM_malloc(4)
    C6RUN_MEM_memalign(8,4)
    Insert - Bin: 0
      Buffer:  0x41E52910
      Pointer: 0x41E52918
    C6RUN_MEM_memalign returns = 0x41E52918
    C6RUN_MEM_malloc returns = 0x41E52918
    C6RUN_MEM_malloc(4)
    C6RUN_MEM_memalign(8,4)
    Insert - Bin: 0
      Buffer:  0x41E52928
      Pointer: 0x41E52930
    C6RUN_MEM_memalign returns = 0x41E52930
    C6RUN_MEM_malloc returns = 0x41E52930
    C6RUN_MEM_malloc(23)
    C6RUN_MEM_memalign(8,23)
    Insert - Bin: 0
      Buffer:  0x41E52940
      Pointer: 0x41E52948
    C6RUN_MEM_memalign returns = 0x41E52948
    C6RUN_MEM_malloc returns = 0x41E52948
    C6RUN_MEM_malloc(4)
    C6RUN_MEM_memalign(8,4)
    Insert - Bin: 0
      Buffer:  0x41E52968
      Pointer: 0x41E52970
    C6RUN_MEM_memalign returns = 0x41E52970
    C6RUN_MEM_malloc returns = 0x41E52970
    C6RUN_MEM_malloc(4)
    C6RUN_MEM_memalign(8,4)
    Insert - Bin: 0
      Buffer:  0x41E52980
      Pointer: 0x41E52988
    C6RUN_MEM_memalign returns = 0x41E52988
    C6RUN_MEM_malloc returns = 0x41E52988
    C6RUN_MEM_malloc(26)
    C6RUN_MEM_memalign(8,26)
    Insert - Bin: 0
      Buffer:  0x41E52998
      Pointer: 0x41E529A0
    C6RUN_MEM_memalign returns = 0x41E529A0
    C6RUN_MEM_malloc returns = 0x41E529A0
    C6RUN_MEM_malloc(7)
    C6RUN_MEM_memalign(8,7)
    Insert - Bin: 0
      Buffer:  0x41E529C8
      Pointer: 0x41E529D0
    C6RUN_MEM_memalign returns = 0x41E529D0
    C6RUN_MEM_malloc returns = 0x41E529D0
    C6RUN_MEM_malloc(7)
    C6RUN_MEM_memalign(8,7)
    Insert - Bin: 0
      Buffer:  0x41E529E0
      Pointer: 0x41E529E8
    C6RUN_MEM_memalign returns = 0x41E529E8
    C6RUN_MEM_malloc returns = 0x41E529E8
    C6RUN_MEM_malloc(10)
    C6RUN_MEM_memalign(8,10)
    Insert - Bin: 0
      Buffer:  0x41E529F8
      Pointer: 0x41E52A00
    C6RUN_MEM_memalign returns = 0x41E52A00
    C6RUN_MEM_malloc returns = 0x41E52A00
    C6RUN_MEM_malloc(10)
    C6RUN_MEM_memalign(8,10)
    Insert - Bin: 0
      Buffer:  0x41E52A18
      Pointer: 0x41E52A20
    C6RUN_MEM_memalign returns = 0x41E52A20
    C6RUN_MEM_malloc returns = 0x41E52A20
    C6RUN_MEM_free(0x41E529E8)
    Remove - Bin: 0,Pointer: 0x41E529E8
      Skip Buffer : 0x41E52A18
      Skip Buffer : 0x41E529F8
      Found Buffer: 0x41E529E0
    Leaving C6RUN_MEM_free.
    C6RUN_MEM_malloc(4)
    C6RUN_MEM_memalign(8,4)
    Insert - Bin: 0
      Buffer:  0x41E529E0
      Pointer: 0x41E529E8
    C6RUN_MEM_memalign returns = 0x41E529E8
    C6RUN_MEM_malloc returns = 0x41E529E8
    C6RUN_MEM_malloc(13)
    C6RUN_MEM_memalign(8,13)
    Insert - Bin: 0
      Buffer:  0x41E52A38
      Pointer: 0x41E52A40
    C6RUN_MEM_memalign returns = 0x41E52A40
    C6RUN_MEM_malloc returns = 0x41E52A40
    C6RUN_MEM_malloc(60)
    C6RUN_MEM_memalign(8,60)
    Insert - Bin: 0
      Buffer:  0x41E52A58
      Pointer: 0x41E52A60
    C6RUN_MEM_memalign returns = 0x41E52A60
    C6RUN_MEM_malloc returns = 0x41E52A60
    C6RUN_MEM_malloc(65476)
    C6RUN_MEM_memalign(8,65476)
    Bin spanning buffer at 0x41E54028
      realigning to start of next bin at 0x41E55000
    Insert - Bin: 3
      Buffer:  0x41E55000
      Pointer: 0x41E55008
    C6RUN_MEM_memalign returns = 0x41E55008
    C6RUN_MEM_malloc returns = 0x41E55008
    C6RUN_MEM_malloc(2)
    C6RUN_MEM_memalign(8,2)
    Insert - Bin: 0
      Buffer:  0x41E52AA8
      Pointer: 0x41E52AB0
    C6RUN_MEM_memalign returns = 0x41E52AB0
    C6RUN_MEM_malloc returns = 0x41E52AB0
    C6RUN_MEM_free(0x00000000)
    Leaving C6RUN_MEM_free.
    C6RUN_MEM_calloc(1,508)
    C6RUN_MEM_memalign(8,508)
    Insert - Bin: 0
      Buffer:  0x41E52AC0
      Pointer: 0x41E52AC8
    C6RUN_MEM_memalign returns = 0x41E52AC8
    C6RUN_MEM_calloc returns = 0x41E52AC8
    C6RUN_MEM_calloc(1,508)
    C6RUN_MEM_memalign(8,508)
    Insert - Bin: 0
      Buffer:  0x41E52CD0
      Pointer: 0x41E52CD8
    C6RUN_MEM_memalign returns = 0x41E52CD8
    C6RUN_MEM_calloc returns = 0x41E52CD8
    C6RUN_MEM_calloc(1,508)
    C6RUN_MEM_memalign(8,508)
    Insert - Bin: 2
      Buffer:  0x41E54028
      Pointer: 0x41E54030
    C6RUN_MEM_memalign returns = 0x41E54030
    C6RUN_MEM_calloc returns = 0x41E54030
    C6RUN_MEM_calloc(1,2040)
    C6RUN_MEM_memalign(8,2040)
    Insert - Bin: 2
      Buffer:  0x41E54238
      Pointer: 0x41E54240
    C6RUN_MEM_memalign returns = 0x41E54240
    C6RUN_MEM_calloc returns = 0x41E54240
    C6RUN_MEM_memalign(128,120)
    Insert - Bin: 0
      Buffer:  0x41E52EE0
      Pointer: 0x41E52F00
    C6RUN_MEM_memalign returns = 0x41E52F00
    C6RUN_MEM_memalign(128,120)
    Insert - Bin: 2
      Buffer:  0x41E54A40
      Pointer: 0x41E54A80
    C6RUN_MEM_memalign returns = 0x41E54A80
    C6RUN_MEM_memalign(128,120)
    Insert - Bin: 2
      Buffer:  0x41E54B40
      Pointer: 0x41E54B80
    C6RUN_MEM_memalign returns = 0x41E54B80
    C6RUN_MEM_memalign(128,120)
    Insert - Bin: 2
      Buffer:  0x41E54C40
      Pointer: 0x41E54C80
    C6RUN_MEM_memalign returns = 0x41E54C80
    C6RUN_MEM_calloc(1,40)
    C6RUN_MEM_memalign(8,40)
    Insert - Bin: 2
      Buffer:  0x41E54D40
      Pointer: 0x41E54D48
    C6RUN_MEM_memalign returns = 0x41E54D48
    C6RUN_MEM_calloc returns = 0x41E54D48
    C6RUN_MEM_calloc(1,12)
    C6RUN_MEM_memalign(8,12)
    Insert - Bin: 0
      Buffer:  0x41E52FE0
      Pointer: 0x41E52FE8
    C6RUN_MEM_memalign returns = 0x41E52FE8
    C6RUN_MEM_calloc returns = 0x41E52FE8
    C6RUN_MEM_memalign(256,248)
    Insert - Bin: 2
      Buffer:  0x41E54D78
      Pointer: 0x41E54E00
    C6RUN_MEM_memalign returns = 0x41E54E00
    C6RUN_MEM_memalign(256,248)
    Bin spanning buffer at 0x41E64FD8
      realigning to start of next bin at 0x41E65000
    Insert - Bin: 19
      Buffer:  0x41E65000
      Pointer: 0x41E65100
    C6RUN_MEM_memalign returns = 0x41E65100
    C6RUN_MEM_memalign(256,248)
    Insert - Bin: 19
      Buffer:  0x41E65200
      Pointer: 0x41E65300
    C6RUN_MEM_memalign returns = 0x41E65300
    C6RUN_MEM_memalign(256,248)
    Insert - Bin: 19
      Buffer:  0x41E65400
      Pointer: 0x41E65500
    C6RUN_MEM_memalign returns = 0x41E65500
    C6RUN_MEM_memalign(256,248)
    Insert - Bin: 19
      Buffer:  0x41E65600
      Pointer: 0x41E65700
    C6RUN_MEM_memalign returns = 0x41E65700
    C6RUN_MEM_memalign(256,248)
    Insert - Bin: 19
      Buffer:  0x41E65800
      Pointer: 0x41E65900
    C6RUN_MEM_memalign returns = 0x41E65900
    C6RUN_MEM_realloc(0x00000000,16)
    C6RUN_MEM_malloc(16)
    C6RUN_MEM_memalign(8,16)
    Insert - Bin: 18
      Buffer:  0x41E64FD8
      Pointer: 0x41E64FE0
    C6RUN_MEM_memalign returns = 0x41E64FE0
    C6RUN_MEM_malloc returns = 0x41E64FE0
    C6RUN_MEM_calloc(1,12)
    C6RUN_MEM_memalign(8,12)
    Insert - Bin: 2
      Buffer:  0x41E54F78
      Pointer: 0x41E54F80
    C6RUN_MEM_memalign returns = 0x41E54F80
    C6RUN_MEM_calloc returns = 0x41E54F80
    C6RUN_MEM_malloc(15)
    C6RUN_MEM_memalign(8,15)
    Insert - Bin: 2
      Buffer:  0x41E54F98
      Pointer: 0x41E54FA0
    C6RUN_MEM_memalign returns = 0x41E54FA0
    C6RUN_MEM_malloc returns = 0x41E54FA0
    C6RUN_MEM_malloc(23)
    C6RUN_MEM_memalign(8,23)
    Insert - Bin: 2
      Buffer:  0x41E54FB8
      Pointer: 0x41E54FC0
    C6RUN_MEM_memalign returns = 0x41E54FC0
    C6RUN_MEM_malloc returns = 0x41E54FC0
    C6RUN_MEM_malloc(360)
    C6RUN_MEM_memalign(8,360)
    Insert - Bin: 19
      Buffer:  0x41E65A00
      Pointer: 0x41E65A08
    C6RUN_MEM_memalign returns = 0x41E65A08
    C6RUN_MEM_malloc returns = 0x41E65A08
    C6RUN_MEM_free(0x41E65A08)
    Remove - Bin: 19,Pointer: 0x41E65A08
      Found Buffer : 0x41E65A00
    Leaving C6RUN_MEM_free.
    C6RUN_MEM_free(0x41E54FC0)
    Remove - Bin: 2,Pointer: 0x41E54FC0
      Found Buffer : 0x41E54FB8
    Leaving C6RUN_MEM_free.
    C6RUN_MEM_malloc(15)
    C6RUN_MEM_memalign(8,15)
    Insert - Bin: 2
      Buffer:  0x41E54FB8
      Pointer: 0x41E54FC0
    C6RUN_MEM_memalign returns = 0x41E54FC0
    C6RUN_MEM_malloc returns = 0x41E54FC0
    C6RUN_MEM_malloc(15)
    C6RUN_MEM_memalign(8,15)
    Insert - Bin: 2
      Buffer:  0x41E54FD8
      Pointer: 0x41E54FE0
    C6RUN_MEM_memalign returns = 0x41E54FE0
    C6RUN_MEM_malloc returns = 0x41E54FE0
    C6RUN_MEM_calloc(1,12)
    C6RUN_MEM_memalign(8,12)
    Insert - Bin: 19
      Buffer:  0x41E65A00
      Pointer: 0x41E65A08
    C6RUN_MEM_memalign returns = 0x41E65A08
    C6RUN_MEM_calloc returns = 0x41E65A08
    C6RUN_MEM_malloc(6)
    C6RUN_MEM_memalign(8,6)
    Insert - Bin: 19
      Buffer:  0x41E65A20
      Pointer: 0x41E65A28
    C6RUN_MEM_memalign returns = 0x41E65A28
    C6RUN_MEM_malloc returns = 0x41E65A28
    C6RUN_MEM_malloc(15)
    C6RUN_MEM_memalign(8,15)
    Insert - Bin: 19
      Buffer:  0x41E65A38
      Pointer: 0x41E65A40
    C6RUN_MEM_memalign returns = 0x41E65A40
    C6RUN_MEM_malloc returns = 0x41E65A40
    C6RUN_MEM_malloc(10)
    C6RUN_MEM_memalign(8,10)
    Insert - Bin: 19
      Buffer:  0x41E65A58
      Pointer: 0x41E65A60
    C6RUN_MEM_memalign returns = 0x41E65A60
    C6RUN_MEM_malloc returns = 0x41E65A60
    C6RUN_MEM_malloc(12109)
    C6RUN_MEM_memalign(8,12109)
    Bin spanning buffer at 0x41E65A78
      realigning to start of next bin at 0x41E66000
    Insert - Bin: 20
      Buffer:  0x41E66000
      Pointer: 0x41E66008
    C6RUN_MEM_memalign returns = 0x41E66008
    C6RUN_MEM_malloc returns = 0x41E66008
    C6RUN_MEM_free(0x41E65A60)
    Remove - Bin: 19,Pointer: 0x41E65A60
      Found Buffer : 0x41E65A58
    Leaving C6RUN_MEM_free.
    C6RUN_MEM_malloc(104)
    C6RUN_MEM_memalign(8,104)
    Insert - Bin: 19
      Buffer:  0x41E65A58
      Pointer: 0x41E65A60
    C6RUN_MEM_memalign returns = 0x41E65A60
    C6RUN_MEM_malloc returns = 0x41E65A60
    C6RUN_MEM_memalign(256,248)
    Insert - Bin: 19
      Buffer:  0x41E65AD0
      Pointer: 0x41E65B00
    C6RUN_MEM_memalign returns = 0x41E65B00
    C6RUN_MEM_memalign(256,248)
    Insert - Bin: 19
      Buffer:  0x41E65CD0
      Pointer: 0x41E65D00
    C6RUN_MEM_memalign returns = 0x41E65D00
    C6RUN_MEM_memalign(256,248)
    Bin spanning buffer at 0x41E68F60
      realigning to start of next bin at 0x41E69000
    Insert - Bin: 23
      Buffer:  0x41E69000
      Pointer: 0x41E69100
    C6RUN_MEM_memalign returns = 0x41E69100
    C6RUN_MEM_memalign(256,248)
    Insert - Bin: 23
      Buffer:  0x41E69200
      Pointer: 0x41E69300
    C6RUN_MEM_memalign returns = 0x41E69300
    C6RUN_MEM_realloc(0x00000000,32)
    C6RUN_MEM_malloc(32)
    C6RUN_MEM_memalign(8,32)
    Insert - Bin: 19
      Buffer:  0x41E65ED0
      Pointer: 0x41E65ED8
    C6RUN_MEM_memalign returns = 0x41E65ED8
    C6RUN_MEM_malloc returns = 0x41E65ED8
    C6RUN_MEM_realloc(0x00000000,32)
    C6RUN_MEM_malloc(32)
    C6RUN_MEM_memalign(8,32)
    Insert - Bin: 19
      Buffer:  0x41E65F00
      Pointer: 0x41E65F08
    C6RUN_MEM_memalign returns = 0x41E65F08
    C6RUN_MEM_malloc returns = 0x41E65F08
    C6RUN_MEM_realloc(0x00000000,20)
    C6RUN_MEM_malloc(20)
    C6RUN_MEM_memalign(8,20)
    Insert - Bin: 19
      Buffer:  0x41E65F30
      Pointer: 0x41E65F38
    C6RUN_MEM_memalign returns = 0x41E65F38
    C6RUN_MEM_malloc returns = 0x41E65F38
    C6RUN_MEM_realloc(0x00000000,20)
    C6RUN_MEM_malloc(20)
    C6RUN_MEM_memalign(8,20)
    Insert - Bin: 19
      Buffer:  0x41E65F58
      Pointer: 0x41E65F60
    C6RUN_MEM_memalign returns = 0x41E65F60
    C6RUN_MEM_malloc returns = 0x41E65F60
    C6RUN_MEM_realloc(0x00000000,32)
    C6RUN_MEM_malloc(32)
    C6RUN_MEM_memalign(8,32)
    Insert - Bin: 19
      Buffer:  0x41E65F80
      Pointer: 0x41E65F88
    C6RUN_MEM_memalign returns = 0x41E65F88
    C6RUN_MEM_malloc returns = 0x41E65F88
    C6RUN_MEM_realloc(0x00000000,32)
    C6RUN_MEM_malloc(32)
    C6RUN_MEM_memalign(8,32)
    Insert - Bin: 19
      Buffer:  0x41E65FB0
      Pointer: 0x41E65FB8
    C6RUN_MEM_memalign returns = 0x41E65FB8
    C6RUN_MEM_malloc returns = 0x41E65FB8
    C6RUN_MEM_realloc(0x00000000,32)
    C6RUN_MEM_malloc(32)
    C6RUN_MEM_memalign(8,32)
    Insert - Bin: 22
      Buffer:  0x41E68F60
      Pointer: 0x41E68F68
    C6RUN_MEM_memalign returns = 0x41E68F68
    C6RUN_MEM_malloc returns = 0x41E68F68
    C6RUN_MEM_realloc(0x00000000,32)
    C6RUN_MEM_malloc(32)
    C6RUN_MEM_memalign(8,32)
    Insert - Bin: 22
      Buffer:  0x41E68F90
      Pointer: 0x41E68F98
    C6RUN_MEM_memalign returns = 0x41E68F98
    C6RUN_MEM_malloc returns = 0x41E68F98
    C6RUN_MEM_realloc(0x00000000,32)
    C6RUN_MEM_malloc(32)
    C6RUN_MEM_memalign(8,32)
    Insert - Bin: 22
      Buffer:  0x41E68FC0
      Pointer: 0x41E68FC8
    C6RUN_MEM_memalign returns = 0x41E68FC8
    C6RUN_MEM_malloc returns = 0x41E68FC8
    C6RUN_MEM_realloc(0x00000000,32)
    C6RUN_MEM_malloc(32)
    C6RUN_MEM_memalign(8,32)
    Insert - Bin: 23
      Buffer:  0x41E69400
      Pointer: 0x41E69408
    C6RUN_MEM_memalign returns = 0x41E69408
    C6RUN_MEM_malloc returns = 0x41E69408
    C6RUN_MEM_realloc(0x00000000,64)
    C6RUN_MEM_malloc(64)
    C6RUN_MEM_memalign(8,64)
    Insert - Bin: 23
      Buffer:  0x41E69430
      Pointer: 0x41E69438
    C6RUN_MEM_memalign returns = 0x41E69438
    C6RUN_MEM_malloc returns = 0x41E69438
    C6RUN_MEM_realloc(0x00000000,32)
    C6RUN_MEM_malloc(32)
    C6RUN_MEM_memalign(8,32)
    Insert - Bin: 23
      Buffer:  0x41E69480
      Pointer: 0x41E69488
    C6RUN_MEM_memalign returns = 0x41E69488
    C6RUN_MEM_malloc returns = 0x41E69488
    C6RUN_MEM_realloc(0x41E65F38,40)
    C6RUN_MEM_free(0x41E65F38)
    C6RUN_SHAREDMEM_getBuf() failed because no magic number found:
      pBuffer        = 0x41E65F30
      ptr            = 0x41E65F38
      ptr[-1]        = 0x000347FC
      ptr[-2]        = 0x000347FC
    Leaving C6RUN_MEM_free.
    Insert - Bin: 23
      Buffer:  0x41E694B0
      Pointer: 0x41E694B8
    C6RUN_MEM_realloc returns = 0x41E694B8
    C6RUN_MEM_realloc(0x41E65F60,40)
    C6RUN_MEM_free(0x41E65F60)
    Remove - Bin: 19,Pointer: 0x41E65F60
      Skip Buffer : 0x41E65FB0
      Skip Buffer : 0x41E65F80
      Found Buffer: 0x41E65F58
    Aborted

  • As this can be a potential bug in C6RunLib, from TI suggest me use explicit C6RUN_MEM APIs instead --C6Run:replace_malloc

    But it is not easy using C6RUN_MEM APIs in my application.

    I hope they solve this potential bug soon...

  • Well, I have used --C6Run:replace_malloc with C6RunLib but the results are discouraging...

    If I run my application only in the ARM it lasts 2.5 seconds.

    If I run a little piece of my application that uses integers in the DSP using C6RunLib it lasts 5.2 s. From TI tell me that is because the load introduced by using C6RunLib does not compensate the gain of running that code in the DSP as this code is little.

    If I run a piece of my application that uses floats in the DSP using C6RunLib it lasts 28 s. (even using the IQMath). I suppose that is because using floats in a fixed point DSP.

    Does anybody know another method to accelerate an application that runs in a Beagleboard and using the DSP.

  • Roberto Varona said:
    Does anybody know another method to accelerate an application that runs in a Beagleboard and using the DSP.

    Options other than C6Run is to build your applications directly over DSPLink or if its a codec over Codec Engine. C6Run is  using DSPLink internally to talk to the DSP and using DSPLink or Codec Engine means that you could customize/tune your application further. Naturally, this comes with a steeper learning curve that C6Run.

    More information on DSP/Link is at http://processors.wiki.ti.com/index.php/Category:DSPLink. Likewise information on Codec Engine is at http://processors.wiki.ti.com/index.php/Category:Codec_Engine