DSP

MCAPI/ICC between Linux and CCES

2019-07-13 17:44发布

1.Compile coreB beare-metal in CCES 1.1 import coreB project 1.2 add sdramcplb entries to startup_ldr/app_cplbtab.c  /*SDRAM Memory */  {0x0,(ENUM_DCPLB_DATA_64MB | CPLB_DNOCACHE)},  {0x4000000,(ENUM_DCPLB_DATA_64MB | CPLB_DNOCACHE)}, 1.3 Then config like following and build   2 Load by Linux icc_loader -lBF609_MCAPI_coreB_task.dxe 3 Load by bootrom 3.1 Blackfin bootrom allows to load 1LDR image into memory and run on both cores after reset. You can pack core1MCAPI dxe binary and core 0 uboot elf binary into one LDR image by bfin-elf-ldrutility and run MCAPI application on core1 at the very begining of uboot init. 3.2 Build the latest bfin-elf-ldr on2012R1 toolchain branch head to enable this Build u-boot on 2012R1 branch headwith CONFIG_CORE1_RUN option defined in config file. $ cd u-boot $/u-boot$ vi  include/configs/bf609-ezkit.h #defineCONFIG_CORE1_RUN 1 $:wq /u-boot$  makebf609-ezkit
3.3 Pack the dxe file of CCES core1 MCAPI testapplication and uboot ELF file into one LDR image by command: bfin-elf-ldr -Tbf609-0.0 -c DualCoreTest_uboot.ldr u-boot BF609_MCAPI_coreB_task.dxe --bmode PARA --use-vmas --initcode arch/blackfin/cpu/initcode.o-J --punchit $((0x8000)):$((0x8000)):env-ldr.o 3.4 Flash generated LDR image intoNorflash 3.5 Switch the bootmode rotary to norflash mode and reset
4. load CCES mcapi test application in linux icc_loader -l BF609_MCAPI_msg_CORE1.dxe   5. load CCES mcapi msg test application cces_msg1