Home

M5271EVB User`s Manual - Digi-Key

image

Contents

1. Figure 2 5 Jumper Locations M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 2 7 Initialization and Setup 2 3 System Power up and Initial Operation When all of the cables are connected to the board power may be applied The dBUG ROM Monitor initializes the board and then displays a power up message on the terminal which includes the amount of memory present on the board Hard Reset DRAM Size 16M Copyright 1995 2004 Freescale Inc All Rights Reserved ColdFire MCF5271 EVS Firmware 2 1 Build XXX on XXX 20XX XX XX XX Enter help for help dBUG The board is now ready for operation under the control of the debugger as described in Chapter 2 If you do not get the above response perform the following checks 1 Make sure that the power supply is properly configured for polarity voltage level and current capability 1A and is connected to the board 2 Check that the terminal and board are set for the same character format and baud 3 Press the RESET button to insure that the board has been initialized properly If you still are not receiving the proper response your board may have been damaged Contact Freescale Semiconductor for further instructions please see the beginning of this manual for contact details 2 4 Using The BDM Port The MCF5271 microprocessor has a built in debug modul
2. Dn z pag 7002712 109 Tepseupog UueJ6ela JequnN SA3LZSN dnoio eldploo GOAL 9451 545 elololom 106 221 vas 18041480 082471450 110071950 1450 95 150 1 53 Tux 110979 axion S1900 SLUON axuin axun SLOLNY sium axuzn axizn S1920 Svo_as Svu_as 0S2 aS 1S0 QS 308 ds 3M as NOOH ouaowyno9 lnola olnolg 1998 80 10 15 lo elvivag zaxia 10X13 00x43 319X13 43x13 N3xi3 00X43 319x43 5808 1008 oana oda 12151 0751 vau En SU 30 o 4S9 to elsg lo ezlv 1nolsui 0504 1450 OS 1450 1804 1480 1460 INOC 1450 soolD a534 NOLS OSa oaL LayBISINL NUSH Was uia NUSH 1x3 106 021 vas 1808 1850 082 1450 1850 1450 98 1450 ANOLSH 13538 Niusy 1X3 Tvix 1now19 axion S1900 S1uon axun 51010
3. S8 oen 19 91 Jeddn 058 0so_as Svu as Svo as 3M QS 258 pn pn 19909 002 ed gr onmes Jequnnuewnsog ez dnoJ9 aldploo 0931 9451 595 BIN Joloeuuoo preoq uod 1 0 OZI EET 6r vas 708 921 yosseoo d pue jeJeudued eur uaawlaq yy si 1915 AS eol uopoeuuoo j Juglalal sl 20558004 MZSJONN aq uo or Jopeuuoo yad 1 01480 T T 8 or anors 1 1504 1850 gt 1524 1450 5 0594 1460 H OS 1450 5 9 s er t TREE nee paloauuoo spe eudued 1460 fue ul Ayjeuonoury jo abuti e 0 8110154 sleu6ls seu 1460 BP 3 1ON Sedi anro anro anro
4. ieoa x OL 9q S96SoW1 eim soyeinBay AISWASSY G3T11IV LSNI 38 5 T g 002712 Ud y AepSSUpEM md PMS 01 9509 god 0 au uo usansylls au uo selqel eseu aogld aseeld 310N gi uonoeles ypolo apo sseippy popooug 0 ssalppy w ezg ezly 6 144 NO NO 8po sseippy 6 sseippy popoou3 tev 5144 15 9 50 92 3d 330 NO sng INA 8 Sng gjdd 960 238 NO 440 94 26 NO 0 uoneiedo Tid NO owed L soweqi008 pepoou
5. RR RIA dA AR EP RARE EAR 3 33 SHOW NO 3 34 STEP SEPOV Aera 3 35 SYMBOL Symbol Name 3 36 TRACE Tee MO eens A DERE RASA 3 37 UP DIL 3 38 VERSION Display dBUG hee 3 39 TRAP _____ __ _ 3 40 Al OUTER 15224959 3 40 352 MW 224254499 dudas 3 41 CASAR RESENT SES CEA RERO FERA E ERR 3 41 2204 eee 3 42 Appendix Configuring dBUG for Network Downloads 1 Confeuringe dBUG Network Paratieters 2 Network 3 Appendix WILD B 1 Appendix C M5271EVB BOM M52 71EVYB BON ALS 242449449 44 C 1 M5271EVB User s Manual Rev 1 1 Freescale Semiconductor Table of Contents M5271EVB User s Manual Rev 1 1 vi Freescale Semiconductor List of Figures 151 M5271EYB Block Digital 42a vedi RR REO a Rad 1 3 Figur 1 2 MCF3271 Block 2 55 255 55 955 5 9 55695 6 52 5 35 1 5 Pus l 3 External Memory SORA 239 93 2 bea eyed Rr E eee ees 1 6 Figure 1 4 Jl BDM Connector Pin Assignment 1 14 Figure 2
6. nuu noxe3 97 ziv N3xi3 12 lew 75 10x43 mH v c 75 ETI i 2 D TH o 8 58 8 89 gt gt gt gt gt gt S Swim O 3305525 000 20059524280550008520008252055390059 i m re P 29001 29001 29001 20001 vto 05 659 95 Seo 4 4 4 1 gt daS It ES 555 lo ezlv 8 anyo anro anyo anro 3900 adoor 19 059 60 820 10 45097 E dAEE 0 152 0 9 8 288 ammmmm 3 3 92202 2 3 29535111125 59244506 5755995 E 208588983 ng 8 828 g 3 7 anro anro 3800 29001 dub o 520 e 0 222 zo 022 819 DUST oelsay 4 anger enjo suld SSA 9 ol alqlssod se asolo se se sioyoedeo 6uldnooep ssed q yajym mojaq solloedeo eu eoe d eseald 00 Aepseupew ov r Wag JequinwN 1ueuinooq S8A3LZ2SIN GOAL 9851 545 LION JOsseooJd 2649 941 p
7. 3 7 bero a Hass gt 3 8 Block Pill 3 9 BM 3 10 BR ER 3 11 BS 3 12 3 13 DI ke CO oe eee ee 3 14 DL ener FE HORE RS URPEPEN Ct ad dr 3 15 3 16 DN Download ns TVA SE A EU Ps 3 17 FL END DONNE deed cdd 3 18 GO PoC 3 19 GT EXON T d d rd dpa dad 3 20 IRD Internal Register Display 3 21 IRM Internal Resister 3 22 HELP 3 23 LR E d 3 24 LW MMC gt 3 25 MD Memory LHspl 164264 sek eee bas 3 26 MM Memory NOI odes I 3 27 MMAP Memory Map LASER SER dd trc deca s 3 28 RD Resister Display SPP 3 29 RM d d dard ed gor 3 30 RESET Reset the Board and BUG aiios os des hadas Cra ERTAA T AAT AYER EE ARE 3 31 M5271EVB User s Manual Rev 1 1 iv Freescale Semiconductor 3 A l A 2 B 1 Cd Table of Contents SD SIDE Shaws E S tri ded dd Miu 3 32 SET Bel Co PRONUS
8. g gie bE xd 949 Sts XH sr xd 9 y rz Hz LY oan bs i oan LT oana orana lt 5 5 8 1 2679 2 OD 829 4899 O lt Buunp 6ulselq 101515 BIA 5 E di BE t en uppe si Bunjes jjnejep Jppe eorsAud yo 310N V ACER Ji m 961 6 67 6 67 66 6 6 noisy Svo 5 vu j na V V VAS e VAS Z VAS2 VAS2 ImdAsz 6M ol esol5 249 9H SH euej g Bojeuy 2 E Y 5 e 7008 09 siooeuuoo vosued JequnN weunsog ezg mo 5 2804 2804 I 340 I anro anro I 152 9 D 699 899 190 999 590 9139100 GOAL 9951 SAS LOON nee ase adzy adozp 3u0r 69 90 280 120 csllsd 125124244 lo elv LvGG eelvivad 1015 19 02434 2 686
9. neea oly On 29 gt 1 eva aly 8 Son ssa LEN 1004 sei t on IM 1008 WANZE 58 i Sat dar x 8 05 5 999 go2gogog og 8588282998 290 gt 000050 82585055622550551585208 E AES PREF n 8 8 n ozy el 555 0507 ojoo 10 2159 Es ss SS E See loela 4 wa ee eae Oreo a OT sar 30 xv unejep 2 1 sud 19 120100 ejewpieu OL 9 Z Suid 185 0109 004 Wa joq do ay uo ljoalold esn 01 plnoo eolAap JO iuejsisuoour se 10 pnous 50 uldloalold eu 310N AEE au 189 982 582 x x x 4 anro anro anro 985 585 280 189 089 649 8 90 l l i Ager L Jo 1694 7002712 Aepsoupem ddng eag enu 14 109 0081 9481 595 LIION Joloeuuoo 10 10 4 118
10. Part Number Package FEC CRYPTO MCF5270AB100 160 QFP Yes No MCF5270VM100 196 MAPBGA Yes No MCF5271CAB100 160 QFP Yes Yes MCF5271CVM100 196 MAPBGA Yes Yes NOTE All of the devices in the same package are pin compatible The EVB provides for low cost software testing with the use of a ROM resident debug monitor dBUG programmed into the external Flash device Operation allows the user to load code in the on board RAM execute applications set breakpoints and display or modify registers or memory No additional hardware or software is required for basic operation Specifications e Freescale MCF5271 Microprocessor 100MHz max core frequency e External Clock source 25MHz Operating temperature 0 to 70 C Power requirement 6 14V DC 300 ma Typical e Power output SV 3 3V and 1 5V regulated supplies e Board Size 8 00 x 5 40 inches 8 layers M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 1 1 M5271EVB Introduction Memory Devices e 16 Mbyte SDRAM e 2 Mbyte 512K x 16 Page Mode FLASH or 4 Mbyte 512K x 32 Page mode FLASH e 1 Mbyte ASRAM footprint only 64 Kbyte SRAM internal to MCF5271 device Peripherals Ethernet port 10 100Mb s Dual Speed Fast Ethernet Transceiver with e UARTO RS 232 serial port for firmware e UART auxiliary RS 232 serial port e UART2 auxiliary RS 232 serial port interface e QSPI interface to ADC BDM JTAG interface
11. TE eusdpunoi sudes 29 58804250882 252838825885002558355003085885 85502 elqlssod se ELN 9 17 sud ol 5 429029050 5595980 se 11 20 BES 23 3 Hot zm 5 1 ANISH 110159 aE Eid 55 13539 sia Hn Herr SSA 2109 Wwix anger VIX I YIN 2 1 8 a WEM um 089 as 082 05 610 EN zr 159 08 oza 27 150 as 1 sh lt ynr 0719 iza P ssodseziqeein zin 95 3 24 98 GOA For 5 ds SSA er 19 0 asolo se eoejd Svo as F Svii as 08 Hor val tea ym SON m vo vas HS T cbaowno 308 ozl TH 105 SSA PLDI SH S102 tar SSA 920 bee vir 220 520 ES Hg Sldzny 59 51 elnola ov 5 4 ted iv TO SSA 1531 HI 26 4 1055920 ancia 81901 5100 92114 elololoW don Ha aen HESS 9 1 5 YI 9v 7003 ESI 1093 5803 s493 uar Oana xr oawa eV I oiv
12. Chapter 2 Initialization and Setup Al Syse 24 Installation Setup ddr PP obese eda ied as EBENE II Zaa the Bond 235403555624 21219 Providing Power to the BON 45565 6000506408 6 M5271EVB User s Manual Rev 1 1 Freescale Semiconductor Table of Contents Power oem LEDs 2 5 2 20 Selecting Terminal Baud Rate 2 5 The Terminal Character Ced 2 5 28 Connecting ihe Terminal ues P REEL _______ 2 5 2 2 9 Using a Personal Computer as a Terminal 2 6 2 3 System Powerup and Dum 2 8 24 The BDM eR ERE RUE RO RR RE ERA Eg E 2 8 Chapter 3 Using the Monitor Debug Firmware Ll 571 125 3 1 Ka Ges KE E RE d 3 2 3 2 ee 3 4 21 _ d Ad 3 4 e dard 3 4 523 Software Reset Command 3 4 LE 3 4 24 o 3 5 Ps
13. 10 pasay TdSSA TidsSA 0000 1 593 el0yesdgWN Toa gt R AS 2 8 8 H3MOd via 22 umop 31058 AGL 8 suap 460 969 eNsseoxe sjuanaid 3 LON 0 021 INV 960 led 5 CLOVESHEN ELEOOPVHIN ELCO0PVHN eae MAN AS 2 gt Ag e mo980HT dAS t AS dn 8 eoueieyp Q3 TIVLSNI eAISseoxe 310 N33H9 AS an 5 10755 31058 310001 69 inue b 269 t69 069 LMS au Hngz Se eas lseJ vs AS NIA r i S S96S2W1 ELN 40 98UU0D BIN aeg A 1548 3 18 MS ZLLOdYH HEIodolwS 037 AE e Jejeureip 2 10 2euuo 31058 882 dace 99 10 ueei0syIis y uo SNW 10 2euuo9 JaMod ae 84 gt Q440 NO 988 jo eAnisod eui 3 1ON Z
14. 21 60 1 90 9r 90 ST fea 00 05 05 ajajajaja HOA SSA SSA 99 210 1 TT fea oa 00 05 ajajajaja 10 1 058 159 0 god y JO y uo SINVHSV eseu 10 sjuudioo LWS aoeld LON LMz9IWH seseuet Aypeuonoun 1uudiooj god eures sINVHSV LON slqelleAe yz1S 1991 3952 s Wvusv 0 2 58 910 1 8 30 91 91 LV 00 1 39 ev I ov anyo 89 V 5 en 19 91 1907 WWHSV Il 4051 OZOLEEADLPOLOLAD tc HV 6v 8v LV jajajaja ajajaja 22 te 02 ely 9v 6T BT ON 60 1 IW 20 90 9r ST vr olomlmlol jajajaa SSA er SSA 210 1 99 olomlmlol ea na aa OT 58 88444 495 30 lt a
15. M5271EVB User s Manual Rev 1 1 3 16 Freescale Semiconductor Using the Monitor Debug Firmware DN Download Network DN Usage DN lt c gt lt e gt lt i gt lt s gt lt o offset gt lt filename gt The DN command downloads code from the network The DN command handle files which are either S record COFF ELF or Image formats The DN command uses Trivial File Transfer Protocol TFTP to transfer files from a network host In general the type of file to be downloaded and the name of the file must be specified to the DN command The c option indicates a COFF download the e option indicates an ELF download the i option indicates an Image download and the s indicates an S record download The o option works only in conjunction with the s option to indicate an optional offset for S record download The filename is passed directly to the TFTP server and therefore must be a valid filename on the server If neither of the c e i s or filename options are specified then a default filename and filetype will be used Default filename and filetype parameters are manipulated using the SET and SHOW commands The DN command checks the destination download address for validity If the destination is an address outside the defined user space then an error message is displayed and downloading aborted For ELF and COFF files which contain symbolic debug information the symbol tables are extracted from the file during downl
16. __ 64 Kbytes 8 Kbytes SRAM CACHE Ports 8Kx16 x4 1Kx32 x2 GPIO lt JTAG Tap Watchdog Timer t h To From Arbiter PLL PITO PIT1 PIT2 PITS CLKGEN To From INTC Edge Port Cryptography Figure 1 2 MCF5271 Block Diagram M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 1 5 M5271EVB Introduction 1 2 System Memory The following diagram shows the external memory implementation on the EVB MPU Buffers Data gt lt gt Address MIS ERE yte Control gt x gt gt gt gt gt SDRAM Flash 16 MBytes gt 512K x 16 gt or gt 512 x 32 gt Expansion gt Connectors gt Figure 1 3 External Memory Scheme NOTE The external bus interface signals to the external ASRAM and FLASH and USB are buffered This is in order not to exceed the maximum output load capacitance of the microprocessor on the EVB The signals to the expansion connectors remain unbuffered to provide a true interface to the user 1 2 1 External Flash The EVB is fitted with a single 512K x 16 page mode FLASH memory U10 giving a total memory space of 2Mbytes Alternatively a footprin
17. gt 910 1 378 30 91 LIN 00 1 39 V ev IV ov V Ag 8 in 19 91 wvusv en en en en en jajajaj anyo anyo jut 10 99 s9 vo V Ag e 1807 lt gt 1597 i SE 0 160 Y 1924 7008 12 eb syng JequinN 9219 eldploo GOAL 9461 545 elololoN ALt Su344ng Sng ssauaav 2 g Se 205 T 2 _ 1 972 071 0 e r an9 ees g 22 8 Sv va mn eg 02 8 ev Stv g 5 ay 18 88 Y 08 g ov 9 8 2 A 1497291 07 0 Z 1 OK aoz E gt ave 982 n 282 982 saz pve vac A Ed elloJluoo GSN LYZ 192 pue use 4 pue NVHSV 94 10 y pesn sng geq pue n 181 981 Sgt val evt egt I
18. 0x00000000 0x20000000 0x30000000 0x40000000 OxFFEO0000 End OxOOFFFFFF 0x2000FFFF 0x3007FFFF Ox 7FFFFFFF OxFFFFFFFF CSO Ext Flash CS1 Ext ASRAM OxFFEO0000 0x00000000 OxFFE3FFFF 0xO000FFFF Port Size M5271EVB User s Manual Rev 1 1 3 28 Freescale Semiconductor Using the Monitor Debug Firmware RD Register Display RD Usage RD lt reg gt The RD command displays the register set of the target If no argument for reg is provided then all registers are displayed Otherwise the value for reg is displayed dBUG preserves the registers by storing a copy of the register set in a buffer The RD command displays register values from the register buffer Examples To display all the registers and their values the command is rd To display only the program counter rd pe Here is an example of the output from this command PC 00000000 SR 2000 t Sm 000 xnzvc An 00000000 00000000 00000000 00000000 00000000 00000000 00000000 01000000 Dn 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 3 29 Using the Monitor Debug Firmware RM Register Modify RM Usage RM reg data The RM command modifies the contents of the register reg to data The value for reg is the name of the register and the value for data may be a symbol name or it is converted according to the user defined radix normally hexadecimal dBUG preserves
19. GND 37 DTIN3 38 NC 39 DTOUT3 40 NC 41 TIP 42 TEA 43 TS 44 TA 45 NC 46 SD WE 47 R W 48 NC 49 SD CAS 50 SD CSO 51 CLKOUT 52 SD RAS 53 SD CS1 54 DDATA3 55 XTAL 56 EXTAL 57 GND 58 GND 59 GND 60 GND M5271EVB User s Manual Rev 1 1 Freescale Semiconductor Table 1 15 J6 Pin Signal Pin Signal 1 5V 2 1 5V 3 3 3V 4 3 3V 5 D14 6 D10 7 D11 8 D6 9 D7 10 D8 11 D5 12 D4 13 GND 14 GND 15 01 16 D2 17 D3 18 OE 19 DO 20 DTOUT1 21 DTIN1 22 3 3V 23 3 3V 24 IRQ6 25 IRQ7 26 TSIZO 27 TSIZ1 28 IRQ2 29 IRQ3 30 IRQ4 31 IRQ5 32 TCLK PSTCLK 33 DTOUT2 34 DTIN2 35 36 TDI DSI 37 TDO DSO 38 TMS BKPT 39 TRST DSCLK 40 GND 41 GND 42 PST3 43 PST1 44 PST2 45 PSTO 46 DDATAO 47 DDATA2 48 DDATA1 49 GND 50 GND 51 _ 52 RCON 53 GND 54 RSTOUT 55 GND 56 RESET 57 GND 58 GND 59 GND 60 GND M5271EVB User s Manual Rev 1 1 M5271EVB Introduction Freescale Semiconductor M5271EVB Introduction 1 5 2 Reset Switch SW3 The reset logic provides system initilization Reset occurs during power on or via assertion of the signal RESET which causes the MCF5271 to perform a hardare reset Reset is also triggered by the reset switch SW3 which resets the entire processor sys
20. User Interface e Reset logic switch debounced e Boot logic selectable dip switch e Abort IRQ7 logic switch debounced PLL Clocking options Oscillator Crystal SMA for external clocking signals LEDs for power up indication general purpose I O and timer output signals e Expansion connectors for daughter card Software Resident firmware package that provides a self contained programming and operating environment dBUG M5271EVB User s Manual Rev 1 1 1 2 Freescale Semiconductor RJ 45 Connector Ethernet Transceiver 25 MHz Oscillator M5271EVB Introduction 26 Pin Debug Header DB 9 Connectors 3 lt gt ColdFire MCF5271 gt Transceivers 3 5 5 2 GS 55 5 6 5 0 5 o lt 8 i E gt SDRAM gt 16 MBytes Flash lt gt 2 4 MBytes gt lt gt 1 MByte Y Y 60 Pin Daughter Card Expansion Connectors 4 1 1 MCF5271 Microprocessor The microprocessor used on the EVB is the highly integrated Freescale MCF5271 32 bit ColdFire Figure 1 1 M5271EVB Block Diagram variable length RISC processor The MCF5271 implements a ColdFire Version 2 core with a maximum core frequency of 100MHz and external bus speed of 50MHz Features of
21. anro P 2 5 T anyo anyo anyo Ju anyo anro anyo any anyo anyo dnoip aldploo GOAL 9851 545 10 00 099 eso eso 190 950 990 90 eso 290 190 050 60 8v9 90 00 0091902 GHWMALS 00 00 190 5 T V d TCD GRD 184 o1xeu S 8qe 037 99 08 xis 3053 re 10x13 ozz 0013 5 L L va PE 15 eo N3349 ely 022 elqlssod se 8N 142839 ol asolo S aoeld oes 5 exse bhh fo Ag 6 ozz D iiig 19528001 za N33H uu B Aiddns eu Alddns Ag z senuep 5 T diuo uo ue seu 18127855 6N 310N AS bhi RPRELLELLL 1822951 uolslloo RER D p le ko 1 sisseyo 599844444458 elqlssod se 10 0 Joloeuuoo 912 895 Ag et 892588482554 asolo e9eld m tou Td 8 19 IAH OH OOVAHA LNI 5 ano zr 51 4 ou gg 15310031 749 9 Zg _ Be bg ae 5 N3AVMN EQ31 X 5 55 waa oaan L3 ee Xd 10 g
22. 310 S YMS Dues aloN STR Na p 13934 LY HOS HLzsdoW me 3HL A1193HHO9 38 OL STVNDIS 920 Sea LZA 91 IHL MOTIV OL 8 F 8 8 1 30 SNid 318VN3 1 3HL O1 3 9 5 9 5 9 5 38 180 TYN9IS LNOLSH 1 1 LNVLHOdNI ES E em E E T 2 f 2 Y 2 8dl 40 42015 qa b lt tal ozar anpa Or H3JSNYHL 49019 Y kp an lt gt aa1zlnola alqlssod se 1x3 lt gt 991 0 807 Gdl 01950268641 zlnola o or 0123136 31IHM LON 0557 lt gt qai val lt gt zo de JAVNI Jndlno A1HV IS HA4SNVHL H b 30 b lt gt su am onua qa101no1a gt onora lt gt LN T s T vi 10 peni si e Lar umes piso ador ador eui e pza 0 soeld aseald 310N 660 960
23. CS3 52 CS7 53 CS6 54 CS5 55 CS1 56 CSO 57 CS4 58 A23 59 GND 60 GND M5271EVB User s Manual Rev 1 1 1 16 Freescale Semiconductor Table 1 13 J4 Pin Signal Pin Signal 1 5V 2 1 5V 3 3 3V 4 3 3V 5 NC 6 NC 7 NC 8 NC 9 ERXD1 10 NC 11 ERXD3 12 NC 13 ERXD2 14 NC 15 ERXCLK 16 NC 17 ERXDV 18 NC 19 ECOL 20 NC 21 ECRS 22 GND 23 GND 24 UOCTS 25 UORXD 26 DTOUTO 27 DTINO 28 UOTXD 29 UORTS 30 GND 31 CLKMODO 32 3 3V 33 CLKMOD1 34 GND 35 GND 36 D28 37 D30 38 D29 39 031 40 D24 41 D26 42 D25 43 D27 44 D21 45 D23 46 D22 47 EXT RSTIN 48 D19 49 GND 50 GND 51 D13 52 D20 53 D9 54 D17 55 D12 56 D18 57 D15 58 D16 59 GND 60 GND M5271EVB User s Manual Rev 1 1 M5271EVB Introduction Freescale Semiconductor M5271EVB Introduction Table 1 14 J5 Pin Signal Pin Signal 1 45V 2 1 5V 3 3 3V 4 3 3V 5 33V 6 3 3V 7 GND 8 GND 9 A21 10 A22 11 A19 12 A20 13 A17 14 A18 15 A16 16 A14 17 A15 18 A11 19 A13 20 GND 21 GND 22 A10 23 A12 24 A8 25 A9 26 27 A6 28 A4 29 A5 30 GND 31 A2 32 A0 33 A3 34 A1 35 GND 36
24. Freescale Semiconductor Technical Information Center CH370 1300 N Alma School Road Chandler Arizona 85224 1 800 521 6274 or 1 480 768 2130 support freescale com Europe Middle East and Africa Freescale Halbleiter Deutschland GmbH Technical Information Center Schatzbogen 7 81829 Muenchen Germany 44 1296 380 456 English 46 8 52200080 English 49 89 92103 559 German 33 1 69 35 48 48 French support freescale com Japan Freescale Semiconductor Japan Ltd Headquarters ARCO Tower 15F 1 8 1 Shimo Meguro Meguro ku Tokyo 153 0064 Japan 0120 191014 or 81 3 5437 9125 support japan freescale com Asia Pacific Freescale Semiconductor Hong Kong Ltd Technical Information Center 2 Dai King Street Tai Po Industrial Estate Tai Po N T Hong Kong 800 2666 8080 support asia freescale com For Literature Requests Only Freescale Semiconductor Literature Distribution Center P O Box 5405 Denver Colorado 80217 1 800 441 2447 or 303 675 2140 Fax 303 675 2150 LDCForFreescaleSemiconductor hibbertgroup com Document Number M5271EVBUM Rev 1 1 05 2006 Information in this document is provided solely to enable system and software implementers to use Freescale Semiconductor products There are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits or integrated circuits based on the information in this document Freescale Semiconductor res
25. M OL Xr Ager 0 80 zhHnsz L mnn e z aM 806 9 s v v 1 V n acce jasau 10 sioloauuoo uorsuedxe 104 Wag PHO pue sud dvSssounav si 1 lt 8 Nusd waa g Odd 19890 99 ids 9 Y t Jasaa HOENER ae TASSA FT 001 61854 e 9 sis NusH ba n E se cae 13934 4 vidu 291509 b H3TIOHINOO 39N3S Ager Ag Et d 5101 r 13539 10 Bumas 0 58 vis Indu ypolo ewag M r XP eem a 8 4 s AE 8 2 AEE 455 n VS8OLNQYV Ager or TISSA ZS ZLNHLHOSY ON QNO PEERY MESE lt H 5 say 1 2 eM low 7087 13538 Zz 12161 8 7 00 H 02151 2 H Le TT 30 Y em ip a 15 mem aq PINOYS 12630 eu pue lt gt P asadl ueemieq sujBuo 24615 31ON E ES rmm vr LIN aad ot 042 vod 2 1ebig SI
26. anro T 5 5 No30u04 ale 20 Em ak 415 LH T ott 99 19 5 1 3H 34039404 AQvad Fr ezn 8 zzdr 01 Lzdf 10 umes 1 s190 51 axon pue se 427 aliene red 3 5 4 AdAL G AVM G 00 anro anro 1HOd TVNINH3L 10028 Hyr dni 21 9 1 zr 6010 4 p NO30804 E er 10019 zo 5 20 rs as ES as 2 t h P Sr E E 99 19 34039404 8 eam Appendix C M5271EVB BOM 1 M5271EVB BOM Table C 1 M5271EVB BOM Sheet 1 of 3 Item Qty Reference Part Function 1 33 1 2 4 13 14 15 1nF SMT Decoupling Capacitors C16 C17 C18 C26 C27 C34 C39 C40 C41 C43 C46 C48 C65 C66 C77 C78 C79 C80 C85 C91 C100 C101 C102 C103 C120 C122 C124 2 59 C12 C21 C22 C23 C24 C30 C31 0 1uF SMT Decoupling Capacitors C32 C33 C42 C44 C45 C47 C49 C51 C52 C53 C55 C56 C57 C58 C67 C68 C81 C82 C83 C84 C86 C87 C89 C90 C94 C97 C104 C105 C106 C107 C108 C109 C110 111 112 113 114 115 116 C117 C118 C119 C121 C123 C125 3 8 C19 C20 C28 C29 C35 C36 C3
27. dBUG boots and then runs from 00000 0 00000 When the jumper is set between pins 2 and 3 the board boots from the top half of the FLASH 0xFFF00000 Procedure 1 Compile and link as though the code was to be placed at the base of the flash 2 Setup the jumper JP6 JP7 for U11 for Normal operation pinl connected to pin 2 3 Download to SDRAM If using serial or ethernet start the ROM Monitor first If using BDM via a wiggler cable download first then start ROM Monitor by pointing the program counter PC to OxFFEO00400 0xFFCO00400 and run 4 In the ROM Monitor execute the FL write dest src lt bytes gt command M5271EVB User s Manual Rev 1 1 1 12 Freescale Semiconductor M5271EVB Introduction 5 Move jumper JP6 JP7 for U11 to pin 2 connected to pin 3 and push the reset button SW3 User code should now be running from reset POR 1 4 Communication Ports The EVB provides external communication interfaces for three UART serial ports QSPI port 10 100T ethernet port and BDM JTAG port 1 4 1 UARTO UART1 UART2 Ports The MCF5271 device has three built in UARTs each with its own software programmable baud rate generator These UART interfaces are brought out to RS232 transceivers One channel is the ROM Monitor to Terminal output and the other two are available to the user The ROM Monitor programs the interrupt level for UARTO to Level 3 priority 2 and autovector mode of opera
28. zzo Ager Ager PANY si oi szdr 10 lt gt sion Siue sear axizn fiegxny pue Se Sd 9481 ALON 22284 arewa AVM6 dVOSZZEXVIN anro anro Z 1808 BLO a ge a 7 1 T zt E H SI 29 9 9 5 29 8 1 IH 0 Fp ns Lim Eb a AES vu S Pedr 10 Sumas inejeg 51017 zo o Ezar axun Areyxny pue 9421 ALON JenieosuBll 22254 usn D EI VOSZZ 101 10 anre anro LiHOd ABVIIXMY suo Med
29. OFF position or that the fuse F1 has blown This can occur if power is applied to the EVB in reverse bias where a protection diode ensures that the fuse blows rather than causing damage to the EVB Replace F1 with a 20mm 1A fast blow fuse 2 2 6 Selecting Terminal Baud Rate The serial channel UARTO of the MCF5271 is used for serial communication and has a built in timer This timer is used by the dBUG ROM monitor to generate the baud rate used to communicate with a serial terminal A number of baud rates can be programmed On power up or manual RESET the dBUG ROM monitor firmware configures the channel for 19200 baud Once the ROM monitor is running a SET command may be issued to select any baud rate supported by the ROM monitor 2 2 7 The Terminal Character Format The character format of the communication channel is fixed at power up or RESET The default character format is 8 bits per character no parity and one stop bit with no flow control It is necessary to ensure that the terminal or PC is set to this format 2 2 8 Connecting the Terminal The board is now ready to be connected to a PC terminal Use the RS 232 serial cable to connect the PC terminal to the M5271EVB PCB The cable has a 9 pin female D sub terminal connector at one end and a 9 pin male D sub connector at the other end Connect the 9 pin male connector to connector P3 on the M5271EVB board Connect the 9 pin female connector to one of the available serial communic
30. a gateway is required This field must be properly set Your local network administrator will have this information filename This is the default filename to be used for network download if no name is provided to the DN command filetype This is the default file type to be used for network download if no type is provided to the DN command Valid values are coff and elf mac This is the ethernet Media Access Control MAC address a k a hardware address for the evaluation board This should be set to a unique value and the most significant nibble should always be even Examples To set the baud rate of the board to be 19200 the command is set baud 19200 NOTE See the SHOW command for a display containing the correct formatting of these options M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 3 33 Using the Monitor Debug Firmware SHOW Show Configurations SHOW Usage SHOW lt option gt The SHOW command displays the settings of the user configurable options within dBUG When no option is provided SHOW displays all options and values Examples To display all options and settings the command is show To display the current baud rate of the board the command is show baud Here is an example of the output from a show command dBUG gt show base 16 baud 19200 server 0 0 0 0 client 0 0 0 0 gateway 0 0 0 0 netmask 255 255 255 0 filename test s19 fil
31. abbreviated name For instance entering h is the same as entering help Thus it is not necessary to type the entire command name The commands DI GO MD STEP and TRACE are used repeatedly when debugging dBUG recognizes this and allows for repeated execution of these commands with minimal typing After a command is entered press the Return or Enter key to invoke the command again The command is executed as if no command line parameters were provided 3 4 Commands This section lists the commands that are available with all versions of dBUG Some board or CPU combinations may use additional commands not listed below Table 3 1 dBUG Command Summary Mnemonic Syntax Description ASM asm lt lt gt stmt Assemble BC bc addr1 addr2 length Block Compare BF bf width begin end data inc Block Fill BM bm begin end dest Block Move BR br addr lt gt c count gt lt t trigger Breakpoint BS bs width begin end data Block Search DC dc value Data Convert DI di lt addr gt Disassemble DL dl lt offset gt Download Serial DLDBUG didbug Download dBUG M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 3 5 Using the Monitor Debug Firmware Table 3 1 dBUG Command Summary continued Mnemonic Syntax Description ASM asm lt lt addr gt stmt gt Assemble BC bc
32. addr1 addr2 length Block Compare BF bf lt width gt begin end data lt inc gt Block Fill DN dn lt c gt e lt i gt s o offset gt gt filename Download Network FL fl erase addr bytes Flash Utilities fl write dest src bytes GO go lt addr gt Execute GT gt addr Execute To HELP help command Help IRD ird lt module register gt Internal Register Display IRM irm module register data Internal Register Modify LR Ir lt width gt addr Loop Read LW lw lt width gt addr data Loop Write MD md lt width gt begin end Memory Display MM mm lt width gt addr data Memory Modify MMAP mmap Memory Map Display RD rd reg Register Display RM rm reg data Register Modify RESET reset Reset SD sd Stack Dump SET set option value Set Configurations SHOW show option Show Configurations STEP step Step Over SYMBOL symbol symb a symb value r symb gt Cllls gt Symbol Management TRACE trace num Trace Into UP up begin end filename Upload Memory to File VERSION version Show Version M5271EVB User s Manual Rev 1 1 Freescale Semiconductor Using the Monitor Debug Firmware ASM Assembler ASM Usage ASM lt lt addr gt stmt gt The ASM command is a primitive assembler The lt stmt gt is assembled and the resulting code placed at lt addr gt This command has an interactive and non interactive mode of operation The value for address lt addr gt may be an absolute address specified a
33. at address addr2 both of length bytes If the blocks are not identical the address of the first mismatch is displayed The value for addresses addr1 and addr2 may be an absolute address specified as a hexadecimal value or a symbol name The value for length may be a symbol name or a number converted according to the user defined radix hexadecimal by default Example To verify that the data starting at 0x20000 and ending at 0x30000 is identical to the data starting at 0x80000 the command is bc 20000 80000 10000 M5271EVB User s Manual Rev 1 1 3 8 Freescale Semiconductor Using the Monitor Debug Firmware BF Block Fill BF Usage BF lt width gt begin end data lt inc gt The BF command fills a contiguous block of memory starting at address begin stopping at address end with the value data lt Width gt modifies the size of the data that is written If no lt width gt is specified the default of word sized data is used The value for addresses begin and end may be an absolute address specified as a hexadecimal value or a symbol name The value for data may be a symbol name or a number converted according to the user defined radix normally hexadecimal The optional value lt inc gt can be used to increment or decrement the data value during the fill This command first aligns the starting address for the data access size and then increments the address accordingly during the operation Thus for the duration of t
34. axizn 5192 51 Svo as SYY as 050 as 1S9 45 305 ds 3M 05 Ovi lo ijaoworo enora ONILO nosausuL 5 1 fo elisd lo elvivag zaxi3 10X13 00x13 uaxi3 N3xi3 5608 1093 oiana lo elsg lo ezlv uojsuedxa Nusu waa lo elvivaa OLSAN 050 001 1093 noxua 1 zaxui noxia Hia 1 15 1804S 919945 119945 puya 1905 siang 610945 Aioue 01 9345 Jo 1924 12 Idy Kepseupew t Snouo youAsy JequinN 1ueuinoog 929 enu 5 GOAL 9451 SdS 5 1520 058 pue eue y 8S8 3LON lo elsa T 4051 jndod OZOLEEADLPOLOZAD Hv 6v 8v 22 21 IN Elv 9v 02 Sv oF ON 3w BT 80 1 201
35. be handed back to dBUG The GO command is repeatable Examples To execute code at the current program counter the command is go To execute code at the C function main the command is go main To execute code at the address 0x00040000 the command is go 40000 M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 3 19 Using the Monitor Debug Firmware GT Execute To GT Usage GT addr The GT command inserts a temporary breakpoint at addr and then executes target code starting at the current program counter The value for addr may be an absolute address specified as a hexadecimal value or a symbol name When the GT command is executed all breakpoints are inserted into the target code and the context is switched to the target program Control is only regained when the target code encounters a breakpoint illegal instruction or other exception which causes control to be handed back to dBUG Examples To execute code up to the C function bench the command is gt _bench M5271EVB User s Manual Rev 1 1 3 20 Freescale Semiconductor Using the Monitor Debug Firmware IRD Internal Register Display IRD Usage IRD lt module register gt This command displays the internal registers of different modules inside the MCF5271 In the command line module refers to the module name where the register is located and register refers to the specific register to display The registers are organized according to t
36. by the symbols data_start and data_end to 0x00200000 the command is bm data_start data_end 200000 NOTE Refer to upuser command for copying code data into Flash memory M5271EVB User s Manual Rev 1 1 3 10 Freescale Semiconductor Using the Monitor Debug Firmware BR Breakpoints BR Usage BR addr lt r gt lt c count gt lt t trigger gt The BR command inserts or removes breakpoints at address addr The value for addr may be an absolute address specified as a hexadecimal value or a symbol name Count and trigger are numbers converted according to the user defined radix normally hexadecimal If no argument is provided to the BR command a listing of all defined breakpoints is displayed The r option to the BR command removes a breakpoint defined at address addr If no address is specified in conjunction with the r option then all breakpoints are removed Each time a breakpoint is encountered during the execution of target code its count value is incremented by one By default the initial count value for a breakpoint is zero but the c option allows setting the initial count for the breakpoint Each time a breakpoint is encountered during the execution of target code the count value is compared against the trigger value If the count value is equal to or greater than the trigger value a breakpoint is encountered and control returned to dBUG By default the initial trigger value for a breakpoint is one but t
37. harmless against all claims costs damages and expenses and reasonable attorney fees arising out of directly or indirectly any claim of personal injury or death associated with such unintended or unauthorized use even if such claim alleges that Freescale Semiconductor was negligent regarding the design or manufacture of the part Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or service names are the property of their respective owners Freescale Semiconductor Inc 2004 2006 All rights reserved RoHS compliant and or Pb free versions of Freescale products have the functionality and electrical characteristics as their non RoHS compliant and or non Pb free counterparts For further information see http www freescale com or contact your Freescale sales representative For information on Freescale s Environmental Products program go to http www freescale com epp e gt gt e 77 freescale semiconductor
38. the MCF5271 include V2 ColdFire core with enhanced multiply accumulate unit EMAC providing 96 Dhrystone 2 1 MIPS 100MHz 64 Kbytes of internal SRAM e External bus speed of one half the CPU operating frequency 50MHz bus 100Mhz core 10 100 Mbps bus mastering Ethernet controller e 8 Kbytes of configurable instruction data cache e Three universal asynchronous receiver transmitters UARTs with DMA support e Inter integrated circuit PC bus controller e Queued serial peripheral interface QSPI module M5271EVB User s Manual Rev 1 1 Freescale Semiconductor M5271EVB Introduction Hardware cryptography accelerator optional Random number generator DES 3DES AES block cipher engine MDS SHA 1 HMAC accelerator Four channel 32 bit direct memory access DMA controller Four channel 32 bit input capture output compare timers with optional DMA support e Four channel 16 bit periodic interrupt timers PITs Programmable software watchdog timer Interrupt controller capable of handling up to 126 interrupt sources e Clock module with Phase Locked Loop PLL e External bus interface module including 2 bank synchronous DRAM controller e 32 bit non multiplexed bus with up to 8 chip select signals that support page mode FLASH memories The MCF5271 communicates with external devices over a 32 bit wide data bus D 31 0 The MCF5271 can address a 32 bit address range However only 24 bits are avail
39. the board Server IP ___ ___ IP address of the TFTP server Gateway IP address of the gateway Netmask 2222 Network netmask M5271EVB User s Manual Rev 1 1 Freescale Semiconductor A 1 Configuring dBUG for Network Downloads A 2 Configuring dBUG Network Parameters Once the network parameters have been obtained the dBUG Rom Monitor must be configured The following commands are used to configure the network parameters set client client IP gt set server server IP set gateway gateway IP set netmask lt netmask gt set mac lt addr gt For example the TFTP server is named santafe and has IP address 123 45 67 1 The board is assigned the IP address of 123 45 68 15 The gateway IP address is 123 45 68 250 and the netmask is 255 255 255 0 The MAC address is chosen arbitrarily and is unique The commands to dBUG are set client 123 45 68 15 set server 123 45 67 1 set gateway 123 45 68 250 set netmask 255 255 255 0 set mac 00 CF 52 82 EB 01 The last step is to inform dBUG of the name and type of the file to download Prior to giving the name of the file keep in mind the following Most if not all TFTP servers will only permit access to files starting at a particular sub directory This is a security feature which prevents reading of arbitrary files by unknown persons For example SunOS uses the directory tftp_boot as the default TFTP directory When specifying a filename to a SunOS TFTP s
40. the command line beginning at addr If this range doesn t start and end on Flash sector boundaries the range will be adjusted automatically and the user will be prompted for verification before proceeding When the write command is given the FL command will program the number of bytes specified from src to dest An erase of this region will first be attempted As with the erase command if the Flash range to be programmed doesn t start and end on Flash sector boundaries the range will be adjusted and the user will be prompted for verification before the erase is performed The specified range is also checked to insure that the entire destination range is valid within the same Flash device and that the src and dest are not within the same device M5271EVB User s Manual Rev 1 1 3 18 Freescale Semiconductor Using the Monitor Debug Firmware GO Execute GO Usage GO lt addr gt The GO command executes target code starting at address addr The value for addr may be an absolute address specified as a hexadecimal value or a symbol name If no argument is provided the GO command begins executing instructions at the current program counter When the GO command is executed all user defined breakpoints are inserted into the target code and the context is switched to the target program Control is only regained when the target code encounters a breakpoint illegal instruction trap 15 exception or other exception which causes control to
41. the registers by storing a copy of the register set in a buffer The RM command updates the copy of the register in the buffer The actual value will not be written to the register until target code is executed Examples To change register DO on MC68000 and ColdFire to contain the value 0x1234 the command is rm DO 1234 M5271EVB User s Manual Rev 1 1 3 30 Freescale Semiconductor Using the Monitor Debug Firmware RESET Reset the Board and dBUG RESET Usage RESET The RESET command resets the board and dBUG to their initial power on states The RESET command executes the same sequence of code that occurs at power on If the RESET command fails to reset the board adequately cycle the power or press the reset button Examples To reset the board and clear the dBUG data structures the command is reset M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 3 31 Using the Monitor Debug Firmware SD Stack Dump SD Usage SD The SD command displays a back trace of stack frames This command is useful after some user code has executed that creates stack frames i e nested function calls After control is returned to dBUG the SD command will decode the stack frames and display a trace of the function calls M5271EVB User s Manual Rev 1 1 3 32 Freescale Semiconductor Using the Monitor Debug Firmware SET Set Configurations SET Usage SET lt option value gt The SET command allows the setting o
42. the starting address for the data access size and then increments the address accordingly during the operation Thus for the duration of the operation this command performs properly aligned memory accesses Examples To search for the 16 bit value 0x1234 in the memory block starting at 0x00040000 and ending at 0x00080000 bs 40000 80000 1234 This reads the 16 bit word located at 0x00040000 and compares it against the 16 bit value 0x1234 If no match is found then the address is incremented to 0x00040002 and the next 16 bit value is read and compared To search for the 32 bit value OXABCD in the memory block starting at 0x00040000 and ending at 0x00080000 bs 1 40000 80000 ABCD This reads the 32 bit word located at 0x00040000 and compares it against the 32 bit value 0x0000A BCD If no match is found then the address is incremented to 0x00040004 and the next 32 bit value is read and compared M5271EVB User s Manual Rev 1 1 3 12 Freescale Semiconductor Using the Monitor Debug Firmware DC Data Conversion DC Usage DC data The DC command displays the hexadecimal or decimal value data in hexadecimal binary and decimal notation The value for data may be a symbol name or an absolute value If an absolute value passed into the DC command is prefixed by Ox then data is interpreted as a hexadecimal value Otherwise data is interpreted as a decimal value All values are treated as 32 bit quantities Examples T
43. to dBUG is the command line A number of features have been implemented to achieve an easy and intuitive command line interface dBUG assumes that an 80x24 ASCII character dumb terminal is used to connect to the debugger For serial communications dB UG requires eight data bits no parity and one stop bit 8 N 1 The baud rate default M5271EVB User s Manual Rev 1 1 3 4 Freescale Semiconductor Using the Monitor Debug Firmware is 19200 bps a speed commonly available from workstations personal computers and dedicated terminals The command line prompt is dBUG gt Any dBUG command may be entered from this prompt dBUG does not allow command lines to exceed 80 characters Wherever possible BUG displays data in 80 columns or less echoes each character as it is typed eliminating the need for any local echo on the terminal side The Backspace and Delete keys are recognized as rub out keys for correcting typographical mistakes Command lines may be recalled using the Control U Control D and Control R key sequences Control U and Control D cycle up and down through previous command lines Control R recalls and executes the last command line In general dBUG is not case sensitive Commands may be entered either in uppercase or lowercase depending upon the user s equipment and preference Only symbol names require that the exact case be used Most commands can be recognized by using an
44. 1 or lo elisa oelvivad 050 001 54 1 5 286 11 dAV 8614 WV zig 6 150 8 noxio Svo as svu gg evaa 2 Sea 1gq lo Haon axon SLOON AEE AST AgE AS Ag 050 1850 1100 1460 1450 vas 021 GLITE 3 0s as 2 ager AG Lt 2 6861 1 peo y uo eseo d un SJoloeuuoo uoisuedxe eseu 14 ol peo e 3 LON AS lozlso cce mmm 55502 228 58595 68 5 548 PI 8 0 58 EL jo 19905 A
45. 1 Initialization and Setup RS 232 Terminal or PC 1 5 SEN SSS SS 7 to 14VDC m Input Power e 5 niunt ped H H H TTT HE ou PT HH T 5 s JE 1000000000000 m 5 JUBJEEEBZBHEH m p z Bae yas Selb a ae o e EEE ee BH LLL 1 EH 523 5 y 521 Es Figure 2 1 Minimum System Configuration M5271EVB User s Manual Rev 1 1 2 2 Freescale Semiconductor Initialization and Setup 2 2 Installation and Setup The following sections describe all the steps needed to prepare the board for operation Please read the following sections carefully before using the board When you are preparing the board for the first time be sure to check that all jumpers are in the default locations Default jumper markings are documented on the master jumper table and printed on the underside of the board After the board is functional in its default mode the Ethernet
46. 1 Minimum System Configuration 2 2 ae 2 4 Fire 23 gt 2 4 Figure 2 4 Pin Assignment for Female Terminal 2 6 Figute 2 5 WEE bees 63 6346 Le RU Pas eds 2 7 Figure 3 1 Flow Diagram of dBUG Operational 3 3 MOGPSZTIEVM _______ B 1 M5271EVB User s Manual Rev 1 1 Freescale Semiconductor vii List of Figures M5271EVB User s Manual Rev 1 1 viii Freescale Semiconductor List of Tables Table 151 M3270 71 Prodwet 1 1 Table 1 2 The M3271EVB Default Memory 1 8 Table 1 3 D 20 19 External Boot Chip Select 1 8 1 9 Table LO SWA4A 2ZITAG BN cis bia keds WRAP Ea a nE DREE ba rd AR RR EEK ERR dad 1 9 Table 1 6 SW4 4 3 Encoded Clock 1 9 Table 1 7 54 5 Chip Configuration Mode esas wusess tuae E ae ee 1 10 Table 1 8 B Lares 1 10 Table 1 9 SW4 8 Bus Drive Strength 1 10 Table 1 10 SW4 10 9 Address Chip Select 1 10 Table 1 11 M5271EVB Clock Source Se
47. 1EVB User s Manual Rev 1 1 Freescale Semiconductor 1 9 M5271EVB Introduction Table 1 7 SW4 5 Chip Configuration Mode SW4 5 RCON SW4 1 Mode OFF ON Reserved ON ON Master X OFF Master Table 1 8 SW4 7 6 Boot Device SW4 6 SW4 7 RCON SW4 1 Boot Device OFF OFF ON External 32 bit OFF ON ON External 8 bit ON OFF ON External 16 bit ON ON ON External 32 bit X X OFF External 32 bit Table 1 9 SW4 8 Bus Drive Strength SW4 8 RCON SW4 1 Drive Strength OFF ON Partial Bus Drive ON ON Full Bus Drive X OFF Partial Bus Drive Table 1 10 SW4 10 9 Address Chip Select Mode SW4 9 SW4 10 RCON SW4 1 Mode OFF OFF ON PF 7 5 CS 6 4 OFF ON ON PF 7 CS6 PF 6 5 A 22 21 ON OFF ON PF 7 6 CS 6 5 5 A21 ON ON ON PF 7 5 A 23 21 X X OFF PF 7 5 A 23 21 M5271EVB User s Manual Rev 1 1 1 10 Freescale Semiconductor M5271EVB Introduction 1 3 2 Clock Circuitry The are three options to provide the clock to the CPU These options can be configured by setting JP 10 12 See Table 1 11 Table 1 11 M5271EVB Clock Source Selection JP10 JP11 JP12 Clock Selection 1 2 1 2 ON 25MHz Oscillator default setting 2 3 1 2 ON 25MHz External Clock X 2 3 OFF 25 2 Crystal not populated The 25MHz oscillator U15 also feeds the Ethernet ch
48. 3 mu I 9ls9 6 144 30 320 19 8 3 0 NO x3 uoneiedo Tid 44O NO 100g pepooug s soned 100g pepooug aidpioo 1 9451 846 1991 Puley3 NO 380 apon 1940 epow 190 popoou3 opo OLMS aze 00 330 panesey 430 on ypop ewag 30 340 apo yool9 papoou v epow 42010 pepoou3 po ejes diyo sseippy S apol 49019 POW 49019 lo tela LYNS SPMS pow SYMS son PPMS EPMS aoghalul waa palqeu3 eoghalul 7777 025 anaq 1008 pepoou3 Guneredo papoou3 epo 20 0 uo 6guoo dip i ae NO PMS 4340 ZI8H84 uis uogein amp yuo Bm ERE 5 520 T ved 50 veal 124 Sr 20 z vea I 020 20 Ted 510 Foo ig Ee 229 a inoisu lt TOOW HIS ol peraeuuoo aq ol T peau uo suopoeuuoo yoed Jolslsal NOSE pue pejoeuuooun JUehodul wowado Ager spea punoi6 qod 24055 jo sea fo laororio 80 jo 0141 641 BdL eoeld
49. 3 4 Commands The user interface to dBUG is the command line A number of features have been implemented to achieve an easy and intuitive command line interface dBUG assumes that an 80x24 character dumb terminal is utilized to connect to the debugger For serial communications dBUG requires eight data bits no parity and one stop bit 8 N 1 with no flow control The default baud rate is 19200 but can be changed after power up The command line prompt is dBUG gt dBUG command may be entered from this prompt dBUG does not allow command lines to exceed 80 characters Wherever possible dBUG displays data in 80 columns or less dBUG echoes each character as it is typed eliminating the need for any local echo on the terminal side In general dBUG is not case sensitive Commands may be entered either in upper or lower case depending upon the user s equipment and preference Only symbol names require that the exact case be used Most commands can be recognized by using an abbreviated name For instance entering h is the same as entering help Thus it is not necessary to type the entire command name The commands DI GO MD STEP and TRACE are used repeatedly when debugging dBUG recognizes this and allows for repeated execution of these commands with minimal typing After a command is entered simply press lt RETURN gt or ENTER to invoke the command again The command is executed as if no command line paramete
50. 7 100pF SMT Capacitors C38 4 2 C25 C95 10uF TANT SMT Capacitors 5 2 C50 C54 47uF TANT SMT Capacitors 6 7 C59 061 062 C69 C70 C71 C72 10nF SMT Capacitors 7 1 C60 10uF AVX SMT Capacitors 8 6 C63 C64 C73 C74 C75 C76 470pF SMT Capacitors 9 3 88 93 96 33uF SMT Capacitors 10 1 C92 1000uF 35V SMT Capacitors 11 2 C98 C99 10pF SMT Capacitors 12 8 C92 C93 C94 C95 C96 C97 0 22uF SMT Capacitors C98 C99 13 7 101 02 03 04 06 09 013 AA3528SGC Kingbright SMT LEDs Green LED 14 5 D5 D7 D8 D12 D14 MBRS340T3 On Semi SMC Schottky Rectifier 15 2 D10 D11 MRAA4003T3 On Semi SMA Power Rectifier M5271EVB User s Manual Rev 1 1 Freescale Semiconductor M5271EVB BOM Table C 1 M5271EVB BOM Sheet 2 of 3 Item Qty Reference Part Function 16 2 D15 D16 AA3528SRC Kingbright Red SMT LEDs LED 17 8 D17 D18 D19 D20 D21 D22 D23 AA3528MBC Kingbright Blue SMT LEDs D24 LED 18 4 FB1 FB2 FB3 FB4 HI1206T500R 00 Ferrite 19 1 F1 Fuse Holder by Keystone 5A Fast blow fuse and holder 0216005 H Fuse by Littlefuse 5a 250V 5x 20mm glass 20 7 JP1 JP2 JP5 JP6 JP7 JP10 JP11 Harwin M22 2010305 3 way jumper 21 19 JP3 JP4 JP8 JP9 JP12 JP13 JP14 J Harwin M22 2010205 2 way jumper P15 JP16 JP17 JP18 JP19 JP20 JP 21 JP22 JP23 JP24 JP25 JP26 22 1 J1 Thomas amp Betts 609 2627 BDM 26 way header 23 1 J2 Halo HFJ11 2450E RJ45 Connect
51. ED MCF5271 Signal Jumper to Disconnect D17 DTOUTO JP13 D18 DTINO JP14 D19 DTOUT1 JP15 D20 DTIN1 JP16 D21 DTOUT2 JP17 D22 DTIN2 JP18 D23 DTOUTS3 JP19 D24 DTIN3 JP20 M5271EVB User s Manual Rev 1 1 1 20 Freescale Semiconductor 1 5 4 Other LEDs M5271EVB Introduction There are several other LED s on the M5271EVB to signal to the user various board processor component state Below is a list of those LEDs and their functions Table 1 17 LED Functions LED Function 01 04 Ethernet Phy functionality D6 3 3V Power Good 09 5V Power Good D13 1 5V Power Good NOTE 1 5V is not enough to turn this LED on ignore this LED D15 Abort IRQ7 asserted D16 Reset RSTI asserted D17 D24 User LEDs see Table 1 16 M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 1 21 M5271EVB Introduction M5271EVB User s Manual Rev 1 1 1 22 Freescale Semiconductor Chapter 2 Initialization and Setup 2 1 System Configuration The M5271EVB board requires the following items for minimum system configuration The M5271EVB board provided Power supply 6V to 14V DC with minimum of 300 mA e RS232C compatible terminal or a with terminal emulation software RS232 Communication cable provided Figure 2 1 displays the minimum system configuration M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 2
52. M5271EVB User s Manual M5271EVBUM Rev 1 1 05 2006 freescale com freescale semiconductor EMC Information on M5271EVB 1 This product as shipped from the factory with associated power supplies and cables has been tested and meets with requirements of EN5022 and EN 50082 1 1998 as a CLASS A product This product is designed and intended for use as a development platform for hardware or software in an educational or professional laboratory In a domestic environment this product may cause radio interference in which case the user may be required to take adequate measures Anti static precautions must be adhered to when using this product Attaching additional cables or wiring to this product or modifying the products operation from the factory default as shipped may effect its performance and also cause interference with other apparatus in the immediate vicinity If such interference is detected suitable mitigating measures should be taken WARNING This board generates uses and can radiate radio frequency energy and if not installed properly may cause interference to radio communications As temporarily permitted by regulation it has not been tested for compliance with the limits for class a computing devices pursuant to Subpart J of Part 15 of FCC rules which are designed to provide reasonable protection against such interference Operation of this product in a residential area is likely to cause interfere
53. NL 2 k i see ar EET uy ows 3 9 s 30 m 8 1 osoa 8 1 vav nee Ager d id 1994 002 12 t Wvauas 8 JequnN 921 8414PI0D GOAL 9451 535 LION et eq pjnous eseui ejqissod sjeuBis WVHGS 94 0 uoneja1 suiDue ejqissod LL2830IN ol asolo se OZN 99 22219 sseald 310N 917986 13091956 8 vosuu 140910986901 eqldsol OHO0Z9LV9AZSAH 3e 9Lv9Syy 1uudjooj god OWES eui YUM 3 ON 81 091 S slqelleAe 8101 8 18 1991 X Wp s oue doe3 ezis Woue 31ON anyo anto anyo 4019 9019 S019 70 5 019 2019 019 00 5 8 8 0 elv 00v 1 408 O12 V9LWYO T8 lo ezlv ren 119 91 9 0 lo ezlv 007 4061 O12 V9LWVO T8 3705
54. P address already assigned to another machine will cause dBUG network download to fail and probably other severe network problems Make certain the client IP address is unique for the board Check for proper insertion or connection of the network cable Is the status LED lit indicating that network traffic is present Check for proper configuration and operation of the TFTP server Most Unix workstations can execute a command named tftp which can be used to connect to the TFTP server as well Is the default TFTP root directory present and readable If ICMP DESTINATION UNREACHABLE or similar ICMP message appears then a serious error has occurred Reset the board and wait one minute for the TFTP server to time out and terminate any open connections Verify that the IP addresses for the server and gateway are correct Also verify that a TFTP server is running on the server M5271EVB User s Manual Rev 1 1 Freescale Semiconductor A 3 Configuring dBUG for Network Downloads M5271EVB User s Manual Rev 1 1 A 4 Freescale Semiconductor Appendix B Schematics B 1 MCF5271EVM Schematics M5271EVB User s Manual Rev 1 1 Freescale Semiconductor B 1 l Jo 1994 002 12 t SA3LZeSWN 8 JequnN 876 enu GOAL 9451 595 sq
55. R22 Philips SM R 0805 1200hm resistor 49 2 R26 R28 Philips SM R 0805 100 ohm resistor 50 1 R29 Philips SM R 0805 1K ohm resistor 51 1 swi EAO Switch POWER SW SLIDE SPST Board Edge 52 1 Swe C amp K KS11R22CQD IRQ7 black push button switch 53 1 SW3 C amp K KS11R23CQD Hard reset push button switch 54 1 5 4 Grayhill 788812 Configuration DIP switch 55 11 TP1 TP2 TP3 TP4 TP5 TP6 TP7 TP Keystone 5015 Test points 8 9 10 11 56 2 01 02 CY7C1041CV3310ZC ASRAM Not populated 57 3 U3 U4 U6 MC74LCX16245DT Bus transceiver 58 2 U5 U18 SN74LVC1G11 3 input positive AND gate 59 1 U7 MC74LCX245DT Bus transceiver 60 1 U8 MCF5271CVM100 Freescale MCF5271 microprocessor 61 1 U9 KS8721BL MCF5282 ColdFire 62 1 U10 Am29LV160CB AMD 2MB Flash 63 1 U11 Am29PL320DB AMD 4MB Flash not populated 64 1 U12 LM2596S 3 3 National Semi DCtoDC switcher 65 1 U13 LM2596S 5 National Semi DCtoDC switcher 66 1 U14 LT1086CM Regulator 67 2 U16 U17 ADM708SAR Voltage sensor 68 2 1 FOXS 250F 20 25MHz Crystal 69 1 U15 P1145 HCV 25MHz Oscillator 70 1 U19 MC74LCX541DT Octal Buffer 71 2 U20 U21 MT48LC4M16A2TG TSOP II SDRAM 400 mil 72 3 022 023 024 MAX3225CAP RS232 Transceivers M5271EVB User s Manual Rev 1 1 Freescale Semiconductor M5271EVB BOM M5271EVB User s Manual Rev 1 1 C 4 Freescale Semiconductor How to Reach Us Home Page www freescale com E mail support freescale com USA Europe or Locations Not Listed
56. YL 181 lo ezly 2 lotel a gt anro anro anro anyo 910 Sio zo Ho 019 69 8 Ag et 6ed 2 Zea 9 Sea vea eza eed 0 610 81 2 910 Sia via ota ed 8d 2 90 va 2 0 818 E 1OSvZ9LXO 1910 aNd ano LF 2 72 99 Ley 99 aar 7 5 gz svz saz E 282 180 a 0 620 0 6 9 vaz Peg 8 eve egz eg 9 920 zaz g LYZ 82 Sed 8 9 avi n ved eie ANY E g A zar OP 6 120 ar sal 8 var E 020 59 9 7 LIS o 8 v zv ear 810 0807 181 ue sn 9n 2557 as 1GSvz9LXO OWN No ano 9 502 99 30 99 5 gz 89z 9 282 sig E ove vig E5 ove gaz 2 0 5 8 eve z zaz a ae 19z 8 881 80 8 e 181 g E OF sat Lg 8 val 1 5 8 EG evi eal a m za
57. able on the external bus A 23 0 There are internally generated chip selects to allow the full 32 bit address range to be selected There are regions that can be decoded to allow supervisor user instruction and data each to have the 32 bit address range All the processor s signals are available via daughter card expansion connectors Refer to the schematic Appendix B for their pin assignments The MCF5271 processor has the capability to support both BDM and JTAG These ports are multiplexed and together In BDM mode it can be used with third party tools to allow the user to download code to the board In JTAG mode it can be used for boundary scan operations The board is configured to boot up in the normal BDM mode of operation The BDM signals are available at the port labeled BDM Figure 1 2 shows the MCF5271 processor block diagram M5271EVB User s Manual Rev 1 1 1 4 Freescale Semiconductor M5271EVB Introduction EIM To From SRAM Backdoor Chip lt gt Selects lt Arbiter INTCO INTC1 gt A Fast To From PADI lt gt Ethernet Controller FEC PADI Pin Muxing To From PADI 9 4CHDMA To From DREQ 2 0 DACK 2 0 JTAG_EN V2 ColdFire CPU DIV EMAC
58. am counter the command is tr 20 M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 3 37 Using the Monitor Debug Firmware UP Upload Data UP Usage UP begin end filename The UP command uploads the data from a memory region specified by begin and end to a file specified by filename over the network The file created contains the raw binary data from the specified memory region The UP command uses the Trivial File Transfer Protocol TFTP to transfer files to a network host M5271EVB User s Manual Rev 1 1 3 38 Freescale Semiconductor Using the Monitor Debug Firmware VERSION Display dBUG Version VERSION Usage VERSION The VERSION command displays the version information for dBUG The dBUG version build number and build date are all given The version number is separated by a decimal for example v 2b 1c 1a In this example v 2b Ic la dBUG common rd C PU major board major major and minor and minor and minor revision revision revision The version date is the day and time at which the entire dBUG monitor was compiled and built Examples To display the version of the dBUG monitor the command is version M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 3 39 Using the Monitor Debug Firmware 3 5 TRAP 15 Functions An additional utility within the dBUG firmware is a function called the TRAP 15 handler This function can be called by the user program to utilize vari
59. ation channels normally referred to as COMI 2 etc on the PC running terminal emulation software The connector on the PC terminal may be either male 25 pin or 9 pin It may be necessary to obtain a 25pin to 9pin adapter to make this connection If an adapter is required refer to Figure 2 4 M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 2 5 Initialization and Setup 2 2 9 Using a Personal Computer as a Terminal A personal computer may be used as a terminal provided a terminal emulation software package is available Examples of this software are PROCOMM KERMIT QMODEM Windows 95 98 2000 XP Hyper Terminal or similar packages The board should then be connected as described in Section 2 2 8 Connecting the Terminal Once the connection to the PC is made power may be applied to the PC and the terminal emulation software can be run In terminal mode it is necessary to select the baud rate and character format for the channel Most terminal emulation software packages provide a command known as Alt p press the p key while pressing the Alt key to choose the baud rate and character format The character format should be 8 bits no parity one stop bit See section 1 9 5 The Terminal Character Format The baud rate should be set to 19200 Power can now be applied to the board Figure 2 4 Pin Assignment for Female Terminal Connector Pin assignments are as follows Table 2 2 Pin Assignment for Female Ter
60. be found in Table 1 2 The internal memory space of the MCF5271 is detailed further in the MCF5271 Users Manual Chip Selects 0 and 1 can be changed by user software to map the external memory in different locations but the chip select configuration such as wait states and transfer acknowledge for each memory type should be maintained Chip Select usage External FLASH Memory CSO External ASRAM Memory CSI M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 1 7 M5271EVB Introduction Table 1 2 shows the M5271EVB memory map Table 1 2 The M5271EVB Default Memory Map Address Range Signal and Device 0x0000_0000 0x00FF_FFFF 16 Mbyte SDRAM 0x2000 0000 0x2000 FFFF 64 Kbytes Internal SRAM 0 3000 0000 0 300 External ASRAM not fitted OxFFEO 0000 OxFFFF FFFF 2 Mbytes External Flash U10 or or OxFFCO_0000 OxFFFF_FFFF 4 Mbytes External Flash U11 1 2 6 Reset Vector Mapping Asserting the reset input signal to the processor causes a reset exception The reset exception has the highest priority of any exception it provides for system initialization and recovery from catastrophic failure Reset also aborts any processing in progress when the reset input is recognized Processing cannot be recovered The reset exception places the processor in the supervisor mode by setting the S bit and disables tracing by clearing the T bit in the SR This exception also clears the M bit and sets the processor s interrupt pri
61. cale Semiconductor 3 23 Using the Monitor Debug Firmware LR Loop Read LR Usage LR lt width gt addr The LR command continually reads the data at addr until a key is pressed The optional lt width gt specifies the size of the data to be read If no lt width gt is specified the command defaults to reading word sized data Example To continually read the longword data from address 0x20000 the command is d d 20000 M5271EVB User s Manual Rev 1 1 3 24 Freescale Semiconductor Using the Monitor Debug Firmware LW Loop Write LW Usage LW lt width gt addr data The LW command continually writes data to addr The optional width specifies the size of the access to memory The default access size is a word Examples To continually write the longword data 0x12345678 to address 0x20000 the command is lw 1 20000 12345678 Note that the following command writes 0x78 into memory lw b 20000 12345678 M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 3 25 Using the Monitor Debug Firmware MD Memory Display MD Usage MD lt width gt begin end The MD command displays a contiguous block of memory starting at address begin and stopping at address end The values for addresses begin and end may be absolute addresses specified as hexadecimal values or symbol names Width modifies the size of the data that is displayed If no width is specified the default of word sized data is used Memory d
62. e means are discussed in the following paragraphs 3 2 2 1 External RESET Button External RESET SW3 is the red button Depressing this button causes all processes to terminate resets the MCF5271 processor and board logic and restarts the dBUG firmware Pressing the RESET button would be the appropriate action if all else fails 3 2 2 2 ABORT Button ABORT SW2 is the button located next to the RESET button The abort function causes an interrupt of the present processing a level 7 interrupt on MCF5271 and gives control to the dBUG firmware This action differs from RESET in that no processor register or memory contents are changed the processor and peripherals are not reset and dBUG is not restarted Also in response to depressing the ABORT button the contents of the MCF5271 core internal registers are displayed The abort function is most appropriate when software is being debugged The user can interrupt the processor without destroying the present state of the system This is accomplished by forcing a non maskable interrupt that will call a dBUG routine that will save the current state of the registers to shadow registers in the monitor for display to the user The user will be returned to the ROM monitor prompt after exception handling 3 2 2 3 Software Reset Command dBUG does have a command that causes the dBUG to restart as if a hardware reset was invoked The command is RESET 3 3 Command Line Usage The user interface
63. e referred to as BDM background debug module In order to use BDM simply connect the 26 pin debug connector on the board J1 to the P amp E BDM wiggler cable provided in the kit No special setting is needed Refer to the ColdFire User s Manual BDM Section for additional instructions NOTE BDM functionality and use is supported via third party developer software tools Details may be found on the CD ROM included in this kit M5271EVB User s Manual Rev 1 1 2 8 Freescale Semiconductor Chapter 3 Using the Monitor Debug Firmware The M5271EVB single board computer has a resident firmware package that provides a self contained programming and operating environment The firmware named dBUG provides the user with monitor debug interface inline assembler and disassembly program download register and memory manipulation and I O control functions This chapter is a how to use description of the dBUG package including the user interface and command structure 3 1 What Is dBUG dBUG is a traditional ROM monitor debugger that offers a comfortable and intuitive command line interface that can be used to download and execute code It contains all the primary features needed in a debugger to create a useful debugging environment The firmware provides a self contained programming and operating environment dBUG interacts with the user through pre defined commands that are entered via the terminal These commands are defined in Section
64. epseupe eL usei 9 Jequinn 225 SA3LZZSIW dnoi9 91140100 0931 9851 SdS elololoW v 010 4055 do V99 pelelndod siuudiooj jo euo J LON 19 55 X INL 9215 91 X WI 9215 a 8 zv d Pee pe 0000 gos BRS Re 82 S 5 5 5 5 99 800911962 26146 EREBREEEDEERBRRBREBRP gri zz 88858895 8888888805888 0 09 HE RESBSBEPOPESOOESOBESS n ova 8 954 12078 04 0 810 8 SV Er dv 7 8 6 90d toa 27 sza 8 ev ziy ov Le d zza 8 ioa xiv iiy ey 29 8 52 joa ved 8 a zv Sv 520 8 visio 30 LE Tha ton EH Wa 12 TE ac ERE T v 8 TE ON ON 2148 30 Fer am zy We at 291 sud SE zv LOE aN 880108 9247 SIV 8 Eos gi ES or hy oN inejeq va wie A 8 piy 5 77 8 E SV 8 giy En oiv ov 9 9v 8 siv SY So LS LV ssoroe Oev 8 22 wS ee eva
65. ernal supply voltage of 6 14V DC minimum 300 mA This is regulated on board using three switching voltage regulators to provide the necessary EVB voltages of 5V 3 3V and 1 5V There are two different power supply input connectors on the EVB Connector P1 is a 2 1mm power jack Figure 2 2 P3 a lever actuated connector Figure 2 3 4 V 7 14V Figure 2 2 2 1mm Power Connector V 7 14V Figure 2 3 2 Lever Power Connector 2 2 4 Power Switch SW1 Slide switch SW1 can be used to isolate the power supply input from the EVB voltage regulators if required Moving the slide switch to the left towards connector P2 will turn the EVB ON Moving the slide switch to the right away from connector P2 will turn the EVB OFF M5271EVB User s Manual Rev 1 1 2 4 Freescale Semiconductor Initialization and Setup 2 2 5 Power Status LEDs and Fuse When power is applied to the EVB green power LEDs adjacent to the voltage regulators show the presence of the supply voltage as follows Table 2 1 Power LEDs LED Function D9 Indicates that the 5V regulator is working correctly D6 Indicates that the 3 3V regulator is working correctly D13 Indicates that the 1 5V regulator is working correctly this LED will not light up with only 1 5V normal operation is to have this LED off If no LEDs are illuminated when the power is applied to the EVB it is possible that either power switch SW4 is in the
66. erver all filenames are relative to tftp_boot As a result you normally will be required to copy the file to download into the directory used by the TFTP server A default filename for network downloads is maintained by dBUG To change the default filename use the command set filename filename When using the Ethernet network for download either S record COFF ELF or Image files may be downloaded A default filetype for network downloads is maintained by dBUG as well To change the default filetype use the command set filetype lt srecord coff elf image gt Continuing with the above example the compiler produces an executable COFF file a out This file is copied to the tftp_boot directory on the server with the command rcp a out santafe tftp boot a out Change the default filename and filetype with the commands set filename a out set filetype coff Finally perform the network download with the dn command The network download process uses the configured IP addresses and the default filename and filetype for initiating a TFTP download from the TFTP server M5271EVB User s Manual Rev 1 1 A 2 Freescale Semiconductor Configuring dBUG for Network Downloads A 3 Troubleshooting Network Problems Most problems related to network downloads are a direct result of improper configuration Verify that all IP addresses configured into dBUG are correct This is accomplished via the show command Using an I
67. erves the right to make changes without further notice to any products herein Freescale Semiconductor makes no warranty representation or guarantee regarding the suitability of its products for any particular purpose nor does Freescale Semiconductor assume any liability arising out of the application or use of any product or circuit and specifically disclaims any and all liability including without limitation consequential or incidental damages Typical parameters that may be provided in Freescale Semiconductor data sheets and or specifications can and do vary in different applications and actual performance may vary over time All operating parameters including Typicals must be validated for each customer application by customer s technical experts Freescale Semiconductor does not convey any license under its patent rights nor the rights of others Freescale Semiconductor products are not designed intended or authorized for use as components in systems intended for surgical implant into the body or other applications intended to support or sustain life or for any other application in which the failure of the Freescale Semiconductor product could create a situation where personal injury or death may occur Should Buyer purchase or use Freescale Semiconductor products for any such unintended or unauthorized application Buyer shall indemnify and hold Freescale Semiconductor and its officers employees subsidiaries affiliates and distributors
68. esn ued sejqeo Wag ATNO 31ON LNVLYOdWI aui JO 1294 ees v 10 pasn si dn v 1 83 9 ISG sleu6ls uo pasn siojsise dn Ind 31ON 93113 10184 101 lt gt lt ejqeo INdg JnoA 8 2109 Noddns se qeo AjjeuJe1ut 94 10 6 suldloeuuoo yey sejqeo Wag eu jo 10 peiinbai sl 3 LON Wag POH 104 2105 2 lt gt 0 6 154 L 19919 7008 112 Iudy Kepseupem 1 1951 JeNBORUBIL Y pm oa UO pz pue suid ol esolo Ai EM 5 y anul anot
69. etype S Record ethaddr 00 CF 52 82 CF 01 M5271EVB User s Manual Rev 1 1 3 34 Freescale Semiconductor Using the Monitor Debug Firmware STEP Step Over STEP Usage STEP The STEP command can be used to step over a subroutine call rather than tracing every instruction in the subroutine The ST command sets a temporary breakpoint one instruction beyond the current program counter and then executes the target code The STEP command can be used to step over BSR and JSR instructions The STEP command will work for other instructions as well but note that if the STEP command is used with an instruction that will not return i e BRA then the temporary breakpoint may never be encountered and dBUG may never regain control Examples To pass over a subroutine call the command is step M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 3 35 Using the Monitor Debug Firmware SYMBOL Symbol Name Management SYMBOL Usage SYMBOL lt symb gt lt symb value lt r symb gt lt cllls gt The SYMBOL command adds or removes symbol names from the symbol table If only a symbol name is provided to the SYMBOL command then the symbol table is searched for a match on the symbol name and its information displayed The a option adds a symbol name and its value into the symbol table The r option removes a symbol name from the table The c option clears the entire symbol table the 1 option lists the content
70. f user configurable options within dBUG With no arguments SET displays the options and values available The SHOW command displays the settings in the appropriate format The standard set of options is listed below baud This is the baud rate for the first serial port on the board All communications between dBUG and the user occur using either 9600 or 19200 bps eight data bits no parity and one stop bit 8 N 1 with no flow control base This is the default radix for use in converting a number from its ASCII text representation to the internal quantity used by dBUG The default is hexadecimal base 16 and other choices are binary base 2 octal base 8 and decimal base 10 client This is the network Internet Protocol IP address of the board For network communications the client IP is required to be set to a unique value usually assigned by your local network administrator server This is the network IP address of the machine which contains files accessible via TFTP Your local network administrator will have this information and can assist in properly configuring a TFTP server if one does not exist gateway This is the network IP address of the gateway for your local subnetwork If the client IP address and server IP address are not on the same subnetwork then this option must be properly set Your local network administrator will have this information netmask This is the network address mask to determine if use of
71. he t option allows setting the initial trigger for the breakpoint If no address is specified in conjunction with the c or t options then all breakpoints are initialized to the values specified by the c or t option Examples set a breakpoint at the C function main symbol _main see symbol command the command is br _main When the target code is executed and the processor reaches main control will be returned to dBUG To set a breakpoint at the C function bench and set its trigger value to 3 the command is br bench t 3 When the target code is executed the processor must attempt to execute the function bench a third time before returning control back to dBUG To remove all breakpoints the command is br r M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 3 11 Using the Monitor Debug Firmware BS Block Search BS Usage BS lt width gt begin end data The BS command searches a contiguous block of memory starting at address begin stopping at address end for the value data lt Width gt modifies the size of the data that is compared during the search If no lt width gt is specified the default of word sized data is used The values for addresses begin and end may be absolute addresses specified as hexadecimal values or symbol names The value for data may be a symbol name or a number converted according to the user defined radix normally hexadecimal This command first aligns
72. he module to which they belong Use the IRD command without any parameters to get a list of all the valid modules Refer to the MCF5271 user s manual for more information on these modules and the registers they contain Example ird sim rsr M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 3 21 Using the Monitor Debug Firmware IRM Internal Register Modify IRM Usage IRM module register data This command modifies the contents of the internal registers of different modules inside the MCF5271 In the command line module refers to the module name where the register is located and register refers to the specific register to modify The data parameter specifies the new value to be written into the register Example To modify the TMR register of the first Timer module to the value 0x0021 the command is irm timerl tmr 0021 M5271EVB User s Manual Rev 1 1 3 22 Freescale Semiconductor Using the Monitor Debug Firmware HELP Help HELP Usage HELP lt command gt The HELP command displays a brief syntax of the commands available within dBUG In addition the address of where user code may start is given If command is provided then a brief listing of the syntax of the specified command is displayed Examples To obtain a listing of all the commands available within dBUG the command is help To obtain help on the breakpoint command the command is help br M5271EVB User s Manual Rev 1 1 Frees
73. he operation this command performs properly aligned memory accesses Examples To fill a memory block starting at 0x00020000 and ending at 0x00040000 with the value 0x1234 the command is bf 20000 40000 1234 To fill a block of memory starting at 0x00020000 and ending at 0x0004000 with a byte value of OxAB the command is bf b 20000 40000 AB To zero out the BSS section of the target code defined by the symbols bss start and bss end the command is bf bss start bss end 0 To fill a block of memory starting at 0x00020000 and ending at 0x00040000 with data that increments by 2 for each width the command is bf 20000 40000 02 M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 3 9 Using the Monitor Debug Firmware BM Block Move BM Usage BM begin end dest The BM command moves a contiguous block of memory starting at address begin and stopping at address end to the new address dest The BM command copies memory as a series of bytes and does not alter the original block The values for addresses begin end and dest may be absolute addresses specified as hexadecimal values or symbol names If the destination address overlaps the block defined by begin and end an error message is produced and the command exits Examples To copy a block of memory starting at 0x00040000 and ending at 0x00080000 to the location 0x00200000 the command is bm 40000 80000 200000 To copy the target code s data section defined
74. interface may be used by following the instructions provided in Appendix A 2 2 1 Unpacking Unpack the computer board from its shipping box Save the box for storing or reshipping Refer to the following list and verify that all the items are present You should have received e M5271EVB Single Board Computer e M3271EVB User s Manual this document One RS232 communication cable e One BDM Background Debug Mode wiggler cable e MCF5271UM ColdFire Integrated Microprocessor User Manual e ColdFire Programmers Reference Manual e A selection of Third Party Developer Tools and Literature NOTE Avoid touching the MOS devices Static discharge can and will damage these devices Once you have verified that all the items are present remove the board from its protective jacket and anti static bag Check the board for any visible damage Ensure that there are no broken damaged or missing parts If you have not received all the items listed above or they are damaged please contact Freescale Semiconductor immediately for contact details please see the front of this manual 2 2 2 Preparing the Board for Use The board as shipped is ready to be connected to a terminal and power supply without any need for modification Figure 2 5 shows the position of the jumpers and connectors M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 2 3 Initialization and Setup 2 2 3 Providing Power to the Board The EVB requires an ext
75. ion table are copied to address 0 0000 0000 in the SDRAM The Software Watchdog Timer is disabled the Bus Monitor is enabled and the internal timers are placed in a stop condition A memory map for the entire board can be seen in Table 1 2 If the external RCON pin is asserted SW4 ON during reset then various chip functions including the reset configuration pin functions after reset are configured according to the levels driven onto the external data pins See tables below on settings for reset configurations If the RCON pin is not asserted SW4 1 OFF during reset the chip configuration and the reset configuration pin functions after reset are determined by the RCON register or fixed defaults regardless of the states of the external data pins Table 1 4 SW4 1 RCON SW4 1 Reset Configuration OFF RCON not asserted Default Chip configuration or RCON register settings ON RCON is asserted Chip functions including the reset configuration after reset are configured according to the levels driven onto the external data pins Table 1 5 SW4 2 JTAG EN SW4 2 JTAG Enable OFF JTAG interface enabled ON BDM interface enabled Table 1 6 SW4 4 3 Encoded Clock Mode SW4 3 SW4 4 Clock Mode OFF OFF External clock mode PLL disabled OFF ON 1 1 PLL ON OFF Normal PLL mode with external clock reference ON ON Normal PLL mode w crystal oscillator reference M527
76. ip U9 1 3 3 Watchdog Timer The dBUG Firmware does NOT enable the watchdog timer on the MCF5271 1 3 4 Exception Sources The ColdFire family of processors can receive seven levels of interrupt priorities When the processor receives an interrupt which has a higher priority than the current interrupt mask in the status register it will perform an interrupt acknowledge cycle at the end of the current instruction cycle This interrupt acknowledge cycle indicates to the source of the interrupt that the request is being acknowledged and the device should provide the proper vector number to indicate where the service routine for this interrupt level is located If the source of interrupt is not capable of providing a vector its interrupt should be set up as an autovector interrupt which directs the processor to a predefined entry in the exception table refer to the MCF5271 User s Manual The processor goes to an exception routine via the exception table This table is stored in the Flash EEPROM The address of the table location is stored in the VBR The dBUG ROM monitor writes a copy of the exception table into the RAM starting at 00000000 To set an exception vector the user places the address of the exception handler in the appropriate vector in the vector table located at 00000000 and then points the VBR to 00000000 The MCF5271 microprocessor has seven external interrupt request lines IRQ 7 1 The interrupt controller is capable of pr
77. isplay starts at the address begin If no beginning address is provided the MD command uses the last address that was displayed If no ending address is provided then MD will display memory up to an address that is 128 beyond the starting address This command first aligns the starting address for the data access size and then increments the address accordingly during the operation Thus for the duration of the operation this command performs properly aligned memory accesses Examples To display memory at address 0x00400000 the command is md 400000 To display memory in the data section defined by the symbols data start and data end the command is md data start To display a range of bytes from 0x00040000 to 0x00050000 the command is md b 40000 50000 To display a range of 32 bit values starting at 0 00040000 and ending at 0x00050000 md 1 40000 50000 M5271EVB User s Manual Rev 1 1 3 26 Freescale Semiconductor Using the Monitor Debug Firmware MM Memory Modify MM Usage MM lt width gt addr lt data gt The MM command modifies memory at the address addr The value for addr may be an absolute address specified as a hexadecimal value or a symbol name Width specifies the size of the data that is modified If no lt width gt is specified the default of word sized data is used The value for data may be a symbol name or a number converted according to the user defined radix normally hexadecimal If a value fo
78. k Downloads The dBUG module has the ability to perform downloads over an Ethernet network using the Trivial File Transfer Protocol TFTP NOTE this requires a TFTP server to be running on the host attached to the board Prior to using this feature several parameters are required for network downloads to occur The information that is required and the steps for configuring dBUG are described below A 1 Required Network Parameters For performing network downloads dBUG needs 6 parameters 4 are network related and 2 are download related The parameters are listed below with the dBUG designation following in parenthesis All computers connected to an Ethernet network running the IP protocol need 3 network specific parameters These parameters are Internet Protocol IP address for the computer client IP IP address of the Gateway for non local traffic gateway IP and Network netmask for flagging traffic as local or non local netmask In addition the dBUG network download command requires the following three parameters IP address of the TFTP server server IP Name of the file to download filename Type of the file to download filetype of S record COFF ELF or Image Your local system administrator can assign a unique IP address for the board and also provide you the IP addresses of the gateway netmask and TFTP server Fill out the lines below with this information Client IP ___ ___ ___ of
79. l 8 aT igi 29 en lt gt loela lo tela 10 150 z Y E Eg p 9 199091 002 12 129 9 ezg GOAL 9451 595 8100 8 dg ax mass ISS 3859 gt faifai fa g 8 02 4 29 ERE BRS od 4 8 8366 28 8 lt gt 769 B 2385 05154 loelvivaa 7 B Bene 5 i 08 Jald Md TUSSA TASSA TASSA REECE EEESEBPeERBREEEERE KSKRBREBBE OSLNAD LZ S40W 390001
80. lection iius RR xa ys 1 11 1 10 1 17 14 _ 1 18 jr LIP 1 19 QC Cam M rp rrr 1 20 1 21 ee LED 2 5 Table 2 2 Pin Assignment for Female Terminal Connector 2 6 Table 3 1 dBUG Command 3 5 M T1EVB BOM uus au WATERS T C 1 M5271EVB User s Manual Rev 1 1 Freescale Semiconductor ix List of Tables M5271EVB User s Manual Rev 1 1 Freescale Semiconductor Chapter 1 M5271EVB Introduction This document details the setup and configuration of the ColdFire M5271 EVB evaluation board hereafter referred to as the EVB The EVB is intended to provide a mechanism for easy customer evaluation of the MCF5270 and MCF5271 ColdFire microprocessors and to facilitate hardware and software development The EVB can be used by software and hardware developers to test programs tools or circuits without having to develop a complete microprocessor system themselves All special features of the MCF5270 and 5271 are supported The heart of the evaluation board is the MCF5271 the MCF5270 has a subset of the MCF5271 specification and can therefore be fully emulated using the MCF5271 device Table 1 1 details the two devices Table 1 1 M5270 71 Product Family
81. mily Programmer s Reference Manual for details on the S Record format If offset is provided then the destination address of each S record is adjusted by offset The DL command checks the destination download address for validity If the destination is an address outside the defined user space then an error message is displayed and downloading aborted If the S record file contains the entry point address then the program counter is set to reflect this address Examples To download an S record file through the serial port the command is di To download an S record file through the serial port and add an offset to the destination address of 0x40 the command is di 0x40 M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 3 15 Using the Monitor Debug Firmware DLDBUG Download dBUG DLDBUG Usage DL lt offset gt The DLDBUG command is used to update the dBUG image in Flash It erases the Flash sectors containing the dBUG image downloads a new dBUG image in S record format obtained from the console and programs the new dBUG image into Flash When the DLDBUG command is issued dBUG will prompt the user for verification before any actions are taken If the the command is affirmed the Flash is erased and the user is prompted to begin sending the new dBUG S record file The file should be sent as a text file with no special transfer protocol Use this command with extreme caution as any error can render dBUG useless
82. minal Connector DB9 Pin Function Data Carrier Detect Output shorted to pins 4 and 6 Receive Data Output from board receive refers to terminal side Transmit Data Input to board transmit refers to terminal side Data Terminal Ready Input shorted to pin 1 and 6 Signal Ground Data Set Ready Output shorted to pins 1 and 4 Request to Send Input Clear to send Output BR wy Pv Not connected Figure 2 5 on the next page shows the jumper locations for the board M5271EVB User s Manual Rev 1 1 2 6 Freescale Semiconductor Initialization and Setup E mmm 5 m e HT T ii z HH ma imi a 5 mm o g m e 1 I a __ 2 B 3 TTT mi E T 2 m 55 F P E PH gp ees cx fH a MA 1000000000000 m T L HEHH e mu meeeeeeeeeee xd
83. nce in which case the user at his her own expense will be required to correct the interference Table of Contents Chapter 1 M5271EVB Introduction Ll ba ade ET dd RE Edda ll Memo 4o o 95569 eo 0 orem ______ Pi RSS Lor Re SRAM ee ee Lee 19 Map uwued xsdcco deba S OX EC BRE 48 12b Reset vodor Locos o EASIER AE 55255455 5 5945 55 5568 ____________ _ L3l 1 3 2 2 22 65 52 5544 4 132 TUNE on ah 443 93 a a eld do Loo TA GOl oo tea ld Oman E Re 1461 Ro aee o d odo e CR Lc UV Pie DIT 62 cee ns tt ese DEF ERRAT 123 BDNUTIAC do gos do REESE 60256445595 60545688500 Se Ed gd ed TICE r 15 Co nectors and User gh LXI gt 2 22525222422 425 estem ted dd ias L3 2 RRC SI a scies ortae mach lod d 1 155
84. o display the decimal and binary equivalent of 0x1234 the command is dc 0x1234 To display the hexadecimal and binary equivalent of 1234 the command is dc 1234 M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 3 13 Using the Monitor Debug Firmware DI Disassemble DI Usage DI lt addr gt The DI command disassembles target code pointed to by addr The value for addr may be an absolute address specified as a hexadecimal value or a symbol name Wherever possible the disassembler will use information from the symbol table to produce a more meaningful disassembly This is especially useful for branch target addresses and subroutine calls The DI command attempts to track the address of the last disassembled opcode If no address is provided to the DI command then the DI command uses the address of the last opcode that was disassembled The DI command is repeatable Examples To disassemble code that starts at 0x00040000 the command is di 40000 To disassemble code of the C function main the command is di main M5271EVB User s Manual Rev 1 1 3 14 Freescale Semiconductor Using the Monitor Debug Firmware DL Download Console DL Usage DL lt offset gt The DL command performs an S record download of data obtained from the console typically a serial port The value for offset is converted according to the user defined radix normally hexadecimal Please reference the ColdFire Microprocessor Fa
85. oad and used by dBUG Only global symbols are kept in dBUG The dBUG symbol table is not cleared prior to downloading so it is the user s responsibility to clear the symbol table as necessary prior to downloading If an entry point address is specified in the S record COFF or ELF file the program counter is set accordingly Examples To download S record file with the name srec out the command is dn s srec out To download file with the name coff out the command is dn c coff out To download a file using the default filetype with the name bench out the command is dn bench out To download a file using the default filename and filetype the command is dn M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 3 17 Using the Monitor Debug Firmware FL Flash Utilities FL Info Usage FL Erase Usage FL erase addr bytes Write Usage FL write dest src bytes The FL command provides a set of flash utilities that will display information about the Flash devices on the EVB erase a specified range of Flash or erase and program a specified range of Flash When issued with no parameters the FL command will display usage information as well as device specific information for the Flash devices available This information includes size address range protected range access size and sector boundaries When the erase command is given the FL command will attempt to erase the number of bytes specified on
86. or w mag 24 4 J3 J4 J5 J6 AMP 177983 2 60 SMT Recpetacle 25 1 J7 AMP 1053378 1 RF SMB V External Clock conn 26 1 J8 Molex 22 10 2101 Conn 1x10 1 male header 27 1 J9 Molex 22 10 2041 Conn 1x4 1 male header 28 1 L1 1210 103J API Delevan External 10uH inductor 29 2 L2 L3 SIEMENS B82111 B C24 25uH Inductors 30 1 P1 Switchcraft RAPC722 power jack 2 1mm 31 4 P2 Augat 25V 02 2 way bare wire power connector 32 3 P3 P4 P5 AMP 747844 3 DB9 Female 33 1 P2 Switchcraft RAPC722 PSU barrel connector 34 18 RP1 RP2 RP8 RP9 RP10 RP11 Philips 4x4 7 SMT 0603 RP12 RP14 RP15 RP16 RP17 RP20 RP21 RP22 RP23 RP24 RP25 RP26 35 1 RP3 Philips 4x22 SMT 0603 36 1 RP4 RP5 RP6 RP7 Philips 4x51 SMT 0603 37 1 RP13 Philips 4x10K SMT 0603 38 2 RP18 RP19 Philips 4x10 SMT 0603 39 3 R1 R2 R23 Philips SM R 0805 22 ohm resistor 40 3 R3 R10 R25 Philips SM R 0805 10K ohm resistor 4 4 R4 R5 R6 R7 Philips SM R 0805 49 9 1 ohm resistor 42 5 R8 R15 R16 R17 R18 Philips SM R 0805 4 7K ohm resistor M5271EVB User s Manual Rev 1 1 C 2 Freescale Semiconductor Table C 1 M5271EVB BOM Sheet 3 of 3 M5271EVB BOM Item Qty Reference Part Function 43 1 RQ Philips SM R 0805 6 49K 1 ohm resistor 44 4 R11 R12 R13 R14 Philips SM R 0805 220 ohm resistor 45 3 R19 R24 R27 Philips SM R 0805 270 ohm resistor 46 1 R20 Philips SM R 0805 560 ohm resistor 47 1 R21 Philips SM R 0805 0 ohm resistor 48 1
87. ority mask in the SR to the highest level level 7 Next the VBR is initialized to zero 0x00000000 The control registers specifying the operation of any memories e g cache and or RAM modules connected directly to the processor are disabled Once the processor is granted the bus it then performs two longword read bus cycles The first longword at address 0 is loaded into the stack pointer and the second longword at address 4 is loaded into the program counter After the initial instruction is fetched from memory program execution begins at the address in the PC If an access error or address error occurs before the first instruction is executed the processor enters the fault on fault halted state The Memory that the MCF5271 accesses at address 0 15 determined at reset by sampling D 20 19 Table 1 3 D 20 19 External Boot Chip Select Configuration D 20 19 Boot Device Data Port Size 00 External 32 bit 01 External 16 bit 10 External 8 bit 11 External 32 bit M5271EVB User s Manual Rev 1 1 1 8 Freescale Semiconductor M5271EVB Introduction 1 3 Support Logic 1 3 1 Reset Logic Reset occurs during power on or via assertion of the signal RESET which causes the MCF5271 to reset RESET is triggered by the reset switch SW3 which resets the entire processor system The dBUG Firmware configures the MCF5271 microprocessor internal resources during initialization The contents of the except
88. ous routines within the dBUG to perform a special task and to return control to the dBUG This section describes the TRAP 15 handler and how it is used There are four TRAP 15 functions These are OUT CHAR IN CHAR CHAR PRESENT and EXIT TO 3 5 1 OUT CHAR This function function code 0x0013 sends a character which is in the lower 8 bits of D1 to the terminal Assembly example assume 41 contains the character move l 50013 d0 Selects the function TRAP 15 The character in dl is sent to terminal C example void board out char int ch If your C compiler produces a LINK UNLK pair for this routine then use the following code which takes this into account if 1 LINK a6 0 produced by C compiler asm move l 8 a6 d1 put ch into d1 asm move l 0 0013 40 select the function asm trap 15 make the call UNLK produced by C compiler else If C compiler does not produce a LINK UNLK pair the use the following code asm 1 4 sp d1 put ch into d1 asm move 1 0 0013 40 select the function asm trap 115 make the call endif M5271EVB User s Manual Rev 1 1 3 40 Freescale Semiconductor Using the Monitor Debug Firmware 3 5 2 IN_CHAR This function function code 0x0010 returns an input character from terminal to the caller The returned character is in D1 Assembly e
89. oviding up to 63 interrupt sources These sources are External interrupt signals IRQ 7 1 EPORT Software watchdog timer module Timer modules e UART modules 0 1 and 2 module DMA module e QSPI module FEC module PIT Security module M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 1 11 M5271EVB Introduction All external interrupt inputs are edge sensitive The active level is programmable An interrupt request must be held valid until an IACK cycle starts to guarantee correct processing Each interrupt input can have it s priority programmed by setting the xIPL 2 0 bits in the Interrupt Control Registers No interrupt sources should have the same level and priority as another Programming two interrupt sources with the same level and priority can result in undefined operation The M5271EVB hardware uses IRQ7 to support the ABORT function using the ABORT switch SW2 This switch is used to force an interrupt level 7 priority 3 if the user s program execution should be aborted without issuing a RESET refer to Chapter 2 for more information on ABORT Since the ABORT switch is not capable of generating a vector in response to a level seven interrupt acknowledge from the processor the dBUG programs this interrupt request for autovector mode Refer to MCF5271 User s Manual for more information about the interrupt controller 1 3 5 TA Generation The processor starts a bus cycle by a
90. r data is provided then the MM command immediately sets the contents of addr to data If no value for data is provided then the MM command enters into a loop The loop obtains a value for data sets the contents of the current address to data increments the address according to the data size and repeats The loop terminates when an invalid entry for the data value is entered 1 e a period This command first aligns the starting address for the data access size and then increments the address accordingly during the operation Thus for the duration of the operation this command performs properly aligned memory accesses Examples To set the byte at location 0x00010000 to be OxFF the command is mm b 10000 FF To interactively modify memory beginning at 0x00010000 the command is mm 10000 M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 3 27 Using the Monitor Debug Firmware MMAP Usage mmap Memory Map Display MMAP This command displays the memory map information for the M5271EVB evaluation board The information displayed includes the type of memory the start and end address of the memory and the port size of the memory The display also includes information on how the Chip selects are used on the board and which regions of memory are reserved for dBUG use protected Here is an example of the output from this command Type SDRAM SRAM Int ASRAM Ext IPSBAR Flash Ext Protected Start
91. r peripheral chip select lines for control of up to 15 devices Baud rates from 147 1 Kbps to 18 75 Mbps at 75MHz Programmable delays before and after transfers Programmable QSPI clock phase and polarity Supports wrap around mode for continuous transfers Please see the MCF5271 User s Manual for more detail The QSPI signals from the MCF5271 device are brought out to expansion connector J8 M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 1 15 M5271EVB Introduction 1 5 Connectors and User Components 1 5 1 Daughter Card Expansion Connectors Four 60 way SMT connectors J7 J8 J9 and J10 provide access to all MCF5271 signals These connectors are ideal for interfacing to a custom daughter card or for simple probing of processor signals Below is a pinout description of these connectors Table 1 12 J3 Pin Signal Pin Signal 1 45V 45V 3 3 3V 3 3V 5 3 3V 3 3V 7 GND GND 9 ERXDO 10 NC 11 ETXD1 12 NC 13 ETXD2 14 NC 15 ETXCLK 16 NC 17 ERXER 18 NC 19 ETXEN 20 NC 21 ETXER 22 NC 23 ETXEN 24 GND 25 ETXDO 26 EMDIO 27 U2CTS 28 EMDC 29 I2C_SCL 30 l2C SDA 31 QSPI SCK 32 QSPI DIN 33 BS3 34 QSPI DOUT 35 BS2 36 QSPI CSO 37 BS1 38 SD SCKE 39 BSO 40 NC 41 U2RTS 42 U2RXD 43 QSPI PCS1 44 U1CTS 45 U1RTS 46 NC 47 U1RXD 48 U2TXD 49 U1TXD 50 CS2 51
92. rs were provided An additional function called the System Call allows the user program to utilize various routines within dBUG The System Call is discussed at the end of this chapter M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 3 1 Using the Monitor Debug Firmware The operational mode of dBUG is demonstrated in Figure 3 1 After the system initialization the board waits for a command line input from the user terminal When a proper command is entered the operation continues in one of the two basic modes If the command causes execution of the user program the dBUG firmware may or may not be re entered at the discretion of the user s program For the alternate case the command will be executed under control of the dBUG firmware and after command completion the system returns to command entry mode During command execution additional user input may be required depending on the command function For commands that accept an optional width to modify the memory access size the valid values are e 8 bit byte access W 16 bit word access e L 32 bit long access When no width option is provided the default width is W 16 bit The core ColdFire register set is maintained by dBUG These are listed below e A0 A7 D0 D7 PC e SR All control registers on ColdFire are not readable by the supervisor programming model and thus not accessible via dBUG User code may change these registers b
93. s Hash 64 bit hash check of individual unicast addresses Hash 64 bit hash check of group multicast addresses Promiscuous mode M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 1 13 M5271EVB Introduction For more details see the MCF5271 Users manual The on board ROM MONITOR is programmed to allow a user to download files from a network to memory in different formats The current compiler formats supported are S Record COFF ELF or Image 1 4 3 BDM JTAG Port The MCF5271 processor has a Background Debug Mode BDM port which supports Real Time Trace and Real Time Debug The signals which are necessary for debug are available at connector J1 Figure 1 4 shows the J1 Connector pin assignment Developer Reserved 6 4 2 gt BKPT GND gt DSCLK GND gt 5 6 only for JTAG RESET lt _ 7 4 gt DSI or Pad Voltage gt 9 10 7 050 GND gt 11 lt PST3 2 gt MC 5 1 13 14 PST0 gt 15 16 F DDATA3 DDATA2 717 18 8 7 DDATA1 DDATAO 19 20 lt OND Freescale Reserved 5 22 lt gt Freescale Reserved GND 23 PSTCLK Core Voltage 25 26 gt Figure 1 4 J1 BDM Connector Pin Assignment The BDM connector can also be used to interface to JTAG signals On reset JTAG signal selects between multiple
94. s a hexadecimal value or a symbol name The value for stmt must be valid assembler mnemonics for the CPU For the interactive mode the user enters the command and the optional lt addr gt If the address is not specified then the last address is used The memory contents at the address are disassembled and the user prompted for the new assembly If valid the new assembly is placed into memory and the address incremented accordingly If the assembly is not valid then memory is not modified and an error message produced In either case memory is disassembled and the process repeats The user may press the lt Enter gt or lt Return gt key to accept the current memory contents and skip to the next instruction or a enter period to quit the interactive mode In the non interactive mode the user specifies the address and the assembly statement on the command line The statement is then assembled and if valid placed into memory otherwise an error message is produced Examples To place a NOP instruction at address 0x00010000 the command is asm 10000 nop To interactively assemble memory at address 0x00400000 the command is asm 400000 M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 3 7 Using the Monitor Debug Firmware BC Block Compare BC Usage addr1 addr2 length The BC command compares two contiguous blocks of memory on a byte by byte basis The first block starts at address addrl and the second starts
95. s of the symbol table and the s option displays usage information for the symbol table Symbol names contained in the symbol table are truncated to 31 characters Any symbol table lookups either by the SYMBOL command or by the disassembler will only use the first 31 characters Symbol names are case sensitive Symbols can also be added to the symbol table via in line assembly labels and ethernet downloads of ELF formatted files Examples To define the symbol main to have the value 0x00040000 the command is symbol a main 40000 To remove the symbol junk from the table the command is symbol r junk To see how full the symbol table is the command is symbol s To display the symbol table the command is symbol 1 M5271EVB User s Manual Rev 1 1 3 36 Freescale Semiconductor Using the Monitor Debug Firmware TRACE Trace Into TRACE Usage TRACE lt num gt The TRACE command allows single instruction execution If num is provided then num instructions are executed before control is handed back to dBUG The value for num is a decimal number The TRACE command sets bits in the processors supervisor registers to achieve single instruction execution and the target code executed Control returns to dBUG after a single instruction execution of the target code This command is repeatable Examples To trace one instruction at the program counter the command is tr To trace 20 instructions from the progr
96. sserting CSx with the other control signals The processor then waits for a transfer acknowledgment TA either from within Auto acknowledge AA mode or from the externally addressed device before it can complete the bus cycle TA is used to indicate the completion of the bus cycle It also allows devices with different access times to communicate with the processor properly asynchronously The MCF5271 processor as part of the chip select logic has a built in mechanism to generate TA for all external devices which do not have the capability to generate this signal For example the Flash ROM cannot generate a TA signal The chip select logic is programmed by the dBUG ROM Monitor to generate TA internally after a pre programmed number of wait states In order to support future expansion of the M5271EVB the TA input of the processor is also connected to the Processor Expansion Bus This allows any expansion boards to assert this line to provide a TA signal to the processor On the expansion boards this signal should be generated through an open collector buffer with no pull up resistor a pull up resistor is included on this board All TA signals from expansion boards should be connected to this line 1 3 6 User s Program JP6 on the 16Mbit FLASH U10 or JP7 if using 32Mbit FLASH U11 allows users to test code from boot POR without having to overwrite the ROM Monitor When the jumper is set between pins 1 and 2 the behavior of the system is normal
97. t is available for the EVB user to upgrade this device to a 512K x 32 page mode FLASH memory U11 doubling the memory size to 4Mbytes Either U10 OR U11 should be fitted on the board both devices cannot be populated at the same time Refer to the specific device data sheet and sample software provided for configuring the FLASH memory Users should note that the debug monitor firmware is installed on this flash device Development tools or user application programs may erase or corrupt the debug monitor If the debug monitor becomes corrupted and it s operation is desired the firmware must be reprogrammed into the flash by using a development tool through the BDM port Users should use caution to avoid this situation The M5271EVB dBUG debugger monitor firmware is programmed into the lower sectors of Flash OxFFEO 0000 to OxFFE3 FFFF for 2Mbytes of FLASH or OxFFCO 0000 to FFFF for 4 Mbytes of FLASH When 011 is fitted the EVB jumper 5 JP5 provides an alternative hardware mechanism for write protection This feature is not available when U10 is populated M5271EVB User s Manual Rev 1 1 1 6 Freescale Semiconductor M5271EVB Introduction 1 2 2 SDRAM The EVB is populated with 16 Mbytes of SDRAM This is done with two devices Micron MT48LC4M16A2TG each with a 16 bit data bus Each device is organized as 1 Meg x 16 x 4 banks with a 16 bit data bus One device stores the upper 16 bit word and the other the lower 16 bi
98. t word of the MCF5271 32 bit data bus 1 2 3 ASRAM The EVB has a footprint for two 512K x 16 Asynchronous SRAM devices Cypress Semiconductor CY7C1041CV3310ZC These memory devices U1 and U2 may be populated by the user for benchmarking purposes Also see Section 1 2 5 M5271EVB Memory Map 1 2 4 Internal SRAM The MCF5271 processor has 64 KBytes of internal SRAM memory which may be used as data or instruction memory This memory is mapped to 0x2000_0000 and configured as data space but is not used by the dBUG monitor except during system initialization After system initialization is complete the internal memory is available to the user The memory is relocatable to any 32 KByte boundary within the processor s four gigabyte address space 1 2 5 M5271EVB Memory Map Interface signals to support the interface to external memory and peripheral devices are generated by the memory controller The MCF5271 supports 8 external chip selects CS 1 0 are used with external memories and CS 7 2 are easily accessible to users via the daughter card expansion connectors CS 0 also functions as the global boot chip select for booting out of external flash Since the MCF5271 chip selects are fully programmable the memory banks may be located at any 64 KByte boundary within the processor s four gigabyte address space The default memory map for this board as configured by the Debug Monitor located in the external FLASH bank can
99. tem A hard reset and voltage sense controller U17 is used to produce an active low power on RESET signal The reset switch SW3 is fed into U17 which generates the signal which is fed to the MCF5271 reset RESET The RESET signal is an open collector signal and so be wire OR ed with other reset signals from additional peripherals On the EVB RESET is wire OR d with the BDM reset signal and there is a reset signal brought out to the expansion connectors for use with user hardware dBUG configures the MCF5271 microprocessor internal resources during initialization The instruction cache is invalidated and disabled The Vector Base Register VBR contains an address which initially points to the Flash memory The contents of the exception table are written to address 00000000 in the SDRAM The Software Watchdog Timer is disabled the Bus Monitor is enabled and the internal timers are placed in a stop condition The interrupt controller registers are initialized with unique interrupt level priority pairs 1 5 3 User LEDs There are eight LEDs available to the user Each of these LEDs are pulled to 3 3V through a 10 ohm resistor and can be illuminated by driving a logic 0 on the appropriate signal to sink the current Each of these signals can be disconnected from it s associated LED with a jumper Table 1 16 details which MCF5271 signal is associated with which LED Table 1 16 User LEDs L
100. tion Refer to the MCF5271 User s Manual for programming the UART s and their register maps 1 4 2 10 100T Ethernet Port The MCF5271 device performs the full set of IEEE 802 3 Ethernet CSMA CD media access control and channel interface functions The MCF5271 Ethernet Controller requires an external interface adaptor and transceiver function to complete the interface to the ethernet media The MCF5271 Ethernet module also features an integrated fast 100 Ethernet media access controller MAC The Fast Ethernet controller FEC incorporates the following features e Support for three different Ethernet physical interfaces 100 Mbps IEEE 802 3 MII 10 Mbps IEEE 802 3 MII 10 Mbps 7 wire interface industry standard TEEE 802 3 full duplex flow control e Programmable max frame length supports IEEE 802 1 VLAN tags and priority e Support for full duplex operation 200Mbps throughput with a minimum system clock rate of 50MHz Support for half duplex operation 100Mbps throughput with a minimum system clock rate of 25 MHz e Retransmission from transmit FIFO following a collision no processor bus utilization e Automatic internal flushing of the receive FIFO for runts collision fragments and address recognition rejects no processor bus utilization Address recognition Frames with broadcast address may be always accepted or always rejected Exact match for single 48 bit individual unicast addres
101. ut caution must be exercised as changes may render dBUG inoperable A reference to SP stack pointer actually refers to general purpose address register seven A7 3 2 Operational Procedure System power up and initial operation are described in detail in Chapter 2 Initialization and Setup This information is repeated here for convenience and to prevent possible damage 3 2 1 System Power up Be sure the power supply is connected properly prior to power up Make sure the terminal is connected to TERMINAL P3 connector Turn power on to the board Figure 3 1 shows the dBUG operational mode M5271EVB User s Manual Rev 1 1 3 2 Freescale Semiconductor Using the Monitor Debug Firmware INITIALIZE COMMAND LINE INPUT FROM TERMINAL EXECUTE COMMAND FUNCTION A YES DOES COMMAND LINE CAUSE USER PROGRAM EXECUTION JUMP TO USER PROGRAM AND BEGIN EXECUTION Figure 3 1 Flow Diagram of dBUG Operational Mode M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 3 3 Using the Monitor Debug Firmware 3 2 2 System Initialization After the EVB is powered up and initialized the terminal will display Hard Reset DRAM Size 16M ColdFire MCF5271 on the M5271EVB Firmware vXX XX XX Build X on XXXX Copyright 1995 2004 Freescale Inc All Rights Reserved Enter help for help dBUG gt Other means can be used to re initialize the M5271EVB firmware Thes
102. utod 3593 XMS pejouep TIY szedunl IV Xp peqouep IV peqeqs 4080 AWS sdeo peaeas 5080 AWS DOD 4nr 0 sdeo jnourd gt Hdd 10 o qneduioo suoroouuoo uorsuedxo peunsuo 2 serg Ising WOT ejerodzoour oj 98ed sep POPON Hdd 70490 TI Od Jo uo WYYSY poved pue 1o ojuo9 46 Hdd RW ZI ISLA EUOISIAOIq 01 S U9UIUIOD lougiso q q A UOISTADY LHHHS SHOVAWHINI O I TWIYMHS cI IHHHS WWNGS LHAHS DNIXDOTD ANW NOTLVANDIANOD LASHA LINN NHMOd 6 HSV Id 8 SHOLOHNNOO NOISNVdXH L 9 y 509 WWVUHSV SLOHNNOOHJLNI IVOIHOVHHIH JU9JUOD JO AQI
103. xample 1 50010 0 Select the function trap 15 Make the call the input character is in dl C example int board_in_char void asm move l 0 0010 40 select the function asm trap 15 make the call asm 1 put the character in do 3 5 3 CHAR_PRESENT This function function code 0x0014 checks if an input character is present to receive A value of zero is returned in DO when no character is present A non zero value in DO means a character is present Assembly example 1 50014 0 Select the function trap 15 Make the call 40 contains the response yes no C example int board char present void asm move l 0 0014 90 select the function asm trap 15 make the call M5271EVB User s Manual Rev 1 1 Freescale Semiconductor 3 41 Using the Monitor Debug Firmware 3 5 4 EXIT_TO_dBUG This function function code 0x0000 transfers the control back to the dBUG by terminating the user code The register context are preserved Assembly example move 1 50000 d0 Select the function trap 15 Make the call exit to dBUG C example void board exit to dbug void asm move 1 0x0000 d0 select the function asm trap 15 exit and transfer to dBUG M5271EVB User s Manual Rev 1 1 3 42 Freescale Semiconductor Appendix A Configuring dBUG for Networ
104. xed debug module and JTAG signals See Table 1 5 M5271EVB User s Manual Rev 1 1 1 14 Freescale Semiconductor 1 4 4 M5271EVB Introduction MCF5271 s module includes the following features Compatibility with the bus standard version 2 1 Multi master operation Software programmable for one of 50 different clock frequencies Software selectable acknowledge bit Interrupt driven byte by byte data transfer Arbitration lost interrupt with automatic mode switching from master to slave Calling address identification interrupt Start and stop signal generation and detection Repeated start signal generation Acknowledge bit generation and detection Bus busy detection Please see the MCF5271 User s Manual for more detail The signals from the MCF5271 device are brought out to expansion connector J9 1 4 5 QSPI The QSPI Queued Serial Peripheral Interface module provides a serial peripheral interface with queued transfer capability It will support up to 16 stacked transfers at one time minimizing CPU intervention between transfers Transfer RAMs in the QSPI are indirectly accessible using address and data registers Functionality is very similar but not identical to the QSPI portion of the QSM Queued Serial Module implemented in the MC68332 processor Programmable queue to support up to 16 transfers without user intervention Supports transfer sizes of 8 to 16 bits in 1 bit increments Fou

Download Pdf Manuals

image

Related Search

Related Contents

GT-10000+ - User Manual - Epson America, Inc.  Page 1 Page 2 〇LED光源について く4〇〇タイプの場合) ~LED素子は  Instruction manual Manuale di istruzioni  Installation/Care/Use Manual Manual de Instalación/Cuidado  ASRock Z77 WS Quick Start Manual  Samsung 23 collu FHD monitors ar īpaši kvalitatīvu attēlu Lietotāja rokasgrāmata  SEC-HD - Phason Controls  

Copyright © All rights reserved.
Failed to retrieve file