320 likes | 448 Views
TigerSHARC Laboratory. Setting up the HPP-ICE environment ICT 318 / 320 Running versions of the Audio-talk-through program. Details. In Winter 2008 16 Blackfin ADI-BF533 Ez-lite evaluation boards in ICT 320 (another 6 in ICT318) 8 TigerSHARC ADI-TS201S Ez-lite evaluation boards in ICT 318.
E N D
TigerSHARC Laboratory Setting up the HPP-ICE environmentICT 318 / 320 Running versions of the Audio-talk-through program
Details • In Winter 2008 • 16 Blackfin ADI-BF533 Ez-lite evaluation boards in ICT 320 (another 6 in ICT318) • 8 TigerSHARC ADI-TS201S Ez-lite evaluation boards in ICT 318 Blackfin interface TigerSHARC interface is similar Has 2 audio I/O sockets (DSP A) plus 2 LEDs and 3 buttons (DSP A) plus 2 LEDs and 3 buttons (DSP B) Setting up TigerSHARC laboratory station
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 or accounts, then you will need to do the set-up every time Setting up TigerSHARC laboratory station
Steps • Power-up evaluation board • Log into your account • Set-up the directory ENCM515 on your H: drive • 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 Setting up TigerSHARC laboratory station
Activate the configuratorfrom the start menu Setting up TigerSHARC laboratory station
Select TS201 EZ-Liteand then press “COPY” Setting up TigerSHARC laboratory station
Change PLATFORM NAMEto dualProcessorENCM515then press OK Setting up TigerSHARC laboratory station
When back at CONFIGURATORSelect “dualProcessorENCM515”Then select Test Setting up TigerSHARC laboratory station
Change TYPE to HPPCI-ICEPress START (the testing)I recommend doing this test at the beginning of each lab to check equipment Setting up TigerSHARC laboratory station
This was my “failure to power up board”; can also be “no ICE connected” (e.g. wrong TYPE) Setting up TigerSHARC laboratory station
Expected resultIf you see “1 JTAG device detected”, you are at a Blackfin station – Change rooms Setting up TigerSHARC laboratory station
Testing completeSelect OK Setting up TigerSHARC laboratory station
Now ready to activateVisualDSP IDDE Setting up TigerSHARC laboratory station
TARGET: You must select the correct “session” for TS201S Setting up TigerSHARC laboratory station
Select Processor Family2) Select TS201, then NEXT Setting up TigerSHARC laboratory station
3) In LAB. select Emulatorelsewhere (home) select EZ-KIT (uses USB) Setting up TigerSHARC laboratory station
4) Select dualProcessorENCM515 for the platform Setting up TigerSHARC laboratory station
PROJECTWINDOW DISASSEMBLYWINDOW COMMAND and BUILDWINDOWS WHICH DSPS ARE RUNNING Setting up TigerSHARC laboratory station
Download ENCM515 Labs 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 Setting up TigerSHARC laboratory station
Make sure you are not in a subdirectory • You may find DSPUtilities and a TestEquipment directory added to the download H:/ENCM515Labs/ Setting up TigerSHARC laboratory station
Open the existing ENCM515Demo2007 project in H:/ENCM515Labs/LabDemo2007 LabDemo2007 LabDemo2007.dpj LabDemo2007.dpj Setting up TigerSHARC laboratory station
Look in LabDemoDef.h #if !defined(__LabDemo__H__) #define (__LabDemo__H__) Setting up TigerSHARC laboratory station
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 Setting up TigerSHARC laboratory station
Do a BUILD and then DEBUG | RUN LabDemo2007 #if !defined(__LabDemo__H__) #define (__LabDemo__H__) Setting up TigerSHARC laboratory station
Warning: Make sure that Processor DSP A is running – otherwise no sound • You may need to click on DSP A before selecting DEBUG | RUN (or MULTIPROCESSOR | RUN) LabDemo2007 Setting up TigerSHARC laboratory station
DSP-A is runningSet View | Editor Tab #if !defined(__LabDemo__H__) #define (__LabDemo__H__) Setting up TigerSHARC laboratory station
Now see file names after you have set View | Editor Tab #if !defined(__LabDemo__H__) #define (__LabDemo__H__) LabDemo2007 Setting up TigerSHARC laboratory station
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 Setting up TigerSHARC laboratory station
Delay by memory shuffleand circular buffer Setting up TigerSHARC laboratory station
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 Setting up TigerSHARC laboratory station
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. Setting up TigerSHARC laboratory station
Testing by listening is very time consuming • We need an automated test framework to make code optimization easier • Will discuss in another class Setting up TigerSHARC laboratory station