Home

M5235EVB User`s Manual - RS Components International

image

Contents

1. a 9 9 5002 52 nr Repson L E Iyoy 08 02 25 2 10159 wewinoog ezs oelvivaa gt SES SA3XEZGN Baas an en BIRR EIS lo tela 97019 91209 0931 0951 545 BB 8 555 83 E 23 6444 ia gy 5 89 88 o o 332350 oa 95 ods e 98 B9 agg 88 5
2. 3 2 3 2 1 System PowerUp sasana 3 2 32 2 System Tata Zt eos nat od intct ona Piney ea in aat PARRA Rte edd oa t ER UR 3 3 3 2 2 1 External RESET BUOM 3 4 32 2 2 ABORT atu MEN d M LM UE E 3 4 3223 Software Reset Command ANE 3 4 3 3 Command Eine Usage susce ire 3 4 3 4 aget 3 5 3 5 TRAP 15 F nctlong o doen viec Sort y erre aee rede ert 3 39 3 5 1 MM CE NE ELE 3 39 252 BIN OCT AIR RR hs 3 40 3 5 3 CIDARXPBESEBU lA 3 40 3 5 4 EXIT TO dB 3 41 Appendix Configuring dBUG for Network Downloads A l Required Network 1 amp 8 a Int D Dente e 4 1 2 Configuring dBUG Network 18 102 2 0 0 000 000000000000 4 Troubleshooting Network Problems Venue dn Vt 4 2 Appendix Schematics Appendix C Evaluation Board BOM M523xEVB User s Manual Rev 1 2 vi Freescale Semiconductor Figures Figure Page Number Tile Number 1 1
3. 7910 m Peigeu3 nd1e UMS 01 esop god eu jo episda eu uo uee osyis uo sejqei LON sieh UL JApejieeaippy reposui a uonein yuoo jeseH OBEOZ HOS 9216 19 NO apo sseippy 6 epowsseippy pepoou3 NO 12 slad 1 9150 9 38 330 NO mE n ana sng 14 8 sng 240 s 9 3d 952 23d NO 440 ua ze NO NO 114 NO asmaq 100g pepoou3 L 100g pepoou3 LU MM ZZ CB en 1 9150 5 144 330 Qia 91 330 NO 49019 uoneredo Tid NO 100g 9 eoe 1008 pepoou3 19 3 330 Jasen NO 330 ado pepoou3 5 epo 290 pepoou3 dnog eii4pio9 0031 9851 545 elogio et 16 9191 sjeuuey apow OLMS 64 6 19 26 330 340 330 39019 330 poW 49019 v poi pepoou3 12ejes diyo sseippy pepoou3 mL UEM ECT PEN DUCES x20 pepoou3 pow LINS SMS SLMS pow pelqeu3
4. ER Ga e1no1a d Svar enoa lt gt o aiqissod se YJASNVYL WDA OF vu o SE gt am zinoia zinoa lt gt Lal s evar 10 160 0123145 LON 0557 lt gt agua qan noia Sal tdl lt _ gt lt gt z 151 UBASNVYL d d 31 0NILG lt gt Ga101n01a sat m ud onora 2 0 TASSA T vu peni SI 20 Buas eiqeua eis 390 adot uj e LON 084 edt LELI 0 Iroyin 10 59 PORN mange sale ta 6 3 t e z od gt Oda a AG E Ag e ast YOJIMS 10 yod waa eui oi 5 pue pezeyng Lb XP Lb XP lt lt gt 1 5 lt a Nusa Waa g ld sear 2 Y zj asa z H 5 Lt H 6 Tiassa Wh 001 62 22899 RE IMS lt Da Tle 15 ZOYI 2 1 sen 0 5 991 13538 034 Ms H3TIOHINOO 3SN3S BOVIIOA 1ISIY OYVH 0 58
5. 1 7 1 2 5 1 Reset Vector incisa oT eed ate IU rte I 1 8 1 3 SUppotb dua oui ea 1 8 1 3 1 Reset Logit nes 1 8 1 3 2 Clock 1 10 1 3 3 Wy ALC OB TIMer Sede NU EE 1 10 1 3 4 Exception SOUL CES 1 11 1 3 5 TA Generation rti 1 11 1 3 6 7566 avo eR A 1 12 1 4 Comm nication POTS 1252 8 d ave tes tasted rios ette 1 12 1 4 1 and UAR TE 2 2 entr dr orb oerte erdt e t e erede eee 1 12 1 4 2 RAR PIECING I Ex 1 13 1 4 3 FIeExCANO POT mee mA S edi 1 13 1 4 4 TO TOUT Ethernet POL ege e tit e eit ese todos 1 14 1 4 5 Los SE 1 15 1 4 6 BDM JLAG P rf eit toe tir end dei Nd tige dees 1 16 1 4 7 D p T 1 17 1 4 8 SPI ale cot aac ca a EE ELM EU MEM E ERE 1 18 1 4 9 HSB Hostand Device sciiicet tanus eot cu d DA ede ree 1 18 1 5 Connectors User Components us oe aer rade 1 19 1 5 1 Daughter Card Expa
6. SSA 600 OSSA OSSA SSA OSSA 9oad soa vod toa OSSA zoa ood gen PIM 114 91 Was lo elsay kd SL 1894 5002 792 kepsen 2920 On euas 08 02 25 Jequinn weunsog ezs anaxezsn en 2 GOAL 9951 348 eio ES anro anyo anro 8812 1819 9812 9912 slo 599 PONY LON S Sdf 104 jne
7. 293 s m 1 298 38027 soup 390 3902 duoi ano sro 152 6019 800 9019 solo 575 019 00 0019 669 860 MEER lo sHONdL 3o LL yous 5002792 Aepsent 29120 4055 nsifna ysej4 08E0Z HOS 2 jueun2og ezs RR 4055 uo sen vod pereindod eq jm euo 40 euo ANZ 14 91 X WL ezis 1931 9451 545 PIO IOW SW 19 26 925 a gt TUN TUN pp wf oo Co co 60 ER PREBREFEBEEBRRERR 999 lt 995299999999 lt lt 909 BBRBSBR CBPRBOROBOUSEOD 59555 5 E ee tt 8 75 8 2 liv 8 wr w ziv 8 P 2591 on sr 5 9v H 8 Siw 8 291 suid AI IH Ledr Buas 61 zm 1008 9 2 ledr 9 99 9 g
8. quel 8 01 AQ ANOL 2910 9910 6SLO HHINZOLHLZAN 10 20LIWAL VO3 ASE 0001 SZLO L 91 OOLOHOLOMZEEASdL ju amp eset AOL ANOEE 6210 92104210 Sm penunuoo sjeuojeyw Jo SA3XEZSIN L IALL D 9 4080 AOS AINS 2913 seg 695 609 80201 92 10 0 90 LZS 10 GOZOLSZ ZZIN UEH 20 0125 suing 1019euuo2 YS 1ndu 10 2 9 JUNO 09 08 0 6l df 8dr 01 8dr 0 0 9 Lodf 69 esdr 25 esdr Erde rdf Ordr egdr 6 ezdr Edf LdP 5 62 m m Jeduunf Jeduunf 2 uonduosoeg penunuoo sjeuojeyw Jo SA3XEZSIN L JOISISAY UNON eoeung WYO YOL 501 57 eustA JO ft LEE sunog suinog 104 LNS JOISISOY 1uno N 5 6080 WYO JojsiseH JUNO eoeuns 9080 wyo 29 JOISISOY JUNO eoeyung 9080 WYO xL 105
9. val evi egl a lo eziv E 08 8 lt gt 34 ELIS dno anyo anyo GLO 1450 479 002 69 V 5 5 0 628 82 Jed 92 Sea vea rade oca eia 8ia 910 Sia via ea 7 9d sa va a ea 1 SUSAISOSNVUL SNA v1vG ES LQSVz9LXO LO EN ano ano Z 55 30 1 55 7 sz 8 gaz LZ 182 ove Le gaz 1 8 Zea eve egz L5 E 2 2 zaz 2 8 Iva vaz sza g 9 a9 ONY evi gal 181 20 LLOLOATPLNS 8 o iza p SYL sal gt 8 8 amt val by oza LSO 8 2 Y zai sid 089 sn ER LQSVZ9LXO LOW E ano ano 32 ano 2 590 LE DOA xx lt gt 1 59 gaz 1 2 182 a 9vz gaz a isv saz 0 Eid d 0 ve eve bg 2 2 282 9d evi gal 8 2 ar Zvi 19 a x OF 6 a sai a val 8 tev eal El Ivi
10. Ag e p uonoeuuoo j 5 josseooud XEZSAOIN uo snq 221 LON eue pue sOLUWN Se 19427 LON E J N OSULIL ZEZSY E A0j euuoo pieoq ruy uoyd 0 1950 1 6 VOSEZE101 40 dVOSZZEXVIN anyo anro 4304 _ howl lt 0 E gt 6 1noisuw 8 a 213 IS9d 1450 DESIRES 1 1 Sr NIL 0504 1450 1824 1480 9 I A 1nod 1850 5 0 15 5 zo NIG 1950 v or Sr NILH 29 anyo MOS 71850 os JL 1001 5 E ze 2 oF W A Fr v L 99 0 90 He 045 21 dJo3owo4 Aovau 2 5 ar D E AG Et AS en ved Ages 9L Jo OL 19945 5002 92 5 GSN 08202 05 JequinN 5 GOAL 9451 595 LIUJN Ag e 3922 3922 8119 T 21
11. Se 10 59 9 Jo eV 1994 A ddng 1e od 08202 05 Jequunw SgAaxeesW 226 enu GOAL 9451 5445 0 0 J0joeuuoo 20 Joy peJey4 LES 984 Tid 19 TIdSSA TISSA 2 983 104 vSSA VSSA vas OV 20 93 V WAS AS eLovesuaN age gt gt peer zza JaMod AS i 8 A eoueJayip sjueAeid 3LON lOPESHSIN ELEOOPVHN 1 lt 2 4 4 gt Wee eia sia dn samod spes AG L 3LON G31 H3MOd N33HO 9 R anyo AG L t zO Al8W3ssv GATIVLSNI GINOHS cen AG 5 d 10vESH8IA anyo 531058 3000 anyo 920 p 9210 sia 098 vel
12. Sidonii siaonai 6 2 st 14 sigond n SiIdond Ln Old 10 WL 5 1 58403 59 4 ONLA loezlv EIS o1noid 7003 Ho a 93 ec 2847 SHOS OEHONdL anro ee ne GzHOndl 9810 S810 152 810 2812 pot 71 93 m THONI 1 Dear zaxua TOXYS 6ZHONGL zi 92HONdL THOML SeHOndL init init nit init ee 1 ELHOndl m SHOndl 71 22 1HOndl vZHOndl d 45484 1HOndl 5 5 ae 8 338 2858 3 exis 295 5 555 5525 z 5 8 6 g 829 285 ZINS SrHondr sce wu BSc 55 D C ss om D 2 D sss s amos BB 2 88 8888 S Z Gods 52 8 9 A 2 553 SURE 8 55205 996 888 88 85 88 2588 8 25502252425 cu 3900 3900 3900 bb k k BRB E B EE BER B ERE B RE waaa sco ezo PP 2 4 4 4 4 1 4 4 21 H ET oHondl XS 5 1HOndl XLINVO lt gt ZHOndl
13. 8585 5152 5555 28 Ge 83042303 5858 12 555202 888 amp 2 202 age d 4838 5 g zd 2929292 8992 oF 5 SSS 6542 Sad 25 8529 FE 3 52323232 955 25 499442 Saaz 88 8388 SMA FE 2258 919945 999 9999 9999 99999 9 9999999 060666600090 000 499 01 19945 HINA 105 0 2 105 0 5 Ds 5 vas vas 3l vas 159471950 4 05 4 1450 110071950 1450 SES OS 1950 17015 noisy 13s3U nom 18538 NUSH 1X3 Wie 1 4 5712 axion S190y E S10 51 SIMOn 51 Qnin SLOLN E 5101 SIM axizn SLN ium S1MEh siuzny Svo as Svo asi SvM as 590 057 sve_as 0S9_as 599 057 0so_as 1so_as 1S0 QS axos as iX i 30 as 3M asi SS 1 3M as XLONVO XL10NVO XIONVO XHONVO XHONVO XLINVO 2 t XLENVO XLN XHLNVO Na ovir Na ovir Na ove 10 de anoa zinoia ENUO zinoia ZN NoLa 111010 1 oLnoLa pon 581 osa oaL Isanal 5
14. Block DIiagtatiu abr Eee vto be dtd iibi 1 3 1 2 NICP5233 Black ouo emisit 1 5 1 3 Memory ose DEP RO ESI A GR DOR 1 6 1 4 Jl BDM Connector Pin Assignment aee erc E EC ae cat deco enr 1 17 2 1 Minimum System ceto dope ta dius des tastes 2 2 2 2 2 hmm Power ONNCC LOM s cie se satt E P E 2 3 2 3 2 Lever Power Connector aues pai qiio e iia Ae eR add A o above david Med exa 2 4 2 4 Pin Assignment for Female Terminal Connector 2 5 2 5 ONS deos doa redes dubai uot dotata euh eru uis s et AME 2 7 3 1 Flow Diagram of dBUG Operational Mode sssesssseeseeeeeneneneneenn enne 3 3 M523xEVB User s Manual Rev 1 2 Freescale Semiconductor Freescale Semiconductor Internal Use Only vii Figures Figure Number Title Number M523xEVB User s Manual Rev 1 2 viii Freescale Semiconductor Internal Use Only Freescale Semiconductor Table Page Number Tule Number 1 1 M523x Product Eamilye nir npe dois te e tete e taber Wo Lhe 1 1 1 2 The M523xEVB Default Memory bed bo ed oa p add 1 8 1 3 D 20 19 External Boot Chip Select Configuration essere 1 8 1 4 a Rn T
15. Table 1 19 J7 Pin Signal Pin Signal 1 5V 2 5V 3 3 3 4 3 3 5 3 3V 6 3 3 7 GND 8 GND 9 TPUCH24 10 TPUCH6 11 TPUCH17 12 TPUCH4 13 TPUCH18 14 TPUCH5 15 TPUCH22 16 TPUCH2 17 TPUCH23 18 TPUCH3 19 TPUCH19 20 TPUCH1 21 TPUCH20 22 23 21 24 GND 25 TPUCH16 26 EMDIO 27 U2CTS 28 EMDC 29 I2C 30 I2C_SDA 31 QSPI SCK 32 QSPI DIN 33 BS3 34 QSPI DOUT 35 BS2 36 QSPI PCSO 37 BS1 38 SD SCKE 39 BSO 40 CAN1RX M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 1 19 M523xEVB Table 1 19 J7 continued Pin Signal Pin Signal 41 jU2RTS 42 U2RXD 43 QSPI_PCS1 44 U1CTS 45 U1RTS 46 CAN1TX 47 U1RXD 48 U2TXD 49 U1TXD 50 52 51 CS3 52 CS7 53 CS6 54 CS5 55 CS1 56 50 57 54 58 A23 59 GND 60 GND Table 1 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 11 13 TPUCH26 14 TPUCH14 15 TPUCH29 16 TPUCH13 17 TPUCH28 18 TCRCLK 19 TPUCHS1 20 TPUCH15 21 TPUCH30 22 GND 23 GND 24 00 5 25 UORXD 26 DTOUTO 27 DTINO 28 UOTXD 29 UORTS 30 GND 31 CLKMODO 32 3 3V 33 CLKMOD1 34 GND 35 GND 36 D28 37 D30 38 D29 39 031 40 024 M523xEVB User s Manual Rev 1 2 1 20 Freescale Semiconductor Table 1 20
16. 5 pace tHOndL 34 5 3 bob sio up seas Ue 2g pum axi 5 g 8 5 e pege 8 Beg 94 go 22 19 2 8 SHOAL suid si e 8 Laf 104 Bumes E 8 9 8 sigan sar Bi MM 6 22 _ a 0S o2 gt h lt vas od z z 2 2 29 14 lt gt 247 Sar uod Bngeq 08602 08 JequinN SA3XEZSIN GOAL 9451 SdS SIosseooJd XEZGADW YIM pesn eq ued sejqeo Wad A AINO 310 LNV LHOdMWI soneujeuos eu Jo eBed ees v 10 pesn si dn v LISIY ISG uo pesn 5011 dn y p ALON 4 Bumes 8 5 lt gt evlvdd LLSd Jeijddns ejqeo Wag Jno ui esee g 9 9409 poddns 19221 2U JO Sz 6 suid zey sejqeo Wag jo 40 peJuinbeJ si Zdf ALON penu 10 Bunies 2105 AG V lo elvLvad TUTTA loelusd Y S 9
17. BNR NS 1 11 Tt 11 Tt Isls EE 1 E BEE BEE BER S Spb 2 a 2 99 2222 5 99d 2 xEEE 22 dd 3B 5 lt lt 999 lt lt 2 3 5 QE B ES 2333 8 age 88 232 B88 GRRE 2855 dg 288 5 23 58 S7 55 mg 8 7 555 29 5 Ej 5 z 9 E 8 3 37010172 1930114 TASSA TASSA et E T wx lt wax sued 34000 anyo Buisn 1415304 se SLY SL d suid T pg 114584 peo FEO LON voal avid ent 1 I n TN jue unde m P z SSA S9 as 150 as gy uld 0 esojo vivaa ST 9y ald na ovar rmn NF ovr aud inono 1 ET Svo as 1 svo ds svu_as SIn 05 0S9 as oso as 3M GS 1415509 E GL PLN ELN 4 7021 SN MODE XLONVO XLONVOrIOS wa 7 3M as a aT SSA in W i lt gt gu s TOOWHTO gt vU vl poorer vau Val To aoworo sud ueawoq si ozdr gan 20 Dues SSA E 2 lt J0sseoo ido JOIN WIA SLOZN ENILA gt 51
18. Wag peiqeu3 Orel LOLSXO1bZON 821g uod eaweq 1008 apon Buneredo pepoou3 4901 pepoou3 Byuog diu n JO Byuo diyo NO 1MS 440 io gr lt gt 1 LOREINBYUOD 2 v 52 za x 520 Sr zo m 120 610 Z 2 Sr EI 610 Boon 1 1 015 T Lm 130 LT poyseuiun ue poceuuco eq AS OVE i peeu sabed uo suonoeuuoo yoed Jojsise A e zen at pue peyoeuuooun woMedo LMS AG E spee adoos jo see 808 OY JO SIOUIOD JE 2141 9 14410141 90614 LON SEYOYMS S ZMS 10 eyoN 74197154197 mar LOWS 13838 1Y NOLLVHNOIINOO IHL 5 1 AB 1 1 38 OL STVNOIS 920 S 610 210 IHL MOTT OL 1130 LNdiNO OL 5 1 38 ISNW TWNOIS LNOLSY 1 ALON 1 1 4 77 RE E Y PEE 71 T T ced 0 AG E d O 329010
19. esop se Id ld R Oo Oo RN Oo Oo RN me ozz 997 1800 am si pa ACER 27 99799799 812 857 wos punoi6 sisseuo 998 El El E El x x 5 jq ssod se 0 Spry eyesedas cl 3 5 2 52 8 92 8 olei dou TEN g 98 OQVAHd MINI ye 4 noxia d 15910091 OSV s3Xel 9 s 00 5 57 bgp Sod AQ 5 ze ot LL N3AVMN EQ31 XY bg 7 4 wie 4 XL 19 X 219 5 axa He py XL Hz Naxd asxa LaVAHd EGXe He ze AH EE ES oan H oana orana zr i 1 679 885 52 a ese Buunp Bulseiq Jo sIsau un ppe si upas Ippe eor Aud yo ALON Ajddns Ag y Ajddns 2 eu T V diyo uo ue seu 38 LZ 89 LLM 310N Ae E o Y o Y o Y o 7 dio aui 66 66 66 66
20. select the function asm trap 15 make the call endif 3 5 2 CHAR This function function code 0 0010 returns an input character from terminal to the caller The returned character is in D1 Assembly example move 1 50010 0 Select the function trap 15 Make the call the input character is in dl C example int board in char void asm move 1 0x0010 d0 select the function asm 15 make the call asm 141 40 put the character in do 3 5 3 CHAR_PRESENT This function function code 0x0014 checks if an input character is present to receive A value of zero is returned in DO when no character is present A non zero value in DO means a character is present Assembly example move 1 0014 d0 Select the function trap 15 Make the call 40 contains the response yes no M523xEVB User s Manual Rev 1 2 3 40 Freescale Semiconductor TRAP 15 Functions C example int board_char_ present void asm 1 0 0014 40 select the function asm trap 15 make the call 3 5 4 EXIT TO dBUG This function function code 0x0000 transfers the control back to the dBUG by terminating the user code The register context are preserved Assembly example move 1 50000 40 Select the function trap 15 Make the call exit to dBUG C example void board exit to dbug void asm
21. 1 4 Freescale Semiconductor MCF5235 Microprocessor SDRAMC gt CSPI To From SRAM backdoor CHIP tp SCL SELECTS 2 UNTXD UnRXD UnRTS EBI gt Arbiter INTCO INTC1 5 UncTS 46 a FEC FAST To From PADI a ETHERNET 4 CONTROLLER FEC PADI SDRAMC lt q D 31 0 A lt gt 23 0 lt a RW lt gt 513 0 gt lt gt lt lt 751211 0 lt gt TEA lt gt BS 3 0 To From PADI 4 9 4 DMA To From PADI A t DREQ 2 0 DACK 2 0 JTAG EN V2 ColdFire CPU BDM DIV EMAC ry 64 Kbytes 8 Kbytes SRAM CACHE PORTS 8Kx16 x4 1Kx32 x2 GPIO 54 Watchdog Timer To From Arbiter PLL PITO PIT1 PIT2 To From INTC Edge Cryptography Modules Figure 1 2 MCF5235 Block Diagram M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 1 5 M523xEVB 1 2 System Memory The following diagram shows the externa
22. BELO ZELO 0810 7210 SZLO 0210 6110 9LLO SLELO LOLO 0019 980 80 680 280 4480 080 6 20 78 0 499 S99 290 290 BVO 270 859 960 GED LED OED 620 820 9601 6080 ASZ ANL O 210290424110 OLD 69 80 70 90 99 2 6 2810 2810 5710 6712 1410 89120 7819 9919 EGLO 96120 SELO YELO SELO BLLO ELLO ZLLO LELO 0LLO 660 860 20 9290 GLO t29 220 220 1 0 049 LED 420 920 920 610 019080 XAY VOM sdeo unon eoeuns 909 968 6080 AOS 491 826010710 610210 YO 602040 2 JO 1 5 65216 02 x 4052 asnje Aq esnJ H 8009120 3NOLSA3M esn4 auojshoy 351 1524 vs 4 82 00 005190 GYVMALS 993 Sas vas 94 284 1 94 29511261 OgIN8CSEVV 3n i8 6 92 Sza M m sepoiq zza 91d Sta eld eed 1 YLA ea G 9080 AOS AWS 4422 2210 8219 6 5080 AOS ANS 44 7 VOLO 6912 1910 09102 6 2080 AOS ANS 4401 ZELO LELO EE H8390LIND L9 LOV L
23. Table 1 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 for low cost software testing with the use of a ROM resident debug monitor dBUG programmed into the external Flash device Operation allows the user to load code in the on board RAM execute applications set breakpoints and display or modify registers or memory No additional hardware or software is required for basic operation Specifications Motorola MCF5235 Microprocessor 150 MHz max core frequency e 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 e Board Size 10 00 x 5 40 inches 8 layers Memory Devices e 16 Mbyte SDRAM e 2 Mbyte 512K x 16 Page Mode FLASH or 4 Mbyte 512K x 32 Page mode FLASH e Mbyte ASRAM optional e 64 Kbyte SRAM internal to MCF523x device M523xEVB User s Manual Rev 1 2 Freesca
24. YING Jo Old ejeedo 1919 0919 AE E PION ABH yc 90 0988 peunByuoo ued 292 451 941 I IA dwadsns H NNOD Sees JSN 5 gr ZNT H va v Jy 290 H H 2 Wd 910 1 3068 gg 139 910 sir A94 4 t 12 942 1 wa ejejndod jou T NNOO 8S EZ HORE verge a s vt YS Ag e z V 29 gY UIN 910 Aq AILLI LON 910 Schematics M532xEVB User s Manual Rev 1 2 B 18 Freescale Semiconductor Appendix Evaluation Board BOM M523xEVB User s Manual Rev 1 2 Freescale Semiconductor C 1 6010 8010 4010 PERA 968 6080 DOOD 10 OdN AOS 90 9019 260 960 69 4260 160 069 01 01 9080 680 880 989 690 890 7907490 2 PN Ae dz 6 19 790 99 290 1190 099 699 840 6 0210 SOLO junoy eoeuns 9080 HZX ASZ JUOL YOLO 6010 ZOLO 960 760 999 050 Z We 9589 O AVI ES ue 9589 8 A9L ANOL 8210 ZED a CN 5191526 yuno eoeungs 909 10 OdN S080 AOS 39001 1810 0810 0 220 1202 020 2819 9810 9810 810 9712 410 2 19 6910 99102 8910 9910 910 2010 10 OSLO ZYLO 9 10 GVLO BELO
25. move 1 0x0000 d0 select the function asm trap 15 exit and transfer to dBUG M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 3 41 Using the Monitor Debug Firmware M523xEVB User s Manual Rev 1 2 3 42 Freescale Semiconductor Appendix 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 A 1 Required Network Parameters For performing network downloads dBUG needs 6 parameters 4 are network related and 2 are download related The parameters are listed below with the dBUG designation following in parenthesis All computers connected to an Ethernet network running the IP protocol need 3 network specific parameters These parameters are e Internet Protocol IP address for the computer client IP address of the Gateway for non local traffic gateway and e 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 Name of the file to download f
26. a symb value r symb gt Cllls gt Symbol Management TRACE trace lt num gt Trace Into UP up begin end filename Upload Memory to File VERSION version Show Version M523xEVB User s Manual Rev 1 2 Freescale Semiconductor Commands 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 the interactive mode the user enters the command and the optional lt addr gt If the address is not specified then the last address is used The memory contents at the address are disassembled and the user prompted for the new assembly If valid the new assembly is placed into memory and the address incremented accordingly If the assembly is not valid then memory is not modified and an error message produced In either case memory is disassembled and the process repeats The user may press the lt Enter gt or lt Return gt key to accept the current memory contents and skip to the next instruction or a enter period to quit the interactive mode In the non interactive mode the user specifies the address and the assembly statement on the command line The
27. DMA controller e Four channel 32 bit input capture output compare timers with optional DMA support e Four channel 16 bit periodic interrupt timers PITs Programmable software watchdog timer e Interrupt controller capable of handling up to 126 interrupt sources Clock module with Phase Locked Loop PLL External bus interface module including 2 bank synchronous DRAM controller e 32 bit non multiplexed bus with up to 8 chip select signals that support page mode FLASH memories The 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 range to be selected There are regions that can be decoded to allow supervisor user instruction and data each to have the 32 bit address range All the processor s signals are available via daughter card expansion connectors Refer to the schematic Appendix B for their pin assignments The MCF5235 processor has the capability to support both BDM and JTAG These ports are multiplexed and can be used with third party tools to allow the user 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 Figure 1 2 shows the MCF5235 processor block diagram M523xEVB User s Manual Rev 1 2
28. J8 continued Pin Signal Pin Signal 41 D26 42 D25 43 D27 44 D21 45 D23 46 D22 47 EXT_RSTIN 48 019 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 1 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 14 17 15 18 A11 19 A13 20 GND 21 GND 22 A10 23 A12 24 A8 25 A9 26 27 6 28 4 29 5 30 GND 31 A2 32 AO 33 A3 34 1 35 GND 36 GND 37 DTIN3 38 UTPUODIS 39 DTOUTS 40 LTPUODIS M523xEVB User s Manual Rev 1 2 Connectors and User Components Freescale Semiconductor 1 21 M523xEVB Table 1 21 J9 continued Pin Signal Pin Signal 41 TIP 42 TEA 43 15 44 45 CANORX 46 50 47 R W 48 49 SD CAS 50 SD CSO 51 CLKOUT 52 50 RAS 53 SD CS1 54 55 XTAL 56 57 GND 58 GND 59 60 GND Table 1 22 J10 Pin Signal Pin Signal 1 45V 2 1 5V 3 3 3V 4 3 3 5 014 6 D10 7 D11 8 D6 9 D7 10 08 11 D5 12 D4 13 GND 14 GND 15 01 16 02 17 D3 18 19 20 DTOUT1 21 DTIN1 22 3 3V 23 3 3V 24 IRQ6 25 IRQ7 26 TSIZO 27 15121 28 IRQ2 29 30 4 31 R
29. WYO eseu m i 19 _ amp A T z Y 5 9 jo OL 19905 5002 92 sioyeuuog uoisuedx3 0802 26 2 Jequinnquewinoog ez en 4 GOAL 9451 545 lozivivaa 2 6 div TMux 159 as 1nOX19 SY93 05 XWONVO SU peo uo sjeu is eansue se jd uoisuedxe yj e 310 0 89 0 159 2 686 1 WV Seil asi evivad 062 _as XLONWO NusH Dar 3M as vau SIGONdLN lo aowono axizn XLINVO S19 axazn XHINVO 8205 as 0508 1450 1108 1850 1850 vas ozi oana o1awa Ze86LLt WY ar zia Dry za za 920 idovonio GOWNS OEHOndL LEHOndl SZHOndl 6ZHONdL 1 HOndl SZHOndl OLHINdL BHONGL 286 11 lE 8100 SHINEL EiHOndL viHOndl LiHOndL 6HONdL 1HOndl
30. awe X Wr pe1nByuoo si WYYAS 4223 ezis 310 anyo anyo anyo 912 Selo velo 15350 00 9051 12 9 0 4 v OLY oF a iM Sc ELY Gv EN ov LE YiV ZW oy Lee SW Z 02 61 Yt 4 Ezy lev rom 444 oya az Era lo ezlv gg ON 59 57 TE 30 or ge SV9 77 gg 33M op 06 ON WOG SSA sr s zy 800 100 er OSSA 77 Sv OF lt 1958 5 2 zoa toa 87 I gr OSSA Fg a gg 100 Fg zi in 100 5 0 5 OSSA oaan Hee ezn PION 19 91 lo ezlv OOF 4051 O12 V9LIWEO 18 v LIN SSA v sv ev w ov ze ov ce 8 ow 67 gg HV ova _ ag ON 50 50 05 3705 as Te 370 5 as SVO _ 5 ze 3M GS CETT
31. dnoio 4991 9451 545 SL lt gt L3 Ep NMOQ CMS adore esop ueeosyirs eur Di G liidingep _ 21d oy eonar 22 9 OON3ISH LOM ogar 39 91607 HOX3 AL 6su 98ZMZZ1N 51 02151 eui uo uogounj 5 39027 Kiepuooes usn Md t za ZA vau 2s SA ow a or SL 158 uoz 9 dn zws Di qq zm EM m aiqissod se 2 82 8V MOJA ACE SAI esop se 889 ne z doze 489 SNLVLS 10 WMd 19 LY ues 3 1 82d 1 psy 698 THOndl ajq ssod AL 3400 EHONdL es 258 889 180 dOLsiNNY ZIHOndl zHOndl 680 gin eu uo uonounj 4 fuepuoces Old9 e 689 I3 ORBA Agee QvOOHPINS Ace ws 025 1 un m Tw THOndl m amp Agee i b ta 5 OLHOndl 19 WMd Agee 21 SHINAI EET 29 y FT gO WMd 2 SiHOndl an dio si WiHondl lrtelHondt n 989 5 C veHondL id 02 ZIHOndl OEH
32. ozz d Nowe tte ys oor ACER PORN sear 5 ese 2587 Ag e 2 158 x 058 uvseo Wwav TISSA ZHINSZ gt Hoa ZINV LHORY ON la Xb lt ael re 51 dow m O0 6119544 2 9 1251 CAD sigond11 SMS t e 0251 90 sigondin P y postuju pinous xcz94ON eui pue siouna I su ANDOLSUN usemgeq sujfue EUBIS 31ON WNOIS 12 am ANF Gay eza aa n 91 0 2 5 84 z z Pejexoos m EISE Sons Nici BNW 1uudiooj joke 401911030 9 s ISQ NGL 9 s 9 1 OSq oa 9 2 m Ag e AG e T z Y 5 10 19905 5002 92 ejeq 08202 05 JequinN jueumooq SA3XEZSW enu 4 10 GOAL 9351 595 10 anyo Orio juudioo god ewes ei puoquiw 190917956 9 149917956901 84144501 029 99 5 325917957 SJ A VHOIS 3LON 2101
33. then a default filename and filetype will be used Default filename and filetype parameters are manipulated using the SET and SHOW commands The DN command checks the destination download address for validity If the destination is an address outside the defined user space then an error message is displayed and downloading aborted For ELF and COFF files which contain symbolic debug information the symbol tables are extracted from the file during 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 the user s responsibility to clear the symbol table as necessary prior to downloading If an entry point address is specified in the S record COFF or ELF file the program counter is set accordingly Examples To download an S record file with the name srec out the command is dn srec out To download a COFF file with the name 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 M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 3 17 Using the Monitor Debug Firmware 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 will display information about the F
34. x 8 0 en MC loela 10 59 9L 10 5 19945 5002 92 08202 05 Jaquinn GOAL 9851 545 LION anyo anyo 619 819 19 919 NYO 29 22 4 var V PANY s 10 Bugjes Jeuueu NYO g 33A 5 XuINVO VINVO gA INYO LHNVO 74 z g Sa aH gt XLINVO 81 18995 uo 1 680 J ZLYYN pue LNvO en 4 J9AIS9SUEJ LON S df 10 Bumas 1 NYO z9 Or PONY st 10 n yH lt _ gt 941 INVO 77 HNVO an9 z 54 gt XLONVO V td edA q 6 Jojeuuo sng NYI JeAleosue zo Ae E PONY LON s 10 Bumes
35. Manual Rev 1 2 3 20 Freescale Semiconductor Commands 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 user s manual for more information on these modules and the registers they contain Example ird sim rsr M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 3 21 Using the Monitor Debug Firmware IRM Internal Register Modify Usage IRM module register data This command modifies the contents of the internal registers of different modules inside the MCF5235 In the command line module refers to the module name where the register 1s 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 M523xEVB User s Manual Rev 1 2 3 22 Freescale Semiconductor Commands HELP Help Usage HELP lt command gt The HELP command displays a brief syntax of the commands available within dBUG In a
36. Memory CSO External ASRAM Memory CS1 Table 1 2 shows the 523 memory map M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 1 7 M523xEVB Table 1 2 The M523xEVB Default Memory Map Address Range Signal and Device 0x0000 0000 0xO0FF FFFF 16 Mbyte SDRAM 0 2000 0000 0x2000 FFFF 64 Kbytes Internal SRAM 0 3000 0000 0x300F FFFF External ASRAM not fitted OxFFEO 0000 0xFFFF FFFF 2 Mbytes External Flash or or OxFFCO 0000 OxFFFF FFFF 4 Mbytes External Flash 1 2 5 4 Reset Vector Mapping Asserting the reset input signal to the processor causes a reset exception The reset exception has the highest priority of any exception it provides for system initialization and recovery from catastrophic failure Reset also aborts any processing in progress when the reset input is recognized Processing cannot be recovered The reset exception places the processor in the supervisor mode by setting the S bit and disables tracing by clearing the T bit in the SR This exception also clears the M bit and sets the processor s interrupt priority mask in the SR to the highest level level 7 Next the VBR is initialized to zero 0x00000000 The control registers specifying the operation of any memories e g cache and or RAM modules connected directly to the processor are disabled Once the processor is granted the bus it then performs two longword read bus cycles The first longword at address 0 is loade
37. This gives the user access to the DMA timer module channels 1 and 2 and an extra interrupt signal if they do not require USB functionality Table 1 18 details these jumper settings Table 1 18 USB DMA Enable and Disable Settings Jumper Functionality when Jumper is Fitted Functionality when 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 M523xEVB User s Manual Rev 1 2 1 18 Freescale Semiconductor Table 1 18 USB DMA Enable and Disable Settings Connectors and User Components Functionality when Jumper is Fitted Functionality when Jumper is NOT Fitted USB DMA acknowledge signal DMA Timer 1 output enabled not in use pulled high DMA acknowledge 1 enabled Interrupt 4 enabled for USB Interrupt 4 disabled from USB 2 not in use pulled high DMA acknowledge 2 enabled Jumper JP60 JP61 JP62 JP63 1 5 1 5 1 Connectors and User Components 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
38. 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 gt 2 freescale semiconductor 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 2005 All rights reserved Document Number M5235EVBUM Rev 1 2 08 2005 EMC Information M523xEVB 1 This product as shipped from the factory with associated power supplies and cables has been tested and meets with requirements of EN5022 and EN 50082 1 1998 as a CLASS A product 2 This product is designed and intended for use as a development platform for hardware or software in an educational or professional laboratory 3 Ina domestic environment this product may cause radio interference in which case the user may be required to take adequate measures Anti static precautions must be adhered to when u
39. end to the new address dest The BM command copies memory as a series of bytes and does not alter the original block The values for addresses begin end and dest may be absolute addresses specified as hexadecimal values or symbol names If the destination address overlaps the block defined by begin and end an error message is produced and the command exits Examples To copy a block of memory starting at 0x00040000 and ending at 0x00080000 to the location 0x00200000 the command is bm 40000 80000 200000 To copy the target code s data section defined by the symbols data_start and data_end to 0x00200000 the command is bm data_start data_end 200000 NOTE Refer to upuser command for copying code data into Flash memory M523xEVB User s Manual Rev 1 2 3 10 Freescale Semiconductor Commands BR Breakpoints Usage BR addr lt gt lt count gt lt t trigger gt The BR command inserts or removes breakpoints at address addr The value for addr may be an absolute address specified as a hexadecimal value or a symbol name Count and trigger are numbers converted according to the user defined radix normally hexadecimal If no argument is provided to the BR command a listing of all defined breakpoints is displayed The r option to the BR command removes a breakpoint defined at address addr If no address is specified in conjunction with the r option then all breakpoints are removed Each time a break
40. is set between pins 2 and 3 the board boots from the top half of the FLASH 0 00000 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 pinl connected to pin 2 3 Download to SDRAM If using serial or ethernet start the ROM Monitor first If using BDM via a wiggler cable download first then start ROM Monitor by pointing the program counter PC to OxFFE00400 0xFFC00400 and run 4 In the ROM Monitor execute the FL write dest src lt bytes gt command 5 Move jumper JP64 JP31 to pin 2 connected to pin 3 and push the reset button SW6 User code should now be running from reset POR 1 4 Communication Ports The EVB provides external communication interfaces for two UART serial ports a UART FlexCAN1 port 0 port QSPI 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 1 4 1 UARTO 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 the user The ROM Monitor programs the interrupt level for UARTO to Level 3 priority 2 and autovector mode of operation The interrupt level for UARTI
41. keep in mind the following Most if not all TFTP servers will only permit access to files starting at a particular sub directory This is a security feature which prevents reading of arbitrary files by unknown persons For example SunOS uses the directory tftp_boot as the default TFTP directory When specifying a filename to a SunOS TFTP server all filenames are relative to tftp boot As a result you normally will be required to copy the file to download into the directory used by the TFTP server A default filename for network downloads is maintained by dBUG To change the default filename use the command set filename filename When using the Ethernet network for download either S record COFF ELF or Image files may be downloaded A default filetype for network downloads is maintained by dBUG as well To change the default filetype use the command set filetype lt srecord coff elf image gt Continuing with the above example the compiler produces an executable COFF file a out This file is copied to the tftp boot directory on the server with the command rcp a out santafe tftp boot a out Change the default filename and filetype with the commands set filename a out set filetype coff Finally perform the network download with the dn command The network download process uses the configured IP addresses and the default filename and filetype for initiating a TFTP download from the TFTP server A 3 Troubl
42. 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 0x00020000 and ending at 0x00040000 with the value 0x1234 the command is bf 20000 40000 1234 To fill a block of memory starting at 0x00020000 and ending at 0x0004000 with a byte value of OxAB the command is bf b 20000 40000 AB To zero out the BSS section of the target code defined by the symbols bss start and bss end the command is bf bss start bss end 0 To fill a block of memory starting at 0x00020000 and ending at 0x00040000 with data that increments by 2 for each width the command is bf 20000 40000 0 2 M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 3 9 Using the Monitor Debug Firmware 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
43. statement is then assembled and if valid placed into memory otherwise an error message is produced Examples To place a NOP instruction at address 0x00010000 the command is asm 10000 nop To interactively assemble memory at address 0x00400000 the command is asm 400000 M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 3 7 Using the Monitor Debug Firmware 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 addr1 and addr2 may be an absolute address specified as a hexadecimal value or a symbol name The value for length may be a symbol name or a number converted according to the user defined radix hexadecimal by default Example To verify that the data starting at 0x20000 and ending at 0x30000 is identical to the data starting at 0x80000 the command is be 20000 80000 10000 M523xEVB User s Manual Rev 1 2 3 8 Freescale Semiconductor Commands BF Block Fill Usage BF lt width gt begin end data lt 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
44. these 16 pins If the user is 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 in order to isolate the external circuitry required to implement the functionality of these modules Table 1 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 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 e Support for three different Ethernet physical interfaces 100 Mbps IEEE 802 3 MII 10 Mbps IEEE 802 3 MII 10 Mbps 7 wire interface industry standard IEEE 802 3 full duplex flow control Programmable max frame length supports IEEE 802 1 VLAN tags and priority e ee for full duplex operation 200Mbps throughput with a minimum system clock rate of 50 MHz DO for half duplex operation 100Mbps throughput with a minimum system clock rate of 5 MHz e Retransmission from transmit FIFO following a collision no processor bus utilization e Automatic internal flushing of the receive FIFO runts collision
45. used as data or instruction memory This memory is mapped to 0 2000 0000 and configured as data space but is not used by the dBUG monitor except during system initialization After system initialization is complete the internal memory is available to the user The memory is relocatable to any 32 Kbyte boundary within the processor s four gigabyte address space 1 2 5 M523xEVB Memory Interface signals to support the interface to external memory and peripheral devices are generated by the memory controller The MCF5235 supports 8 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 users via the daughter card expansion connectors CSO also functions as the global boot chip select for booting out of external flash Since 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 located in the external FLASH bank can be found in table 1 2 The internal memory space of the MCF5235 is detailed further in the MCF5235 Reference Manual Chip Selects 0 and 1 can be changed by user software to map the external memory in different locations but the chip select configuration such as wait states and transfer acknowledge for each memory type should be maintained Chip Select Usage External FLASH
46. 1591 WYO 01 X LrzAdV yoed 10491591 WYO M OL X LpZAHV yoed 10151591 WYO LG X 10181891 WYO zz X LvzAHV yoed 10451591 WYO X v LvzAHV 20 8 111288 JO 01 0121 seiBojouuoer 10 001 061012110 E4192 JOjonpu HhOL uonduosoeg 168 068 c8H L8H 97H 718 88H 8 8H 224 9H 9 68H 08H 9SH 9 LH vcdd cL dH LdH 9JoH 21 penunuoo Jo SA3X ZSIN L JOISISOY JUNO 5 S080 WYO M00L 268 98H 98H Z 1016 5 JUNON 9080 WYO 001 64H cL JO SISeH JUNON eoeungs 9080 WYO H09S 1015159 eoeungs 9080 WYO 8 GOH z9u 894 LSH 3m 84H OLY 10151594 JUNON eoeuns 2080 WYO H0ZZ OSH erH 278 278 11 101518 JUNO eoeyung WYO 42 854 FEE JojsiseH JUNO 5 9080 WYO 6H zH 1035159 JUNON BDELNS S080 WYO 021 984 SEH VEY LEY 22H 97H v9 JOJSISOY JUNON 9080
47. 17 5V Power Good 023 Abort 807 asserted D24 Reset RSTI asserted D25 D32 User LEDs See Table 1 23 M523xEVB User s Manual Rev 1 2 1 24 Freescale Semiconductor Chapter 2 Initialization and Setup 2 1 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 e RS232C compatible terminal or a PC with terminal emulation software e 5232 Communication cable provided Figure 2 1 displays the minimum system configuration M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 2 1 Initialization and Setup RS 232 Terminal Or PC dBUG gt K B oy Eget lul r hm di 1 EH ni aa p iuu Figure 2 1 Minimum System Configuration M523xEVB User s Manual Rev 1 2 2 2 Freescale Semiconductor Installation and Setup 2 2 Installation and Setup The following sections describe all the steps needed to prepare the board for operation Please read the following sections carefully before using the board When you are preparing the board for the first time be sure to check that all jumpers are in the default locations Default jumper markings are documented on the master jumper table and printed on the underside of the board After the board is functional
48. 2 Ainr Aepsany WVUS snouoiu2u sv 08202 05 Jequunw jueuinoo 9 19 5 GOAL 9451 595 LION ZL dPOHSSZILMZONH Ayjeuonouny pue juudjooj god s Ves v ALON 1991 x 3952 s NESW uoe3 gt anyo anyo anyo anyo 89 19 95 so vo 9 zo io V ejeindod jou Il 4051 OZOLEEADLPOLOLAD Liv gv UN ely rly SV ON 201 901 801 LEON SSA 1seo ou 058 SSA pue sseooe eue 1sou eui sio9jes Sg ILON EO TS SLON 7 lo elsay 2587 39 5 Whe reg ev LE 8 g WH 2 Avo zn 19 91 19 407 WWHSV jou E 18051 OZOLEEADLPOLOLAD E why nya a NE AIL 1201 a es ara a Stew 72 Sr 8 Mr lt gt
49. 2001 ven YOL 292145 910 GSN 201 2 10 dYOSZZEXYN UJIXe A ZEZSH zen Len oen 201 16 012 9 101871 5 sen z LOL Zen 001 HVS980Z7INQV Bojeuy Gen ven 2 66 9 Ld 10 AOH 001 Ld 10 32 964 10 3Z OSH 10 nuu uld p ZHINGZ 2 OSO 86 INO980LI1 4291 zen 26 Jequunw Hed uonduosoeg o2uoJ49JoH AD Jo SA3XEZSIN L
50. 201 Pg 8 eon Ler 8 UE Sr 8 Te 0001 Son Her a a 8 p 8 SSA TE LH ssa gg 0 Ho elon zon x vion von g 8 ye ston oon 7 38H 39 258 9 P op 3H8 10 160 S 071557 Ty 30 sy xh ZU B siv 8 wE 6 8 vy in V a lt _ gt paom 319 91 WYYSY 91 p p 53 5002 92 Ar Kepsen sedg 02 05 JequinN eas gA3XECSIN en a14PI0D GOAL 9dS1 SdS 2101040 sY344N8 sna ssqudav 8 2 T 29 5 v T z t LOSVZXOW OW ort 29 P 98 8 g 9v sg 8 Sv va St g Y za a ig og 8 ov 30 T Wi an Lasrz9rxo1rzow zy 5 aoc t 99 304 AE 8vc 892 Wz 182 ove 992 svz saz 259 ve vac egz asn zaz pue ysej4 pue WYHSY 10 506 5 y EH Jayng pesn sng ezeq pue ssaippy ANY OVI 98
51. 23xEVB User s Manual Rev 1 2 3 12 Freescale Semiconductor Commands 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 then data is interpreted as a hexadecimal value Otherwise data is interpreted as a decimal value All values are treated as 32 bit quantities Examples To display the decimal and binary equivalent of 0x1234 the command is 0 1234 display the hexadecimal and binary equivalent of 1234 the command is dc 1234 M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 3 13 Using the Monitor Debug Firmware DI Disassemble Usage DI lt addr gt The DI command disassembles target code pointed to by addr value for addr may be an absolute address specified as a hexadecimal value or a symbol name Wherever possible the disassembler will use information from the symbol table to produce a more meaningful disassembly This is especially useful for branch target addresses and subroutine calls The DI command attempts to track the address of the last disassembled opcode If no address is provided to the DI command then the DI command uses the address of the last opcode that was disassembled The DI command is repeatable Examples To disassemble code that
52. 4 Jo 8 yous 9002 92 Ainr epson LLM uo pz pue suid oj y 1 1 1 9001 0 0802 4095 8 9215 5 d SORGZSH anyo anyo anyo Jp anyo anyo anyo anyo anyo enl anyo 90 Svo ero 2 09 859 159 GOAL 9851 545 199 oso ero L 4 1 1 1 5 V O0 MOOS190ZLIH 00 40081902LIH GHVMALS YAS Z De rD o 3 ASTA 1958 TIdAS e WAS LLN 1284109 ay a nsu juesaJd 5 7288 310 eom ae Lg orxeu Suo3 sjeqe 131 126 xis 1053 0X13 zaxia Laxa ozz omaa R ore Nabe Np pH va x ji ozz ES se nd xezS4OW qain R
53. 721892001 o elisd oiana Siaonain Siaonari MHondl 1261 4 taxis ead zaua 9 i exa I 4 i sexes m ono LOX DE 2 ___ Q ___ 5004 5803 7093 Cia 0290191 1 o si Hond1 O 1 1 fo 1261 0261 H vau vu H su 277 H 225214 30 0 189 siopouuoo uosuedxa 9 5 2 mmmmmmm gt 5 Em 5 sS 2289 gd D082222222222222028 83888 8998 0003 8 peas zd 5958 AG 585 288 82555 2222 NN gx 2458 29029 SAP ONe Se 846 23 eee 55822 5 5 o 50 us 289 97 4 875 98 BS uU Bi 5579 55 5 19945 Bngeq 61eeus 2119945 9L 10 19949 5002 19
54. 831 m 1531 01631 1nOX12 npo SUL anyo JUL up anyo eX boy 4 9410 9910 8910 210 TS v 06H anyo 300 yo 18538 zg inoisu o gt Ae Er 1910 6919 0419 8 09 aiiis zodi in deci LgarOT Ag e 0 ZINI He YONI 168 391430 10 EROA 5 E SLO ul Buisn suid usewjeq lt E gt y 99 2 Fez 2 4 9 lt yg 09 00 pz boar OT jeg U Bursn j 9 2 suid usamjaq 195 954 LANILSOH gg SNIA adzy 3947 ducc uM NH S919 v91O 910 r Z902 YS UNO do lt 30 pejqeue ywa s 2 55 52 2 NO 330 t9dr sed 009 2591 NO 30 NNOD 52495 ISN 9sdr 92020101 ACER Eed 6 5 19 sia n 430 b anaty ua 440 NO e 8914 E EKAS NI vols 152 za i pus 1 g Vino 330 ge 2MSd_H Old vna ven HMSd H smo o se sBumes 1 397 397 T
55. B User s Manual Rev 1 2 3 4 Freescale Semiconductor Commands Command lines may be recalled using the lt Control gt U lt Control gt D and lt Control gt R key sequences lt Control gt U and lt Control gt D cycle up and down through previous command lines lt Control gt R recalls and executes the last command line In general dBUG 15 not case sensitive Commands may be entered either in uppercase or lowercase depending upon the user s equipment and preference Only symbol names require that the exact case be used Most commands can be recognized by using an abbreviated name For instance entering h is the same as entering help Thus it is not necessary to type the entire command name The commands DI GO MD STEP and TRACE are used repeatedly when debugging dBUG recognizes this and allows for repeated execution of these commands with minimal typing After a command is entered press the 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 3 4 Commands This section lists the commands that are available with all versions of dBUG Some board or CPU combinations may use additional commands not listed below Table 3 1 dBUG Command Summary Mnemonic Syntax Description ASM asm addr stmt Assemble BC bc addr1 addr2 length Block Compare BF bf width begin end da
56. HHHS AOVANALNI O I vl WVHGIS I AULINOYIO ONIMOOTO NOILVH OOIJNOO LASTA TI LINO II LHAHS HSV I4d LHAHS SHOLOdNNOO NOISNVdXHu 6 14485 HOVAWHHLNI Ad La 8 HOVAWHHLNI LANYdH La L 9 XEZS I3HHS HSOVAHALNI NVO Y Sudid0d 509 5 WVisV T SLOSNNOOWXLNI IVOIHOWHVHWHIH Sjuojuo JO 21481 KETSIN lt 500292 Ar epson sed 1 OGEOZ HOS 9 on eues 89909 wvuas asn jequnwiueunoog 5 2 19311 951 545 00 258 5 8 8 28 02285 BB 5 3 9 9 9 EE 5888 28a 4
57. M5235EVB User s Manual Devices Supported MCF5235 MCF5234 MCF5233 MCF5232 Document Number M5235EVBUM Rev 1 2 08 2005 4 4 N 2 freescale semiconductor How to Reach Us Home Page www freescale com E mail support freescale com USA Europe or Locations Not Listed Freescale Semiconductor Technical Information Center CH370 1300 N Alma School Road Chandler Arizona 85224 1 800 521 6274 or 1 480 768 2130 support freescale com Europe Middle East and Africa Freescale Halbleiter Deutschland GmbH Technical Information Center Schatzbogen 7 81829 Muenchen Germany 44 1296 380 456 English 46 8 52200080 English 49 89 92103 559 German 33 1 69 35 48 48 French support freescale com Japan Freescale Semiconductor Japan Ltd Headquarters ARCO Tower 15F 1 8 1 Shimo Meguro Meguro ku Tokyo 153 0064 Japan 0120 191014 or 81 3 5437 9125 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 26668334 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 Information in this document is provided solely to enable system and software implement
58. O management independently of the CPU The eTPU is essentially 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 500 products Enhancements of the eTPU include a more powerful processor which handles high level C code efficiently and allows for more functionality and increased performance Although there is no compatibility at 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 Motorola library it is possible for the eTPU to support the users 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 1 4 4 10 100T Ethernet Port the upper 16 channels of the eTPU are multiplexed with the Fast Ethernet Con
59. Ondl Ag pZ THondL G zHONdL av 0 2 98 OHNI BeHondL se 240019500 Ld E 980 1VWMd 4d 02 SzHOndl 1HOndl o SZHOndl NT luii ound veHondL 02 21 uogouny pur SHOndl ezHondL Oldo AE ZA di moni O O SF zHondl snivis qm 9 02 PHONG L wy oO 1A ZHOndl o TF god 0 2 9 o SIHOndl T I SHHOndI 30001 siiteod ee Jojeredujoo o o 165 699 O ZiHOndl 690 908 4 199 Weeewi siaonain 2 pg amna SLN 0 a 5 190 6 ano 2 ginduy winduy d Zano sr vinaino 2 v aso 96 0515 eui Uo eoejd eseeld 990 509 4 92 6 uogoeuuoo EINN 4 sin SidonarT dime 5 osk 001 Bupyeus 18 5 2 Bupieus 9 HH OHIANA T 88 WMd 1 s den 55 E 19 WMd 6 se Bupieus oL ziHondr d wee apota dny eo VSSA 92 890 aatia sai 1 A wales diio 1450 4 5 8 o 0824 71880 Ex VSS aL 304 3021 3024 ACER Wn pa zz 960 2 E ELO S LLN apun seddo
60. PC terminal may be either male 25 pin or 9 pin It may be necessary to obtain a 25pin to 9pin adapter to make this connection If an adapter is required refer to Figure 2 4 2 2 9 Using a Personal Computer as a Terminal A personal computer may be used as a terminal provided a terminal emulation software package is available Examples of this software are PROCOMM KERMIT QMODEM Windows 95 98 2000 XP Hyper Terminal or similar packages The board should then be connected as described in Section 2 2 8 Connecting the Terminal Once the connection to the PC is made power may be applied to the PC and the terminal emulation software can be run In terminal mode it is necessary to select the baud rate and character format for the channel Most terminal emulation software packages provide a command known as Alt p press the p key while pressing the Alt key to choose the baud rate and character format The character format should be 8 bits no parity one stop bit see 2 2 7 Terminal Character Format The baud rate should be set to 19200 Power can now be applied to the board Figure 2 4 Pin Assignment for Female Terminal Connector Pin assignments are as follows Table 2 2 Pin Assignment for Female 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 refe
61. Q5 32 TCLK PSTCLK DTOUT2 34 DTIN2 35 IRQI 36 TDI DSI 37 TDO DSO 38 TMS BKPT 39 TRST DSCLK 40 GND M523xEVB User s Manual Rev 1 2 1 22 Freescale Semiconductor Connectors User Components Table 1 22 J10 continued Pin Signal Pin Signal 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 1 5 2 Reset Switch SW6 The reset logic provides system initilization Reset occurs during power on or via assertion of the signal RESET which causes the MCF5235 to reset Reset is also triggered by the reset switch SW6 which resets the entire processor system 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 which generates the signal which is fed to the MCF5235 reset RESET The RESET signal is an open collector signal and so 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 there is a reset signal brought out to the expansion connectors for use with user hardware dBUG configures the MCF5235 microprocessor internal resources during initialization The instruction cache is invalidated and disabled The Vector Base Register VBR contains an address whi
62. Some of the QSPI signals are multiplexed with the IC module JP6 and JP8 should be set between pins 1 and 2 to enable the QSPI module The EVB features an A to D converter ADC interfaced to the CPU via the QSPI The ADC uses QSPI chip select 0 This chip select has a jumper that can be removed if the EVB user is not using the ADC and wishes to connect to an alternative device 1 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 connector Host and a series connector Device populated on the EVB Either one or the other can be used depending on whether the USB controller is configured to run in Host or Device mode JP56 must be set between pins 2 and 3 if the controller is configured in Host mode and between pin 1 and 2 if the controller is configured in 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 the user wants to utilize 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 that allow the user to disconnect the DMA and interrupt signals between the CPU and the USB controller if the USB controller is not in use
63. User s Manual Rev 1 2 Freescale Semiconductor 1 11 M523xEVB externally addressed device before it can complete the bus cycle TA is used to indicate the completion of the bus cycle It also allows devices with different access times to communicate with the processor properly asynchronously The MCF5235 processor as part of the chip select logic has a built in mechanism to generate TA for all external devices which do not have the capability to generate this signal For example the Flash ROM cannot generate a TA signal The chip select logic is programmed by the dBUG ROM Monitor to generate TA internally after pre programmed number of wait states In order 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 1 3 6 Program JP64 on the 16Mbit FLASH 019 or JP31 if using 32Mbit FLASH 1 35 allows users to test code from boot POR without having to overwrite the ROM Monitor When the jumper is set between pins 1 and 2 the behavior of the system is normal dBUG boots and then runs from 0xFFE00000 OxFFC00000 When the jumper
64. WYO 0 SZH EZH Led OCH 619 JOJSIS8Y JUNO 5 9080 WYO HOCC SLY ZLY OLY SLY FIF JOJSISSY JUNO 9080 WYO 679 1015151 JUNO BDELNS 9080 WYO 694 89H 9 99 09H SSH 67H PEE 1 H6 6t 1015159 5 9080 WYO H6 6p LLY OLY 6H 8H PNE sjeuojeyw Jo SA3XEZSIN L G S96SCIN1 I JoyeinBey AG 5 5 5969 lt 5499 9909 1d 6cwy ysel 10 91 Shn98ZMZ c 1lN 21601 HOX3 Bojeuy 88 nugszzeav 0 V 28 Eldl S108 euojs 9y Sjulog 1591 UNON eoeuns 941 dl i 62 eye d 1 9 2 10 JeNIS YOUMS YMS 97 QOOccuL 157 Juno eoeung SMS EMS ZMS penunuoo GAAXETSIN L eal jquuesse ye pejejndod jou 02 02 5 04 19 10 ZHINZI 801 V 02 4092 5 04 19 10 ZHINGZ LAI 201 901 18d0 38002 1d62lA8IN v JodwHo9gaoeze1dezuv 10 16 26 901 92 9
65. XECUTION JUMP TO USER PROGRAM AND BEGIN EXECUTION Figure 3 1 Flow Diagram of dBUG Operational Mode 3 2 2 System Initialization After the EVB is powered up and initialized the terminal will display Hard Reset DRAM Size 16M ColdFire MCF5235 on the M523xEVB Firmware vXX XX XX Build X XXXX Copyright 1995 2004 Motorola Inc All Rights Reserved M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 3 3 Using the Monitor Debug Firmware Enter help for help dBUG Other means can be used to re initialize the M523xEVB firmware These means are discussed in the following paragraphs 3 2 2 1 External RESET Button External RESET SW6 is the red button Depressing this button causes all processes to terminate resets the MCF5235 processor and board logic and restarts the dBUG firmware Pressing the RESET button would be the appropriate action if all else fails 3 2 2 2 ABORT Button ABORT 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 15 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 softwar
66. aUas aequ lie Ded 1 24 2 1 Power LEDS M 2 4 2 2 Pin Assignment for Female Terminal 2 2 2 211 0000 00 010000000000 2 5 3 1 dBUG Command Summary sesto etas pi boe era ace du 3 5 C 1 M523XEVB at tede th od elut di afe ck 6 2 M523xEVB User s Manual Rev 1 2 Freescale Semiconductor Freescale Semiconductor Internal Use Only ix Tables Table Page Number ns Number M523xEVB User s Manual Rev 1 2 x Freescale Semiconductor Internal Use Only Freescale Semiconductor Chapter 1 523 This document details the setup and configuration of the ColdFire 523 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 can therefore be fully emulated using the MCF5235 device Table 1 1 below details the full product family
67. ast blow fuse 2 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 serial terminal A number of baud rates can be programmed On power up or manual RESET the dBUG ROM monitor firmware configures the channel for 19200 baud Once the ROM monitor is running a SET command may be issued to select any baud rate supported by the ROM monitor M523xEVB User s Manual Rev 1 2 2 4 Freescale Semiconductor Installation and Setup 2 2 7 Terminal Character Format The character format of the communication channel is fixed at power up or RESET The default character format is 8 bits per character no parity and one stop bit with no flow control It is necessary to ensure that the terminal or PC is set to this format 2 2 8 Connecting the Terminal The board is now ready to be connected to a PC terminal Use the RS 232 serial cable to connect the PC terminal to the 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 Connect the 9 pin female connector to one of the available serial communication channels normally referred to as COMI 2 etc on the PC running terminal emulation software The connector on the
68. ch initially points to the Flash memory The contents of the exception table are written to address 00000000 in the SDRAM The Software Watchdog Timer is disabled the Bus Monitor is enabled and the internal timers are placed in a stop condition The interrupt controller registers are initialized with unique interrupt level priority pairs 1 5 3 User LEDs There are eight LEDs available to the user Each of these LEDs are pulled to 3 3V through a 10 ohm resistor and can be illuminated by driving a logic 0 on the appropriate signal to sink the current Each of these signals can be disconnected from it s associated LED with a jumper The table below details which MCF5235 signal is associated with which LED Table 1 23 User LEDs LED MCF5235 Signal Jumper to disconnect D25 DTOUTO JP38 D26 DTINO JP39 D27 DTOUT1 JP40 M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 1 23 M523xEVB Table 1 23 User LEDs LED MCF5235 Signal Jumper to disconnect D28 DTIN1 JP41 D29 DTOUT2 JP42 D30 DTIN2 JP43 D31 DTOUTS JP44 D32 DTIN3 JP45 1 5 4 Other LEDs There are several other LED s on the M523xEVB to signal to the user various board processor component states Below is a list of those LEDs and their functions Table 1 24 LED Functions LED Function D1 D4 Ethernet Phy functionality D5 D12 eTPU functionality D14 3 3V Power Good D
69. command displays a contiguous block of memory starting at address begin and stopping at address end The values for addresses begin and end may be absolute addresses specified as hexadecimal values or symbol names Width modifies the size of the data that is displayed If no 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 will display memory up to an address that is 128 beyond the starting address This command first aligns the starting address for the data access size and then increments the address accordingly during the operation Thus for the duration of the operation this command performs properly aligned memory accesses Examples To display memory at address 0x00400000 the command is md 400000 To display memory in the data section defined by the symbols data_start and data_end the command is md data_start To display a range of bytes from 0x00040000 to 0x00050000 the command is md b 40000 50000 To display a range of 32 bit values starting at 0x00040000 and ending at 0x00050000 1 40000 50000 M523xEVB User s Manual Rev 1 2 3 26 Freescale Semiconductor Commands 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 abso
70. d into the stack pointer and the second longword at address 4 is loaded into the program counter After the initial instruction is fetched from memory program execution begins at the address in the PC If an access error or address error occurs before the first instruction is executed the processor enters the fault on fault halted state The Memory that the MCF5235 accesses at address 0 is determined at reset by sampling D 20 19 Table 1 3 D 20 19 External Boot Chip Select Configuration D 20 19 Boot Device Data Port Size 00 External 32 bit 01 External 16 bit 10 External 8 bit 11 External 32 bit 1 3 Support Logic 1 3 1 Reset Logic The reset logic provides system initialization Reset occurs during power on or via assertion of the signal RESET which causes the MCF5235 to reset RESET is triggered by the reset switch SW6 which resets the entire processor system dBUG configures the MCF5235 microprocessor internal resources during initialization The contents of the exception table are copied to address 0 0000 0000 in the SDRAM The Software Watchdog Timer is M523xEVB User s Manual Rev 1 2 1 8 Freescale Semiconductor Support Logic disabled the Bus Monitor is enabled and the internal timers are placed in a stop condition A memory map for the entire board can be seen in Table 1 2 If the external RCON pin is asserted SW7 1 ON during reset then various chip functions including
71. dBUG the SD command will decode the stack frames and display a trace of the function calls M523xEVB User s Manual Rev 1 2 3 32 Freescale Semiconductor Commands SET Set Configurations Usage SET lt option value gt The SET 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 This is the baud rate for the first serial port on the board All communications between dBUG and the user occur using either 9600 or 19200 bps eight data bits no parity and one stop bit 8 N 1 with no flow control base This is the default radix for use in converting a number from its ASCII text representation to the internal quantity used by dBUG The default is hexadecimal base 16 and other choices are binary base 2 octal base 8 and decimal base 10 client This is the network Internet Protocol IP address of the board For network communications the client IP is required to be set to a unique value usually assigned by your local network administrator server This is the network IP address of the machine which contains files accessible via TFTP Your local network administrator will have this information and can assist in properly configuring a TFTP server if one does not exist gateway This is the network IP address of the gatewa
72. ddition the address of where user code may start is given If command is provided then a brief listing of the syntax of the specified command is displayed Examples To obtain a listing of all the commands available within dBUG the command is help To obtain help on the breakpoint command the command is help br M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 3 23 Using the Monitor Debug Firmware 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 0x20000 the command is Lr 20000 M523xEVB User s Manual Rev 1 2 3 24 Freescale Semiconductor Commands 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 a word Examples To continually write the longword data 0x12345678 to address 0x20000 the command is lw 1 20000 12345678 Note that the following command writes 0x78 into memory lw b 20000 12345678 M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 3 25 Using the Monitor Debug Firmware MD Memory Display Usage MD lt width gt lt begin gt lt end gt The MD
73. e 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 0x00040000 and ending at 0x00080000 bs 40000 80000 1234 This reads the 16 bit word located at 0x00040000 and compares it against the 16 bit value 0x1234 If no match is found then the address is incremented to 0x00040002 and the next 16 bit value is read and compared To search for the 32 bit value in the memory block starting at 0x00040000 and ending at 0x00080000 bs 1 40000 80000 ABCD This reads the 32 bit word located at 0x00040000 and compares it against the 32 bit value 0x0000A BCD If no match is found then the address is incremented to 0x00040004 and the next 32 bit value is read and compared M5
74. e is being debugged The user can interrupt the processor without destroying the present state of the system This is accomplished by forcing a non maskable interrupt that will call a dBUG routine that will save the current state of the registers to shadow registers in the monitor for display to the user The user will be returned to the ROM monitor prompt after exception handling 3 2 2 3 Software Reset Command dBUG does have a command that causes the dBUG to restart as if a hardware reset was invoked The command is 3 3 Command Line Usage The user interface to dBUG is the command line A number of features have been implemented to achieve an easy and intuitive command line interface dBUG assumes that an 80x24 ASCII character 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 15 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 M523xEV
75. e is searched for a match on the symbol name and its information displayed The a option adds a symbol name and its value into the symbol table The r option removes a symbol name from the table c option clears the entire symbol table the option lists the contents of the symbol table and the s option displays usage information for the symbol table Symbol names contained in the symbol table are truncated to 31 characters Any symbol table lookups either by the SYMBOL command or by the disassembler will only use the first 31 characters Symbol names are case sensitive Symbols can also be added to the symbol table via in line assembly labels and ethernet downloads of ELF formatted files Examples To define the symbol main to have the value 0x00040000 the command is symbol a main 40000 To remove the symbol junk from the table the command is symbol r junk To see how full the symbol table is the command is symbol s To display the symbol table the command is symbol 1 M523xEVB User s Manual Rev 1 2 3 36 Freescale Semiconductor Commands 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
76. e sure that the power supply is properly configured for polarity voltage level and current capability 1A and is connected to the board 2 Check that the terminal and board are set for the same character format and baud 3 Press the RESET button to insure that the board has been initialized properly If you still are not receiving the proper response your board may have been damaged Contact Freescale Semiconductor for further instructions please see the beginning of this manual for contact details 2 4 Using BDM Port MCF5235 microprocessor has a built in debug module referred to as BDM background debug module In order to use BDM simply connect the 26 pin debug connector on the board J1 to the P amp E BDM wiggler cable provided in the kit No special setting is needed Refer to the ColdFire Reference Manual BDM Section for additional instructions NOTE BDM functionality and use is supported via third party developer software tools Details may be found on the CD ROM included in this kit M523xEVB User s Manual Rev 1 2 2 8 Freescale Semiconductor Chapter 3 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 the user with a monitor debug interface inline assembler and disassembly program download register and memory manipulation and I O control funct
77. ers 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 personal injury or
78. escale Semiconductor 3 29 Using the Monitor Debug Firmware RM Register Modify Usage RM reg data The RM command modifies the contents of the register reg to data The value for reg is the name of the register and the value for data may be a symbol name or it is converted according to the user defined radix normally hexadecimal dBUG preserves the registers by storing a copy of the register set in a buffer The RM command updates the copy of the register in the buffer The actual value will not be written to the register until target code is executed Examples To change register DO to contain the value 0x1234 the command is rm DO 1234 M523xEVB User s Manual Rev 1 2 3 30 Freescale Semiconductor Commands 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 M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 3 31 Using the Monitor Debug Firmware 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 nested function calls After control is returned to
79. eshooting 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 will cause dBUG network download to fail and probably other severe network problems Make certain the client IP address is unique for the board Check for proper insertion or connection ofthe network cable Is the status LED lit indicating that network traffic 1s present Check for proper configuration and operation of the TFTP server Most Unix workstations can execute a command named tftp which can be used to connect to the TFTP server as well Is the default TFTP root directory present and readable If ICMP DESTINATION UNREACHABLFE or similar ICMP message appears then a serious error has occurred Reset the board and wait one minute for the TFTP server to time out and terminate any open connections Verify that the IP addresses for the server and gateway are correct Also verify that a TFTP server is running on the server M523xEVB User s Manual Rev 1 2 A 2 Freescale Semiconductor Appendix Schematics M532xEVB User s Manual Rev 1 2 Freescale Semiconductor B 1 2 9L Jo L yous 5002 92 Ainr pue 1 9 08202 05 Jaquinn ju
80. eunooq SA3XEZSW enu GOAL 9451 595 3523 XMS 5 TIV pe3ouep szeduml IV sio32euuoo peqeqs Gogo AWS 4ni 0 sdeo sseqiun 080 AWS DOD eae 0 uey sdeo tw 5 peqeqs poroquinual 79 01 66 osed poyepdy SO ME LZ a 5121815 3901919 uo 510461691 uMop nd Jo pue 1030ouuoo UO 21815 Jo uoreinarjuoo UO USTH 919g 19521 JO suoneogrpour UddJOSy IS 8 71 unf cc 2 IOATOISULT T P N 01 510151501 wyo yg poppe ouid pry gse 4 319 91 4 pue use 4 3q zc JOSS 4 06 T 0 10 0 WOISTADI pue Joquinu yed 8 Poppy UO USIH d 0 Je 60 V SLA VUOISIAOJd uosiopuy T 394 20 00 Ssjuouruo 19181690 oq A UOT PULIOJU UOISIAO 91 LHAHS 429444151 850 ST L
81. fragments and address recognition rejects no processor bus utilization Address recognition Frames with broadcast address may be always accepted or always rejected Exact match for single 48 bit individual unicast address Hash 64 bit hash check of individual unicast addresses Hash 64 bit hash check of group multicast addresses Promiscuous mode M523xEVB User s Manual Rev 1 2 1 14 Freescale Semiconductor Communication Ports For more details see the MCF523x Reference Manual The on board ROM MONITOR is programmed to allow a user to download files from a network to memory in different formats The current compiler formats supported are S Record COFF ELF or Image Table 1 16 Ethernet eTPU Jumper Configuration Jumper Pin Ethernet Ethernet eTPU eTPU Setting Signal Setting Channel JP5 D5 2 3 ERXER 1 2 23 JP9 C5 2 8 ETXCLK 1 2 22 JP10 B5 2 3 ETXD2 1 2 18 JP11 A5 2 3 ETXD1 1 2 17 JP13 D6 2 8 ETXEN 1 2 21 JP14 C6 2 3 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 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 1 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
82. hen the processor receives an interrupt which has a higher priority than the current interrupt mask in the status register it will perform an interrupt acknowledge cycle at the end of the current instruction cycle This interrupt acknowledge cycle indicates to the source of the interrupt that the request is being acknowledged and the device should provide the proper vector number to indicate where the service routine for this interrupt level is located If the source of interrupt is not capable of providing a vector its interrupt should be set up as an autovector interrupt which directs the processor to a predefined entry in the exception table refer to the MCF5235 Reference Manual The processor goes to an exception routine via the exception table This table is stored in the Flash EEPROM The address of the table location is stored in the VBR The dBUG ROM monitor writes a copy of the exception table into the RAM starting at 00000000 To set an exception vector the user places the address of the exception handler in the appropriate vector in the vector table located at 00000000 and then points the VBR to 00000000 The 5235 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 timer module Timer modules UART modules 0 1 and 2 module DMA m
83. ilename 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 A 2 Configuring dBUG Network Parameters Once the network parameters have been obtained the dBUG Rom Monitor must be configured The following commands are used to configure the network parameters set client client IP Set server server IP Set gateway gateway IP set netmask lt netmask gt set mac lt addr gt For example the TFTP server is named santafe and has IP address 123 45 67 1 The board is assigned the IP address of 123 45 68 15 The gateway IP address is 123 45 68 250 and the netmask is 255 255 255 0 The MAC address is chosen arbitrarily and is unique The commands to dBUG are set client 123 45 68 15 set server 123 45 67 1 set gateway 123 45 68 250 set netmask 255 255 255 0 set mac 00 CF 52 82 EB 01 M523xEVB User s Manual Rev 1 2 Freescale Semiconductor A 1 Configuring dBUG for Network Downloads 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
84. in assignment M523xEVB User s Manual Rev 1 2 1 16 Freescale Semiconductor Communication Ports DEVELOPER RESERVED lt gt GND 4 DSCLK GND 5 6 lt gt DEVELOPER RESERVED RESET lt 7 DSI or Pad Voltage 79 10 080 GND gt 44 42 PST3 PST2 gt 43 4a PST1 PSTO 15 16 DDATA3 DDATA2 17 lt 7 DDATA1 DDATAO 19 20 GND MOTOROLA RESERVED gt 51 22 lt c MOTOROLA RESERVED GND 23 24 r PSTCLK Core Voltage 25 26 gt TA Figure 1 4 J1 BDM Connector Pin Assignment The BDM connector can also be used to interface to JTAG signals On reset the JTAG_EN signal selects between multiplexed debug module and JTAG signals See Table 1 5 147 5235 I C module includes the following features Compatibility with the I C bus standard version 2 1 Multi master operation e Software programmable for one of 50 different clock frequencies e Software selectable acknowledge bit Interrupt driven byte by byte data transfer e Arbitration lost interrupt with automatic mode switching from master to slave Calling address identification interrupt e Start and stop signal generation and detection Repeated start signal generation Acknowledge bit generation and detection Bus busy detection Please see the MCF523
85. in its default mode the Ethernet interface may be used by following the instructions provided in Appendix A 2 2 1 Unpacking Unpack the computer board from its shipping box Save the box for storing or reshipping Refer to the following list and verify that all the items are present You should have received e M323xEVB Single Board Computer e M523xEVB User s Manual this document e RS232 communication cable One BDM Background Debug Mode wiggler cable e MCF5235 ColdFire Integrated Microprocessor Reference Manual e ColdFire Programmers Reference Manual e selection of Third Party Developer Tools and Literature NOTE Avoid touching the MOS devices Static discharge can and will damage these devices Once you have verified that all the items are present remove the board from its protective jacket and anti static bag Check the board for any visible damage Ensure that there are no broken damaged or missing parts If you have not received all the items listed above or they are damaged please contact Freescale Semiconductor immediately For contact details please see the front of this manual 2 2 2 Preparing the Board for Use The board as shipped is ready to be connected to a terminal and power supply without any need for modification Figure 2 5 shows the position of the jumpers and connectors 2 2 3 Providing Power to the Board The EVB requires an external supply voltage of 7 14 V DC minimum 1 Amp This
86. ions This chapter is a how to use description of the dBUG package including the user interface and command structure 3 1 What Is dBUG dBUG is a traditional ROM monitor debugger that offers a comfortable and intuitive command line interface that can be used to download and execute code It contains all the primary features needed in a debugger to create a useful debugging environment The firmware provides a self contained programming and operating environment dBUG interacts with the user through pre defined commands that are entered via the terminal These commands are defined in Section 3 4 Commands The user interface to dBUG is the command line A number of features have been implemented to achieve an easy and intuitive command line interface dBUG assumes that an 80x24 character dumb terminal is utilized to connect to the debugger For serial communications dBUG requires eight data bits no parity and one stop bit 8 N 1 with no flow control The default baud rate 15 19200 but can be changed after power up The command line prompt is dBUG gt Any dBUG command may be entered from this prompt BUG does not allow command lines to exceed 80 characters Wherever possible dBUG displays data in 80 columns or less dBUG echoes each character as it is typed eliminating the need for any local echo on the terminal side In general dBUG is not case sensitive Commands may be entered either in upper or lower case depending upo
87. 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 signals of UARTO and UARTI are passed through the RS 232 transceivers U30 amp 031 and are available on DB 9 connectors P4 and P5 Refer to the MCF5235 Reference Manual for programming the UART s and their register maps M523xEVB User s Manual Rev 1 2 1 12 Freescale Semiconductor Communication Ports 1 4 2 UART2 FIexCAN 1 Port The third UART on the MCF5235 is multiplexed with the second FlexCAN FlexCAN1 module As these two modules are multiplexed such that the user has access to one or the other the functionality on the EVB is jumper selectable Table 1 12 shows the jumper configuration to activate UART2 or FlexCANI Table 1 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 for settings see Table 1 12 on DB 9 connector P6 The CANITX and CANIRX signals from FlexCANI are brought to a 3 3 V CAN transceiver Texas Instruments SN65HVD230D and are jumper selectable for settings see Table 1 12 on DB 9 connector P6 Jumpers JP3 and JP4 control the CAN hardware configuration Table 1 13 FlexCAN1 Jumper Configura
88. 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 2 2 P3 a lever actuated connector Figure 2 3 GND Figure 2 2 2 1mm Power Connector M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 2 3 Initialization and Setup Figure 2 3 2 Lever Power Connector 2 2 4 Power Switch SW4 Slide switch SW4 can be used to isolate the power supply input from the EVB voltage regulators if required Moving the slide switch to the left towards connector P3 will turn the EVB ON Moving the slide switch to the right away from connector P3 will turn the EVB OFF 2 2 5 Power Status LEDs and Fuse When power is applied to the EVB green power LEDs adjacent to the voltage regulators show the presence of the supply voltage as follows Table 2 1 Power LEDs LED Function D17 Indicates that the 5V regulator is working correctly 014 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 either 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 with a 20mm 1A f
89. jeq sLozn z9 Tor x esar lt gt axizn pue Se 0421 LON x 1 ZE F3 emus a IL 26258 6 zsar VOSZZE101 0 dVOSZZEXVW ano anyo Z 1808 T 2912 ETT t FEE EM T 1 T z 6 049 y F Tr 2 oz p NO30804 A 7 T Zr ino 2 y 9 9 n ol or o Le we 4 IV 49 Bro TS i e 2 uaamgeq pany si 2541 oi 054 104 1 Srladoaowo4 aavau AEE m zen zd o siiin pue Se ALON Y 1 ZEZSY SdALG AYG 2 0522101 0 dVOSZZEXVIN anyo anyo 180d pieoq YOU 0 221 inoza PTT 7 T 1 wo 0 7 H Sd eto FE inoia 2 Pony st oi 104 E 20 LS Y Sr OS anyo p 2 Ir F Gio A elr Scd Son LE a off 8 i vas oz s ACER ven I085e201d pue jeeudued ay 79 T so peunbo1 oq sion peuinbei si
90. l memory implementation on the EVB MPU Buffers Data lt gt lt gt ASRAM t 1 Mbyte Address Tu LE gt Control gt P gt gt gt SDRAM Flash 16 Mbytes L gt 512K x 16 gt or gt 512 x 32 gt Expansion Connectors __ Figure 1 3 External Memory Scheme NOTE The external bus interface signals to the external ASRAM and FLASH and USB are buffered This is in order not to exceed the maximum output load capacitance of the microprocessor on the EVB The signals to the expansion connectors remain unbuffered to provide a true interface to the user 1 2 1 External Flash The EVB is fitted with a single 512K x 16 page mode FLASH memory U19 giving a total memory space of 2Mbytes Alternatively a footprint is available for the EVB user to upgrade this device to a 512K x 32 page mode FLASH memory U35 doubling the memory size to 4Mbytes Either 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 Users should note that the debug monitor firmware is installed in this flash device Development tools or user application programs may erase or corrupt the debug monitor If the debug monitor becomes corrupted and it s operation is desired the firmware m
91. lash devices on the EVB erase a specified range of Flash or erase and program a specified range of Flash When issued with no parameters the FL command will display usage information as well as device specific information for the Flash devices available This information includes size address range protected range access size and sector boundaries When the erase command is given the FL command will attempt to erase the number of bytes specified on the command line beginning at addr If this range doesn t start and end on Flash sector boundaries the range will be adjusted automatically and the user will be prompted for verification before proceeding When the write command is given the FL command will program the number of bytes specified from src to dest An erase of this region will first be attempted As with the erase command if the Flash range to be programmed doesn t start and end on Flash sector boundaries the range will be adjusted and the user will be prompted for verification before the erase is performed The specified range is also checked to insure that the entire destination range is valid within the same Flash device and that the src and dest are not within the same device M523xEVB User s Manual Rev 1 2 3 18 Freescale Semiconductor Commands GO Execute Usage GO lt addr gt The GO command executes target code starting at address addr The value for addr may be an absolute address specified as a hexadecimal va
92. le Semiconductor 1 1 M523xEVB Peripherals e Ethernet port 10 100Mb s Dual Speed Fast Ethernet Transceiver with e UARTO RS 232 serial port for dBUG firmware e UARTI auxiliary RS 232 serial port e UART2 auxiliaryl RS 232 serial port jumper selectable with FlexCANI Enhanced Time Processor Unit eTPU PC interface e QSPI interface to ADC e FlexCan0 interface e USB Host and Device Interface e BDM JTAG interface User Interface Reset logic switch debounced Bootlogic selectable dip switch e 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 for daughter card e UNI 3 connector for motor control cards Software Resident firmware package that provides a self contained programming and operating environment dBUG M523xEVB User s Manual Rev 1 2 1 2 Freescale Semiconductor MCF5235 Microprocessor 26 pin Debug Header Clocking circuitry DB 9 2 connector RJ 45 connector DB 9 CAN Transceiver connector DB 9 RS 232 CAN connector Transceiver RS 232 transceivers 2 Ethernet Transceiver ColdFire MCF523X USB 2 0 Host amp Device ETPU Headers Peripheral signals Control Signals 4 60 pin Daughter Card expansion connectors There is a j
93. lt inoisw 92 seo 6 eu VAS e VASZ VASZ VASZ VASZ Z SS SSS KM SSS SSS SS CC SSS d cL LC SS eS E S LLN LLY 9 OLY 68 BH T z Y 5 9 P 6 HETE 500292 EXT Ej pue 6 a i yoyms suopng Jequinn doze cu 69 Jojoeuuoo Jepoou3j s1osues T uid 2151 uo uogouny 5 PHONGL fuepuoces Old
94. lue or a symbol name If no argument is provided the GO command begins executing instructions at the current program counter When the GO command is executed all user defined breakpoints are inserted into the target code and the context is switched to the target program Control is only regained when the target code encounters a breakpoint illegal instruction trap 15 exception or other exception which causes control to be handed back to dBUG The GO command is repeatable Examples To execute code at the current program counter the command is go To execute code at the C function main the command is go main To execute code at the address 0x00040000 the command is go 40000 M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 3 19 Using the Monitor Debug Firmware GT Execute To Usage GT addr The GI 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 command is executed all breakpoints are inserted into the target code and the context is switched to the target program Control is only regained when the target code encounters a breakpoint illegal instruction or other exception which causes control to be handed back to dBUG Examples To execute code up to the C function bench the command is gt bench M523xEVB User s
95. lute address specified as a hexadecimal value or a symbol name Width specifies the size of the data that is modified If no lt width gt is specified the default of word sized data is used The value for data may be a symbol name or a number converted according to the user defined radix normally hexadecimal If a value 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 1 a period This command first aligns the starting address for the data access size and then increments the address accordingly during the operation Thus for the duration of the operation this command performs properly aligned memory accesses Examples To set the byte at location 0x00010000 to be OxFF the command is mm b 10000 FF To interactively modify memory beginning at 0x00010000 the command is mm 10000 M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 3 27 Using the Monitor Debug Firmware MMAP Memory Map Display Usage mmap 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
96. n the user s equipment and preference Only symbol names require that the exact case be used Most commands can be recognized by using an abbreviated name For instance entering h is the same as entering help Thus it is not necessary to type the entire command name The commands DI GO MD STEP and TRACE are used repeatedly when debugging dBUG recognizes this and allows for repeated execution of these commands with minimal typing After a command is entered simply press lt RETURN gt or lt gt to invoke the command again The command is executed as if no command line parameters were provided An additional function called the System Call allows the user program to utilize various routines within dBUG The System Call is discussed at the end of this chapter The operational mode of dBUG is demonstrated in Figure 3 1 After the system initialization the board waits for a command line input from the user terminal When a proper command is entered the operation continues in one of the two basic modes If the command causes execution of the user program the dBUG firmware may or may not be re entered at the discretion of the user s program For the alternate case the command will be executed under control of the dBUG firmware and after command completion the system returns to command entry mode During command execution additional user input may be required depending on the command function For commands that acce
97. nloads a new dBUG image in S record format obtained from the console and programs the new dBUG image into Flash When the DLDBUG command is issued dBUG will prompt the user for verification before any actions are taken If the command 15 affirmed the Flash is erased and the user is prompted to begin sending the new dBUG S record file The file should be sent as a text file with no special transfer protocol Use this command with extreme caution as any error can render dBUG useless M523xEVB User s Manual Rev 1 2 3 16 Freescale Semiconductor Commands DN Download Network Usage DN lt c gt lt gt lt 1 gt lt s gt o offset gt lt filename gt The DN command downloads code from the network The DN command handle files which are either S record COFF ELF or Image formats The DN command uses Trivial File Transfer Protocol TFTP to transfer files from a network host In general the type of file to be downloaded and the name of the file must be specified to the DN command The c option indicates a COFF download the e option indicates an ELF download the i option indicates an Image download and the s indicates an S record download The o option works only in conjunction with the s option to indicate an optional offset for S record download The filename is passed directly to the TFTP server and therefore must be a valid filename on the server If neither of the c 1 s or filename options are specified
98. nsion Connectors 1 19 1 5 2 Reset Swie SWOR Eats ute a rtu 1 23 1 5 3 User LEDS oria 1 23 1 5 4 Other LEDS pe C 1 24 Chapter 2 Initialization and Setup 2 1 System Configuration 2 1 22 Installation amd Setup A ooh e tto See duos m vel eset Re mea 2 3 224 IB an pem EE 2 3 202 2 Preparing the Board sese o neat reo 2 3 M523xEVB User s Manual Rev 1 2 Freescale Semiconductor V Contents Paragraph Number Number 223 Providing Power to the Board ee 2 3 2 2 4 Power Switch SWG e e nO d tts 2 4 2 2 5 Power Status LEDs and 2 4 2 2 6 Selecting Terminal Baud a peni 2 4 22 1 The Terminal Character Format 2 5 2 2 8 Connecting the Terminal ierni 2 5 229 Using a Personal Computer as a Terminal esset aae 2 5 2 3 System Power up and Initial Operation 1 4 2 2 0 3 600000 2 8 2 4 Using The BDM Port Edo de E eit tege dies edu ago 2 8 Chapter 3 Using the Monitor Debug Firmware 3 1 eet PN 3 1 3 2 Operational Procedute
99. o 20 62 YMS Hngz jse3 YS 2 lt WALT T t L S S96SZIN1 Len as m 105 pueog 1SdS AGIIS MS H3MOd 5 1 H3MOd N33H9 via 2 anro eLOvesHaN Od 4 JO ueaiosys 0 2 84 uo UMOYS SNW 1 P yore jo EuiuJ9 9u 310N Hngz 0 Z Age t S9682W1 OZN 7 ad eedr ATaWassv ONINNG GATIVLSNI 38 GINOHS T z Y 5 Sr P FETE 5002 92
100. o jo e sey 5 einsuo eseeid B ES att ulod 99 190 695 6t 099 859 eee 5 elqseooe ue ee god esues A Sod esuos 1 Lj 749 ONY zin uo NIJ3M pue ELM uo jnoA M E 743 lew INY I 298400 s ensue aseejd pz 021 ZNV 1 gresues cz oer vee i YSSA YSSA YSSA az bx 02 1 PAN I uaogzay iL 8 ez p sun ence 52 Lx StHONdL eu 10 VSS zr A 489 fwar ve Je OY ue Juasaides se UO suld XulA ejqrissod zun ana H any E se se sJojsise x sJoyoedeo eu Sr Ee AN 59 207 COND ano anyo 8 ssom oez se SHOndL Lisa 27 2 96 SHOAL ST eS Bupieus 1 ZHONdL ano anyo 57 anov su s swag ec us 0 an aues 02 SNY 0 OF 952 VAS esua awaa op 021 0 02 INV 0 Seu 0 EZH 0 Lee m ACER VAS 0 zu mi nod 1450 0 0 t lt 7 OS ji ue pue ojqissod se sjeuBis 5 2 gt 2 uopounf ay se sJojsise
101. odule QSPI module FEC module PIT e Security module e FlexCANO and FlexCANI e eTPU external interrupt inputs are edge sensitive The active level is programmable An interrupt request must be held valid until an IACK cycle starts to guarantee correct processing Each interrupt input can have it s priority programmed by setting the xIPL 2 0 bits in the Interrupt Control Registers apart from interrupts 1 7 which have fixed priority already allocated to them No interrupt sources should have the same level and priority as another Programming two interrupt sources with the same level and priority can result in undefined operation The 523 hardware uses IRQ7 to support the ABORT function using the ABORT switch SWS This switch is used to force an interrupt level 7 priority 3 if the user s program execution should be aborted without issuing a RESET refer to Chapter 2 for more information on ABORT Since the ABORT switch is not capable of generating a vector in response to a level seven interrupt acknowledge from the processor the dBUG programs this interrupt request for autovector mode Refer to MCF5235 Reference Manual for more information about the interrupt controller 1 3 5 TA Generation The processor starts a bus cycle by asserting CSx with the other control signals The processor then waits for a transfer acknowledgment TA either from within Auto acknowledge AA mode or from the M523xEVB
102. on ER 1 9 1 5 EN 2 1 9 1 6 SW 7 433 Encoded Clock 1 9 1 7 SW 7 5 Chip Contisurgon s ee etatis br nib 1 9 1 8 BOO DEV ICG ec aratores tee nulo Le M m CM D iE 1 9 1 11 M523xEVB Clock Source Selection eee ies 1 10 1 9 Strength eco tieni 1 10 1 10 SW7 10 9 Address C hip Select Mode I aded oe ub 1 10 1 12 UART 2 FlexCAN1 Jumper ebrei nee a bert e 1 13 1 13 BIexC ANI Jumper ConfiguratiQn aet Ene etur ores ede ceri repe eon il tes 1 13 1 14 FIexC ANO Jumper C ontiguratigm soot ee lade sacra n en torvo 1 13 1 15 CAN B s Co nector etre testas iara fte 1 14 1 16 Ethernet eTPU Jumper Conf gurdtloti c s t t e o cub dee op dis 1 15 1 17 eTPU Header Pin Assignment tances gear 1 16 1 18 USB DMA Enable and Disable Settings e 1 18 1 19 orm 1 19 1 20 j 1 20 1 21 ID Qe AA au en Re mum 1 21 1 22 IU E A MT I E 1 22 1 23 User een dM E LM MADE 1 23 1 24 x ues quise AV Ep
103. oo 99 BOSSOSOZ O000 50050000 5 994 ACER jooo Ele RESBESS B R 5 SN old sc gt T anyo anyo t 4 NE E 4 anyo ano anro anro suo eno zuo 4 Agee 8 TUTTI OTT 222 SHS9 8009L1d6Zu Tz 8 02078 8 82078 52 soa 8 12078 i 60 8 2 ooa 100 20079 Broa 8 52 00 ood 7 4 E 8 30 w vk 30 5 Lap vw re Siva SE zv PET avs ley ev 5 5 8 279 suid ssouoe vw 8 wE wa 9dr Bumes sv Ziv 8 ow ale NE tiv 8 lov NH 2 2 oy EE UE 1008 we ley av 93 on vt eM m 4 ein ON 8 2 suid ueenieq 1981994014 eewpieu eiqesip o1 2 Suid ueewieq 198 1009 eu joeoid esn eu jo tuejsrsuoout yel eq ou pinoys Go uid ajum 94 310N
104. play the current baud rate of the board the command is show baud Here is an example of the output from a show command dBUG show base baud server client gateway netmask filename filetype ethaddr 16 19200 0 0 0 0 0 0 0 0 0 0 0 0 255 255 255 0 test s19 S Record Q0 CF 52 82 CF 01 M523xEVB User s Manual Rev 1 2 3 34 Freescale Semiconductor Commands STEP Step Over Usage STEP The STEP command can be used to step over a subroutine call rather than tracing every instruction in the subroutine The ST command sets a temporary breakpoint one instruction beyond the current program counter and then executes the target code STEP command be used to step over BSR and JSR instructions STEP command will work for other instructions as well but note that if the STEP command 15 used with an instruction that will not return i e BRA then the temporary breakpoint may never be encountered and dBUG may never regain control Examples To pass over a subroutine call the command is step M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 3 35 Using the Monitor Debug Firmware SYMBOL Symbol Name Management Usage S YMBOL lt symb gt lt symb value lt 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 tabl
105. point 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 will be returned to dBUG To set a breakpoint at the C function bench and set its trigger value to 3 the command is br bench t 3 When the target code is executed the processor must attempt to execute the function bench a third time before returning control back to dBUG To remove all breakpoints the command is br r M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 3 11 Using the Monitor Debug Firmware BS Block Search Usage BS lt width gt begin end data Th
106. pt an optional width to modify the memory access size the valid values M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 3 1 Using the Monitor Debug Firmware e B 8 bit byte access 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 core ColdFire register set is maintained by dBUG These are listed below e 0 7 00 07 e PC SR control registers ColdFire are not readable by the supervisor programming model and thus not accessible via dBUG User code may change these registers but caution must be exercised as changes may render dBUG inoperable A reference to SP stack pointer actually refers to general purpose address register seven 7 3 2 Operational Procedure System power up and initial operation are described in detail in Chapter 2 This information is repeated here for convenience and to prevent possible damage 3 2 1 System Power up Besure the power supply is connected properly prior to power up Make sure the terminal is connected to TERMINAL P4 connector Turn power on to the board Figure 3 1 shows the dBUG operational mode M523xEVB User s Manual Rev 1 2 3 2 Freescale Semiconductor Operational Procedure INITIALIZE NO COMMAND LINE INPUT FROM TERMINAL EXECUTE COMMAND FUNCTION A DOES COMMAND LINE CAUSE USER PROGRAM E
107. rs to terminal side Data Terminal Ready Input shorted to pin 1 and 6 Signal Ground N Data Set Ready Output shorted to pins 1 4 M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 2 5 Initialization and Setup Table 2 2 Pin Assignment for Female Terminal Connector Pin Function 7 Request to Send Input 8 Clear to send Output 9 Not connected Figure 2 5 on the next page shows the jumper locations for the board M523xEVB User s Manual Rev 1 2 Freescale Semiconductor Installation and Setup T ES alij Hb Ag am Figure 2 5 Jumper Locations M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 2 7 Initialization and Setup 2 3 System Power up and Initial Operation When all of the cables are connected to the board power may be applied The dBUG ROM Monitor initializes the board and then displays a power up message on the terminal which includes the amount of memory present on the board Hard Reset DRAM Size 16M Copyright 1995 2004 Motorola Inc All Rights Reserved ColdFire MCF523x EVS Firmware 2 1 Build XXX on XXX 20XX XX XX XX Enter help for help dBUG gt The board is now ready for operation under the control of the debugger as described in Chapter 2 If you do not get the above response perform the following checks 1 Mak
108. scale Semiconductor 1 9 M523xEVB Table 1 8 SW7 7 6 Boot Device SW7 6 SW7 7 RCON SW7 1 Boot Device ON ON ON External 32 bit X X OFF External 32 bit Table 1 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 1 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 CS6 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 1 3 2 Clock Circuitry The are three options to provide the clock to the CPU These options can be configured by setting JP 35 37 See Table 1 11 below Table 1 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 The 25 MHz oscillator U23 also feeds the Ethernet chip U11 There is also a 12 2 crystal feeding the USB controller U33 1 3 3 Watchdog Timer The dBUG Firmware does NOT enable the watchdog timer on the MCF5235 M523xEVB User s Manual Rev 1 2 1 10 Freescale Semiconductor Support Logic 1 3 4 Exception Sources The ColdFire family of processors can receive seven levels of interrupt priorities W
109. sing this product 5 Attaching additional cables or wiring to this product or modifying the products operation from the factory default as shipped may effect its performance and also cause interference with other apparatus in the immediate vicinity If such interference is detected suitable mitigating measures should be taken M523xEVB User s Manual Rev 1 2 Freescale Semiconductor iii 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 the user at his her own expense will be required to correct the interference M523xEVB User s Manual Rev 1 2 iv Freescale Semiconductor Contents Paragraph Number 1188 Number Chapter 1 M523xEVB 1 1 M P5233 MICTOPIOCESSOT ose oe ee aute E uet 1 3 1 2 System EP RS 1 6 1 2 1 External Flash dq 1 6 1 2 2 SDRAM tres vasa 1 7 1 2 3 ASRAM TD 1 7 1 2 4 Internal BONIS s 1 7 1 23 M523XEVB M moty
110. starts at 0x00040000 the command 16 di 40000 To disassemble code of the C function main the command is di main M523xEVB User s Manual Rev 1 2 3 14 Freescale Semiconductor Commands 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 offset to the destination address of 0x40 the command is dl 0x40 M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 3 15 Using the Monitor Debug Firmware 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 dow
111. ta 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 lt c gt lt gt lt i gt lt 5 lt offset gt gt lt filename gt 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 lt command gt 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 M523xEVB User s Manual Rev 1 2 Freescale Semiconductor Using the Monitor Debug Firmware Table 3 1 dBUG Command Summary continued Mnemonic Syntax Description ASM asm lt lt gt stmt Assemble BC bc addr1 addr2 length Block Compare BF bf width begin end data inc Block Fill MD md lt width gt begin end Memory Display MM mm lt width gt addr data Memory Modify MMAP mmap Memory Map Display RD rd lt reg gt Register Display RM rm reg data Register Modify RESET reset Reset SD sd Stack Dump SET set lt option value gt Set Configurations SHOW show lt option gt Show Configurations STEP step Step Over SYMBOL symbol lt symb gt
112. target code executed Control returns to dBUG after a single instruction execution of the target code This command is repeatable Examples To trace one instruction at the program counter the command is tr To trace 20 instructions from the program counter the command is tr 20 M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 3 37 Using the Monitor Debug Firmware 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 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 M523xEVB User s Manual Rev 1 2 3 38 Freescale Semiconductor TRAP 15 Functions 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 cda dBUG common a C PU major board major major and minor and minor and minor revision revision revision The version date is the day and time at which the entire dBUG monitor was compiled and built Examples To display the
113. the reset configuration pin functions after reset are configured according to the levels driven onto the external data pins See tables below on settings for reset configurations If the RCON pin is not asserted SW7 1 OFF during reset the chip configuration and the reset configuration pin functions after reset are determined by the RCON register or fixed defaults regardless of the states of the external data pins Table 1 4 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 1 5 SW7 2 JTAG_EN SW1 2 JTAG Enable OFF JTAG interface enabled ON BDM interface enabled Table 1 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 Table 1 7 SW7 5 Chip Configuration Mode SW7 5 RCON SW7 1 Mode OFF ON Reserved ON ON Master X OFF Master Table 1 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 M523xEVB User s Manual Rev 1 2 Free
114. the port size of the memory The display also includes information on how the Chip selects are used on the board and which regions of memory are reserved for dBUG use protected Here is an example of the output from this command Type Start End Port Size SDRAM 0x00000000 OxOOFFFFFF 32 bit SRAM Int 0x20000000 Ox2000FFFF 32 bit ASRAM Ext 0x30000000 Ox3007FFFF 32 bit IPSBAR 0x40000000 Ox7FFFFFFF 32 bit Flash Ext OxFFEOO0000 OxFFFFFFFF 16 bit Protected Start End dBUG Code OxFFEOO0000 OxFFE3FFFF dBUG Data 0x00000000 OxOOO00FFFF Chip Selects CSO Ext Flash 51 Ext ASRAM M523xEVB User s Manual Rev 1 2 3 28 Freescale Semiconductor Commands 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 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 M523xEVB User s Manual Rev 1 2 Fre
115. tion Jumper Function ON OFF JP3 Transceiver mode Standby High Speed No Slope Control JP4 CAN Termination Terminating resistor No terminating resistor between CANL and CANH 1 4 3 FIexCANO Port The EVB provides 1 dedicated CAN transceiver The CANOTX and CANORX signals are brought out to 3 3V CAN transceiver Texas Instruments SN65HVD230D Jumper JP1 and JP2 control the CAN hardware configuration Table 1 14 FlexCANO Jumper Configuration Jumper Function ON OFF JP1 Transceiver mode Standby High Speed No Slope Control JP2 CAN Termination Terminating resistor between CANL and CANH No terminating resistor The CANL and CANH signals are brought out from the CAN transceiver to a female DB 9 connector P1 in the configuration below M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 1 13 M523xEVB Table 1 15 CAN Bus Connector Pinout DB 9 pin Signal 1 4 6 7 9 Not Connected 2 CANL 3 Ground 7 CANH 1 4 4 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 the EVB user the choice of utilizing either 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
116. troller M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 1 15 M523xEVB Refer to Table 1 16 to set the appropriate jumpers to enable 16 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 for the EVB user Table 1 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 9 TPUCH19 10 TPUCH1 11 TPUCH20 12 TPUCH2 13 TPUCH 1 14 15 22 16 TPUCH4 17 TPUCH23 18 5 19 TPUCH24 20 TPUCH6 21 TPUCH25 22 TPUCH7 23 TPUCH26 24 8 25 TPUCH27 26 TPUCH9 27 TPUCH28 28 TPUCH10 29 TPUCH29 30 TPUCH 11 31 TPUCHSO 32 12 33 TPUCHS1 34 TPUCH13 35 GND 36 TPUCH14 37 TCRCLK 38 15 39 GND 40 GND There is a UNI3 connector and HS ENCO connector on the EVB for connection to an auxiliary card The auxiliary card is intended for evaluation of the eTPU functionality 1 4 6 BDM JTAG Port The MCF5235 processor has a Background Debug Mode BDM port which supports Real Time Trace and Real Time Debug The signals which are necessary for debug are available at connector 1 Figure 1 4 shows the J1 Connector p
117. umper that allows the option of choosing between 16 eTPU channels and Ethernet or 32 eTPU channels and no Ethernet Figure 1 1 M523xEVB Block Diagram 1 1 MCF5235 Microprocessor The microprocessor used on the EVB is the highly integrated Motorola MCF5235 32 bit ColdFire variable length RISC processor The MCF5235 implements a ColdFire Version 2 core with a maximum core frequency of 150 MHz and external bus speed of 75 MHz Features of the MCF5235 include e V2 ColdFire core with enhanced multiply accumulate unit EMAC providing 144 Dhrystone 2 1 MIPS 150 MHz e 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 External bus speed of one half the CPU operating frequency 75 MHz bus 150 MHz core e 10 100 Mbps bus mastering Ethernet controller 8 Kbytes of configurable instruction data cache Three universal asynchronous receiver transmitters UARTs with DMA support M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 1 3 M523xEVB Controller area network 2 0B FlexCAN module Optional second FlexCAN module multiplexed with the third UART nter integrated circuit bus controller e Queued serial peripheral interface QSPI module Hardware cryptography accelerator optional Random number generator DES 3DES AES block cipher engine MDS SHA 1 HMAC accelerator e Four channel 32 bit direct memory access
118. ust be programmed into the flash by applying a development port tool such as BDM Users should use caution to avoid this situation The M523xEVB dBUG debugger monitor firmware is programmed into the lower sectors of Flash OxFFEO 0000 to OxFFE2 FFFF for 2Mbytes of FLASH or 0000 to OxFFC2_FFFF for 4 Mbytes of FLASH By default with U19 fitted on the EVB jumper 64 JP64 provides an alternative hardware mechanism for write protection M523xEVB User s Manual Rev 1 2 1 6 Freescale Semiconductor System Memory If the user has 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 which protects the bottom boot sector when pulled to ground 1 2 2 SDRAM The EVB is populated with 16 Mbytes of SDRAM This is done with two devices Micron MT48LC4M16A2TG each with a 16 bit data bus Each device is organized as 1 Meg x 16 x 4 banks with a 16 bit data bus One device stores the upper 16 bit word and the other the lower 16 bit word of the MCF523x 32 bit data bus 1 2 3 ASRAM The EVB has a footprint for two 512K x 16 Asynchronous SRAM devices Cypress Semiconductor CY7C1041CV3310ZC These memory devices U1 and U2 may be populated by the user for benchmarking purposes Also see Section 1 2 5 523 Memory 1 2 4 Internal SRAM The MCF5235 processor has 64 Kbytes of internal SRAM memory which may be
119. version of the dBUG monitor the command is version 3 5 TRAP 15 Functions An additional utility within the dBUG firmware is a function called the TRAP 15 handler This function can be called by the user program to utilize 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 3 5 1 OUT CHAR This function function code 0x0013 sends a character which is in the lower 8 bits of D1 to the terminal Assembly example assume di contains the character move 1 0013 d0 Selects the function TRAP 15 The character in dl is sent to terminal C example void board out char int ch If your C compiler produces a LINK UNLK pair for this routine then use the following code which takes this into account M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 3 39 Using the Monitor Debug Firmware LINK a6 0 produced by C compiler asm move 18 a6 d1 put ch into dl asm move 1 0x0013 d0 select the function asm 15 make the call UNLK produced by compiler 1 compiler does not produce LINK UNLK pair the use the following code asm move l4 sp d1 put ch into d1 asm move 140x0013 d0
120. x Reference Manual for more detail The signals from the MCF5235 device are brought out to expansion connector J13 The 2 functionality of the MCF3235 1 is multiplexed on the same pins as the QSPI Jumpers JP6 and JP8 are used to connect disconnect signals SDA and SCL To enable JP6 and JP8 should be set between pins 2 and 3 M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 1 17 M523xEVB 1 4 8 QSPI The QSPI Queued Serial Peripheral Interface module provides a serial peripheral interface with queued transfer capability It will support up to 16 stacked transfers at one time minimizing CPU intervention between transfers Transfer RAMs in the QSPI are indirectly accessible using address and data registers Functionality is very similar but not identical to the QSPI portion of the QSM Queued Serial Module implemented in the MC68332 processor Programmable queue to support up to 16 transfers without user intervention e Supports transfer sizes of 8 to 16 bits in 1 bit increments e 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 e Supports wrap around mode for continuous transfers Please see the MCF523x Reference Manual for more detail The QSPI signals from the MCF5235 device are brought out to expansion connector J12
121. y for your local subnetwork If the client IP address and server IP address are not on the same subnetwork then this option must be properly set Your local network administrator will have this information netmask This is the network address mask to determine if use of a gateway is required This field must be properly set Your local network administrator will have this information filename This is the default filename to be used for network download if no name is provided to the DN command filetype This is the default 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 a k a hardware address for the evaluation board This should be set to a unique value and the most significant nibble should always be even Examples To set the baud rate of the board to be 19200 the command is set baud 19200 NOTE See the SHOW command for a display containing the correct formatting of these options M523xEVB User s Manual Rev 1 2 Freescale Semiconductor 3 33 Using the Monitor Debug Firmware SHOW Usage SHOW lt option gt Show Configurations 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 dis

Download Pdf Manuals

image

Related Search

Related Contents

Shuttle LX1 User`s Manual  User`s Manual - Sage ACT! add-ons  MANUAL DE INSTRUÇÕES    Operation and Service Manual for HERMetic UTImeter Rtex  Digitus DS-23200-1 KVM switch  AF SCS250  OpenSynth PLL - Reactance Labs  Panasonic KX-TG4734B telephone    

Copyright © All rights reserved.
Failed to retrieve file