1 / 32

TigerSHARC Laboratory

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.

onslow
Download Presentation

TigerSHARC Laboratory

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. TigerSHARC Laboratory Setting up the HPP-ICE environmentICT 318 / 320 Running versions of the Audio-talk-through program

  2. 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

  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 or accounts, then you will need to do the set-up every time Setting up TigerSHARC laboratory station

  4. 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

  5. Activate the configuratorfrom the start menu Setting up TigerSHARC laboratory station

  6. Select TS201 EZ-Liteand then press “COPY” Setting up TigerSHARC laboratory station

  7. Change PLATFORM NAMEto dualProcessorENCM515then press OK Setting up TigerSHARC laboratory station

  8. When back at CONFIGURATORSelect “dualProcessorENCM515”Then select Test Setting up TigerSHARC laboratory station

  9. 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

  10. This was my “failure to power up board”; can also be “no ICE connected” (e.g. wrong TYPE) Setting up TigerSHARC laboratory station

  11. Expected resultIf you see “1 JTAG device detected”, you are at a Blackfin station – Change rooms  Setting up TigerSHARC laboratory station

  12. Testing completeSelect OK Setting up TigerSHARC laboratory station

  13. Now ready to activateVisualDSP IDDE Setting up TigerSHARC laboratory station

  14. TARGET: You must select the correct “session” for TS201S Setting up TigerSHARC laboratory station

  15. Select Processor Family2) Select TS201, then NEXT Setting up TigerSHARC laboratory station

  16. 3) In LAB. select Emulatorelsewhere (home) select EZ-KIT (uses USB) Setting up TigerSHARC laboratory station

  17. 4) Select dualProcessorENCM515 for the platform Setting up TigerSHARC laboratory station

  18. PROJECTWINDOW DISASSEMBLYWINDOW COMMAND and BUILDWINDOWS WHICH DSPS ARE RUNNING Setting up TigerSHARC laboratory station

  19. 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

  20. 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

  21. Open the existing ENCM515Demo2007 project in H:/ENCM515Labs/LabDemo2007 LabDemo2007 LabDemo2007.dpj LabDemo2007.dpj Setting up TigerSHARC laboratory station

  22. Look in LabDemoDef.h #if !defined(__LabDemo__H__) #define (__LabDemo__H__) 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 Setting up TigerSHARC laboratory station

  24. Do a BUILD and then DEBUG | RUN LabDemo2007 #if !defined(__LabDemo__H__) #define (__LabDemo__H__) 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 (or MULTIPROCESSOR | RUN) LabDemo2007 Setting up TigerSHARC laboratory station

  26. DSP-A is runningSet View | Editor Tab #if !defined(__LabDemo__H__) #define (__LabDemo__H__) Setting up TigerSHARC laboratory station

  27. Now see file names after you have set View | Editor Tab #if !defined(__LabDemo__H__) #define (__LabDemo__H__) LabDemo2007 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 Setting up TigerSHARC laboratory station

  29. Delay by memory shuffleand circular buffer 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 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. 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 another class Setting up TigerSHARC laboratory station

More Related