Additional Experiment 2: Image Processing
August 17, 2011
Setup
Network Cable
Target- Demo application
Host- CCS- Web Browser
Multi-core Software Demonstration
• SYS/BIOS-MCSDK provides tested and supported components like:• SYS/BIOS – real time optimized
OS for scheduling• Platform Development Kit (PDK)
– application interface to C667x peripherals like network coprocessor
• Inter Processor Communication – mechanism to communicate across cores
• Image Processing Demonstration provides• Use of TI’s image processing
library• Starting point for image
processing product development
1G Eth Config
IPNetwork
CCS/Host IF
SYS/BIOS-MCSDK
Image Processing Pipeline Demonstration
SYS/BIOS
IPC PDK
Image Processing Interface
Image pre-
process
Sample
Edge Detection
Image Post
Process
TMS320C667x
Image Processing Demo
Processor
Image Processing Demo Pipeline
Input BMP
image
NDK:HTTP
transferBMP
image
RGB extract & slicing
IPC: Processing
start message to slave nodes
RGB image
RGB to YLumaimag
e
IMGLIB: Sobel Filter Gradient
image
IMGLIB: Threshold
Edge
IPC:Processing complete
message to master node
RGB image
RGB to YLumaimag
e
IMGLIB: Sobel Filter Gradient
image
IMGLIB: Threshold
Edge
Slave Node 0
Slave Node n
Combine edge slices & create BMP
BMP image
NDK:HTTP
transferOutput BMP
image
Master Node Master Node
Image Processing
• Connect PC and board• Set PC network configuration• Launch target configuration• Load program and run• Viewing result via PC web browser
Connect PC and board
• Connect the board to PC using Ethernet cable. • Connect XDS100v1 and power on board.
Set PC network configuration
• The demo runs in Static IP mode ;board IP address 192.168.2.100,Gateway IP address 192.168.2.101 and subnet mask 255.255.254.0
• Set up PC TCP/IP configuration of ‘Wired Network Connection’ like below:(start->network connections->Wired Network Connection->Internet protocol(TCP/IP) )
Launch target configuration
• Switch to target configuration window• Right-click on c6678_XDS100v1_emu.ccxml,
select ‘launch selected configuration’
Connect target
• Group all cores
• Select group 1; right click ,then select ‘connect target’
Load program and run
• There are two images to be loaded to master (core 0) and other cores.
• Select core 0, load program<MCSDK INSTALL DIR>\demos\image_processing\evmc667xl\master\Release \image_processing_evmc667xl_master.out
• other cores (referred as slave cores) to be loaded with <MCSDK INSTALL DIR>\demos\image_processing\evmc667xl\
slave\Release\image_processing_evmc667xl_slave.out
• When all loaded, select group 1, run all cores together.
• In the CIO console window, the board should print IP address information like below:
MCSDK IMAGE PROCESSING DEMONSTRATIONQMSS successfully initialized CPPI successfully initialized PA successfully initialized EVM in StaticIP mode at 192.168.2.100Set IP address of PC to 192.168.2.101PASS successfully initialized Ethernet subsystem successfully initialized Ethernet eventId : 48 and vectId (Interrupt) : 7 Registration of the EMAC Successful, waiting for link up ..Network Added: If-1:192.168.2.100 Service Status: HTTP : Enabled : : 000
Viewing result via PC web browser
• Open a web browser in the PC. • Enter 192.168.2.100 in web page.
• Please follow the instructions in the web page to run the demo.
• Note that, sample BMP images are provided in <MCSDK INSTALL DIR>\demos\image_processing\images
Thanks!
August 17, 2011