Home
M5235EVB User`s Manual
Contents
1. J s eunoog mm x pneum 1ojp uuoo 1 poou3 siosu s T ud vz eq uo vonoung am mom uepucoas Oido Buen 0031 9951 595 BOWN wu 2 10 511 cod 7 lt 300 9r 0502 ueejoswlIs y ay E nee Qulinelep _ YO 0ON3SH eond enon OONISH wu _ _ Mese ud azis uo CORTOS oly Aiepucoes oido 165 aee Ls mo T var a orar d bed 29 w D 258 anzms ain uoz sud D e oes D ros aqssod se ssy 88 Wd INMd P I m T se 889 P aA iq wr 4 34019 pue 480 ald SNLWLS LO WMd 18 Wid Wd 9 19916 a5 82d 1 pes P Honda vu eo TIROndI E az L E 880 289 F eo1sins ZIHODdI 689 segin T ud va uo vopouny Arepucoes oido Bus 9n y Ono _ ms S8 WMd oz Dir v sv
2. id Age 3002 2002 _ 5210 T 00L an9a 531 te m Wr 01531 x ZA siojoedeo Dujdnooeg anO JUL JnLO 4 anyo dup anyo x yv 1 Idoy 9 19 SZ O PLIO 9919 899 20 068 9 po 25 15538 H inoisu r NE C en aay Gaia s gear gg eee LEE Lodet YOYI 168 2 CONT uneyep 30 3 10 910 u p uod sudueamea ABER ee PONO E I Zor OF ano 199 epou ISOH L od Buts ji LE dr ot ENG z sud Ueanyeq 106 agar LIN31S0H Mor sar AOL 3nOL 3929 34 3022 919 EOL h 28 1 g S wa T TI yeuueyp 1ed 009 Ser 22 7591 10 2 pejqeue ywa s Bumes ynejeq seues gsn E 920201 eea 6 2597 No dio esr Agee 19 sia NO Wig x z gu yjano ENS fy T a 440 NO 094 A 5 g91 te r 0 z lt t NI void be zy 19 za 340 NO 8Sdr Bo i 1 g vno lt ie NG Aem or vn we p Old 3419 341 SE oa se exe sBunjeg jeduinr 1919 0919 ae pow YNG 10 Old eyeedo 2 E Age lt POAL AGA anwadsns a q TT sje dnwadsns H 94 9 pamByuco eq uio Zac idi NN
3. sg ST IV or sr 0587 L S2 as VH ds IVO _ds 3M Gs 258 lo elsa anyo anyo anyo anyo 4810 9 seio velo T Dod z s M5235EVB User s Manual Rev 2 Freescale Semiconductor 90 SL 71 Igor sn ny opui ogeozHos Jequnn GOAL 951 945 BOON Jopswoo peog nan pyd 00 _ 91 osseood pue jeeqdued eq ug wi q eq IW jet eben fouenbau pasos AS o wonoouuoo J ueiopn Ag 9 XEZGIOW e uo 814 921 9U 31ON a6joeuuco 1 0 460 Irgoun pue 98 pqe1 31ON suos Fd ALO AVE 1 1404
4. Pin Signal Pin Signal 35 BS2 36 QSPI_PCSO 37 BS1 38 SD_SCKE 39 BSO 40 CAN1RX 41 U2RTS 42 U2RXD 43 QSPI_PCS1 44 U1CTS 45 U1RTS 46 CAN1TX 47 U1RXD 48 U2TXD 49 U1TXD 50 CS2 51 CS3 52 CS7 53 CS6 54 CS5 55 CS1 56 CS0 57 CS4 58 A23 59 GND 60 GND Table 20 J8 Pin Signal Pin Signal 1 5V 2 1 5V 3 3 3V 4 3 3V 5 TPUCH8 6 TPUCH7 7 TPUCH10 8 TPUCH9 9 TPUCH25 10 TPUCH12 11 TPUCH27 12 TPUCH11 13 TPUCH26 14 TPUCH14 15 TPUCH29 16 TPUCH13 17 TPUCH28 18 TCRCLK 19 TPUCH31 20 TPUCH15 21 TPUCH30 22 GND 23 GND 24 U0CTS 25 UORXD 26 DTOUTO 27 DTINO 28 UOTXD 29 UORTS 30 GND 31 CLKMODO 32 9 3V 33 CLKMOD1 34 GND M5235EVB User s Manual Rev 2 22 Freescale Semiconductor Table 20 J8 continued Pin Signal Pin Signal 35 GND 36 D28 37 D30 38 D29 39 D31 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 Table 21 J9 Pin Signal Pin Signal 1 5V 2 1 5V 3 3 3V 4 3 3V 5 3 3V 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 A7 27 A6 28 A4 29 A5 30 GND 31 A2 32 A0 33 A3 34 A1 M5235EVB User s Manual Rev 2 Freescale Semiconductor
5. of o o o o of mi Rune pue 3110N an o E ro 9 519 910 sso velo acer aee POW LON 9 9 Bunos HEB or sioz zo Mo e suy E azn ozn awo ao 1919 ano Lid 5 Las ANT T T 91 s I Sho Be o siw zdro si evar aun Qan aro sno rity TL mo 17021 ve a E 5 o p 9 siooy zo lt gt sao avar oon Oxon ao ais o ino TL me frio T j L 5235 User s Manual Rev 2 444 Freescale Semiconductor L z s 9L Jo 2002 OL 1SnBnv Kepu asnoseozHos g Jequiny ez GOAL 9451 SdS
6. 79 stodumr 8ed gs uosiopuy T Some Lz d I Tu S AXLIQOHIO 9NIMOO IO NOILVHODIJNOO LS TI LINN ATddNS WAMOd S BUBIS PUY IY uo siolsts uwop IInd Jo uonippe pue TI IHHHS AHOWSN HSV L4 10joouuoo cp IY uo 5 5 315 Jo uoroo1o se qe uoren8ruoo uolu8IH 9194 01 1 SYOLOANNOD NOISNVdXa 19591 Jo 5 u 1osylis Surpnqour ojepdn 3 uosiopuy T vo unf cc 2 6 1 HOVAWHHINI NdLA siolsis or uwop IInd urqo yg 8 NOVAWHLNI LANYHHLA poppe pue 319 91 p op d r L 5 5ng8sd pue use 11q Z 4058 utd 06 10 11000 uosiepuy v0 0 9 9 IHHHS 049 XEZGSW uorstAo pue 1oqumu pred oneuroqos SIMONIN POPPY UOWSIH d RW 50 v S LTHHS SOVAWHHILNI NYO EUOISIAOIq uosiopuy T 994 cO 00 v 5353304 S d VIVI SSSHddV Sjuoumuo 19151591 aq eW LTHHS WVU UOHLULMOJUT TORAN SLOHSNNOOWSHLINI IVOIHOHVHMWHIH SJu9 uoo JO AQL uonen eA p XETSIN z r Y s M5235EVB User s Manual Rev 2 Freescale Semiconductor 76 n I z I D I Y I s z 202 OL Br lj si 9119945 yous 9 0 vas neous asn go aj tife
7. 36 be required to take adequate measures n 37 I 7 I 45 TRAP 15 isses z Anti static precautions must be adhered to when 5 Configuring dBUG for Network Downloads 73 using this product 5 1 Required Network Parameters 73 i m 5 2 Configuring dBUG Network Parameters 74 Attaching additional cables or wiring to this 5 3 Troubleshooting Network Problems 75 product or modifying the products operation 6 Schematics eese T6 7 Evaluation Board BOM ber Re 93 from the factory default as shipped may effect tts performance and also cause interference with os f I Freescale Semiconductor Inc 2007 All rights reserved reesca e semiconductor 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 interference in which case you at your own expense are required to
8. n z I 5 9i jo L ELI 400 snBriy Aepsent JMS 98019 god eq jo episdo uo ueeroexs UO Sage eseug eogyd eser ILON gt omaso gunenfpo opzoe o pagus wowa pageua apon sappy popooug OL apo sappy Papooug Sse ppy papou PON sso ppy Popoou pusan poneva rowo pzy slag 163150 18239 40 NO nr mam a O U onid sna fewod Bi 440 WezN ls9ldd 980 4d NO 440 NO esko uoreiedo Tid peposu 340 do a uogedo 40 NO oag 1008 8 popoou3 exploo 4931 9451 SdS 0010 LIMS NO 440 NO Tid kb NO 440 9 1540 popoouj S epow edo pepoou 9 gt OHLMS GUMS HO 40 ponosa 40 po mue 340 SPON pebon p pepoou3 SPON cares duOPSeppv pepoou3 AOOO popooug poW pepoou3 ae pow EINS MS apon SUMS SIMS poreus wean NOG 2 oera OVI 1 _ 225 ved soa poponug pon Sueiedo pepooua Spo pepooua uo do 0 oO duo No LNS 440 m isis gia Ss lt gt 89 A za 127 fa 15 100 SiO To EF 0 oa I 10 inorse iu
9. nF M5235EVB User s Manual Rev 2 Freescale Semiconductor 85 z EL 5 a leh la s g HH A Q 5 E 55 i 58 8 FE M 85 E 55 BE 3 2 Bs 8 8 i 55 ET e 8 zs gt KO LE ggl 25 a Af tM os 4 gl HE E W 55 l 22586 lolo lo olo lolo lo o 5 I didi 5133143 sr F200 zoa a o TH LET 00 B a szoa w7 59 159 woe 59 9200 368 Fp s sen d Stoo Po gi s n m tg 1 s 200 med T 8 oa sh 2099 53 zra E SI 8 mr 0100 sioa XT ioo 2 193 H iod on TET Si 8 5 SE E H ar sto oa HT ae 9 29 00 1g 8 al B 3 i 8 al gt
10. iM zr anossa ueanjoq subuspyoen PUBS 31ON ad 5 wals pe T on eza 10 0 G3oNnoa3a Me x Mee xv cv nee ox z th parayoos ud ANY B104 xnosau Sui Ma noka ste 5 5 Sor duudioojinofes enp HO1VTIIOSO mi z 1 1 vau jen x M5235EVB User s Manual Rev 2 89 Freescale Semiconductor z 9L p vL 100 1snBnv 9 Jequiny eas S 3Xezsw 031 451 649 Has PuoquiM 415091 79S6EAH uoeugul 130912956901 eqiuso 3Z 9LvoSyy Bunswes juudjoo god uues YUM SWYYAS 310N anor s vias e101 86 3391 X Wr peinByuoo si WWHGS uoe3 ezis 310N 0 62 005 II 4051 S12 v9LWrO TEP LN 1597 ayos as 1
11. p00 mue 40 440 ebowoorpeponu3 oo pepoxu epo diuo sseppy papoous BPOW papoou poli pepoous iiid LOTES oron So SNS FAM SLMS paqeuieopeudg 2 perugeoepeu OVI T _ 15 uod 100 pepcoug PON popova NO 1NS 40 E uote uonenyuoo Sur 59 5 vza E 120 tabs 7 020 120 ta r 900 oa Le Sid 130 1noisu Tre _ 100D payseuun ue o pajosuuoo aq Ta Na SVIT poou sofed soewayos uo suonoeuuco xod 10151501 ne pue dn IPd poloouuooun ON sueuodur pomado NS uopesoo spe l eqoud adoos jo uolp uuco Aseo Io ilaovono TORO Od ZLd1 9 bbe 011 Gell 99eki 31ON uojpesojo seuoyws s MG 104 Bumes 61 DOORS N3 Ove anoo 8638 4 HOA XEZG4OW IHL xen 7 A LOSHMOO Q3HO1Y 138 O1 STWNOIS 920 910 SHL MOTIV OL Cm v 2 ED 2N 30 SNid 3T8VN3 1 41 3HL JAPO 1381 5 451 9 sE 9 siz N 58 19 TVN IS 1 1 IHL 31ON INVIO NE aNnou aNnouo z E Ts aq KDE pz sar nee amenna Henon sa ss aan Svar 07 01 mar se 300 Qv HIA
12. sejqeo BuibBngep Wad 31 LNV LHOdWI MOL 28 songuu uos euj jo Bed 995 v 1 104 pesn si dn v 3931 9 OSG ISA ATOSA LdM8 5181615 uo pesn siojsise1 dn M7 y 31ON lo elvivad ngea 864 o MIOLSd TOL 9L 4 9L vL L 0154 5 619 OSd OdL _ ISQ IG L NILSH Wag 8 1dya SWL penu S 10 ynejoq Leder ejqeo Wag JNOA se q seBeyoA 9105 uoddns sejqeo 18581 IOW WIG 24 JO GZ 3 6 SUId o uuoo jeu sejqeo eBeyoA 2109 Wad jo 104 peuinbei s zdf 31ON AG E AG L lo elisd L v 9 82 9 Jo zo Y s 8 EEFI 2006 OL 15nDny Repu Eg inus gr pus 3 IesegOOLO g ES E E RoR Sa
13. 23 Table 21 J9 continued Pin Signal Pin Signal 35 GND 36 GND 37 DTIN3 38 UTPUODIS 39 DTOUT3 40 LTPUODIS 41 TIP 42 TEA 43 TS 44 TA 45 CAN0RX 46 SD_WE 47 R W 48 CANOTX 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 Table 22 J10 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 D1 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 M5235EVB User s Manual Rev 2 24 Freescale Semiconductor Table 22 J10 continued Pin Signal Pin Signal 35 IRQ1 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 JTAG_EN 52 RCON 53 GND 54 RSTOUT 55 GND 56 RESET 57 GND 58 GND 59 GND 60 GND 2 5 2 Reset Switch SW6 The reset logic provides system initialization Reset occurs at power on or by asserting RESET via SW6 A hard reset and voltage sense controller U25 is used to produce an active low power on reset signal The reset switch SW6 is fed into U25 that generates the signal tied to the MCF5235 s RESET RES
14. h E gag 263 abe i HaT 15 i iis iiie iini EEG pine 285 Hiis 355 Bas 258858386 H SOE z Ea po al 4 DAA eel l B E 5 8 44 5 g s 2 5 1 9 i I 5 h 5583852925 E g M5235EVB User s Manual Rev 2 Freescale Semiconductor 2002701 Isnbny Keppa aed Addng 0g 02 HOS 8 JequnNjueumoog 6215 SA3XEZSIN GOAL 9451 SdS 1opp uuoo SPY 4 10 euejd 10 4 DEP z QUID 984 718 Mdd 20 TIdSSA _ TASSA zs z Qu 584 siguueup 1 10 Bojeue VSSA VSSA 2 0 7 vad OQV nd19 104 mod pasayi VAS zD 84 vAS Ast ELOVESYAW rss z y ACC zza M umop 1 M0d ye sjje1 9 ue wgeq ensseoxe sjueneid MOS 31ON JMOL 8210 8 pou CLEOOPVN ClCO0PVMW AS OMA n z ACe woso zn angst ZO oza vedr J0jeinBos AS dn somod
15. y 9 aH G1 jeeug uo Jojo uuoo 680 y ZLYWN pue Agee epow ede AER LON s 40 Dumes ynejeq NVO 29 er s 19 Bumes ynejea Jeuueu NWO ot gt xu0NvO EH NVD E 1 7 1 H Z su aly x 225 m ACE js P n edA q 6 D 40 2euuo sng NYO apoy 1 Agee pany LON S Ldr 10 Bumes ynejeq n z M5235EVB User s Manual Rev 2 80 z 8 n2 i 68 9 E E E r ec M 83 83 5 5 53 m EH H EH t 4
16. 21 12 01 D2 D3 D4 D6 D7 D9 D11 D14 GREEN LED Kingbright AA3528SGC D17 D33 22 3 D5 D23 D24 RED LED Kingbright AA3528SRC 23 3 D8 D10 D12 YELLOW LED Kingbright AA3528YC 24 5 D13 D15 D16 D20 D22 Shottky Power Diodes On Semi MBRS340T3 25 2 D18 D19 SMA On Semi MRA4003T3 26 8 D25 D26 D27 D28 D29 D30 D31 D32 BLUE LED Kingbright AA3528MBC 27 6 FB1 FB2 FB3 FB4 FB5 FB6 Ferrite Beads STEWARD __ HI1206T500R 00 28 1 F1 5A Fast Blow FUSE Keystone 4527K Fuse Holder by KEYSTONE 0216005 H Fuse by Littlefuse 5A 250V 5 x 20mm glass JOJONPUOIIWES e eoseoJJ 96 enue 5195 GAASEZSIN Table 28 M523xEVB Bill of Materials continued Item Qty Reference Description Mfgr Part Number Notes 29 33 JP1 JP2 JP4 JP27 JP28 JP29 2 way Jumper Sullins or 52105 02 or JP30 JP33 JP34 JP37 JP38 JP39 Harwin M22 2510205 JP40 JP41 JP42 JP43 JP44 JP45 JP46 JP47 JP48 JP49 JP53 JP54 JP55 JP57 JP58 JP59 JP60 JP61 JP62 JP63 30 30 JP5 JP6 JP7 JP8 JP9 JP10 JP11 3 way Jumper Sullins or 52105 03 or JP12 JP13 JP14 JP15 JP16 JP17 Harwin M22 2510305 JP18 JP19 JP20 JP21 JP22 JP23 JP24 JP25 JP26 JP31 JP32 JP35 JP36 JP50 JP51 JP52 JP56 31 1 J1 2 x 13 BDM Connector Shrouded Headers Thomas amp 609 2627 Betts 32 1 J2 RJ45 Connector Halo HFJ11 2450E 33 1 J3 1 x 12 ADC Header 0 1 Male Molex
17. C147 C148 C149 C150 C151 C152 C154 C156 C158 C166 C169 C172 C174 C176 C184 C185 C186 C187 4 6 C20 C21 C22 C23 C180 C181 100pF 50V 0805 NPO or COG Surface Mount Venkel Caps 5 2 C32 C128 10uF 16V 1095 B Case Tant AVX TAO16TCM106KBR 6 2 C44 C45 47uF 16V C Case Tant AVX TPSC476K016R0350 7 9 C50 C66 C94 C95 C102 C103 C104 10nF 25V X7R 0805 Surface Mount Caps Venkel C0805X7R250 103KNE C105 C170 8 3 C51 C54 C56 10uF D Case 7343 Tant AVX TPSD106K035R0300 9 8 C58 C59 C60 C61 C62 C63 C64 C179 2 2nF 25V NPO Venkel 10 7 C65 C67 C68 C69 C86 C88 C89 0 1uF 25V X7R 0805 10 AVX AVX 08055C104KAT2A 11 1 C87 2 2uF 10V A Case Tant AVX T494A225K010AS 12 10 1090 C91 C92 C93 C96 C97 C106 470pF 50V NPO or COG 0805 596 Venkel C107 C108 C109 v6 JOojonpuoorues e eoseeJJ Z Jenueyy 5195 GAASEZSIN Table 28 M523xEVB Bill of Materials continued Item Qty Reference Description Mfgr Part Number Notes 14 3 C121 C126 C129 330uF 10V D Case Tant AVX TPSE337K010R0100 15 1 C125 1000uF 35V Panasonic ECA 1VM102 or UVZ1H102MHH 16 3 C159 C165 C167 10uF 16V 10 B Case Tant Venkel TAO16TCM106KBR 17 2 C131 C132 10pF SMD 50V 0805 5 KOA or Philips 18 4 C160 C161 C163 C164 47pF SMD 50V 0805 5 KOA or Philips 19 1 C162 22nF SMD 50V 0805 5 KOA or Philips 20 2 C178 C177 22pF SMD 50V 0805 5 KOA or Philips
18. 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 that causes control to 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 0x0004 0000 the command is go 40000 M5235EVB User s Manual Rev 2 Freescale Semiconductor 51 GT Execute To 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 that causes control to be handed bac
19. 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 Example To upload a portion of SDRAM to a file sdram bin the command is up 40000 50000 sdram bin M5235EVB User s Manual Rev 2 70 Freescale Semiconductor VERSION Display dBUG 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 1 BLAN dBUG common 27 CPU major board major major and minor and minor and minor revision revision revision The version date is the day and time the entire dBUG monitor was compiled and built Examples To display the version of the dBUG monitor the command is version 4 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 your program to use various 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 dBUG 4 5 1 OUT CHAR This function function code 0x0013 sends a character which is in the lower eight bits of D1 to the terminal Assembl
20. 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 the 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 To 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 is returned to d
21. render dBUG inoperable A reference to SP stack pointer actually refers to general purpose address register seven A7 42 Operational Procedure System power up and initial operation are described in detail in Section 3 Initialization and Setup This information is repeated here for convenience and to prevent possible damage 4 2 1 System Power up Be sure the power supply is connected properly prior to power up Make sure the terminal is connected to the TERMINAL P4 connector Turn power on to the board M5235EVB User s Manual Rev 2 34 Freescale Semiconductor Figure 10 shows the dBUG operational mode Initialize Command line input from terminal Execute command function Does command line Cause user program execution No Yes Jump to user program and begin execution Figure 10 Flow Diagram of dBUG Operational Mode 4 2 2 System Initialization After the EVB is powered up and initialized the terminal displays Hard Reset DRAM Size 16M ColdFire MCF5235 on the M523xEVB Firmware v3b 1la xx Built on XXX XX XXXX XX XX XX Copyright 1995 2004 Freescale Semiconductor Inc Enter help for help dBUG gt Other means can be used to re initialize the M523xEVB firmware as discussed in the following paragraphs 4 2 2 1 External RESET Button External RESET SW6 is the red button Depressing this button causes all processes to terminate resets the MCF52
22. 25 t e ir u829 amp 33 is x A ma SES H 8 85 9888 a HH 4 r 4 4 4 EE 28 8 e 5 T s ae p Be Via Bii 88 85 z rH s 4t cae 5 7 J H 82H BS x iH il P t 5 E s 85 FE 288 st 3 r E 8 85 s asa 88 i 6 5 at a Laree 8 2 al qe i 4 8 8 S1 a 8 ri ii 3 41 E igo E 88 P rb H EE fea 8 Los S IPA ros z 55 Bis Ried 3553333333 3 529 288 999 asss Suus 4353 33 35 4383353855 3 E EEEE E x 22 3 b 888 ftt 7722 0188 H 1 S ee bape ssn EE 38 BBB d BHO 8T 7 37 zm sasana vl 58 98 p anors A 8g pen NOOY Hera 557 abs tnr ym zV NIV a ym 0159 xr IT erv 989 184 Sd sR t 88 8 0557 Tur 059 aa Hry prosas 597 53 Ern The 55 HE peg i at 208 fo Tu Bu o ora J 9 30 _ N E o ssa 1 gd 8g iE 15 g Wish 22 0sod idso o 154 14 ops 8 3887 5 1 39 aan S o0 5 ST ssn o 9 q 8 1 ST Bah aco 5 8 3 Yee
23. 5 wea h X OiHOndl 9 el ve EE nato I ve AL t 8HOndl 20 YL jee an ar wana BOWMd m IsiielHonat Aree un A 30001 o o yz 60 on peer yz av Wid sa s eqssod bo se reso acer y oe wu Go 0 ud du YOZMLETIN uogouny fuepuooes usn Atte y gt E aU snivisa 9a cmi saa eae yz u w rwwiwod sa um B5 N 20001 Ktssod se o o sinoesop o 5 690 aveid mesem mol siaonain aq ssod se 890 sino eso Ed Oo 019000 Apte m wna FE 5 yandy sr Han vno esopusopsqs n 7 le 9094 92 6 7 uonoeuuoo 4 sin Sona HODGI 09 ow QU Sonar 553 TiROnar W E aqssod T sepin 56 oD se sozsut ELHINNI VSSA 590 590 uneyep E xk aos dip 10 2 zi n E on s Eb or d 2 am a aed an 5 E 4 ES MEC MES 2 jo eds sey ySSA sel m m peuinbei J Jenouiai mo A on Fx lq s 5sop UE 18 510 5 581 eseuj BOLI n D UO pue Ln Uo Vie ANY T
24. MCF5235 is detailed further in the MCF5235 Reference Manual Chip selects 0 and 1 can be changed by your 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 MRAM Memory CSI M5235EVB User s Manual Rev 2 8 Freescale Semiconductor Table 2 shows the M523xEVB memory map Table 2 Default M523xEVB Memory Map Address Range Signal and Device 0x0000 0000 0x00FF FFFF 16 Mbyte SDRAM 0x2000 0000 0x2000 FFFF 64 Kbytes Internal SRAM 0x3000 0000 0x300F FFFF External MRAM 0000 0xFFFF FFFF 2 Mbytes External Flash OXFFCO 0000 OxFFFF FFFF 4 Mbytes Exam Flash 2 2 5 1 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 SR T bit This exception also clears the M bit and sets the processor s interrupt priority mask in the SR to the highest level level 7 Next the VBR is initialized to zero 0 0000 0000 The contr
25. MM mm lt width gt addr lt data gt Memory Modify MMAP mmap Memory Map Display RD rd lt reg gt Register Display RM rm reg data Register Modify RESET reset Reset SD sd Stack Dump M5235EVB User s Manual Rev 2 Freescale Semiconductor 37 Table 27 dBUG Command Summary continued Mnemonic Syntax Description ASM asm lt lt addr gt stmt Assemble BC bc addr1 addr2 length Block Compare BF bf width begin end data inc Block Fill SET set option value Set Configurations SHOW show option Show Configurations STEP step Step Over SYMBOL symbol lt symb gt a symb value r symb gt Cllls Symbol Management TRACE trace num Trace Into UP up begin end filename Upload Memory to File VERSION version Show Version M5235EVB User s Manual Rev 2 38 Freescale Semiconductor ASM Assembler 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 as a hexadecimal value or a symbol name The value for stmt must be valid assembler mnemonics for the CPU For interactive mode enter the command and the optional lt addr gt If the address is not specified then the last address is used The memory contents a
26. OZOLEEADLYOLOLAD 5591440 Zl drOHSSZ9LMZ9NH 5559119 ere Ajjeuonoun pue PUE 1uudyooj god eures eu uy SNVYSV ALON SNI 18101 9215 1991 x HISZ s WYN gt lt gt g 5 loea g 597 o 2 so 30 sg 10271557 Ag e paom 4 91 1 44 vw loszv a T z M5235EVB User s Manual Rev 2 Freescale Semiconductor 78 9L jo EEFI 2002 pL isnBny ZXepsen1 Eg sing 0 0 5 g sJequinyy Jueuunoog ez GOAL 9dS1 SdS 3334 8 sng ssayqqv Sg cg z zie Opt OSvZX9149l QNO 48 Nv 98 9v Sg Sv vH w 8 zg zw 18 Ww 08 ov 30 WL 99 4n LAS Z91XO1 LON OND QNO QNS QNO 29 99 aoz 99 301 gaz vz gz ove saz sve saz wc vac eve tac vz zaz Laz 88r AML 18 98 SYL sal vat evi eat zal 18r 10 21 8 4 1 Anyo o elo zo uo 60 4 4 4 4 4 AG E 1 llonuoo gsn eu pue user pue WYYIN 104 sieuBis Jayng o pesn sng eyed p
27. On reset the JTAG EN signal selects between multiplexed debug module and JTAG signals See Table 5 M5235EVB User s Manual Rev 2 Freescale Semiconductor 2 4 7 Developer Reserved L gt BKPT 1 2 GND 3 4 DSCLK GND 5 6 Developer Reserved RESET 7 3 DSI I O or Pad Voltage gt 9 10 lt DSO PST2 4 jx lt PST PSTO 15 16 DDATA3 DDATA2 47 18 DDATA DDATAO 20 amp lt GND Freescale Reserved 54 Freescale Reserved GND T 93 r PSTCLK 24 Core Voltage 25 Figure 4 J1 BDM Connector Pin Assignment 2 The MCF5235 s I C module includes the following features Please see the MCF5235 Reference Manual for more details The PC signals from the MCF5235 device 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 are brought out to expansion connector J13 The IC functionality of the MCF5235 is multiplexed on the same pins as
28. Software watchdog timer is disabled Bus monitor is enabled Internal timers are placed in a stop condition Interrupt controller registers are initialized with unique interrupt level priority pairs If the external RCON pin is asserted during reset SW7 1 ON 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 RCON is not asserted during reset SW7 1 OFF 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 4 SW7 1 RCON SW7 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 5 SW7 2 JTAG_EN SW1 2 JTAG Enable OFF JTAG interface enabled ON BDM interface enabled Table 6 SW7 4 3 Encoded Clock Mode SW7 3 SW7 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 M5235EVB User s Manual Rev 2 Fre
29. adco Joyol sl reu omnsuo oz ZV nueszezav 73 I SS S VSSA SS E YN 1 A weoezav A MIA Hor nva FUA Ex sonar andu eq Bsn u anov LS 59 o E Os ue juasasdes Kay se Zin uo sud eu lqrssod EET Sion anvo E amp solo se mojaq sasise suoyoedeo eoejd E M sak NS I z Booz r peer 20 NN s E anvo Sona inoa 7 7m o HONE Soe so 2 E ano 11 L oe J ONU WESEL ein Zn SHY 3 T Ls 950 so vase 07 0 D 5 7 E27 TWO 0 23 11 0 D z an 0 121 3 nett vase zai n Anodes 0 0571980 pauinbes aowa lqisseooe ue je pue lqIssod se sjeubis jd 1 eu uim Ae uonoun etj oj esop se siolsis uiuo oiez ese Pld a z M5235EVB User s Manual Rev 2 Freescale Semiconductor 84 TPUCH 150J TPUCH 3I 16 NOTE if designing a daughter card to fit these expansion connectors please ensure all signals are buffered on the daughter card 8 DDATA S 0 m si p a i sk I in i8 B g 38 4T0pF en 470pF d0nF
30. correct the interference 2 M523xEVB This document details the setup and configuration of the ColdFire M523xEVB evaluation board hereafter referred to as the EVB The EVB is intended to provide a mechanism for easy customer evaluation of the MCF523x family of 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 MCF523x family are supported The heart of the evaluation board is the MCF5235 All the other M523x family members have a subset of the MCF5235 specification and therefore can be fully emulated using the MCF5235 device Table 1 below details the full product family Table 1 M523x Product Family Part Number Package eTPU FEC Crypto CAN MCF5232CAB80 160 QFP 16 channel No No 1 MCF5232CVM100 196 MAPBGA 16 channel No No 1 MCF5232CVM150 196 MAPBGA 16 channel No No 1 MCF5233CVM100 256 MAPBGA 32 channel No No 2 MCF5233CVM150 256 MAPBGA 32 channel No No 2 MCF5234CVM100 256 MAPBGA 16 channel Yes No 1 MCF5234CVM150 256 MAPBGA 16 channel Yes No 1 MCF5235CVM100 256 MAPBGA 16 channel Yes Yes 2 MCF5235CVM150 256 MAPBGA 16 channel Yes Yes 2 All of the devices in the same package are pin compatible The EVB provides low cost software testing using a ROM resident debug monitor dBU
31. sa E d Jequinyy juewn20q ez X eee en ano anyo andy ano nro anro amy anyo anro en anot duo anro so 199 9vo wo ero zo MO ovo 659 8 GOAL 9491 SdS iso oso 4 4 L L a O0H00SL9OZLIH GUVMALS CO0 s00S190ZLIH 1 8 Agee WASZE Ae et am raD Hn zad 183 Yaw 2 VASZ I asau Jo LLN Jo uoneunBjuoo yoau09 eunsue oj jueseJd si Zd 31ON Jg qe ess niu La ol peu 3 097 0905 31 891d 3003 ez zaxi3 1axia ely ozz mE E L IN aig CEE Nowa SX mo 022 aiqissod se nd2 XEZSAIN amun sop se di 9 9dt 90614 R ta mlosan gqyleoar b b Nee aisi ozz PERE 1900 5 3 za ACE eh sa be xeidng ta AS z Agee am BBBBBBPRPPEP uorsijoo roi ses 5898929528995 aswa se ina 40j2euuoo Spry eyeiedes NEE 9 5 esse z S 28 SE 5411 88d m i Wow lt imm 94 30SFZ LL dH Duy gz g x GND r 4 3 go az 15900097 Hr 9 s KERGE zz Qoads Lam _ Lor 10X43 ano az xa1anqza HAAT sod Aqxa 5 on 7 gz 31 QN9 H ES oH ad 2 1 w vOVAHa OGXY Hg vj H
32. the QSPI Jumpers JP6 and JP8 are used to connect disconnect the IC signals SDA and SCL To enable 126 set JP6 and 7 8 between pins 2 and 3 M5235EVB User s Manual Rev 2 Freescale Semiconductor 2 4 8 Queued Serial Peripheral Interface QSPI The QSPI module provides a serial peripheral interface with queued transfer capability It supports 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 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 eight to 16 bits in one bit increments Four peripheral chip select lines for control of up to 15 devices Baud rates from 147 1 Kbps to 18 75 Mbps at 75 MHz Programmable delays before and after transfers Programmable QSPI clock phase and polarity Supports wrap around mode for continuous transfers Please see the MCF5235 Reference Manual for more details The QSPI signals from the MCF5235 device are brought out to expansion connector J12 Some of the QSPI signals are multiplexed with the module Set JP6 and JP8 between pins 1 and 2 to enable the QSPI module The EVB features an analog to digital converter ADC interfaced to the CPU via the QSPI The ADC uses QSPI chip sele
33. 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 3 2 8 Connecting the Terminal After 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 as described in Section 3 2 7 The Terminal Character Format The baud rate should be set to 19200 Power can now be applied to the board Figure 8 Pin Assignment for Female Terminal Connector M5235EVB User s Manual Rev 2 30 Freescale Semiconductor Pin assignments are as follows Table 26 Pin Assignment for Female Terminal 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 O ao O N Not con
34. with a 16 bit data bus One device stores the upper 16 bit word and the other the lower 16 bit word of the MCF523x 32 bit data bus 2 2 3 MRAM The EVB is populated with two 512K x 16 MRAM devices Freescale MR2A164A Also see Section 2 2 5 M523xEVB Memory Map 2 2 4 Internal SRAM The MCF5235 processor has 64 Kbytes of internal SRAM memory that 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 you The memory is relocatable to any 32 Kbyte boundary within the processor s four gigabyte address space 2 2 5 M523xEVB Memory Map Interface signals to support the interface to external memory and peripheral devices are generated by the memory controller The MCF5235 supports eight external chip selects CS 1 0 are used with external memories CS2 is used for the USB controller and CS 7 3 are easily accessible to you via the daughter card expansion connectors 050 also functions as the global boot chip select for booting out of external flash Because the MCF5235 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 is found in Table 2 The internal memory space of the
35. with minimal typing After a command is M5235EVB User s Manual Rev 2 36 Freescale Semiconductor entered press the lt Return gt or lt Enter gt key to invoke the command again The command is executed as if no command line parameters were provided 4 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 27 dBUG Command Summary Mnemonic Syntax Description ASM asm lt lt addr 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 DN dn c e lt i gt s lt 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 Iw lt width gt addr data Loop Write MD md lt width gt lt begin gt lt end gt Memory Display
36. xr 19 zx j QVAHd LIXH 349 She x zavaHareaxe Hy x Z c lavAHd eqxa Hz thy P QNO Z Ex QNS oan oana olana zr 8 5 ubere Z230 32 um 39862 EE rie 9 Duunp Buyseiq 1038 80 BIA peroejas I PFE uppe si IeoIsKUd yo jeureu3 31ON i Kddns eu dns AS Z diyo uo ue seu 1812 89 LLN 3LON ACE I Pe ie 68 eer 9 66 9 66 1 1 I 90 559 6 ees I I I VASZ VASZ 2 hanes LLN 8509 LLH OLY BH Gld u lq jeujeuj3 M5235EVB User s Manual Rev 2 Freescale Semiconductor 83 was
37. za Wa p Tndssn scar T L pany si gedr 10 Sumas ynejea aguero ms 301 ado e u 19 zeg 2 eoejd eseeld ALON ear guo Q ox vx O PEERS b whe nett Mee 10 suojoouuco uotsuedx uod WOS b eu a RUBE LSY PO pue parang EON lt n 8 JNuse wae 4 059 Lai woe 1 ono FT Y 1 92 5 fuss E zi Tassa R 7 00 5 20 Nus Day ien is Gm 13834 0284 Ya TIOMLNOD asN3s L OVOS USSU QM mE locisg l vis indul ewop Die 98 PO s i s sma 5 sjees m 0587 neeh d Age ss TASSA zunez T S ono RT aere peed noua 2 Jor 7 13834 kaspaqa Udo re uu Hisa aw o E ib 12151 9 2 SIQOnd11 i ae PR ozish Siqondin 305 A ts F t postuur eq pinous XEZSIOW eu pue synoup IN B IE z E ugowqoq oe ALON T u 37 eza nee nese un a Mee ce zo m z ud ON
38. 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 0x0002 0000 and ending at 0x0004 0000 with data that increments by 2 for each width the command is bf 20000 40000 0 2 M5235EVB User s Manual Rev 2 Freescale Semiconductor 41 BM Block Move 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 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 0 0004 0000 and ending at 0x0008 0000 to the location 0x0020 0000 the command is bm 40000 80000 200000 To copy the target code s data section defined by the symbols data start and data end to 0x0020 0000 the command is bm data start data end 200000 NOTE Refer to the upuser command for copying code data into flash memory M5235EVB User s Manual Rev 2 42 Freescale Semiconductor BR Breakpoints Usage BR addr lt r gt lt c count gt lt t trigger gt The BR command inserts or removes breakpoints at address addr
39. 1550 aod aso ined gt t 8 SSA EH y Sonar FH Y 8E ona ii oga Sawa z EE t 25 8g ona 38 8 88 GITIN CE d dd 9833 sd 9541 43 DTOUTO JWRTS PS TPUCH24 ETxos ERXDO ERXD1 ERXD2 ERXD3 ECOL JP13 24 is 2 amp 3 connected Default setting for JP5 JP9 JP10 ES ECRS CLKMOD 9 CLKMODO 16 M5235EVB User s Manual Rev 2 Freescale Semiconductor 2 2 9 9L Jo n jeeus 2006 0 1snBny Repu uod Bngeq Svir wqg o8eoz Hos v J quunN jueuinooq azig SA3x ZSW eJ14pjo2 GOAL 9951 95 Freescale Semiconductor M5235EVB User s Manual Rev 2 SjosseooJd XEZTGAOW 34 pesn eq
40. 2 1K 196 Philips 67 2 R39 150 ohm 0805 Surface Mount Resistor KOA or 150 Philips 68 11 R42 R43 R44 R45 R46 R47 R48 R50 270R ohm 0805 Surface Mount Resistor KOA or 270R R70 R75 R78 Philips 69 5 R51 R54 R58 R62 R65 1 8K ohm 0805 Surface Mount Resistor KOA or 1 8K Philips 70 4 R53 R57 R61 R64 24R ohm 0805 Surface Mount Resistor KOA or 24 9R 1 Philips 71 1 R71 560R ohm 0805 Surface Mount Resistor KOA or 560R Philips 72 2 R40 R77 R79 100 ohm 0805 Surface Mount Resistor KOA or 100 Philips 73 3 R85 R86 R92 100K ohm 0805 Surface Mount Resistor KOA or 100K Philips 74 1 swi Toggle Switch Apem 108 2MS1T1B1M2QE 86 JOjonpuoorules e5s 914J enue 5195 GAASEZSIN Table 28 M523xEVB Bill of Materials continued Item Qty Reference Description Mfgr Part Number Notes 75 3 SW2 SW3 SW5 Surface Mount Switch Black C amp K KS11R22CQD 76 1 SW4 Slide Switch Apem 25546NA6 silver preferred or 25546NLD gold plate 77 1 SW6 Surface Mount Switch Red C amp K KS11R23CQD 78 1 SW7 Configuration DIP switch 10 position SPDT Grayhill 78RB12 79 13 TP1 TP2 TP4 TP5 TP6 TP7 TP8 Surface Mount Test Points Keystone 5015K TP9 TP10 TP11 TP12 TP13 80 2 U1 U2 MRAM Freescale MR2A16ATS35C A 81 3 U3 U4 U6 Buffers On Semi MC74LCX16245DT 82 2 U5 U26 AND Gate TI SN74LVC1G11DBVR 83 1 U7 Buffers On Semi M
41. 22 10 7128 34 1 J4 2 x 20 shrd UNI3 Connector Male Molex 39 26 7405 35 1 J5 2 x 20 eTPU Header 0 1 Male Molex 10 89 6404 36 1 J6 1x6 HS ENCO Header Male Molex 22 27 2061 37 4 J7 J8 J9 J10 60 way Fine Pitch Surface Mount Connector AMP 177983 2 38 1 J11 External Clock Input SMA Connector AMP 1053378 1 39 1 J12 1x 10 QSPI Header Male Molex 22 10 2101 40 1 J13 1x4 12C Header 0 1 Male Molex 22 10 2041 41 1 J14 USB MiniAB Connector AMP 440479 1 A 42 1 J15 USB series B Connector AMP 787780 1 43 1 J16 USB series A Connector AMP 787616 1 96 JOojonpuoorules e eoseoJJ Z Jenuey 5195 GAASEZSIN Table 28 M523xEVB Bill of Materials continued Item Qty Reference Description Mfgr Part Number Notes 44 1 L1 10uH Inductor Central CT1210LSC 100 or Technologies 1210 103J or Delaven 45 2 L2 L3 Power Inductor Thru Hole Siemens B82111 B C24 46 4 P1 P4 P5 P6 DB9 RS232 Port Thru Hole AMP 747844 3 47 1 P2 2 1mm Barrel Power Connector Switchcraft RAPC722 48 2 P3 2 way Bare Wire Power Connector Augat 2SV 02 49 18 RP1 RP2 RP8 RP9 RP10 RP11 RP12 ARV241 4 x 4 7K ohm resistor pack KOA or 4 X 4 7K 4 X 0603 RP14 RP15 RP16 RP17 RP20 RP21 Philips RP22 RP23 RP24 RP25 RP26 50 1 RP3 ARV241 4 x 22 ohm resistor pack KOA or 4X 22 Philips 51 4 RP4 RP5 RP6 RP7 ARV241 4 x 51 ohm resistor pack KOA or 4X51 Philips 52 1 RP13 ARV241 4 x 10 K ohm resistor p
42. 35 processor and board logic and restarts the dBUG firmware Pressing the RESET button would be the appropriate action if all else fails M5235EVB User s Manual Rev 2 Freescale Semiconductor 35 4 2 2 2 ABORT Button ABORT SWS is the button located next to the RESET button The abort function causes an interrupt of the present processing a level 7 interrupt on MCF5235 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 MCF5235 core internal registers are displayed The abort function is most appropriate when software is being debugged You can interrupt the processor without destroying the present state of the system This is accomplished by forcing a non maskable interrupt that calls a dBUG routine that saves the current state of the registers to shadow registers in the monitor for display You are returned to the ROM monitor prompt after exception handling 4 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 4 3 Command Line Usage The user interface to dBUG 1s 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 chara
43. 5EVB User s Manual Rev 2 66 Freescale Semiconductor STEP Step Over Usage STEP The STEP command steps over a subroutine call rather than tracing every instruction in the subroutine The command sets a temporary breakpoint one instruction beyond the current program counter and then executes the target code The STEP command steps over BSR and JSR instructions The command works for other instructions as well but if STEP is used with an instruction that does 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 M5235EVB User s Manual Rev 2 Freescale Semiconductor 67 SYMBOL Symbol Name Management Usage SYMBOL lt symb gt lt a symb value lt r symb gt lt c l s 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 a option adds a symbol name and its value into the symbol table roption removes a symbol name from the table coption clears the entire symbol table loption lists the contents of the symbol table 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 by the SYMBOL command or by the disas
44. 6 or 32 channels To configure the device to operate with the top 16 channels of the eTPU activated pin M4 must be pulled high by setting SW7 11 to the OFF position All 32 eTPU channels are available on a 0 1 2x20 Molex connector providing easy access to the eTPU Table 17 eTPU Header Pin Assignment Pin eTPU Signal Pin eTPU Signal 1 3 3V 2 5V 3 TPUCH16 4 UTPUODIS 5 TPUCH17 6 LTPUODIS 7 TPUCH18 8 TPUCHO M5235EVB User s Manual Rev 2 Freescale Semiconductor 17 Table 17 eTPU Header Pin Assignment continued Pin eTPU Signal Pin eTPU Signal 9 TPUCH19 10 TPUCH1 11 TPUCH20 12 TPUCH2 13 TPUCH 1 14 TPUCH3 15 TPUCH22 16 TPUCH4 17 TPUCH23 18 TPUCHS5 19 TPUCH24 20 TPUCH6 21 TPUCH25 22 TPUCH7 23 TPUCH26 24 TPUCH8 25 TPUCH27 26 TPUCH9 27 TPUCH28 28 TPUCH10 29 TPUCH29 30 TPUCH 11 31 TPUCH30 32 TPUCH12 33 TPUCHS1 34 TPUCH13 35 GND 36 TPUCH14 37 TCRCLK 38 TPUCH15 39 GND 40 GND There is a UNI3 connector and HS ENCO connector auxiliary card is intended for evaluation of the eTPU 2 4 6 BDM JTAG Port on the EVB for connection to an auxiliary card The functionality The MCF5235 processor has a background debug mode BDM port which supports real time trace and real time debug The signals necessary for debug are available at connector J1 as shown in Figure 4 The BDM connector can also be used to interface to JTAG signals
45. BUG 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 M5235EVB User s Manual Rev 2 Freescale Semiconductor 43 BS Block Search 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 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 0x0004_0000 and ending at 0 0008 0000 bs 40000 80000 1234 This reads the 16 bit word located at 0x0004 0000 and compares it against the 16 bit value 0x1234 If no match is found then the ad
46. C74LCX245DT 84 2 U8 U9 CAN Transceivers TI SN65HVD230D 85 1 U10 ColdFire MCF5235 microprocessor Freescale MCF5235CVM150 86 1 U11 Ethernet Transceiver Micrel KS8721BL 87 1 U12 A to D Converter Analog AD9728BRU Devices 88 1 U13 Voltage Regulator Analog AD780BR Devices 89 1 U14 AND Gate On Semi NL17SZO8DFT2 90 1 U15 Comparator LM393M 91 1 U16 2 Gate Inverter On Semi NL27WZ04DFT2 92 1 U17 6 Gate Inverter SN74HC04D 93 1 U18 EXOR Logic Gate On Semi NL27WZ86US 94 1 U19 16 bit flash memory AMD Am29PL160CB 65RS 95 1 U20 3 3V Regulator National LM2596S 3 3 96 1 U21 5V Regulator National LM2596S 5 JOJONPUOIIWES e eoseoJJ 66 Z heu enue 5195 GAASEZSIN Table 28 M523xEVB Bill of Materials continued Item Qty Reference Description Mfgr Part Number Notes 97 1 U22 1 5V Regulator Linear Tech LT1086CM f 3l 98 1 U23 OSC 3 3V 25MHz 4 pin Thru Hole FOX or H5C 2E3 or F5C 2E3 or Pletronics P1100 HCV or P1145 HCV 99 2 U24 U25 Voltage Monitoring uP Supervisory Circuit Analog ADM708SAR Devices 100 1 U27 Buffer Freescale MC74LCX541 DT 101 2 U28 U29 SDRAM Micron MT48LC4M16A2TG75L 102 3 U30 U31 U32 RS232 Transceiver Maxim MAX3225CAP or ICL3225CA 103 1 U33 USB OTG controller Philips ISP1362BD 104 1 U34 Power Distrubution Switch Micrel MIC2026 2BM 105 1 U35 32 bit flash memory AMD or Am29PL320DB60RWP or A Fujitsu MBM29PL3200BE70PBT 106 2 VIA2 SMTP 107 1 Y1 25M
47. ET is an open collector signal Therefore it can 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 a reset signal is available on the expansion connectors for use with your hardware See Section 2 3 1 Reset Logic for more details on reset 2 5 3 User LEDs There are eight LEDs available to you Each of these LEDs are pulled to 3 3V through a 10 Q 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 its associated LED with a jumper The table below details which MCF5235 signal is associated with which LED Table 23 User LEDs LED MCF5235 Signal Jumper to disconnect D25 DTOUTO JP38 D26 DTINO JP39 D27 DTOUT1 JP40 D28 DTIN1 JP41 M5235EVB User s Manual Rev 2 Freescale Semiconductor 25 Table 23 User LEDs continued LED MCF5235 Signal Jumper to disconnect D29 DTOUT2 JP42 D30 DTIN2 JP43 D31 DTOUT3 JP44 D32 DTIN3 JP45 2 5 4 Other LEDs There are several other LEDs on the M523xEVB to signal various board processor component states Below is a list of those LEDs and their functions Table 24 LED Functions LED Function D1 D4 Ethernet Phy functionality D5 D12 eTPU functionality D14 3 3V Power Good D17 5V Power Good D23 Abort IRQ7 asserted D24 Reset RST
48. ET command allows the setting of 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 tThis is the baud rate for the first serial port on the board All communications between you and dBUG occur using 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 ofthe machine that contains files accessible via TFTP Your local network administrator has 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 has this information netmask This is the network address mask to de
49. Figure 7 M5235EVB User s Manual Rev 2 28 Freescale Semiconductor GND Figure 6 2 1mm Power Connector V 7 14V E GND Figure 7 2 Lever Power Connector 3 2 4 Power Switch SW4 Slide switch SW4 isolates the power supply input from the EVB voltage regulators if required Moving the slide switch to the left towards connector P3 turns the EVB on Moving the slide switch to the right away from connector P3 turns the EVB off 3 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 25 Power LEDs LED Function D17 Indicates that the 5V regulator is working correctly D14 Indicates that the 3 3V regulator is working correctly If no LEDs are illuminated when the power is applied to the EVB it is possible that power switch SW4 is in the 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 14A fast blow fuse M5235EVB User s Manual Rev 2 Freescale Semiconductor 29 3 2 6 Selecting Terminal Baud Rate The serial channel UARTO of the MCF5235 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 se
50. G programmed into the external flash device Operation allows you to load code in the on board RAM execute applications set breakpoints and display modify registers or memory No additional hardware or software is required for basic operation M5235EVB User s Manual Rev 2 2 Freescale Semiconductor Specifications Freescale MCF5235 Microprocessor 150 MHz max core frequency External Clock source 25 MHz Operating temperature 0 C to 70 C Power requirement 7 14V DC 300 ma Typical Power output 5V 3 3V and 1 5V regulated supplies Board Size 10 00 x 5 40 inches 8 layers Memory Devices 16 Mbyte SDRAM 2 Mbyte 512K x 16 page mode flash or 4 Mbyte 512K x 32 page mode flash 1 Mbyte MRAM 64 Kbyte SRAM internal to MCF523x device Peripherals Ethernet port 10 100Mbps dual speed Fast Ethernet transceiver with MIT UARTO RS 232 serial port for dBUG firmware UARTI auxiliary RS 232 serial port UART2 auxiliary RS 232 serial port jumper selectable with FlexCANI Enhanced Time Processor Unit eTPU interface QSPI interface to ADC FIexCANO interface USB Host and Device Interface BDM JTAG interface User Interface Reset logic switch debounced Boot logic selectable dip switch Abort IRQ7 logic switch debounced PLL Clocking options Oscillator Crystal or SMA for external clocking signals LEDs for power up indication general purpose I O and timer output signals Expansion connectors
51. Hz Crystal FOX FOXS 250F 20 A 108 1 Y2 12MHz Crystal FOX FOXS 120 20 Note A not populated at assembly How to Reach Us Home Page www freescale com Web Support http www freescale com support USA Europe or Locations Not Listed Freescale Semiconductor Inc Technical Information Center EL516 2100 East Elliot Road Tempe Arizona 85284 1 800 521 6274 or 1 480 768 2130 www freescale com support 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 www freescale com support 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 M5235bEVBUM Rev 2 08 2007 Information in this document is provided solely to enable system and
52. I asserted D25 D32 User LEDs See Table 23 3 Initialization and Setup 3 14 System Configuration The M523xEVB board requires the following items for minimum system configuration The M523xEVB board provided Power supply 7V to 14V DC with minimum of 300 mA RS232C compatible terminal or a PC with terminal emulation software RS232 communication cable provided M5235EVB User s Manual Rev 2 26 Freescale Semiconductor Figure 5 displays the minimum system configuration RS 232 Terminal or PC III dBUG gt LXI GaGa a ra D P poem 5 Minimum System Configuration 3 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 M5235EVB User s Manual Rev 2 Freescale Semiconductor 27 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 interface may be used by following the instructions provided in Section 5 Configuring dBUG for Network Downloads 3 2 1 Unpacking Unpack the computer board from its shipping box Save the box for storing or reshipping R
53. Jumper is NOT Fitted JP57 USB DMA request signal DMA Timer 1 input enabled JP58 USB DMA request signal DMA Timer 2 input enabled JP59 USB DMA acknowledge signal DMA Timer 2 output enabled JP60 USB DMA acknowledge signal DMA Timer 1 output enabled JP61 not in use pulled high DMA acknowledge 1 enabled JP62 Interrupt 4 enabled for USB Interrupt 4 disabled from USB JP63 DACK2 not in use pulled high DMA acknowledge 2 enabled 2 5 Connectors and User Components 2 5 1 Daughter Card Expansion Connectors Four 60 way SMT connectors J7 J8 J9 and J10 provide access to all MCF5235 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 19 J7 Pin Signal Pin Signal 1 5V 2 5V 3 3 3V 4 3 3V 5 3 3V 6 3 3V 7 GND 8 GND 9 TPUCH24 10 TPUCH6 11 TPUCH17 12 TPUCH4 13 TPUCH18 14 TPUCHS5 15 TPUCH22 16 TPUCH2 17 TPUCH23 18 TPUCH3 19 TPUCH19 20 TPUCH1 21 TPUCH20 22 TPUCHO 23 TPUCH 1 24 GND 25 TPUCH16 26 EMDIO 27 U2CTS 28 EMDC 29 120 SCL 30 l2C SDA 31 QSPI_SCK 32 QSPI_DIN 33 BS3 34 QSPI_DOUT M5235EVB User s Manual Rev 2 Freescale Semiconductor 21 Table 19 J7 continued
54. M5235EVBUM Rev 2 08 2007 Freescale Semiconductor User s Manual M5235EVB User s Manual by Microcontroller Division 1 P reface Contents 1 PIGTACE da ae Ra d dore dax 1 EMC information B IMESSXEUBL sed E 2 2 1 MCF5235 Microprocessor c isse es n n n 4 This product as shipped from the factory with 22 System MEMON lesse rhe hb R 7 associated power supplies and cables has been 23 9 x 24 Communication Ports 23 52 205248422 14 tested and meets with requirements of EN5022 2 5 Connectors and User Components 21 and EN 50082 1 1998 as a CLASS A product Initialization and Setup 26 31 System Configuration 26 This product is designed and intended for use as 3 2 Installation and Setup 27 a development platform for hardware or software 3 3 System Power up and Initial Operation 32 I d ti l iudi llab t of Using The BDM ROM sedeo d oe ceed ro TERES 33 an educational or professional laboratory 4 Usingthe Monitor Debug Firmware 33 Ina domestic environment this product may 41 33 4 2 Operational Procedure 34 cause radio interference in which case you may 43 Command Line
55. OO seues gsn zd i ea v M ERE Ed _ za z Wd 910 ta alee esnea y 147010 oa Sir Ww loiela a 6519 T B7 eum 3 ov RS ejendod you oq NNOO gv gt bena T p nee aes H D z i 1 zo gv uIW 910 ssar Wnejep fq GALLI LON 8192U3 910 n z 5 M5235EVB User s Manual Rev 2 Freescale Semiconductor 92 e eoseoJJ 6 enue 5195 GAASEZSIN 7 Evaluation Board BOM Table 28 M523xEVB Bill of Materials Item Qty Reference Description Mfgr Part Number Notes 1 1 N A BARE PWB RE Rev X for M523XEVB RapidPCB 170 20380 2 46 C1 C2 C4 C12 C13 C14 C15 C18 1nF 50V 0805 5 COG Surface Mount Caps KOA AVX 08051C102KAT2A C19 C24 C25 C26 C27 C37 C34 C39 C70 C71 C72 C73 C74 C75 C76 C77 C98 C99 C110 C111 C112 C113 C118 C124 C133 C134 C135 C136 C153 C155 C157 C168 C171 C173 C175 C182 C183 3 77 C5 C6 C7 C8 C9 C10 C11 C16 C17 0 1uF 25V 0805 10 X7R Surface Mount Caps KOA AVX 08055C104KAT2A C28 C29 C30 C31 C33 C35 C36 C38 C40 C42 C43 C44 C46 C47 C48 C49 C52 C53 C55 C57 C78 C79 C80 C81 C82 C83 C84 C85 C100 C101 C114 C115 C116 C117 C119 C120 C122 C123 C127 C130 C137 C138 C139 C140 C141 C142 C143 C144 C145 C146
56. S NV R i 55941 omzua muc E anu o 0 0 p p svar 102607 tuer 9155155 EN 059 Qa on unoia za lt gt lt gt o ovar 1 41 AMNIS H33SNVHL RI P Dw P lt gt su ONILO ona n nr k za unosa gt o za 5 1 zi S sr gedr 10 Bures nejed ps sa ado ador e uj eq sza eved 310N zelo LE oy bisor wx siau 20N mng L ule Mee 10801 10 sicjoouuco uo puedo WOR L eui WY eq oi RUBIS 1S1 P YO pue peuojjng LESLOATHANS iv 135358 xa assay wuswwow 039 h sm o ON ano eI s EH po un r Tassa R 001 ee La n sS 15554454 USTIONLNOD SOVLTON 1353 QUYH AE E 1 aoroouuco vs dul nd OL ii ea ee E x gear 9 s s nets freuen i gt 0887 Ed Nett TASSA youa LINHINOSV xem xem MT da Wow ru O sss 9 z tk Wish 1 isi 4 siaonain wao sai H t pestuiutu eq XEZSIOW pue
57. 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 Ifa value for 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 i 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 0x0001 0000 to be OxFF the command is mm b 10000 FF To interactively modify memory beginning at 0x0001 0000 the command is mm 10000 M5235EVB User s Manual Rev 2 Freescale Semiconductor 59 MMAP Usage mmap Memory Map Display This command displays the memory map information for the M523xEVB 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
58. Y PADI sl J gt spRAVC lt q p gt SP SDA lt q p gt SCL a UnTXD lt q j gt UnRXD p gt UnRTS lt q p gt uncTs THOUT q TiN q p gt FEC lt gt DI31 0 lt gt 23 0 lt q p gt RW 6 89 513 0 lt gt TA lt a TSIZI1 0 lt a TEA lt q p gt 513 0 CIM PLL PITO PIT1 PIT2 PIT3 CLKGEN To From INTC Edge Port Figure 2 MCF5235 Block Diagram M5235EVB User s Manual Rev 2 Freescale Semiconductor 2 2 System Memory The following diagram shows the external memory implementation on the EVB MPU Buffers Data lt gt lt gt lt MRAM MENS 1 Mbyte Address gt Control gt SDRAM Flash 16 Mbytes L gt 512K x 16 gt or 512K x 32 Expansion Connectors __ Figure 3 External Memory Scheme NOTE The external bus interface signals to the external MRAM 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 2 2 1 External Flash The EVB is fitted with a single 512K x 16 page mode flash memory U19 giving a total memory space of 2Mbytes Alternatively a footprint is av
59. Y 810 Wa 9 s 150 1 9 S 3 3uudyooj noke enp HO1v T1280 x s i 1 x Acte i Acte Freescale Semiconductor M5235EVB User s Manual Rev 2 88 T Y 9L EL ET 1005 pL vant E 8 IMs sop god dl Jo 4 uo useuosiss uo aseet TION 2 uogas apop sumendo wens waya pt nile apom ssasppy pepcoug 0 apon ssaippy popoous lizezW Isilid Ssappy ssaippy popoous SAXKZON wona llag bodad 44 eng srg hed E 430 lzzdv issiM eso 24d 440 ez musd NO wou papooug 19507 16839 4 410 puxa 440 NO mo Tidleuuoy 440 008 popooug 9 soedicog pepoou dnoio 61136100 0031 0951 546 erro is ewa 440 Jee NO Tii NO 440 epon ado popooua 9 dO popoa se ciat suum nde epo FINS 44 330 40
60. _0000 When the jumper is set between pins 2 and 3 the board boots from the top half of the flash OXFFFO 0000 Procedure 1 Compile and link as though the code was to be placed at the base of the flash 2 Setup the jumper JP64 JP31 for normal operation pin 1 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 OxFFEO 0400 OxFFCO 0400 and run 4 In the ROM monitor execute the FL write dest src bytes command 5 Move jumper JP64 JP31 to pin 2 connected to pin 3 and push the reset button SW6 Your code should now be running from reset POR M5235EVB User s Manual Rev 2 Freescale Semiconductor 13 2 4 Communication Ports The EVB provides external communication interfaces for two UART serial ports a UART FlexCANI port FlexCANO port QSPI PC port 10 100T Ethernet port eTPU port including UNI3 and HS ENCO connectors for auxiliary motor control cards USB host port USB device port and BDM JTAG port 2 4 1 UARTO and UART1 Ports The MCF5235 device has three built in UARTs each with its own software programmable baud rate generator Two of these UART interfaces are brought out to RS232 transceivers One channel is the ROM monitor to terminal output and the other is available to you The ROM monitor programs the interrupt level for UARTO to le
61. ack KOA or 4 X 10K Philips 53 2 RP18 RP19 ARV244 4 x 10 ohm resistor pack KOA or 4 X 10 Philips 54 8 R1 R3 R52 R56 R59 R63 R80 R89 1K ohm 0805 Surface Mount Resistor KOA or 1K Philips 55 2 R2 R4 62 ohm 0805 Surface Mount Resistor KOA or 62 Philips 56 8 R5 R6 R28 R29 R72 R74 R83 R84 22R ohm 0805 Surface Mount Resistor KOA or 22 1R 196 R87 R88 Philips 57 1 R41 SMT POT Bourns Bourns 3314J 1 or Spectral Vishay 4G 103 58 7 R7 R14 R76 R81 R82 R90 R91 10K ohm 0805 Surface Mount Resistor KOA or 10K Philips 1 e eoseoJJ 26 Ady enue 5195 GAASEZSIN Table 28 M523xEVB Bill of Materials continued Item Qty Reference Description Mfgr Part Number Notes 59 4 R8 R9 R10 R11 49 9R ohm 0805 Surface Mount Resistor KOA or 49 9R 196 Philips 60 8 R12 R49 R55 R60 R66 R67 R68 R69 4 7 ohm 0805 Surface Mount resistor KOA or 4 7K Philips 61 1 R13 6 49K ohm 0805 Surface Mount Resistor KOA or 6 49K Philips 62 4 R15 R16 R17 R18 220R ohm 0805 Surface Mount Resistor KOA or 220R Philips 63 8 R19 R20 R21 R22 R23 R24 R25 R32 0 ohm 0805 Surface Mount Resistor KOA or 330 Philips 64 9 R26 R27 R30 R31 R33 R34 R35 R36 120 ohm 0805 Surface Mount Resistor KOA or 120 R73 Philips 65 2 R37 R93 1M ohm 0805 Surface Mount Resistor KOA or 1M Philips 66 1 R38 22 1K ohm Surface Mount Resistor KOA or 2
62. ailable for you to upgrade this device to a 512K x 32 page mode flash memory U35 doubling the memory size to 4 Mbytes U19 or U35 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 NOTE The debug monitor firmware is installed in this flash device Development tools or your 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 programmed into the flash by applying a development port tool such as BDM Use caution to avoid this situation The M523xEVB dBUG debugger monitor firmware is programmed into the lower sectors of flash OxFFEO_0000 OxFFE2_FFFF for 2 Mbytes of flash or OxFFCO_0000 OxFFC2_FFFF for 4 Mbytes of flash M5235EVB User s Manual Rev 2 Freescale Semiconductor 7 By default with U19 fitted on the EVB jumper 64 JP64 provides an alternative hardware mechanism for write protection If you replaced U19 with the 32 bit flash device U35 jumper 31 JP31 has the same functionality as JP64 U35 also has it s own hardware write protect pin C5 that protects the bottom boot sector when pulled to ground 2 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
63. 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 only allow access to files starting at a particular sub directory This is a security feature that 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 server all filenames are relative to tftp boot As a result you normally are 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 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 srecord coff elf image Continuing with the above example the compiler produces an executable COFF file a out This file is cop
64. ct 0 This chip select has a jumper that can be removed if you are not using the ADC and wish to connect QSPI CSO to an alternate device 2 4 9 USB Host and Device The EVB features a USB controller interfaced externally to the MCF5235 via the DMA and external bus modules The USB controller can be configured to run in Host or Device mode There is a series A connector host and a series B connector device populated on the EVB Either can be used depending on whether the USB controller is configured to run in host or device mode Set JP56 between pins 2 and 3 to configure the controller for host mode or between pin 1 and 2 to configure the controller for device mode The USB controller also has On The Go OTG functionality There is a footprint on the EVB for an OTG Mini AB connector if you want to use USB OTG If using OTG JP55 must be fitted For more details see the Philips Semiconductor datasheet for the ISP1362 USB OTG controller There are a series of jumpers connected to the USB controller allowing you to disconnect the DMA and interrupt signals between the CPU and the USB controller if the USB controller is not in use This gives you access to the DMA timer module channels 1 and 2 and an extra interrupt signal Table 18 details these jumper settings M5235EVB User s Manual Rev 2 20 Freescale Semiconductor Table 18 USB DMA Enable and Disable Settings Jumper Functionality when Jumper is Fitted Functionality when
65. cter dumb terminal is used to connect to the debugger For serial communications dBUG requires eight data bits no parity and one stop bit 8 N 1 The baud rate default 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 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 The lt Backspace gt and Delete keys are recognized as rub out keys for correcting typographical mistakes Command lines may be recalled using the lt Control gt U lt Control gt 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 in uppercase or lowercase depending upon your 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
66. different modules inside the MCF5235 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 M5235EVB User s Manual Rev 2 Freescale Semiconductor 55 LR Loop Read 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 0x2_ 0000 the command is lod 20000 M5235EVB User s Manual Rev 2 56 Freescale Semiconductor LW Loop Write 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 word Examples To continually write the longword data 0x1234 5678 to address 0x2_ 0000 the command is lw 1 20000 12345678 The following command writes 0x78 into memory lw b 20000 12345678 M5235EVB User s Manual Rev 2 Freescale Semiconductor 57 MD Memory Display Usage MD lt width gt lt begin gt lt end gt The MD command displays a contiguous block of memory star
67. dress is incremented to 0x0004 0002 and the next 16 bit value is read and compared To search for the 32 bit value OXABCD in the memory block starting at 0x0004 0000 and ending at 0x0008 0000 bs l 40000 80000 ABCD This reads the 32 bit word located at 0x0004 0000 and compares it against the 32 bit value 0x0000 ABCD If no match is found then the address is incremented to 0x0004 0004 and the next 32 bit value is read and compared M5235EVB User s Manual Rev 2 44 Freescale Semiconductor DC Data Conversion 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 data is interpreted as a hexadecimal value Otherwise data is interpreted as a decimal value All values are treated as 32 bit quantities Examples To display the decimal and binary equivalent of 0x1234 the command is de 0x1234 To display the hexadecimal and binary equivalent of 1234 the command is de 1234 M5235EVB User s Manual Rev 2 Freescale Semiconductor 45 DI Disassemble 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 uses information from the symbol table to produce a more meanin
68. efer to the following list and verify that all the items are present You should have received M523xEVB Single Board Computer M5235EVB User s Manual this document One RS232 communication cable One BDM background debug mode wiggler cable MCF5235 Reference Manual ColdFire Programmers Reference Manual A selection of third party developer tools and literature NOTE Avoid touching the MOS devices Static discharge can damage these devices After 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 end of this manual 3 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 9 shows the position of the jumpers and connectors 3 2 3 Providing Power to the Board The EVB requires an external supply voltage of 7 14 V DC minimum 1 Amp 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 P2 is a 2 1mm power jack Figure 6 P3 is a lever actuated connector
69. en no character is present A non zero value in DO means a character is present Assembly example move l 50014 d0 Select the function trap 15 Make the call d0 contains the response yes no C example int board char present void asm move 1 0x0014 d0 select the function asm trap 15 make the call 4 5 4 EXIT_TO_dBUG This function function code 0x0000 transfers the control back to the dBUG by terminating your code The register context are preserved M5235EVB User s Manual Rev 2 72 Freescale Semiconductor Assembly example move l 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 5 Configuring dBUG for Network 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 5 1 Required Network Parameters For performing network downloads dBUG needs six parameters four are network related and two are download related The parameters are listed below with the dBUG designati
70. escale Semiconductor Table 7 SW7 5 Chip Configuration Mode SW7 5 RCON SW7 1 Mode OFF ON Reserved ON ON Master X OFF Master Table 8 SW7 7 6 Boot Device SW7 6 SW7 7 RCON SW7 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 9 SW7 8 Bus Drive Strength SW7 8 RCON SW7 1 Drive Strength OFF ON Partial Bus Drive ON ON Full Bus Drive X OFF Partial Bus Drive Table 10 SW7 10 9 Address Chip Select Mode SW7 9 SW7 10 RCON SW7 1 Mode OFF OFF ON PADDR 7 5 CS 6 4 OFF ON ON PADDR 7 586 PADDR 6 5 A 22 21 ON OFF ON PADDR 7 6 CS 6 5 PADDR 5 A21 ON ON ON PADDR 7 5 A 23 21 x x OFF PADDR 7 5 A 23 21 2 3 2 Clock Circuitry There are three options to supply the clock to the CPU These options are configured by setting JP 35 37 Table 11 M523xEVB Clock Source Selection JP35 JP36 JP37 Clock Selection 1 2 1 2 ON 25 MHz Oscillator default setting 2 3 1 2 ON 25 MHz External Clock X 2 3 OFF 25 MHz Crystal not populated M5235EVB User s Manual Rev 2 Freescale Semiconductor 11 The 25 MHz oscillator U23 also feeds the Ethernet chip U11 There is also a 12 MHz crystal feeding the USB controller U33 2 3 3 Watchdog Timer The dBUG fir
71. ffset to the destination address of 0x40 the command is dil 0x40 M5235EVB User s Manual Rev 2 Freescale Semiconductor 47 DLDBUG Download dBUG 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 prompts you for verification before any actions are taken If the command is affirmed the flash is erased and you are prompted to begin sending the new dBUG S record file The file should be sent as a text file with no special transfer protocol CAUTION Use this command with extreme caution as any error can render dBUG useless M5235EVB User s Manual Rev 2 48 Freescale Semiconductor DN Download Network Usage DN c lt e gt lt 1 gt lt s gt lt o offset lt filename gt The DN command downloads code from the network The DN command manages files that are 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 c option indicates a COFF download e option indicates ELF download ioption indicates an image download sindicates an S record download o opti
72. for daughter card UNI 3 connector for motor control cards Software Resident firmware package that provides a self contained programming and operating environment dBUG M5235EVB User s Manual Rev 2 Freescale Semiconductor 26 pin Debug Header ColdFire MCF523X Clocking Me circuitry USB 2 0 Host amp Device ADC ETPU Headers DB 9 2 RS 232 connector transceivers 2 RJ 45 Ethernet connector Transceiver 25 MHz Osc DB 9 CAN Transceiver connector RS 232 CAN Transceiver Peripheral signals Data 31 0 Control Signals DB 9 connector im j 5 Wes Eri MRAM yte 4 60 pin Daughter Card expansion connectors A jumper chooses between 16 eTPU channels and Ethernet or 32 eTPU channels and no Ethernet Figure 1 M523xEVB Block Diagram 2 1 MCF5235 Microprocessor The microprocessor used on the EVB is the highly integrated Freescale MCF5235 32 bit ColdFire variable length RISC processor The MCF5235 implements a Version 2 ColdFire core with a maximum core frequency of 150 MHz and external bus speed of 75 MHz Features of the MCF5235 include V2 ColdFire core with enhanced multiply accumulate unit EMAC providing 144 Dhrystone 2 1 MIPS 150 MHz eTPU with 16 or 32 channels 6 Kbytes of code memory and 1 5 Kbytes of data memory with debug support 64 Kbytes of internal SRAM Externa
73. gful 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 0x0004 0000 the command is di 40000 To disassemble code of the C function main the command is di main M5235EVB User s Manual Rev 2 46 Freescale Semiconductor DL Download Console 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 Family 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 dl To download an S record file through the serial port and add an o
74. ied 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 M5235EVB User s Manual Rev 2 74 Freescale Semiconductor 5 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 IP address already assigned to another machine causes 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 that can be used to connect to the TFTP server as well Is the default TFTP root directory present and readable IfICMP 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 termina
75. itry required to implement the functionality of these modules Table 16 lists the appropriate jumper settings to enable eTPU or FEC functionality on these pins The MCF5235 device performs the full set of IEEE 802 3 Ethernet CSMA CD media access control and channel interface functions The MCF5235 Ethernet controller requires an external interface adaptor and M5235EVB User s Manual Rev 2 Freescale Semiconductor 15 transceiver function to complete the interface to the ethernet media The MCF5235 Ethernet module also features an integrated fast 100baseT Ethernet media access controller MAC The Fast Ethernet controller FEC incorporates the following features 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 IEEE 802 3 full duplex flow control Programmable max frame length supports IEEE 802 1 VLAN tags and priority Support for full duplex operation 200Mbps throughput with a minimum system clock rate of 50 MHz Support for half duplex operation 100Mbps throughput with a minimum system clock rate of 25 MHz Retransmission from transmit FIFO following a collision no processor bus utilization 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 acce
76. k to dBUG Examples To execute code up to the C function bench the command is gt bench M5235EVB User s Manual Rev 2 52 Freescale Semiconductor 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 your 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 M5235EVB User s Manual Rev 2 Freescale Semiconductor 53 IRD Internal Register Display Usage IRD lt module register gt This command displays the internal registers of different modules inside the MCF5235 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 the module to which they belong Use the IRD command without any parameters to get a list of all the valid modules Refer to the MCF5235 Reference Manual for more information on these modules and the registers they contain Example ird sim rsr M5235EVB User s Manual Rev 2 54 Freescale Semiconductor IRM Internal Register Modify Usage IRM module register data This command modifies the contents of the internal registers of
77. l bus speed of one half the CPU operating frequency 75 MHz bus 150 MHz core 10 100 Mbps bus mastering Ethernet controller M5235EVB User s Manual Rev 2 4 Freescale Semiconductor 8 Kbytes of configurable instruction data cache Three universal asynchronous receiver transmitters UARTs with DMA support Controller area network 2 0B FlexCAN module Optional second FlexCAN module multiplexed with the third UART Inter integrated circuit PC bus controller Queued serial peripheral interface QSPI module 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 Four channel 16 bit periodic interrupt timers PITs Programmable software watchdog timer Interrupt controller capable of handling up to 126 interrupt sources Clock module with Phase Locked Loop PLL External bus interface module including a 2 bank synchronous DRAM controller 32 bit non multiplexed bus with up to 8 chip select signals that support page mode flash memories The MCF5235 communicates with external devices over a 32 bit wide data bus D 31 0 The MCF5235 can address a 32 bit address range However only 24 bits are available on the external bus A 23 0 There are internally generated chip selects to allow the full 32 bit address
78. m HoT payseunn ue o pepieuuoo aq o r NS SVIF poou sogewatps vo suospouuoo ed pue popouuooun sp tusucdul ONO MS wopeso nett punai6 eqaid adoos jo uogoouuoo seo oy GOA a E 89d Jo sjeuioo eu JE ZLd L9 bbl Old Edl OBd ALON uojpesoj si LMS 104 195 ejoN DOOD oun TOORN Oen 13638 XCES4ON xs 48 38 OL STYNOIS 920 3 120 910 3HL MOTIV OL FERT 1 3 40 SNid 318VN3 LNdINO INYO OL CASN 5 sli 9 sl 38 LSNA 1NO1SW SLON HAEC i i anoo Y t Y t t z if Hane gt WE th tp m p aee aee YOOTO ndo P Lino onenua no Gm sanoa lt gt Svar tinua o vvar orassod se a90 AXIN WLA 0290P ni P omg muc P am zino1a p D var unuo o 0 801 ur 010385 ALUM LON Ov R zs annua ea m Xo war uouo s ovar 1 41 AHVIS H3JSNVHL RI k P ou L P lt gt su amona A
79. mware does not enable the watchdog timer on the MCF5235 2 3 4 Exception Sources The ColdFire family of processors supports seven levels of interrupt priorities When the processor receives an interrupt with a higher priority than the current interrupt mask in the status register it performs an interrupt acknowledge cycle at the end of the current instruction cycle This interrupt acknowledge cycle tells the interrupt source that the request is acknowledged and the source should provide the vector number to indicate where the service routine for this interrupt level is located If the interrupt source is not capable of providing a vector its interrupt should be set up as an auto vector interrupt that directs the processor to a predefined entry in the exception table refer to the MCF5235 Reference Manual The processor goes to an exception routine via the exception table This table is stored in the flash EEPROM and its address location is stored in the VBR The dBUG ROM monitor writes a copy of the exception table into the RAM starting at 0x0000 0000 To set an exception vector place the address of the exception handler in the appropriate vector in the vector table and then point the VBR to 0x0000 0000 The MCF5235 microprocessor has seven external interrupt request lines IRQ 7 1 The interrupt controller is capable of providing up to 63 interrupt sources These sources are External interrupt signals IRQ 7 1 EPORT Software watchdog
80. nected M5235EVB User s Manual Rev 2 Freescale Semiconductor 31 Figure 9 shows the jumper locations for the board H Ti EDO yn M E a zB J Figure 9 Jumper Locations 333 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 ColdFire 5235 on the M523xEVB Firmware v3b la xx Built on XX XXXX XX XX XX M5235EVB User s Manual Rev 2 32 Freescale Semiconductor Copyright 1995 2004 Freescale Semiconductor Inc Enter help for help dBUG gt The board is now ready for operation under the control of the debugger as described in Section 4 Using the Monitor Debug Firmware 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 a proper response does not occur after these steps your board may have been damaged Contact Freescale Semiconductor for further instructi
81. ned in Section 4 4 Commands An additional function called the system call allows your program to use various routines within dBUG The system call is discussed at the end of this section M5235EVB User s Manual Rev 2 Freescale Semiconductor 33 The operational mode of dBUG is demonstrated in Figure 10 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 your program the dBUG firmware may or may not be re entered at the discretion of your program For the alternate case the command is 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 e B 8 bit byte access W 16 bit word access e L 32 bit long access When no lt width gt option is provided the default width is W 16 bit The ColdFire core register set is maintained by dBUG These are listed below A0 A7 D0 D7 e PC SR All control registers on ColdFire are not readable by the supervisor programming model and thus not accessible via dBUG Your code may change these registers but caution must be exercised as changes may
82. ned radix hexadecimal by default Example To verify that the data starting at 0 2 0000 and ending at 0x3 0000 is identical to the data starting at 0 8 0000 the command is bc 20000 80000 10000 M5235EVB User s Manual Rev 2 40 Freescale Semiconductor BF Block Fill 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 the operation this command performs properly aligned memory accesses Examples To fill a memory block starting at 0x0002 0000 and ending at 0x0004 0000 with the value 0x1234 the command is bf 20000 40000 1234 To fill a block of memory starting at 0x0002 0000 and ending at 0x0004 0000 with a byte value of 0xA B the command is bf b 20000 40000 AB To
83. ode Standby High Speed No Slope Control JP4 CAN Termination Terminating resistor No terminating resistor between CANL and CANH 2 4 3 FIexCANO Port The EVB provides one dedicated CAN transceiver The CANOTX and CANORX signals are brought out to a 3 3V CAN transceiver Texas Instruments SN65HVD230D Jumper and JP2 control the CAN hardware configuration Table 14 FlexCANO Jumper Configuration Jumper Function ON OFF JP1 Transceiver mode Standby High Speed No Slope Control JP2 CAN Termination Terminating resistor No terminating resistor between CANL and CANH The CANL and CANH signals are brought out from the CAN transceiver to a female DB 9 connector P1 in the configuration below 2 4 4 Table 15 CAN Bus Connector Pinout DB 9 pin Signal 1 4 6 7 9 Not Connected 2 CANL 3 Ground 7 CANH 10 100T Ethernet Port The MCF5235 microprocessor populated on the EVB is a superset device of the MCF523x family The upper 16 eTPU channels are multiplexed with the ethernet port giving you the choice of using the full 32 channels of eTPU or 16 channels of eTPU with the Fast Ethernet controller FEC activated Pin M4 on the MCF5235 configures the internal functionality of these 16 pins If you are using the FEC pin M4 must be pulled low by setting SW7 11 to the ON position These 16 pins are also jumper selectable between the eTPU and the FEC to isolate the external circu
84. ol registers specifying the operation of any memories e g cache and or RAM modules connected directly to the processor are disabled After the processor is granted the bus it then performs two longword read bus cycles The first longword at address 0 0000 0000 is loaded into the stack pointer and the second longword at address 0x0000 0004 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 size that the MCF5235 accesses at address 0 0000 0000 is determined at reset by sampling D 20 19 Table 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 2 3 Support Logic 2 3 1 Reset Logic The reset logic provides system initialization Reset occurs at power on or by asserting RESET via SW6 M5235EVB User s Manual Rev 2 Freescale Semiconductor 9 dBUG configures the MCF5235 microprocessor internal resources during initialization Instruction cache is invalidated and disabled Vector base register VBR contains an address that initially points to the flash memory Contents of the exception table are written to address 0x0000 0000 in the SDRAM
85. on following in parenthesis All computers connected to an Ethernet network running the IP protocol need three 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 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 IP address of the board Server IP IP address of the TFTP server Gateway IP address of the gateway Netmask Network netmask M5235EVB User s Manual Rev 2 Freescale Semiconductor 73 5 2 Configuring dBUG Network Parameters After the network parameters have been obtained the ROM monitor must be configured The following commands are used to configure the network parameters set client client IP 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
86. on 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 1 s or filename options are specified then a default filename and filetype is 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 that contain symbolic debug information the symbol tables are extracted from the file during download and used by dBUG Only global symbols are kept in dBUG The dBUG symbol table is not cleared prior to downloading So it is your 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 an S record file with the name srec out the command is dn s srec out To download a COFF 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 M5235EVB User s Manual Rev 2 Freescale Semicond
87. ons Please see the end of this manual for contact details 3 4 Using The BDM Port The MCF5235 microprocessor has a built in debug module referred to as BDM background debug module 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 MCF5235 Reference Manual for additional instructions NOTE BDM functionality and use is supported by third party developer software tools Details may be found on the CD ROM included in this kit 4 Using the Monitor Debug Firmware The M523xEVB single board computer has a resident firmware package that provides a self contained programming and operating environment The firmware named dBUG provides you with a monitor debug interface inline assembler and disassembly program download register and memory manipulation and I O control functions This section is a how to use description of the dBUG package including the user interface and command structure 4 1 What is dBUG dBUG is a traditional ROM monitor debugger that offers a comfortable and intuitive command line interface 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 you through pre defined commands that are entered via the terminal These commands are defi
88. other control signals The processor then waits for a transfer acknowledgment TA from within auto acknowledge AA mode or from the externally addressed device before it can complete the bus cycle TA is indicates the completion of the bus cycle It also allows devices with different access times to communicate with the processor properly asynchronously The MCF5235 processor as part of the chip select logic has a built in mechanism to generate TA for all external devices that cannot 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 To support future expansion of the M523xEVB the TA input of the processor is also connected to the processor expansion bus J9 pin 44 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 2 3 6 User s Program JP64 on the 16 Mbit flash U19 or JP31 if using 32 Mbit flash U35 allows you 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 dBUG boots and then runs from OxFFEO 0000 OxFFCO
89. pted or always rejected Exact match for single 48 bit individual unicast address Hash 64 bit hash check of individual unicast addresses Hash 64 bit hash check of group multicast addresses Promiscuous mode For more details see the MCF5235 Reference Manual The on board ROM monitor is programmed to allow you to download files from a network to memory in different formats The current compiler formats supported are S Record COFF ELF or Image Table 16 Ethernet eTPU Jumper Configuration Jumper Pin pane JP5 D5 2 3 ERXER 1 2 23 JP9 C5 2 3 ETXCLK 1 2 22 JP10 B5 2 3 ETXD2 1 2 18 JP11 A5 2 3 ETXD1 1 2 17 JP13 D6 2 3 ETXEN 1 2 21 JP14 C6 2 3 ETXER 1 2 20 JP15 B6 2 3 ETXD3 1 2 19 JP16 C4 2 3 ERXDO 1 2 24 JP17 B7 2 3 ETXDO 1 2 16 JP18 C3 2 3 ERXD1 1 2 25 M5235EVB User s Manual Rev 2 Freescale Semiconductor Table 16 Ethernet eTPU Jumper Configuration continued Jumper Pin Ethernet Ethernet eTPU eTPU Setting Signal Setting Channel JP19 D4 2 3 ERXD2 1 2 26 JP20 D3 2 3 ERXD3 1 2 27 JP21 E3 2 3 ERXCLK 1 2 29 JP22 E4 2 3 ERXDV 1 2 28 JP23 F3 2 3 ECOL 1 2 31 JP24 F4 2 3 ECRS 1 2 30 2 4 5 eTPU The eTPU is an intelligent programmable I O controller with its own core and memory system allowing it to perform complex timing and I O management independently of the CPU The eTPU is essen
90. 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 Section 6 Schematics for their pin assignments The MCF5235 processor supports BDM and JTAG These ports are multiplexed and can be used with third party tools to allow you to download code to the board The board is configured to boot up in the normal BDM mode of operation The BDM signals are available at the port labeled BDM M5235EVB User s Manual Rev 2 Freescale Semiconductor Figure 2 shows the MCF5235 processor block diagram To From SRAM backdoor i Y Arbiter r INTCO INTC1 FAST To From PADI a ETHERNET CONTROLLER FEC EIM CHIP SELECTS EBI AA To From PADI 49 4 DMA To From PADI A Y i DREQ 2 0 DACK 2 0 JTAG_EN SDRAMC V2 ColdFire CPU DIV EMAC JTAG lt TAP Watchdog Timer MDHA Cryptography Modules ti 64 Kbytes 8 Kbytes SRAM CACHE 8Kx16 x4 1Kx32 x2 To From Arbiter PORTS GPIO
91. rial terminal A number of baud rates can be programmed On power up or manual reset dBUG ROM monitor firmware configures the channel for 19200 baud When the dBUG ROM monitor is running a SET command may be issued to select any baud rate supported by the ROM monitor 3 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 eight 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 3 2 8 Connecting the Terminal The board is now ready to be connected to a PC terminal 1 Use the RS 232 serial cable to connect the PC terminal to the M523xEVB 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 P4 on the M523xEVB board 3 Connect the 9 pin female connector to one of the available serial communication channels normally referred to as COMI COM2 etc on the PC running terminal emulation software The connector on the PC terminal may be male 25 pin or 9 pin It may be necessary to obtain a 25 pin to 9 pin adapter to make this connection If an adapter is required refer to Figure 8 3 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
92. rsonal 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 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 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 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 2007 All rights reserved lt gt Z freescale semiconductor
93. sembler only use the first 31 characters Symbol names are case sensitive Symbols can also be added to the symbol table via inline assembly labels and ethernet downloads of ELF formatted files Examples To define the symbol main to have the value 0x0004 0000 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 M5235EVB User s Manual Rev 2 68 Freescale Semiconductor TRACE Trace Into 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 cE To trace 20 instructions from the program counter the command is tr 20 M5235EVB User s Manual Rev 2 Freescale Semiconductor 69 UP Upload Data 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
94. 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 reserves 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 pe
95. t the address are disassembled and you are 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 You may press the lt Enter gt or lt Return gt key to accept the current memory contents and skip to the next instruction or enter a period to quit the interactive mode In the non interactive mode specify 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 0 0001 0000 the command is asm 10000 nop To interactively assemble memory at address 0x0040_ 0000 the command is asm 400000 M5235EVB User s Manual Rev 2 Freescale Semiconductor 39 BC Block Compare Usage BC addr1 addr2 length The BC command compares two contiguous blocks of memory on a byte by byte basis The first block starts at address addr1 and the second starts 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 addr 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 defi
96. ta 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 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 is not written to the register until target code is executed Examples To change register DO to contain the value 0x1234 the command is rm DO 1234 M5235EVB User s Manual Rev 2 62 Freescale Semiconductor RESET Reset the Board and dBUG 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 M5235EVB User s Manual Rev 2 Freescale Semiconductor 63 SD Stack Dump 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 1 e nested function calls After control is returned to dBUG the SD command decodes the stack frames and display a trace of the function calls M5235EVB User s Manual Rev 2 64 Freescale Semiconductor SET Set Configurations Usage SET lt option value gt The S
97. te 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 M5235EVB User s Manual Rev 2 Freescale Semiconductor 75 Schematics 6 n ob Jo L yeas 2002 ysnBny Aepuowy B pue JEJOUSD OSEOZ HOS 8 JequnwNjueumoog 9245 en 3 GOAL 9dS1 SdS PIOIOIOW squtod 1591 TTY XMS p qou p 5 TTY s1032euuoo 25 AWS ALX 4n 0 uey sdeo pejeas 080 AWS 900 0 ueuq sdeo IV S930N 69a BIA LIN TA uo sIojsrsor WYO YI PM uno WIT ES 10 Snv 90 2 pue 10 WVAN U INV4ISV DDA ssed oj 19p10 510351891 WYO TLA GTA BTA 510 515 1 ZOAPY D L0 RW 0 9 a m E 8AH TA JO WOISIOAUOD SHOY 199 191 o 9354 SILWAJI UOISIAIY ZOARY 0 AON IT m
98. termine if use of a gateway is required This field must be properly set Your local network administrator has 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 filetype to be used for network download if no type is provided to the DN command Valid values are srecord coff and elf mac This is the ethernet Media Access Control MAC address 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 M5235EVB User s Manual Rev 2 Freescale Semiconductor 65 SHOW Show Configurations 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 client 0 gateway 0 0 0 0 netmask 255 255 255 0 filename test s19 filetype S Record ethaddr 00 CF 52 82 CF 01 0 0 0 0 0 0 M523
99. the board and which regions of memory are reserved protected for dBUG use Here is an example of the output from this command End OxOOFFFFFF 0x20 OOFFFF 0x3007FFFF Ox7FFFFFFF OxFFFFFFFF E3FFFF Type Start SDRAM 0x00000000 SRAM Int 0x20000000 MRAM Ext 0x30000000 IPSBAR 0x40000000 Flash Ext OxFFEOO0000 Protected Start dBUG Code OxFFEOO0000 dBUG Data 0x00000000 Chip Selects CSO Ext Flash CS1 Ext MRAM M5235EVB User s Manual Rev 2 OOFFFF Port Size 60 Freescale Semiconductor RD Register Display 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 pc 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 M5235EVB User s Manual Rev 2 Freescale Semiconductor 61 RM Register Modify Usage RM reg data The RM command modifies the contents of the register reg to da
100. tially a co processor designed for timing control I O handling serial communications motor control and engine control applications and accesses data without the host CPU s intervention Consequently the host CPU setup and service times for each timer event are minimized or eliminated The eTPU is an enhanced version of the TPU module implemented on the MC68332 and MPC500 products Enhancements of the eTPU include a more powerful processor that handles high level C code efficiently and has more functionality and increased performance Although there is no compatibility at the microcode level the eTPU maintains several features of older TPU versions and is conceptually almost identical The eTPU library is a superset of the standard TPU library functions modified to take advantage of enhancements in the eTPU These along with a C compiler make it relatively easy to port older applications By providing source code for the Freescale library it is possible for the eTPU to support your own function development The eTPU has up to 32 timer channels in addition to having 6 Kbytes of code memory and 1 5 Kbytes of data memory that stores software modules downloaded at boot time and that can be mixed and matched as required for any specific application As mentioned in Section 2 4 4 10 100T Ethernet Port the upper 16 channels of the eTPU are multiplexed with the Fast Ethernet controller Refer to Table 16 to set the appropriate jumpers to enable 1
101. timer module Timer modules UART modules 0 1 and 2 C module DMA module QSPI module FEC module PIT Security module FlexCANO and FlexCANI eTPU 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 its priority programmed by setting the xIPL 2 0 bits in the interrupt control registers except interrupts 1 7 because they have a fixed priority M5235EVB User s Manual Rev 2 12 Freescale Semiconductor No interrupt sources should have the same level and priority as another Programming two interrupt sources with the same level and priority results in undefined operation The M523xEVB hardware uses IRQ7 to support the ABORT function using the ABORT switch SW5 This switch is used to force an interrupt level 7 priority 3 if your program execution should be aborted without issuing a reset refer to Section 4 Using the Monitor Debug Firmware for more information on ABORT Because 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 the MCF5235 Reference Manual for more information about the interrupt controller 2 3 5 Generation The processor starts a bus cycle by asserting CSx with the
102. ting 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 lt width gt is specified the default of word sized data is used Memory display 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 displays 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 0x0040_ 0000 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 0x0004 0000 to 0x0005 0000 the command is md b 40000 50000 To display a range of 32 bit values starting at 0xX0004 0000 and ending at 0x0005 0000 md 1 40000 50000 M5235EVB User s Manual Rev 2 58 Freescale Semiconductor MM Memory Modify 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
103. uctor 49 FL Flash Utilities 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 displays information about the flash devices on the EVB erases a specified range of flash or erases and programs a specified range of flash When issued with no parameters the FL command displays 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 attempts to erase the number of bytes specified on the command line beginning at addr If this range doesn t start and end on flash sector boundaries the range is adjusted automatically and you are prompted for verification before proceeding When the write command is given the FL command programs the number of bytes specified from src to dest An erase of this region is first attempted As with the erase command if the flash range to be programmed does not start and end on flash sector boundaries the range is adjusted and you are 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 M5235EVB User s Manual Rev 2 50 Freescale Semiconductor GO Execute Usage
104. ue ssauppy ida 8 SH3AHOSNVML Sn VL vd r 1OSVzoVXO TOW QNS an9 29 aoz DOA 301 I 99 eaz vz gz ove gaz sve saz pve vaz eve egz ave zaz CAE woow D 18 LLOLOATHANS 9vi oat svi sal A 8 fala val 29 QN9 Har tvi p 5 Y vt 281 959r rf 181 sn s 2507 LOS ZOLXOTHLOW QNS 29 aoz DOA 301 DOA ave egz vz 192 ove gaz sve saz pve vaz eve egz ave zaz 1 182 eat 18 9vi oat svi sal val tvi p zvi zat f 181 o 2 so M5235EVB User s Manual Rev 2 79 Freescale Semiconductor Freescale Semiconductor n Jo 9 19914 1002 IsnBnv Repu aed NVOOREOZHOS Jequmw juounsoq SA3Xezaw T a dnoi9 4 GOAL 451 548 LIION ED ano anyo 6 8 9 910 z9 va penu S 10 Bues 5 L jeuueu NYO sili g aby T 3 NO NYS a J HNVO QN9 z
105. vel 3 priority 2 and autovector mode of operation The interrupt level for UART1 is programmed to level 3 priority 1 and autovector mode of operation The signals from these channels are available on expansion connectors J7 and J8 The UARTO and UARTI signals are passed through the RS 232 transceivers U30 amp U31 and are available on DB 9 connectors P4 and P5 Refer to the MCF5235 Reference Manual for programming the UARTs and their register maps 2 4 2 UART2 FlexCAN1 Port The third UART on the MCF5235 is multiplexed with the second FlexCAN module FlexCAN1 The functionality of these ports is jumper selectable on the EVB Table 12 shows the jumper configuration to activate UART2 or FlexCANI Table 12 UART2 FlexCAN1 Jumper Configuration Jumper UART2 Setting FlexCAN1 Setting JP7 1 2 2 3 JP12 1 2 2 3 JP25 2 3 JP26 2 3 JP50 2 3 1 2 JP51 2 3 1 2 JP52 2 3 1 2 The signals of UART2 are passed through RS 232 transceiver U32 and are jumper selectable see Table 12 on DB 9 connector P6 The CANITX and CANIRX signals from FlexCANI are brought out to a 3 3 V CAN transceiver Texas Instruments SN65HVD230D and are jumper selectable see Table 12 on DB 9 connector P6 Jumpers JP3 and JP4 control the CAN hardware configuration M5235EVB User s Manual Rev 2 14 Freescale Semiconductor Table 13 FlexCAN1 Jumper Configuration Jumper Function ON OFF JP3 Transceiver m
106. x Joye 0 5 jueuurbog SA3629W nos 0031 9551 545 BOON Noo To Jaona ANOLSH 18 180d 1ds0 050971450 1450 NIG 1450 XOS 1450 1noisur 13834 1 suojeuuog uosuedg 154 vu osaroar nosaisau HOYIL siqondin Sigond11 IosijHondt TerieiHonaz 1 4 1 cjus WWW Sreus NO wes qoq soys puoya pous sema Gieeus nm Rowen zi nsa 77 M5235EVB User s Manual Rev 2 Freescale Semiconductor 100 pL ISnBnv WVU OS 0Z HOS a Jequmwiueumoog zs enn 4 dnoig epo 202000 anyo anyo anyo anyo ED 89 19 9 59 vo 19 4 4 4051 95551 91 gny queoyluBis ise l 0S9 pue 559508 sue q jueoyiubis zon youl eu 519995 S8 ALON 1 od lo e sg 0587 1597 1597 9v Sv W Ev aw 4051 OSESIV9LVZHIN
107. y example assume dl 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 that takes this into account if 1 LINK a6 0 produced by C compiler asm move 18 a6 d1 put ch into dl M5235EVB User s Manual Rev 2 Freescale Semiconductor 71 asm move 1 0x0013 d0 select the function asm trap 15 make the call UNLK a6 produced by C compiler else If C compiler does not produce a LINK UNLK pair the use the following code asm move l4 sp d1 put ch into dl asm move 140x0013 d0 select the function asm trap 15 make the call fendif 4 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 example move l 50010 d0 Select the function trap 15 Make the call the input character is in dl C example int board_in char void asm move 1 0x0010 d0 select the function asm trap 15 make the call asm move ld1 d0 put the character in d0 4 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 wh
108. ye sjea Al8Wassv AS L 9 eoueuayip Q3TIVLSNI enjsseoxe sepolq 3LON 38 4 rear px aes nici noe M0001 anyo oss 9210 wa 5219 sia _ velo tao ZO ASZ Sny Eu LI indi yje g 9 fg mop wed z 9 6 AS ET z 100A NA Er ZO 6 i a 3 T 95 td S sgsszw1 IZN Jopeuuog eM Ken z 2 A0 S e6p3 1545 3415 MS YIMOd ZLLOd Ve uerus ES a WL Jojoeuuo Jamo ET dione O zzo L LL 804 jo useiosyys oz uo uwous aq 1sntu olp uuoo Jowod ond ae d giono eo jo exysod 3LON 5 O 681181 Io AAA z 1 NA LE AREY AL 3 eo Od a E E S96SZWT OZN ances soyeinBey A18Wassv NING Q3TIVLSNI 38 M5235EVB User s Manual Rev 2 87 Freescale Semiconductor
Download Pdf Manuals
Related Search
Related Contents
Tripp Lite SmartOnline 100-127V 1.5kVA 1.35kW On-Line Double-Conversion UPS, Extended Run, SNMP, Webcard, Tower, LCD display, USB, DB9 Serial INSTRUCTION MANUAL NOTICE D'UTILISATION Chimie générale 取扱説明書 iPod touch Manual do Utilizador Rexel Sola ハイスピードプーリーキット 取扱説明書 strip eze cdn data sheet.indd MAX-5000 User`s Manual - Arizona Instrument LLC 10evolution4 Copyright © All rights reserved.
Failed to retrieve file