world leader in high performance signal processing
Trace: » test_icc

Configure kernel with ICC support

Select CoreB loader driver

    Blackfin Processor Options  --->
      -*- Enable Core B loader

Select ICC driver. Debug mode is optional.

    Device Drivers  --->   
      [*] Staging drivers  --->
          [*]     icc driver  --->
              --- icc driver
             [*]   icc protocol
             [ ]   icc debug

Disable L2 cache, L2 will be used to deliver messages and synchronize by ICC.

     Blackfin Processor Options  --->
             *** Cache Support *** 
             [ ]   Enable ICACHE for L2 SRAM 
             [ ]   Enable DCACHE for L2 SRAM 

select external meory dcache policy write through

         External memory DCACHE policy (Write through)  --->

build icc utils and test suites

Configure ICC in buildroot:

Package Selection for the target  --->
    Miscellaneous  --->
    [*] bfin inter-core communication support
    ICC cpu type (BF609)  --->

Configure ICC in uClinux:

Blackfin app programs  --->
[*] BF561 ICC utils

build ICC utils in buildroot

make packages/icc_utils_only

build ICC utils in uClinux

make usr/blkfin-apps/icc_utils_only

Test ICC

Boot linux kernel

The last 4M memory is used for loading slave core task code and data, so reserve last 4M memory by setting uboot args. L2 SRAM should also be reserved for ICC message queues and possible slave core code.

set ramargs set bootargs root=/dev/mtdblock0 rw clkin_hz=30000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 mem=60M max_mem=64M icc_l2_mem=0x8000

For BF60x:

set ramargs set bootargs root=/dev/mtdblock0 rw clkin_hz=30000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 mem=124M max_mem=128M icc_l2_mem=0x8000

Run ICC test

load icc server to slave core

root:/> icc_loader -l bin/icc

load example task

root:/> icc_loader -e bin/task1

run test app on linux side to communicate with coreb via ICC protocol

root:/> packet_test -s 123

There is one more demo based on MCAPI: https://docs.blackfin.uclinux.org/doku.php?id=mcapi_bmp2jpg_demo

Complete Table of Contents/Topics