tigersharc laboratory setting up the hpp-ice environment ict 318 / 320 running versions of the...
Post on 19-Dec-2015
214 views
TRANSCRIPT
TigerSHARC Laboratory
Setting up the HPP-ICE environmentICT 318 / 320
Running versions of the Audio-talk-through program
16 December 2006 Setting up TigerSHARC laboratory station 2
Details
In Winter 2007 16 Blackfin ADI-BF533 Ez-lite evaluation boards
in ICT 320 8 TigerSHARC ADI-TS201S Ez-lite evaluation
boards in ICT 318
Blackfin interface
TigerSHARC interface is similarHas 2 audio I/O sockets (DSP A) plus 2 LEDs and 3 buttons (DSP A) plus 2 LEDs and 3 buttons (DSP B)
16 December 2006 Setting up TigerSHARC laboratory station 3
Set up
If you use the same lab. station and same account each time (recommended), then you will have to do the set up just once.
If you move stations, then you will need to do the set-up everytime
16 December 2006 Setting up TigerSHARC laboratory station 4
Steps Power-up evaluation board Log into your account Set-up on your U: drive the directory ENCM515
Activate the VisualDSP configurator and “make a dual processor ENCM515 session”. Then exit from configurator.
Activate the Visual DSP development environment IDDE, select “dualENCM515” session, build (or download) a VisualDSP TigerSHARC project, or download an existing one.
You are on your way
16 December 2006 Setting up TigerSHARC laboratory station 5
Activate the configuratorfrom the start menu
16 December 2006 Setting up TigerSHARC laboratory station 6
Select TS201 EZ-Liteand then press “COPY”
16 December 2006 Setting up TigerSHARC laboratory station 7
Change PLATFORM NAMEto dualProcessorENCM515then OK
16 December 2006 Setting up TigerSHARC laboratory station 8
When back at CONFIGURATORSelect “dualProcessorENCM515”Then select Test
16 December 2006 Setting up TigerSHARC laboratory station 9
Change TYPE to HPPCI-ICEPress STARTRecommend you do this test at the beginning of each lab
16 December 2006 Setting up TigerSHARC laboratory station 10
This was a “failure to power up board”, can also be “no ICE connected” (e.g. wrong TYPE)
16 December 2006 Setting up TigerSHARC laboratory station 11
Expected resultIf you see “1 JTAG device detected”, you are at a Blackfin station – Change rooms
16 December 2006 Setting up TigerSHARC laboratory station 12
Testing completeSelect OK
16 December 2006 Setting up TigerSHARC laboratory station 13
Now ready to activateVisualDSP IDDE
16 December 2006 Setting up TigerSHARC laboratory station 14
TARGET: You must select the correct “session” for TS201S
16 December 2006 Setting up TigerSHARC laboratory station 15
I) Select Processor Family2) Select TS201, then NEXT
16 December 2006 Setting up TigerSHARC laboratory station 16
3) In LAB. select Emulatorelsewhere select EZ-KIT (uses USB)
16 December 2006 Setting up TigerSHARC laboratory station 17
4) Select dualProcessorENCM515 for the platform
16 December 2006 Setting up TigerSHARC laboratory station 18WHICH DSPS ARE
RUNNING
PROJECTWINDOW
COMMAND and BUILDWINDOWS
DISASSEMBLYWINDOW
16 December 2006 Setting up TigerSHARC laboratory station 19
Download Environment
Exit from VisualDSP IDDE Change directory to U:ENCM515Labs Directory Download ENCM515Environment.zip into
U:ENCM515Labs Extract to here MAKE SURE THE UNZIP WENT CORRECTLY. IF
THINGS WENT INTO WRONG FOLDER THEN MORE WORK TO BE DONE IN LABS AND ASSIGNMENT
16 December 2006 Setting up TigerSHARC laboratory station 20
Make sure you are not in a subdirectory
You may find a DSPUtilities directory
U:/ENCM515Labs/
16 December 2006 Setting up TigerSHARC laboratory station 21
Open the existing ENCM515Lab1 project in U:/ENCM515Labs/Lab1
16 December 2006 Setting up TigerSHARC laboratory station 22
Look in ENCM515Lab1Def.h
16 December 2006 Setting up TigerSHARC laboratory station 23
Audio Talkthrough Program
Connect up your ear-phones to I-POD, radio, CD player (can use the CD player in Lab. Station)
Check that volume is comfortable to listen to Connect IPOD to TigerSHARC audio in Connect Earphones to TigerSHARC audio
out
16 December 2006 Setting up TigerSHARC laboratory station 24
Do a BUILD and then DEBUG | RUN
16 December 2006 Setting up TigerSHARC laboratory station 25
Warning: Make sure that Processor DSP A is running – otherwise no sound
You may need to click on DSP A before selecting DEBUG | RUN
16 December 2006 Setting up TigerSHARC laboratory station 26
DSP-A is runningSet View | Editor Tab
16 December 2006 Setting up TigerSHARC laboratory station 27
Now see file names
16 December 2006 Setting up TigerSHARC laboratory station 28
Listen to various forms of the program
Quality of sound Time how long delayed sound takes to arrive
at the other ear Do this with each mode of operation
#define WHICH_AUDIOHANDLER audio_intShuffle_DebugMode //#define WHICH_AUDIOHANDLER audio_intShuffle_ReleaseMode //#define WHICH_AUDIOHANDLER audio_intCB_DebugMode //#define WHICH_AUDIOHANDLER audio_intCB_ReleaseMode
16 December 2006 Setting up TigerSHARC laboratory station 29
Delay by memory shuffleand circular buffer
16 December 2006 Setting up TigerSHARC laboratory station 30
Look at what code is executing
CommonShuffle_CPPCode.h Delay line performed by shuffling (move)
DelayLine[N] DelayLine[N-1]; CommonCB_CPPCode.h
Circular Buffer operation Debug mode
C++ compiler generating unoptimized code Release mode (files marked with ! )
C++ compiler generating optimized code
16 December 2006 Setting up TigerSHARC laboratory station 31
TimeToWaste Parameter
When running circular buffer code, adjust the parameter “TIME_TO_WASTE” to see how much extra time is available for extra processing.
Try increasing in steps of 0x1000 until sound quality gets worse. Later we will turn this number into processor cycles.
16 December 2006 Setting up TigerSHARC laboratory station 32
Testing by listening is very time consuming
We need an automated test framework to make code optimization easier
Will discuss in the next class