Home

W90P710 EVB Diagnostic Code User`s Manual

image

Contents

1. Resetting Multi ICE hardware Resetting Multi ICE hardware Input bits i BN 3 Launch AXD 4 Make sure Multi ICE is chosen as the target if it s not in the option window add it in first oix Fie Search Processor Views System Views Execute Options Window Help ef rosie oS ara r cis INOS rex neufs E eps Bai Target image Fie SEE choose target TS r Target Environments RoI 151 C Bin Remote_A dll 15 1 C Bin 4RMulate dil Mult CE C Mult CE SMulti ICE dll Connect the ARM Debugger to a Multi ICE unit attached to target hardware Ensure that the unit is powered up and that the server has been configured System Output Monit cce Hep RDI Log Debug Log Log file ARM RDI 1 5 1 gt ASYNC RDI Protocol Converter ADS v1 2 Build number 805 Copyright c ARM Limited 2001 For Help press F1 lt No Pos ARMUL ARM7TDMI lt No Image Name 7 The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond ry Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION 5 Configure the target to Little Endian mode ini x Pe Saar A OCES aa aa ARM Multi ICE V2 2 Build 1095 AA xl mlae ae moma oala Ha ol Connect Processor Settings Advanced Board Trace 4l gt
2. Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION W90P710 Diagnostic Code User s Manual The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond sis Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION Index Te Environment Set p ER 4 Hyper Termi al Crt ur gna sioti o E E R eg ae pees olde EN 4 Multi ICE and PS EE EDI TORRE 6 Evaluation Board TNT SUEDE usc osos niue FERRUM Indra tu RD SUL Ete Dx en pA pM nM P MAN nM MN ME dE 8 Load and Execute Diagnostic Code iiiter Heras a tata pru R Ue atadecce sastaned Roo Usa UC U Ea o MER pea Spe de 9 3 niroducbomio DrasHasuc COE usa eo od eite ene Po dn Un Du dU UE nea de E 13 Main PUNCH ON MAIN ORC E 14 Power Mangsement pm TES IoC sca cseaceateussqecanneacqstorsasesiatnnsgaiensearianseierten teas S Er EEE Ei ET 14 MAC mac teste miacfulic C ui eee Tei io Fete RE bteto severe Peto deste t tents A Peer aeos 15 GDMA EIS 169b B oues abo rM ex VU E mM Nu MN ae ead eo MN E EE EM 20 USB Host USD test C i tete seio a ee rye ede tU e esa te desda cute ve DU uda Eee Ea 20 USB Device usbd test c esses eene nnne enne Ene Saisi ennt SE SEAS Nessie aisi eraa 20 SDIO sd 18866 ocv REED I EMI MIN II IM IDE EE 20 IE SIBFACONEI RR 21 AC9T Udio ME
3. gt eo ARM7TDMI 0 Step In Fe 5 990 undefined 9 Step F10 c 4 0x2a0 Step Out Shf amp F8 l isl 1 4 Run To Cursor F7 89c Images ZI Limit 0 8 r6 Show Execution Context iat 4 00 Toggle Breakpoint F9 80x90 0x8098 4 Toggle Watchpoint Fil 0 r3 9 SetWatchpoint 7x6 C Delete All Breakpoints rl r8 00008014 0xe0833008 add r3 r3 r8 00008018 O0xe240b0011 sub rll r0 1 System Output Monitor RDI Log Debug Log Loa file 4 Run the program line 129 ColO Multi ICE ARM7TDMI 0 sd_demo axf 4 For using build in shell of bootloader please follow the steps listed below 1 Launch Hyper Terminal Configure it as described in previous chapter 2 If there s executable image in flash on evaluation board press ESC during boot up to enter debug mode 3 Use ether mt or mx command to load the image W90P710 DiagnosticCode EVB bin to address 0x8000 in SDRAM Please refer to W90P710 Bootloader Users Manual for the detail description of these commands The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond 10 Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION 115200 8N1 HyperTerminal o xl File Edit View Call Transfer Help USB Interface Disabled Serial Number 0x00000000
4. gCTxFDPtr and Exit Rx ISR current frame descrintor i 2 Rx is Good Process error frame Get received frame to memory buffer Change descriptor ownership to DMA Get next frame descriptor The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond 19 Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION In mac test c users could find Mac Test which is the entrance point of MAC test After initialize the interface it tests whether the read write function to PHY register is normal then proceeds to do a series of loop back test First it will do the internal loop back test in interrupt mode in polling mode and in interrupt mode again Afterward it will test external loop back function four times in interrupt mode please make sure a loop back connector with the RJ45 port in order to make the test pass GDMA gdma test c GDMA test memory to memory block mode in both channels In GDMA Test it installs ISRs which will set a flag after transfer completes And it prepares 2 pares of memory blocks for testing Channel 0 transfer 0x30000 bytes of data in byte mode and channel 1 transfer 0x15000 bytes in work mode After initial values are given to the source memory spaces it calls WB GDMAMemToMenmY to trigger both channels and wait for the transfers complete Finall
5. By checking the global counter it can decide whether AIC behaves normally The testing procedure repeated twice at the first time interrupt sources are configured as IRQ And configure as FIQ at the second time All APIs are provided by system library HTC rtc test c The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond 24 SS Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION 115200 8N1 HyperTerminal 10 x Set RTC Tick time Get RTC Tick time i Desa RTC RLL Value Please Select Connected 00 04 15 auto detect 1152008 N 1 SCROLL CAPS NUM Capture Print echo The RTC test function has three test items first one is set current time to 2008 02 28 23 59 00 Thursday The year 2008 is a leap year users can use second or third item to observe the time change Second test time will print the current time on the console and third test time will use the RTC tick ISR to set a flag every second and then print current time on console until users press ESC key All the RTC related APIs are provided by RTC Non OS library Smart Card smartcard_test c Smartcard test function will activate smartcards in both slots and print the ATR to console It calls scOpen to activate smartcard scloctl to read ATR scClose to deactivate smartcard A
6. NO W90P710 EVB Diagnostic Code User s Manual VERSION 2 Load and Execute Diagnostic Code There are two methods to download and execute diagnostic code ether using AXD or using the build in shell of bootloader For using AXD please follow the steps listed below 1 Launch Multi ICE server and make sure ARM7TDMI MCU is detected correctly 2 Launch AXD 3 Click Load Image in File menu Axo NN G lolx File Search Processor Views System Views Execute Options Window Help E eh Target image File 4 gt m ARM7TDMI_O Files of type AXF Image axf Cancel J Processors BN T n Profiling EMOANN I Profile Cal graph profiling Interval p100 microseconds RDI Log Debug Loa Flat profiling Log file 4 For Help press F1 lt No Pos Muli ICE ARM7TDMI D lt No Image Name 4 4 Select the project image W90P710 DiagnosticCode EVB axf 5 Press F5 key or select Run in Execute menu The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond 9 Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION AXD Ani x File Search Processor Views System Views Execute Options Window Help male oo la raj a 53d zm e laja Sle e eos Target Image Fie
7. For help on the available commands type h Press ESC to enter debug mode Cache enabled USB disabled i image image image image image ing image Processing image bootloader gt mx Please enter destination address 0x8000 Image load address default to 0x00008000 Waiting for download CCCCCCCCCCCC s IL Connected 00 00 22 auto detect 1152008 N 1 SCROLL CAPS NUM Capture Print echo 4 Use g command to execute the application 115200 8N1 HyperTerminal o xi File Edit View Call Transfer Help Power Management MAC GDMA USB Host USB Device SDIO Please choose test item 1 H _ Connected 00 03 18 autodetect 115200 amp N 1 SCROLL CAPS NUM Capture Print echo W90P710 diagnostic code is an interactive application there are totally 18 items users could choose from the main menu displayed in Hyper Terminal for testing and some items have submenu in it Table 1 describes the test items and their action Test Item Description The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond 11 Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION Power Management Power management has three test items idle mode power down mode and idle mode with memory idle Press nIRQ3 button could wake
8. USB disk doesn t present SD memory card will become drive C 2 USB host non OS code doesn t support hot plug 3 USB and SD read write functions only test first partition mounted 3 Introduction to Diagnostic Code The W90P710 diagnostic code is developed with ADS1 2 after decompress the project four directory could be found lt Src gt contains the diagnostic code source files Non OS libraries and their header files DOC contains diagnostic code documents lt Syslib gt contains system library and its header files system library has APIs to access timer UARTO to configure AIC EBI cache and access power management functions Project contains the project file W90P710 DiagnosticCode EVB mocp After double click the project file or open with Code Warrior a window like below would be shown in the monitor Users could double click the file name to edit the source code and then rebuild the project The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond s14 Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION i p destc Bl whfat_test c festc Library Ca Systib 37 files Rest of this document will describe how each test function works Large part of the diagnostic code was developed base on Non OS libraries and system library This document would no
9. are provided by Non OS library Timer timer test c The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond 23 Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION 115200 8N1 HyperTerminal 10 x Eile Edit View Call Transfer Help Ds 213 sole SW1 4 ON SW2 4 OFF SW3 4 OFF If the above setting on evaluation board is correct press ENTER to start diagnostic code or your can press ESC to return main menu Normal Timer Test Timer amp Timerl WatchDog Timer Test Please Select Connected 00 03 51 Auto detect 1152008 N 1 SCROLL caps NUM Capture Timer test function can test TimerO and Timer1 or Watch Dog Timer If TimerO and Timer 1 are chosen the test function will set two events on both timers by calling System Library One event will flash the LED and print event count message on console the other only print message on console Watch Dog Timer test will reboot the system by creating a timeout event All APIs are provided by system library AIC aic test c AIC test function will test both IRQ and FIQ functions It install its own interrupt handler which will increase a global counter for every interrupt event on all interrupt sources except UARTO 9 and USB Host 15 and then triggers all the source except 9 and 15
10. software pointer 2 Check ownership of 1 do nothing if ownership is DMA 3 Allocate data buffer and set start address to data buffer starting address field of 1 4 Copy packet data to data buffer 5 Set I C P bits if need 6 Set packet length to frame length field of 1 7 Set ownership to DMA 8 Set TXON bit of MCMDR register if it is not set The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond SSS was as a Ta 16 Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION 9 Write TSDR register Tx Interrupt Service Routine 1 Get and check status in MISTA 2 Set software reset bit in FIFOTHD and re initialize MAC if bus error occur Do the following steps if no error occurred 3 Get status from the descriptor of Tx software pointer Do the following steps if TXCP bit is set 4 Free data buffer allocated to this descriptor 5 Set the next descriptor to Tx software pointer 6 Transmit the next packet if there is packet available in device queue Rx Interrupt Service Routine 1 Get and check status in MISTA 2 Set software reset bit in FIFOTHD and re initialize MAC if bus error occur Do the following steps if no error occurred 3 Get ownership from the descriptor of Rx software pointer Do the followi
11. Files evboard_jumper_setting c ebi led c wbfat test c evboard jumper setting c contains a function that could display the correct jumper setting on the console ebi led c contains EBI initial function for LEDs as well as the LED control function write 0 would turn off the LEDs and write 1 would turn on the LEDs wbfat test c includes SD memory card callback functions for card insert and remove a function that can support DIR command and a function which could get the correct driver number according to disk type The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond 28
12. ST m 21 DART GT el ois 8 Pe ene ne LEM 22 TAME timet testiC eese e ron eene t Men e eden itte su dea 23 AIC aic nem ESTEEN 24 IdKexrea oC ETE 24 Smart Card smartcard test c esses entere enne rn nnns ASEE EES OPSE nete nnns 25 IRSE E 25 USIL usiflashi iestiC i reete ether reete ree rette teet ee ege dee tia va dee ped Eo eH e ee RE e PER e VUES 26 PWM PWM MESO OO 26 WaT WSS ATL 26 PS2 p52 MCSE P 27 Other Supporting Files evboard jumper setting c ebi led c wbfat test c sessssssss 28 The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION Tables Table 1 Test tems List iu eet rete te ANTENEN EATA EENET ANEETA EEEREN 13 The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Was Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION 1 Environment Setup To set up the test environment for diagnostic code UARTO on evaluation board
13. Target image File m cot ARM7TO F eros Sena Little endian C Big endian r Read ahead Cache z Theread ahead cache improves the a performance of your debugger by caching recently read memory V Start up with cache enabled r Debugger Interface Settings You can select the interface used to communicate with the debugger Select Automatic for SAM debuggers Automatic Currently using C RDI15 RDI 151 System Output Monit C RDIT 51 RDI Log Debug Lac Log file ARM RDI 1 5 1 gt AS 4 For Help press F1 lt No Pos ARMUL ARM7TDMI lt No Image Name 4 v Report non fatal errors on startup Evaluation Board Configuration For testing the interfaces on evaluation board RJ45 connector should connected to a loop back connector An USB pen drive should plug into the USB port a SD two smartcards should be insert into their slots a microphone and a speaker should also connected to the evaluation board Due to the pin number limitation some interfaces share a group of pins Hence users need to configure those switches manually and only one function could be enabled at a time For this part of information please refer to W90P710 evaluation board application note The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond 8 Winbond Electronics Corp
14. View Call Transfer Help Die e xolg l B W90P710 Enter details for the phone number that you want to dial Country region Tawan 886 Area code B Phone number SS Cornec ing a ce NES Disconnected Auto detect Auta detet SCROLL 4 Enter port settings Bits per second 115200 Data bits 8 Parity None Stop bits 1 Flow control None CAPS NUM Capture Print echo The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond 5 Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION lini xi CIITCDTHENENENSSSR 21x Port Settings Bits per second n2 x Data bits i B Parity oe s Stop bits i HH Flow control Restore Defaults E Disconnected Auto detect Auto detect SCROLL caes NUM capture Print echo 5 5 Reset or power on the board now you should be able to see the console output in Hyper Terminal lo File Edit View Call Transfer Help Dls amp 8 soe e bootloader gt W90P710 Boot Loader Version 1 1 Revision 1 Rebuilt on Feb 13 2006 Memory Size is 0x1000000 Bytes Flash Size is 0x400000 Bytes Board designed by Winbond Hardware support provided at Winbond Copyright c Winbond Limited 2001 2006 All rig
15. call for correct times RTC RTC test function provides three test items set time get time and display time continuously until user hit any key to stop Smart Card Smart card test function will activate two smartcards read back ART and de activate smartcards 12C I2C test function will write data to 24LC64 Serial EEPROM and then reads them back for verification USI USI test function will write data to W25P16 Serial Flash and then reads The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond 125 Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION them back for comparison PWM There are six items for PWM testing four for testing PWM timers and two for testing dead zone generator KPI KPI test function includes several test items such as block mode non block mode test buffer test which will stores up to ten keys three key test and power down wake up test PS2 PS2 test functions include two sequential tests the first part displays key press and release status of PS2 keyboard the second part displays any key hit to the console Table 1 Test items list Note 1 USB disk will mount prior to SD memory card so USB disk will be drive C and SD memory card will be drive ID will depends on the partitions in USB disk if they co exist If
16. e KPI non block mode test Test the non block mode function It will display user inputs on console until time out KPI buffer test The test function will queue at most ten keys After users hit any key on console the keys store in queue will be displayed on console e KPI three key test This test item s behavior is configurable after three key is hit the system ether reset or just display a message on console Change KPI CONF example code This is just a sample code demonstrate how to use kpiloctl function All APIs are provided by Non OS library PS2 ps2 test c PS2 test function will do a sequence of test of PS2 interface First is flash the LEDs on keyboard The second step is to read back the keyboard ID and display it on console and on the third step The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond I Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION test program will start reading user input from PS2 keyboard display the ASCII code scan code on the console users could press any key on console to leave this step The last step test program will shows the ASCII character of user input on console Same as previous step users could hit any key from console then leave this test item All APIs are provided by Non OS library Other Supporting
17. ggle mode Or dead zone generators All the APIs accessing PWM related registers are provided by PWM Non OS Library In toggle mode testing timeout interval will decease by half the duration every time an interrupt occurs Users cannot observe dead zone interval by the output on console But user can use a scope to observe dead zone interval instead KPI kpi test c The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond 26 Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION 115200 8N1 HyperTerminal 10 x Elle Edit View Call Transfer Help SW14 2 OFF If the_above setting on evaluation board is correct press ENTER to start diagnostic code or your can press ESC to return main menu Power down wake up test KPI block mode test KPI non block mode test KPI buffer test KPI three key test Change KPI_CONF example code it L Please Select Connected 00 05 01 Auto detect 1152008 N 1 SCROLL CAPS NUM Capture KPI test function contains several test items each item and their description are listed below Power down wake up test The EV board will goes into power down mode until users kit column 0 and row 0 key to wake up the system e KPI block mode test Test the block mode function users could hit row 0 column 1 key to exit this mod
18. has to be connected to COM port on PC via RS232 cable It can be used as console for monitoring and debugging W90P710 evaluation board An ICE could also be used for downloading image and debugging source code It should be connected with JTAG cable to a 14 pin JTAG port on board Hyper Terminal Configuration UARTO is assigned to be debug console port This port can be used to download executable image to SDRAM memory from PC You can also monitoring or debugging the device from this port through Hyper Terminal which is a windows utility Please follow the steps below to configure Hyper Terminal 1 Launch the Hyper Terminal utility on PC Start gt Programs gt Accessories gt Communications gt Hyper Terminal 15x Biss e z ai El Connection Description 2 xl ay New Connection Enter a name and choose an icon for the connection Name e 5 T9 65 3 Carcel ak Disconnected Auto detect Auto detect SCROLL CAPS Num Capture Print echo 2 Enter a name for Hyper Terminal and choose an icon The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION 3 Choose a communication port This depends on which COM is connecting with the board W90P710 HyperTerminal E 10 x File Edit
19. hts reserved Boot Loader Configuration MAC Address IP Address DHCP Client CACHE BL buffer base BL buffer size Baud Rate USB Interface 00 00 00 00 00 01 0 0 0 0 Enabled Enabled 0x00300000 0x00100000 115200 led Disable Serial Number 0x00000000 For help on the available commands type h Press ESC to enter debug mode _ yl Connected 00 00 45 autodetect 115200 amp N 1 SCROLL CAPS NUM Capture Print echo Multi ICE and AXD Configuration AXD could be used for stepping the source code observing registers or memory during application run time To use AXD for these purpose a Multi ICE connected between PC and JTAG port of evaluation board is required After the software is installed and Multi ICE connected The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond 6 Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION please follow the steps below to configure Multi ICE server and AXD 1 Power on evaluation board and launch Multi ICE server 2 Select Auto Configure in File menu to detect the MCU it should display ARM7TDMI after a successful detection ARM Multi ICE Server File View Run Control Connection Settings Help 3 e Auto detected TAP Configuration TAP 0 X ARM7TDMI
20. ll these APIs are provided by smartcard Non OS library Since we could not know what kind of smartcard user would insert in advance further instruction read write is not implemented in test function IC i2c test c I2C test function will write data to 24LC64 Serial EEPROM connects on interface 1 and then read back for verification It writes 1 byte to EEPROM 8 times and then writes 8 bytes to The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond 25 Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION EEPROM All APIs called in this function are provided by Non OS library USI usiflash_test c USI test function would erase a sector write 256 bytes to W25P16 Serial Flash connects on USI interface reads back the data for verification and then repeat the procedure again All the APIs are provided by Non Os library PWM pwm_test c 115200 8N1 HyperTerminal E lolx File Edit Yiew Call Transfer Help Dis 213 sole cl E I2C F USI G PWM H KPI I PS2 PWM Timer test PWM Timerl test PWH Timer2 test PWH Timer3 test PHH Dead zone test PYH Dead zone 1 test Please Select Connected 00 04 48 auto detect 1152008 N 1 SCROLL CAPS NUM Capture Print echo PWM test function could test each individual timer in one shot mode and to
21. ng step if ownership is CPU 4 Get status from the descriptor of Rx software pointer Do the following steps if RXGD bit is set 5 Change ownership to DMA 6 Set the next descriptor to Rx software pointer 7 Re start from step 3 if descriptor of Rx software pointer is not the same as the one of CRXDSA register 8 Write RSDR register The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond 217 Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION Send Packet Flow Chart SendPacket Get Tx frame descriptor and data pointer Check DMA ownership Compare gCTxFDPtr and current frame descriptor Copy Tx data to Frame buffer Set TX Frame flag and Length Field Check frame descriptor ownership Change descriptor ownership to DMA Enable MAC Tx control Update statistic register Change the Tx frame Get next frame descriptor descriptor for next use Exit Tx ISR MAC Tx ISR Clear Interrupt Status Reset MAC The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond 18 Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION Receive Packet Flow Chart il MAC Rx ISR H Reset MAC Compare
22. plays a build in sound User could use keypad to control the volume during the test Audio play test file in USB disk This test item plays a wav file in USB disk Users could input the file name to play Audio play test file in SD card This test item plays a wav file in SD memory card users could input the file name to play Audio record test Loop back This test item will record sounds via microphone for around 5 seconds and then play back the voice just recorded down UART uart test c The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond 22 Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION 115200 8N1 HyperTerminal 10 x Eile Edit View Call Transfer Help Dias 213 sol RIC RTC Smart Card I2C UART send receive UART1 send receive UART2 send receive URRT3 send receive Please Select Connected 00 03 21 autodetect fiiszooe n 1 SCROLL caes NUM Capture Print echo The UART test function could let users chose which UART to test Users need to plug an external loop back connector for testing UART1 UART2 and UARTS The received data will be compared with the string just send out UARTO test function will only print the same string to console Users could check whether the data sent out correctly All UART APIs
23. r any input key then call system library let the system goes into different mode Wait for an interrupt to wake up the system Restore IRQ to their original status Print out the wake up event on console QT BET Sw m5 Jue c5 MAC mac test c macfunc c MAC test function doesn t have Non OS library lay beneath Instead it composed of three files in lt Src gt directory Mac test c is the main diagnostic code functions for MAC function test macfunc c contains test and support functions of diagnostic code mac a in lt Src Lib gt is the packet driver Here we will discuss how packet driver works before describe the test items The packet driver has three parts initialization transmit and receive packet Using a flow chart would show these sequences more clearly so the flow chart will be shown following each description The Ethernet The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond 15 Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION controller initialize function is composed of configure PHY devices set MAC H W addresses and initialize MAC controllers This diagnostic code use only simple code for configure PHY 10 100Mbps Full duplex mode The LAN initialized flow is listed below p Lanlnitialize i Packet Transmission 1 Get Tx buffer descriptor from Tx
24. rminal 15 x File Edit view Call Transfer Help Dig l3 sag Test item LCD SW1 4 OFF SW2 41 ON SW3 4 OFF If the above setting on evaluation board is correct press ENTER to start diagnostic code or your can press ESC to return main menu Please Select Connected 00 01 41 auto detect 1152008 N 1 SCROLL CAPS NUM Capture Print echo LCD test function has one test item it uses non OS library to display a build in image on LCD panel AC97 audio test c The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond 21 Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION 115200 8N1 HyperTerminal 10 x Elle Edit View Call Transfer Help SW8 5 ON Su9 41 OFF SW10 4 OFF If the above setting on evaluation board is correct press ENTER to start diagnostic code or your can press ESC to return main menu fludio play test Build in pattern Audio play test file in USB disk Audio play test file in SD card record test Loop back Please Select Connected 00 02 50 auto detect 1152008 N 1 SCROLL CAPS NUM Capture Print echo Audio test function has four test items Items and their description are shown below All audio related APIs are provided by Non OS library Audio play test This test item
25. t describe those libraries in detail Users could refer to their documents for those APIs Main Function main c The main program is quite simply first it configures some IPs including configure UARTO to 115200 8N1 mode set the Rx trigger level to 1 byte enable cache turn off LEDs on EBI bus initiate file system USB host and SD memory card And then it goes into interactive mode let user choose the test items they are interested in Power Management pm test c The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond 4 Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION 115200 8N1 HyperTerminal 10 x Eile Edit View Call Transfer Help W11 8 ON W12 2 ON W13 8 OFF SW14I21 OFF If the above setting on evaluation board is correct press ENTER to start diagnostic code or your can press ESC to return main menu Idle mode Power down mode Idle mode with memory idle Please Select Connected 00 04 19 auto detect 115200 8 N 1 SCROLL caes NUM Capture Power management test function contains three test items all with the same test sequences listed below The power management APIs are provided by system library Configure keypad Configure nIRQ because only nIRQ3 connects to a button only nlIRQO nIRQ is useless Wait fo
26. up the system from every mode Only row 0 column 0 key could wake up from power down mode this is configurable by modify the source code every key on keypad could wake up the system from two idle modes MAC Mac test will test the MAC interface loop back function in 100M Full Duplex mode Both interrupt mode pulling mode will be tested also MAC loop back PHY loop back and external loop back will be tested GDMA GDAM test function will run the memory to memory block mode test in both channel USB Host USB host test function will open a file in USB disk write something to it and read back to verify the data just wrote in USB Device USB device test will make EVB behaves as a USB disk Users could access the SD card from PC SDIO SD test function will open a file in SD memory card write something to it and read back to verify the data just wrote in LCD LCD test function displays a build in image on LCD panel AC97 AC97 test function could play built in pattern play PCM file stores in SD memory card or USB disk and supports loop back test which could play the sound file just recorded UART UART test function could test UART1 UART2 and UARTS in loop back mode UARTO test function just print messages on console Timer Timer test function covers test items for timer 0 1 and watch dog timer AIC AIC test function will install its ISR to interrupt sources trigger them and test whether ISR is
27. y it will compare the data in source and destination memory spaces USB Host usb test c The USB host test function will create a file on USB disk write a string to it and read back for verification This function first find out the driver ID of USB disk and then calls file system library to open write read close the test file It doesn t need to call USB Host library directly the file system library will call USB host library to access USB disk USB Device usbd test c USB device test function will call mass storage library and USB device library to create a USB disk Users can connect a cable between EVB and PC and access the disk from Windows Explorer The disk users seen in Windows Explorer is the SD card inserted in EVB s SD card slot SDIO sd test c The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed distributed or reproduced without permission from Winbond 20 Winbond Electronics Corp NO W90P710 EVB Diagnostic Code User s Manual VERSION The SDIO test function will create a file on SD memory card write a string to it and read back for verification This function first find out the driver ID of SD memory card and then calls file system library to open write read close the test file It doesn t need to call SDIO library directly the file system library will call SDIO library to access SD memory card LCD lcd test c 115200 8N1 HyperTe

Download Pdf Manuals

image

Related Search

Related Contents

HDW-750 - Sedicinoni  DC電源駆動 小型電動バルブアクチュエータ ER−05D、DH(90°開閉用  取扱説明書  Samsung Galaxy S5 Neo  vívofit® 2 Owner`s Manual    USER MANUAL  Swann BulletCam Security Camera User Manual  

Copyright © All rights reserved.
Failed to retrieve file