Home

M523xEVB User`s Manual - Digi-Key

image

Contents

1. OS 1490 08602 06 0 15 NN 7 7 5 Es s BRER 55 0091 9981 545 z ge 8 Bea aPP Pee rdg lh 355 GRDE 5665 22 92 58 god 6 2 539 Zam SN voudewasz BE ER EERE RRRE Be BRE BEBE BRE d ERPEBBERE 3 H 2223 5 2288 SS 5 324 555 BEER 3555 dd 555 S 39 MSS 859 55 E 5 985892599 5 ae 28 88 2922 4545 88 amp 350 058 GERD 0858 585 38 08 8j 55 y 88882 5 55 PHA 5 1 ud n 538 4 8 apoapo TASSA TASSA T S E g
2. ano mo m imo suo suo s wee LON ESP oj Dunes or soen Hador eat wo INYO uz owen oewos T IAAL AV mc voszzero110 avosezexvn anro mo E 1519 i 2 py wio F elt I 23 5 5 LT BE as 7 si zdr o fumos anejoq indu E m AEE i sian Piero sin erat pue LON ZEZSH o ayoszzexn amo eno ino T 8 PE o ano O 20 Bumas 2 5 pu oft 49 ver 5120 sion 26254 o 4444444449 For More
3. 4 0 0031 OdSL 545 PIWAN sen voa supo suc NO ane ias a lt gt Tu T Tu Bge 89568 895 Suse sooortaszuv anv RS STE Era erg uya 1204 Sd mS IE CAEI 3 SC NE 220 Ai wa avg 272 0 ed 20 9 STE Tye AE ETa DEI TY wE we a 55 teat Boos vi Ni aya Ziv SE IE A ET LR we m used ave S SNC SCR ear EeepeRREREeBREBRRERRRB n m M wwe TENT bis gt m sim fo 0507 M 0157078 m 138 10586 ooo erm en OL 70 noo usa m ar saos Go qun ALON avo ano amo 19 eno 610 vio For More Information On This Product Go to www freescale com Freescale Semiconductor Inc et 18995 002 06 dy Aiddng 08602 05 Jequinn eg SA3XEZSN enu 0981 6451 SdS Jojoeuuoo eureuje 104 104 puno1 984 114 149 20
4. SHODdL xuNvo S191 XHINYD 2 0S 05 0504 1850 1 00 1460 1450 oxen oana mamana SIHSDSI 1 5 5 017019 SHOT STROMAL HONAT HRONI SHON Aet 288 m m m amro qu m 952 900 9010 9010 zoo 660 960 E A a E g 960 010 lericHonat losin For More Information On This Product Go to www freescale com SI UE Ud 90 vos 4085 O860zHOS 9 Freescale Semiconductor Inc
5. 1 24 1 23 E ua iba 1 26 1 24 PED PUn iOS N Luc Lut Soma 1 26 2 1 POWERLED 2 5 2 2 Pin Assignment for Female Terminal Connector eene 2 6 3 1 dBUG Command Summary 3 6 C 1 P 3 1 MOTOROLA Tables PRELIM EOS RBC Tae NIEMBURNOTICE Go to www freescale com Freescale Semiconductor Inc TABLES Table Page Number Title Number vi M523xEVB User s Manual MOTOROLA Over Go to www freescale com Freescale Semiconductor Inc Chapter 1 M523xEVB This document details the setup and configuration of the ColdFire M523xEVB evaluation board hereafter referred to as the EVB The EVB is intended to provide a mechanism for easy customer evaluation of the MCF523x family of ColdFire microprocessors and to facilitate hardware and software development The EVB can be used by software and hardware developers to test programs tools or circuits without having to develop a complete microprocessor system themselves All special features of the MCF523x family are supported The heart of the evaluation board is the MCF5235 all the other M523x family members have a subset
6. Go to www freescale com Paragraph Number 2 2 4 2 2 9 2 2 6 2251 2 2 8 2 2 9 2 3 24 3 1 32 3 2 1 322 32 2 1 3222 3 2 2 3 3 3 3 4 3 5 3 5 1 3 5 2 3 5 3 3 5 4 1 A 2 A 3 Freescale Semiconductor Inc CONTENTS Page mule Number Power 2 4 Power Status LEDs and noe 2 4 Selecting Terminal Baud Rate oisi 2 5 The Terminal C toan rela ad 2 5 Connecting Terminal deed 2 5 Using a Personal Computer as a Terminal eene 2 5 System Power up and Initial Operation eene 2 8 Using BDNE POE oie o teet aec eat ee 2 8 Chapter 3 Using the Monitor Debug Firmware What 5 BIG Lc 3 1 Operational Procedure decre 3 3 System POWeED Wp3 aolet oet qu E ate eae pu e TA dantes 3 3 System Inimializ toma ee p ee Et 3 4 External RESET Button iei eee eod eec cedo 3 4 ABORT BU OW lor cts Sr acte o t 3 4 Software Reset Command 3 4 Command Lime Usage abe gto 3 5 AC OMIA NS elena sm a eden 3 5 3 40 QUIT CTA oben 3 40 IN CHAR
7. IN GND H E Y 9 09 sear 5 T 1 19530 un TASSA m 001 m ae on 13534 asas id 13934 otoouuco viis indu oz oroeuuoo ind E nee moe sear acte uyssounay A uua awe Tum gt r ar at Hsm Er p pinous xczs4oy ou ieomoq sulfuor oen zou nee oz Er 5 250 ud st CNY 8 enp YOLYTIIOSO nee nee For More Information On This Product Go to www freescale com Jo vL 18945 7002 06 dy Wvuds 08202 05 jueuin2og 9219 0 521 enu 0 GOAL 6481 545 Elo o10N 1 4061 912 V9 LIO 189 LIN Freescale Semiconductor Inc lo ezlv 0587 119 91 4940 loela lo elsg lo eziv 00v 4051 9 12 V9 LNVOTIGe LIN 917986
8. cay uA lt gt i B 5808 1028 noxua E soxa yaua naua taxa zaxia noxia For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Bngeq 02 05 dno 4031 9451 545 S10sseooJd xEZG4OW 991 pesn eq s jqe WAA A AINO 3 LON LNVLYOdWI 1H eui jo g eDed ees 1 10 pesn si dn v 1393 9 OSG ISG ATOSA La g uo pesn 31015159 dn 31ON 0 2 0 5 1 Bumes ynejeq 9c 92 1218 101 lt gt gt eX 5 Hi ovivad 91 SL zv1vad V1vaa vi L 0154 1154 21 IL 2154 8154 Oosq oda OL 6 B ISQ IQ L 8 2 gt Waa A 1928 1591 v 2 EPX si 24 10 Lede jejddns ejqeo Wig 1N0 esee g sabeyor 9100 sejqeo 1ue281 BJO WG eui JO 62 6 suid Jey 3109 Wad KoeDe jo
9. el IZ 10 YOM G 9080 AOS AWS 4922 1412 8412 2 10 YOM 9 9080 AOS AINS 4422 2919 61 10 YOM G 9080 AOS AWS 4927 912 6910 1912 0910 r 81 10 VOM G 9080 AOS ANS 490 ZELO LIELOS c 21 H8901INOL19LOV L 9 g 9601 AQ ANOL 2910 9910 esto 91 HHINZOLHLZAR JO ZOLINAL VO3 ASE 410001 ScIO 91 00L0HOLOM EE3Sd L XAY AOL Jnoee 10 9210 1210 vl 6010 8019 010 96S GO80 DOD 10 OdN AOS 49027 900 460 969 860 260 160 060 01 21 S9JON JequinwN Hed J5JIN uonduosoeg 92u98J9JoH No penunuoo 1 Jo SA3XEZSIW L For More Information On This Product Go to www freescale com Freescale Semiconductor Inc LOLZ OL ZZ JepeeH 1450 01 ole 6 815550 10j9euuo2 WINS 85 088641 40j9euuoo eoeyuns Yid 09 6 8 v 18 1900 22 22 JepeeH OON3 SH 9 or 9 vOv9 68 01 L O JepeeH OZ X 46 9091 90 66 eje N EINN PAYS OZ X ve 8cLZ 0L cc 0 JepeeH DAY er 55 3OSvc LLPCJH 101990009 ce seq 2292 609 SJepeeH
10. 3 41 CHAR PRESEN 3 41 EXIPTO dB UG 3 41 Configuring dBUG for Network Downloads Required Network Parameters 52 oerte 1 1 Configuring dBUG Network 1 2 Troubleshooting Network Problems 1 3 Appendix B Schematics Appendix C Evaluation Board BOM M523xEVB User s Manual MOTOROLA PRELIM More UBIBOTaDOHANTHIW Go to www freescale com Freescale Semiconductor Inc ILLUSTRATIONS Figure Title Number 1 1 M523xEVB Block Diagram 1 2 MCF5235 Block Diagram 1 3 External Memory Scheme 1 4 Jl BDM Connector Pin Assignment esee 2 1 Minimum System Configuration 2 2 2 Power COnneCtor 2 3 2 Lever Power CG a 2 4 Pin Assignment for Female Terminal Connector 2 5 Jumper Locations Tuus 3 1 Flow Diagram of dBUG Operational Mode MOTOROLA Illustrations PRELIM OS BOT aU Go to www freescale com Page Number Freescale Semiconductor Inc ILLUSTRATIONS Figure Page Number Title Number iv M523xEVB User s Manual MOTOROLA UN DEUTEN OAB DOWEN TIGE Go to www freescale com Freescale Semiconductor Inc TABLES Table
11. H 859007 E 7 9708700 8 ae 5 vsus anaa BE 7 T ein anda 6 z ENA 5 vase Fosu 0 p NY 3 Yid LO 0 Set 9 Ede 0 vas 0 a 2 zu 1nod idso 9 or eiqsssacoe e pue se dLa 2 au oi asop se sioisisei uiuo 0 2 asau For More Information On This Product Go to www freescale com Freescale Semiconductor Inc OE d mieu 090 405 2 eidpioo 9451 SdS BOON 2212 Telsa locivivaa EVIVGG DTNIVOG 07154 150 as ino as SU 217019 nee Ast ast Ave pieo uo eansue aseaid uosuedxe i 01 p1eo e 31ON lodo 57 vaT 050 XIoNvO 3 as vu vau NY 211 NUSH x3 721 LE lo rlaowono EHIN
12. 10 80 8 lt gt 21 AE ev ov in Ag e paom 1Iq 9 1 Wvusv 0 Go to www freescale com Freescale Semiconductor Inc 9r Jo v 19909 1008 06 sieyng 8 Jequinn SA3XEZSW 94409 0031 6481 SdS 2000 Sua4Jna sna ssayaay 9 1 1 E 9 s 5 H R 2 t LOSpEXO 1970 ere 18 av LH ov sa Sv ea v 19 cv ov 30 an 1090291 07 0 ano ano ano n 302 LE 2 u ave saz n 282 ove sve saz pve paz 000 ee pue WYHSY 10 au i sng pue ssaippy not 181 9vi 981 zvi ivi 181 lo eziv 8 lo ezlv 1 lotel a gt anro anro 90 zi
13. 859 960 SED LED OED 620 820 49 LLO OLD 60180 29 90 SO ZL 0 013080 XAV VOM uno eoeuns 900 968 9080 AOS JUI 2810 2810 9 10 ZLO 1210 8910 7810 9919 EGLO SELO YELO EELO 8LLO ELLO OLLO 660 860 LLO 9 5 9 0 910 20 ZZO 140 029 660 VED LED 720 920 SZO 20 610 BLO SLO YLO ELO ZLO YO O 2010 9v 08 0c 0ZL godpideu SA3XECSIN 10 X 3uva V N JequinwN Hed uonduosog 992u9SJ9JoH No SJEHO E N GAAXECSIN 1 1 For More Information On This Product Go to www freescale com Freescale Semiconductor Inc 00 HO0S1902LIH 15 speeg Sad vas eqs 284 Ig4 9 22 zed ted eed zza 8 92 VS eia Gz ejoo oN zza oza Sid 6 vc OA8cSEVV 1 Q31MOTT3A 88 eza 22 eed Iza opsecsevv vid
14. GOAL 9851 595 LION 1see eui 058 pue sseooe eue eq jueoyrubis JSOW eui 3102193 258 0 2 58 ZI dl OHSSZ9 LMZ9IWH seseueg 14119100 god eures eui 5 1 ILON WYHSY 892 9 1991 x 952 s u e3 30 anyo anyo anro anro 49 90 so 9 zo i AE ayeindod you ll 4051 OZOLEEAO FO LOZAO LTS LW hg a 9v er E sv Far ON Zon 901 Ler er von er 8 SSA Lay E SSA fr ZLO or gron 5 PLO 107 g SLO 00A a 0587 1 7557 1597 SO N a 91 lv 3 0v E 19 91 VHS V aqeindod you oq Il dOSL OZOLEEADLPOLOZAD 6V oz T a ziv AN Ly E piv SY gr ON aw B a 0 90 1 8 a Her g SSA SSA Ty ZION 101 lo iela s mus ao v em
15. Number ue Number 1 1 NI523x Product EAnml yn pacte ae 1 1 1 2 The M523xBVB Default Memory Map irit 1 8 1 3 D 20 19 External Boot Chip Select Configuration 1 9 1 4 SWI REON aca M f m US 1 9 1 5 SW TES 1 9 1 6 SW7 4 3 Encoded Clock Mode 21 0201 202000000 000000000000000000 enne nnns 1 10 1 7 SW7 5 Chip Configuration Mode ces 1 10 1 8 5 7 7 6 eri e E 1 10 1 9 SW 7 8 Bus Drive Strength 1 10 1 10 SW7 10 9 Address Chip Select Mode te 1 10 1 11 M523xEVB Clock Source Selection 1 11 1 12 UART2 FIexCANI Jumper Configuration eene 1 14 1 13 FlexC ANT Jumper oa cni 1 14 1 14 Flex C ANO Jumper Configuration zo ve cuc c estat tug oe ds 1 15 1 15 CAN Bus Connector ineo ote ccna 1 15 1 16 Ethernet e FPU Jumper Configuration 1 16 1 17 eT PU Header Pri ASSI enmen OA adc base te 1 17 1 18 USB DMA Enable and Disable Settings uade gets estet tonic 1 21 1 19 c RM A RM qe 1 21 1 20 JEn M 1 22 1 21 pm TES 1 23 1 22
16. mhr 8910 v9lD 2910 LEE 2919 gg dvo 40 0 E L I B ied 006 2507 ideo ywa s Dumes NNOD Sayas 858 Ey 920201 ee sea 36 eia 07557 p ME v g 81no 440 NO 09af oe 5 9 9 89H rr 200 H 330 654 5 N NI vou z 190 H za 440 NO 9 vino T 440 NO or ven oe ora Old 39 52 MSd H Ey se ee 1919 0919 HOR 58 m YING 10 Old T Ace V dnwadsnsa 20 AEE peinbijuoo ueo 2961461 241 Wor aa ay sa NNOO 8 32125 asn gr v H sa ji gt 2 1 ING 910 1 i2 7 yg 139 910 oa sir JMOL Ww loela 6910 2 aa ov we ayeindod jou oq NNOO as gt a AEE o eziy 8 T oves gt 5 e L E DLO 954 Aq 091115 LON elqeu3 910 For More Information On This Product Go to www freescale com Freescale Semiconductor Inc M523xEVB User s Manual PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com MOTOROLA Freescale Semiconductor Inc Appendix C Eva
17. 08 Bojeuy JojejnGeu ern 88 8 6 Bojeuy 01 V cn 18 5990 Hed uonduoseg o2uoJoJou No 10 SA3XECSIN L 1 For More Information On This Product Go to www freescale com Freescale Semiconductor Inc quiesse ye jou e13oN 0c 0c L SXOJ XO4 115 40 ZHINZ L L 804 V 02 4042 5 215 00 ZHINSZ LA 201 5 IVIA c 901 S9JON JOqUINN Hed uonduosoeg 92u98J9JoH No penunuoo Jo AABXETSW L For More Information On This Product Go to www freescale com C 10 Freescale Semiconductor Inc M523xEVB User s Manual PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com MOTOROLA
18. 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 1 output enabled JP60 USB DMA acknowledge signal DMA Timer 2 output enabled JP61 Interrupt 4 enabled for USB Interrupt 4 disabled from USB JP62 not in use pulled high DMA acknowledge 1 enabled JP63 DACK 2 not in use pulled high DMA acknowledge 2 enabled 1 5 Connectors and User Components 1 5 1 Daughter Card Expansion Connectors Four 60 way SMT connectors J7 J8 JO and J10 provide access to all MCF5235 signals These connectors are ideal for interfacing to a custom daughter card or for simple probing of processor signals Below is a pinout description of these connectors Table 1 19 J7 Pin Signal Pin Signal 1 5V 2 5V 3 3 3V 4 3 3V 5 3 3V 6 3 3V 7 GND 8 GND 9 TPUCH24 10 TPUCH6 11 TPUCH17 12 TPUCH4 13 TPUCH18 14 5 1 22 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com MOTOROLA Freescale Semiconductor Inc Connectors and User Components Table 1 19 J7 continued Pin Signal Pi
19. 091 10 YOM 4019159 JUNO B9eLINS 9080 061 2 19 1 422 10 YOM 10 SIS H JUNON eoeuns WYO seH 99 1 10 VOM 10131594 JUNON 9080 WYO INL 6H 228 c S9 sdiiud zH 10 VOM 1013159 JUNO eoeyuns 9080 WYO 021 954 SEH OSH 6 v9 sdiiud 055 10 VOM JUNO eoepuns 9080 WYO 0 PZH OCH 6 8 9 sdiiud 8022 10 VOM JUNO eoeuns 9080 uuo HOZZ OLY 19 v 29 9 10 YOM 10 S S H JUNON 5080 WYO y6r 9 ely 19 AZ 10 VOM 20181891 JUNO eoeyns 6080 WYO M r 69H 89H 29H 99H 09H SSH Gry 219 8 09 1 4667 10 VOM 1058189 JUNON eoeyuns 9080 WYO H6 6r LLY OLY 6H 8H v 6S sdiiud 10 YOM 10351594 JUNO eoeyns 9080 wyo MOL L6H 06H 288 L8H PLY 24 86 0L Ot eusiA jenoeds 10 1 Lee sunog suinog 104 LWS 9 46 sdiiud 1 10 YOM 20181 9080 WYO 98H 78H PSH YZH ZZY GH 8 9G 29 10 VOM 201818 JUNO eoeuns 6080 WYO 29 zyl 2 SG S9JON Jequinw Hed uonduoseg o2uoJoJou No ula 10 SA3XECSIN L 1 For More Information On This Product Go to www freescale com Freescale S
20. 1 AALINOAIO ANW 18544 TI 5 LINO A Iddf lS II IHHHS HSV Id 01 LHAHS SHOLOHNNOO NOISNVdXS 6 HOVAWGLNI UIIA J 1 0 51015152 uwop nd 81 8 poppe pue Ysea 119 91 YM pooe do1 L IdHHS user 19 5 405 4 06 10 T v0 20 0 g 9 XECSN JONE uorstAor 1oquinu SHIMON POPPY 4 704 50 V LHHHS SOVHHSLNI NWO SLA PUOISIAOI uosjepuy 71 70 924 20 00 v 1 sWH4ang 509 554 Slice Jousisaq aq 1 5 WYASY LHHHS SLOANNODYALNI JO ALL pavog X csIN For More Information On This Product Go to www freescale com a e 2 rag CAAC Eu ume 911945 ON eyes 119948 9 D Suecus asn Jequmwiueunoog ez 0031 9851 545 BEAN 18247480 05241550 110071460 305 1450 N7 ovur anossa NILSH Was no uia NILSH 1X3 lo haonwn isona
21. 1 1 980 1no1su vU di SU 30 Siconain loicla 8 Freescale Semiconductor Inc 919245 Hanara 208 921 oz 18241460 0824 1480 110971980 Nig 71450 308 1480 5 wixa 100X19 axuon axion sisoni sideni sigan svo as svi 05 080 5 182 05 30s 05 asi XLONVO XWONWO XLINVO XHiNVO Na OVI NOJN 1o ilaovoro sinora 050 001 Isai OLSATOL 193851 10 11589 loelvivaa soxa 10x13 00x13 xia 43X13 noxua 1003 oana oda 1801 sidondln SIQONdLT IOSHHONdL 1281 0251 vali vu SU Ioela 30 0 89 lo elsay GETE 195 541 oa 1559 0524 1nod Nid 305 XLINVO XHINVO NS Wir NOY SEES ENUO TINOLA 1NUG 011019 STISI 10507001 isQar AOISAMTOL 20x13 3E WIXI KELE 2 ELEI SHOXHS 7003 SITE ESTE EErEE Sanat BrrelHondL
22. 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 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 Support for three different Ethernet physical interfaces 100 Mbps IEEE 802 3 10 Mbps IEEE 802 3 MII 10 Mbps 7 wire interface industry standard e JEEE 802 3 full duplex flow control 1 16 M523xEVB User s
23. 9 eid eio mio 80 94 TU d H4 aan ssa NES EN PB wfoxualeatondl PPS x mi Pea TOME SHOT E 4 TH H8 EOS SHOTS ERN anro amo xus Ha 260 820 ao G6HONdL Es OLHONdL SHON x jd TnL THOTT 88 sds EOE 5 5 25 255 8HOndL 5 pus 2255 SHOndl 3 2 5 555 5595 5 8 8 48 8 28 555 SSA Fm SONAT 8 us 3 9 45 4885 S288 s 3 885 29 2977 _ 0127525333 J lt lt a 3 2 sss wom 3 58555 565 20 BE ss s 081088888 88 8688 8 Bad 82 8 9 s 882 BRB 89825 895 885 28 58 88 2832 8 85900525225 EX ET ET aui 440 440 2 kepe RR k k b beeke kek kbe bk km k 920 520 ezo rrr Fr 1 i H n H H ane su TONS M assos se lt Sec 019 Yd asop 5 o ma as g aom 2 9 58 Bagg 1983 BS ae S 3 go HONE suda 8 3 8 5 uos 8 8 E 8 XY INYO 2 4 i MM M mjfugesineed _
24. SSA TUSSA Kan QUID 40 Boeue vSSA YSSA z XD vad 1 40 pasati va z VAS 5107558 Ag T zza umop ye sje 9 anisseoxe eporg 3LON ELOVESHEN 1 00P YHN ELEOOPVHIN 4 4 eia dn smod ye ASL 8 anisseoxe Juenaid 3LON H3MOd AS R H3MOd N33H9 AS L 22 AA 0515 Ag ans zo AT8W3SSV GATIVLSNI 38 GINOHS vedfr 310001 5210 NIA SE 0980111 ZZN soyeinBay AS L 5 anyo noce 095 1210 9210 LO0PESHEN I Hnsz 83 5 Q 44O NO o WAN 1nOA NIA 1 S S9652W1 anro nose 220 1210 0 ela 02H Hnsz j o AES AN LAOA NIA S96S2W1 OZN sheer ATHN3SSV Q3TIVISNI 38 GINOHS 10vESHIN anro sia Ed velo Beto 20 Asz 1 1823 WS 2 29 4 d
25. 23 S PSTCLK Core Voltage gt 25 Figure 1 4 J1 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 1 47 1 The MCF5235 s module includes the following features e Compatibility with the PC bus standard version 2 1 Multi master operation e Software programmable for one of 50 different clock frequencies 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 e Bus busy detection Please see the MCF523x User s Manual for more detail The signals from the MCF5235 device are brought out to expansion connector J13 1 20 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Communication Ports The functionality of the MCF5235 is multiplexed on the same pins as the QSPI Jumpers JP6 and 7 8 are used to connect disconnect the signals SDA and SCL enable I C JP6 and JP8 should be set between pins 2 and 3 1 4 8 QSPI The QSP
26. 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 0 0000 Chip Selects CSO Ext Flash CS1 Ext ASRAM 3 28 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc 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 rd pe Here is an example of the output from this command PC 00000000 SR 2000 t Sm 000 xnzvc An 00000000 00000000 00000000 00000000 00000000 00000000 00000000 01000000 Dn 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 MOTOROLA Chapter 3 Usingthe Monitor Debug Firmware 3 29 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Info
27. su rz 1 lt gt 5 cou NWOO tMS E asop bois _ 00 0ON3ISH TROL S T oona zu rz gt simo a807 yoxa i n esu Y 272 Goozzui iS W ow 7 rj ido fus ey op 165 nee T ig 1 i d MES GESIS z wi peers E E 88 MOlJ9A acer 9800 se 880 ET pue 289 Snivis G31 L8 LW w gt Ee T 89d Pel peu 5 abi TIROnar dui ori ps TIROnar 689 sesin se H m nee y m T TOTAL em d ms v ir jopeon vp rs EE EE i n 5 io oi oa lortelHonat net an i E 0 9 y nee Tmar 02 Wem aso p io of ud guy aug uo
28. 10 peuinbei ALON AE V AS L O lLSd 0 815 lt gt lo elvivad gt For More Information On This Product Go to www freescale com Freescale Semiconductor Inc T 5 9t 40 8 16943 7002 06 1 5 800 L 0L 08602 05 LLN uo pz pue suid 0 sioyoede ald Jequnn weunoog ezis mmy anyo anyo anyo ani anyo anyo anyo anor auo anyo 90 970 29 0 159 914909 9931 9851 595 150 oso evo He 1 4 O0 HO0SI902LIH GHWMALS 00 HOOS190ZIIH Ag E VAST 00000 In bo be sooo Tias 2 VASZ LLN Jo 1264100 einsue jueseid si ZdH ALON omm 10 PPR fo A S
29. When 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 function bench the command 15 gt _bench 3 20 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc 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 MOTOROLA Chapter 3 Using the Monitor Debug Firmware 3 21 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Commands IRM Internal Register Modify Usage IRM module register data This command modifie
30. coss 4 T m S ri Figure 2 1 Minimum System Configuration M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc 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 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 M523xEVB Single Board Computer e M523xEVB User s Manual this document One RS232 communication cable One Background Debug Mode wiggler cable e MCF5235RM 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 ha
31. EMT 1 11 Watchdog DITE ost tuat Cuv BEP 1 11 EXCOpHODSOUECES os 1 11 HE Generation ahead E 1 12 ca cena 1 13 Communication Ports 02 1 13 UAR TO nd VARTI IN Ves bene ave 1 13 UART2 FlexC ANT e tee 1 14 Blexe AINU tera ppp 1 14 1 15 1 17 1 18 ER 1 19 OSPI 1 20 USB Host and us 1 20 Connectors 1 21 Daughter Card Expansion Connectors eese 1 21 Reset S witch iis e bibe 1 25 WSS LEDS tuta S A 1 26 iG SR 1 26 Chapter 2 Initialization and Setup DY SLCC OD urb ORO istnd 2 1 2 3 Unpacking 2 3 Preparing the Board for Use 2 3 Providing Power to the BOSE eod erro tu tirer Pede P NES TRA Ree RUPES PU 2 3 Contents i PRELIMIRARMOQUEEUBOT
32. 5 5 WGA EL Lr L LE 9Sdf 2Sdf OSdr 9 dr 9 ozdr 6b df erdr SO 0LSC cCIN 9 10 0 SOLZS 10 SUI INS 5 Old 08 06 9 Lodr o9dr 8 erdr Lyd Ordr 9020192 20 eedr Zedr eedr 10 20 90125 10 SUIIINS ezdr Zedr Ldn 8 6c 5526 02 x esnjenir Aq H 8009120 3NOLSA3M Aq MZ2ZSt auojsheay 35 4 1524 WS ld L 8z S9JON Jequinw Hed uonduoseg o2uoJoJou No 10 SA3XECSIN L 1 For More Information On This Product Go to www freescale com Freescale Semiconductor Inc sdiiud 10 VOM 10 515 JUNO 9080 wyo xL 68H 08H 8 vs sdiiud 10 VOM yoed 10451691 WYO 01 LpZAHV 64 sdiiud MOL Xv 10 VOM yoed 10151691 WYO OL X v LvZAHV 04 10 VO
33. If neither of the c e i s or filename options are specified then a default filename and filetype will be used Default filename and filetype parameters are manipulated using the SET and SHOW commands The DN command checks the destination download address for validity If the destination is an address outside the defined user space then an error message is displayed and downloading aborted For ELF and COFF files which contain symbolic debug information the symbol tables are extracted from the file during 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 s srec out To download a file with the name coff out the command is dn c coff out To download a file using the default filetype with the name bench out the command is dn bench out To download a file using the default filename and filetype the command is dn MOTOROLA Chapter 3 Usingthe Monitor Debug Firmware 3 17 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Commands FL Flash Utilities Info
34. SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Installation and Setup Windows 95 98 2000 XP Hyper Terminal or similar packages The board should then be connected as described in Section 2 2 8 Connecting the Terminal Once the connection to the PC is made power may be applied to the PC and the terminal emulation software can be run In terminal mode it is necessary to select the baud rate and character format for the channel Most terminal emulation software packages provide a command known as Alt p press the p key while pressing the Alt key to choose the baud rate and character format The character format should be 8 bits no parity one stop bit see section 1 9 5 The Terminal Character Format The baud rate should be set to 19200 Power can now be applied to the board Figure 2 4 Pin Assignment for Female Terminal Connector Pin assignments are as follows Table 2 2 Pin Assignment for Female Terminal Connector 089 Pin Function 1 Data Carrier Detect Output shorted to pins 4 and 6 2 Receive Data Output from board receive refers to terminal side 3 Transmit Data Input to board transmit refers to terminal side 4 Data Terminal Ready Input shorted to pin and 6 5 Signal Ground 6 Data Set Ready Output shorted to pins and 4 7 Request to Send Input 8 Clear to send Output 9 Not conne
35. aH 724 qu 2 20 a sigonaL1 sigondin nee xv xo 2 th rn 2 7 406 51 z WEE ay 218 ordu 5 ias H osaa t qu 1noisu apon 0 NO 6 epon popoous pageuo lev 1590 94 0 NO reued 540 6 914 980 244 NO 340 NO pa voneiedo Tid mucN NO 1008 popcou 2 1008 popoouj 30 9 0480 papoou porum 22 A NO 440 js NO 340 8 9181 n9 opo na spon OLMS 64 30 pos 350 20 apon yono papooua poji ejes papooua tii apon LIMS SNS apon SLMS apon PIMS ELMS gag 10nexo won lans vog
36. puoquiM 1309Lv9S668AH uoeuguj 13091 7956901 291501 0291 9 lt 3269 ssp Gunswes 1129100 god eures LON S 2101 8 18 1 1991 X Wp peunBijuoo s 2345 not vran uoe3 ezis 3LON nowt SE 5587 2587 anyo anyo anyo ELIS 0715 6619 8515 9515 815 velo 5519 AGE Go to www freescale com For More Information On This Product Freescale Semiconductor Inc WOO OS RAY TER On puas oocoz Hos go 0931 9451 548 peog 091 _ LON z 1804 Avv peoa ii aid 01450 ERU noise 1504 1450 05241950 11041480 7528 1450 398 1450 7 24 nee Ast
37. 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 must 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 MOTOROLA Chapter 1 M523xEVB 1 7 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc System Memory programmed into the lower sectors of Flash OXFFEO 0000 to OXFFE2 FFFF for 2Mbytes of FLASH or OxFFCO 0000 to
38. continued Pin Signal Pin Signal 15 D1 16 D2 17 03 18 19 DO 20 DTOUT1 21 DTIN1 22 3 3 23 3 3 24 IRQ6 25 RQ7 26 TSIZO 27 1971 28 IRQ2 29 30 1 4 31 RQ5 32 TCLK PSTCLK 33 DTOUT2 34 DTIN2 35 IRQI 36 TDI DSI 37 TDO DSO 38 TMS BKPT 39 TRST DSCLK 40 GND 41 GND 42 PST3 43 PST1 44 PST2 45 PSTO 46 DDATAO 47 DDATA2 48 49 50 51 JTAG EN 52 RCON 53 54 RSTOUT 55 GND 56 RESET 57 58 59 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 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CH
39. d amod oreg Aem z e6p3 1845 3415 MS H3M0d eLZOdVH Yey wwz Jojoeuuo2 aer 304 useuosyis uo umoys aq 151 jo aAnisod 941 31 ON NF L 0 aues jndui For More Information On This Product Go to www freescale com Freescale Semiconductor Inc LMS 01 god eu jo eui uo userosyrs lo 95041 asesid Weg Oey TEM EG a 9 UORBINBYUOD 1959 0gE02 HOS ES 626 E 2 GOAL 9451 845 aqoid adoos jo uonoauuoo Asea malje oi 08 94 josieuo UL i 2141 9 1141 70091 591 90 LON i annus H neo lt aqassod se BOOTWONYOY AIDON TWX 9 lt gt 9d1 lt gt su 01035 LON ava gt aneva aneno usas lt gt p w n 4
40. either from within Auto acknowledge AA mode or from the externally addressed device before it can complete the bus cycle TA is used to indicate the completion of the bus cycle It also allows devices with different access times to communicate with the processor properly asynchronously The 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 a 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 MOTOROLA Chapter 1 M523xEVB 1 13 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Communication Ports pull up resistor a pull up resistor is included on this board All TA signals from expansion boards should be connected to this line 1 3 6 User s Program JP64 on the 16Mbit FLASH U19 or JP31 if using 32Mbit FLASH U35 allows users to test code from boot POR without
41. www freescale com Freescale Semiconductor Inc 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 MOTOROLA Chapter 3 Using the Monitor Debug Firmware 3 15 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Commands DLDBUG Download dBUG Usage DL lt offset gt The DLDBUG command is used to update the dBUG image in Flash It erases the Flash sectors containing the dBUG image downloads a new dBUG image in S
42. FFFF 16 Mbyte SDRAM 0 2000 0000 0x2000 FFFF 64 Kbytes Internal SRAM 0 3000 0000 0x300F FFFF External ASRAM not fitted OxFFEO 0000 OxFFFF FFFF 2 Mbytes External Flash or or OxFFCO 0000 0xFFFF FFFF 4 Mbytes External Flash 1 2 5 1 Reset Vector Mapping Asserting the reset input signal to the processor causes a reset exception The reset exception has the highest priority of any exception it provides for system initialization and recovery from catastrophic failure Reset also aborts any processing in progress when the reset input is recognized Processing cannot be recovered The reset exception places the processor in the supervisor mode by setting the S bit and disables tracing by clearing the 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 loaded into the stack pointer and the second longword at address 4 is loaded into the program counter After the initial instruction is fetched from memory program execution begins at the address in the PC If an access error or address error occurs before the first instruction is e
43. Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Communication Ports Programmable max frame length supports IEEE 802 1 VLAN tags and priority Support for full duplex operation 200Mbps throughput with a minimum system clock rate of 50 MHz Support for half duplex operation 100Mbps throughput with a minimum system clock rate of 25 MHz e Retransmission from transmit FIFO following a collision no processor bus utilization e Automatic internal flushing of the receive FIFO for runts collision fragments and address recognition rejects no processor bus utilization Address recognition Frames with broadcast address may be always accepted or always rejected Exact match for single 48 bit individual unicast address Hash 64 bit hash check of individual unicast addresses Hash 64 bit hash check of group multicast addresses Promiscuous mode For more details see the MCF523x User s Manual The on board ROM MONITOR 15 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 Setting signal Setting Channel JP5 D5 2 3 ERXER 1 2 23 JP9 C5 2 3 ETXCLK 1 2
44. 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 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 M523xEVB Memory Map 1 2 4 Internal SRAM The MCF5235 processor has 64 Kbytes of internal SRAM memory which may be used as data or instruction memory This memory is mapped to 0x2000_0000 and configured as data space but is not used by the dBUG monitor except during system initialization After system initialization is complete the internal memory is available to the user The memory is relocatable to any 32 Kbyte boundary within the processor s four gigabyte address space 1 2 5 M523xEVB Memor
45. TASSA gt 290001 hs nr Tano URN oso 11 ECO LON ik du L oed aas emus dies Y Hina SSA Lm iso as 159798 mes sn evo y 1009 svo as i bg 392 08 Svaras 35 HUBER 052708 Hie 55 08 oH os Ed eiqssod i xuonvo Xumvowas sud 04 tdt ond un SET i ssa amas Hr T 88 4831 su opr 31 m DOW For ve Du EM To Ljaovono sud sogar yr 99 EA 10 Sumas TH SSA S192ny j SiHzneLnoig MIA sir GEZTSAOW 10559000001 m qus siconar sional Seton n or x or si Sonan E sar T POD A d Eie SEA 5 42 Gan aan 5 Lm aan SSA 557 22 sm H d axon axon zm oy Sion 29 x ssa h T TH 99 1 HE SSA aan Gan e100 anvo au
46. Usage FL Erase Usage FL erase addr bytes Write Usage FL write dest src bytes The FL command provides a set of flash utilities that will display information about the Flash devices on the EVB erase a specified range of Flash or erase and program a specified range of Flash When issued with no parameters the FL command will display usage information as well as device specific information for the Flash devices available This information includes size address range protected range access size and sector boundaries When the erase command is given the FL command will attempt to erase the number of bytes specified on 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 3 18 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WIT
47. 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 Controller 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 TPUCHS 15 TPUCH22 16 TPUCH4 1 18 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On
48. 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 0 0000 0000 When the jumper is set between pins 2 and 3 the board boots from the top half of the FLASH 0xFFF00000 Procedure Compile and link as though the code was to be placed at the base of the flash 2 Set up the jumper JP64 JP31 for Normal operation 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 write dest src lt bytes gt command 5 Move jumper JP64 JP31 to pin 2 connected to pin 3 and push the reset button S2 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 FlexCANI port FlexCanO 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 14 1 UARTO and UART1 Ports The MCF5235 device has three built in UARTS each with its own software programmable baud rate generator Two of these UART interfaces are brought out to RS232 transceivers One channel is the ROM Moni
49. incremented accordingly If the assembly is not valid then memory is not modified and an error message produced In either case memory is disassembled and the process repeats The user may press the lt Enter gt or lt Return gt key to accept the current memory contents and skip to the next instruction or a enter period to quit the interactive mode In the non interactive mode the user specifies the address and the assembly statement on the command line The statement is then assembled and if valid placed into memory otherwise an error message is produced Examples To place a NOP instruction at address 0x00010000 the command is asm 10000 nop To interactively assemble memory at address 0x00400000 the command is asm 400000 MOTOROLA Chapter 3 Using the Monitor Debug Firmware 3 7 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Commands 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 addrl 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 and addr2 may be an absolute address specified as a hexadecimal value a symbol name The value for length may be a symbol name or a number converted
50. initial trigger for the breakpoint If no address is specified in conjunction with the c or t options then all breakpoints are initialized to the values specified by the c or t option Examples set a breakpoint at the C function main symbol main see symbol command the command is br main When the target code is executed and the processor reaches main control will be returned to dBUG To set a breakpoint at the C function bench and set its trigger value to 3 the command is br bench t 3 When the target code is executed the processor must attempt to execute the function bench a third time before returning control back to dBUG To remove all breakpoints the command is br r MOTOROLA Chapter 3 Usingthe Monitor Debug Firmware 3 11 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Commands BS Block Search Usage BS lt width gt begin end data The BS command searches a contiguous block of memory starting at address begin stopping at address end for the value data lt Width gt modifies the size of the data that is compared during the search If no lt width gt is specified the default of word sized data is used The values for addresses begin and end may be absolute addresses specified as hexadecimal values or symbol names The value for data may be a symbol name or a number converted according to the
51. juspuooas old usn 18 205 Me of 90 io oj Me MA jio sa 5 raed ae acte E 5 Om 690 10 nesen aL conan 2 aassodse 999 i Sin asop T sr t 019509 our uo EINN eon osead E net 2 9 sin T ROTE TIROL m cee ONAL E sop se on TIROnar VESK seoema GALI dunt a Pens dnp 480 Tong n ved 1 7 js 8 osortaso A E n aue aue aez zin Lin jo eumd sey ESA ainsus 185 APER peur eo 50 ue 95841 wu UU gt zin uo pue cin uo iE TN I dco eunsua wg TE NV T vss ssn VSSA seer Ww LN uaoazay 1 E oix sindu eu 40 459 d be Joy ue fou se Zin uo suid eur o1 ajqrssod L e ana PE 2 Se se 8 51842 ou HN ss N 55
52. 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 Irol 20000 3 24 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc 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 l 20000 12345678 Note that the following command writes 0x78 into memory lw b 20000 12345678 MOTOROLA Chapter 3 Usingthe Monitor Debug Firmware 3 25 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Commands MD Memory Display Usage MD lt width gt lt begin gt lt end gt The MD command displays a contiguous block of memory starting at address begin and stopping at address end The values for addresses begin and end may be absolute addresses specified as hexadecimal values or symbol names Width modifies the size of the data that is displayed If no lt width gt is specified the default of word sized data is used Memory display starts at the address begin If no beginning a
53. of the MCF5235 specification and can therefore be fully emulated using the MCFS5235 device Table 1 1 below details the full product family 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 MOTOROLA Chapter 1 M523xEVB 1 1 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Specifications Motorola MCF5235 Microprocessor 150 MHz max core frequency External Clock source 25 MHz Operating temperature 0 to 70 C Power requirement 6 14V DC 300 ma Typical Power outp
54. saad 1008 paponu papeou apon poro papoou a OMS ninas mueg vous dia uonantuuoo 8 86 i 720 Sz 120 4 Eie zg o 5 Sin 8 am 20 E 510 130 odd T NG OVI zn movado upon uojpesop seuoiws LMS 10 eloN DOORS LOMO 13538 LV E xe AB O3HOLVI OL 820 P 120 MOTIV OL 1 8 1 1 SEWN 01 v2 p FED 38 1 ILON 1NV DHOdII a t3 Y t Y t t 2 iR if uu zy zy nee nee lt gt oninoia lt gt mar zuo ur 2 on inua iine an unora War lt gt lt gt an lt gt star si Spar 40 inejog esko gn E ynon sza 310N wear EJ isio 0269 moO amz L L auvindos nce Jonoa uossuedre vod oi SHY Pue i HO LON TANS 5 n 13838 mac p 13534 8 J nisi was
55. the dBUG firmware and after command completion the system returns to command entry mode During command execution additional user input may be required depending on the command function For commands that accept an optional width to modify the memory access size the valid values are e 8 bit byte access W 16 bit word access e L 32 bit long access When no 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 A0 A7 00 07 e SR All control registers on ColdFire are not readable by the supervisor programming model and thus not accessible via dBUG User code may change these registers 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 A7 3 2 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Operational Procedure 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 e Be sure the power supply is connected properly prior to power up Make sure the terminal is connected to TERMINAL P4 connector Turn power
56. 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 0x1234 To display the hexadecimal and binary equivalent of 1234 the command is dc 1234 MOTOROLA Chapter 3 Usingthe Monitor Debug Firmware 3 13 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Commands DI Disassemble Usage DI lt addr gt The DI command disassembles target code pointed to by addr The value for addr may be an absolute address specified as a hexadecimal value or a symbol name Wherever possible the disassembler will use information from the symbol table to produce a more meaningful disassembly This is especially useful for branch target addresses and subroutine calls The DI command attempts to track the address of the last disassembled opcode If no address is provided to the DI command then the DI command uses the address of the last opcode that was disassembled The DI command is repeatable Examples To disassemble code that starts at 0 00040000 the command is di 40000 To disassemble code of the C function main the command is di main 3 14 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to
57. 22 JP10 B5 2 3 ETXD2 1 2 18 JP11 A5 2 3 ETXD1 1 2 17 JP13 D6 2 3 ETXEN 1 2 21 JP14 C6 2 3 ETXER 1 2 20 JP15 B6 2 3 ETXD3 1 2 19 JP16 C4 2 3 ERXDO 1 2 24 JP17 B7 2 3 ETXDO 1 2 16 JP18 C3 2 3 ERXD1 1 2 25 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 MOTOROLA Chapter 1 M523xEVB 1 17 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Communication Ports 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 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 MPC500 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
58. 9251 XU Em 51048 oraus 0s 02 vas ozi 150471450 0824 1450 170071450 NIG 1480 XIS 1450 NOISY NUS WAX WAX axuon S1900 SION Sii sium qxuen qxizn SLN SIHEN svo as as 050 05 150705 3403 08 asi XL0NVO XLINVO Xu END NI ovi ENLA unora onora nosausuL 150101 OLSAM TOL 0 8 154 oana sidondin sidonari LO SHHONdL 1251 02181 val dur SU 0160 30 0 2 50 10 98 loxez v siopauuog uoisuedi loelvavaa HOLSTI 150101 3008 CENTE ECE foxes zaxa uis Sidon lo stHona Terieleonar 0508 7680 170071850 50 OS 1450 2110945 nsa For More Information On This Product Go to www freescale com Freescale Semiconductor Inc 9r Jo yous 7002 OE WVUS snouoJu2uAsy 08E02 HOS ezg SA3XECSIN dno
59. ANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com 1 26 Freescale Semiconductor Inc Connectors and User Components dBUG configures the MCF5235 microprocessor internal resources during initialization The instruction cache is invalidated and disabled The Vector Base Register VBR contains an address which initially points to the Flash memory The contents of the exception table are written to address 00000000 in the SDRAM The Software Watchdog Timer is disabled the Bus Monitor is enabled and the internal timers are placed in a stop condition The interrupt controller registers are initialized with unique interrupt level priority pairs 1 5 3 User LEDs There are eight LEDs available to the user Each of these LEDs are pulled to 3 3V through 10 ohm resistor and can be illuminated by driving a logic 70 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 D28 DTIN1 JP41 D29 DTOUT2 JP42 D30 DTIN2 JP43 D31 DTOUT3 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 state Below is a list of those LEDs and
60. Aiddns Ag z V yeu 007 diuo uo ue seu 1812 88 310N z ACER 3n mm 1 6 67 1 667 1 667 1 667 lt inoisu 9 0 580 6 VAS Z VASZ LIH 018 6H 8H ld 10u43 For More Information On This Product Go to www freescale com Freescale Semiconductor Inc ES FOO Oe BAY pue eso ogeoz HOS 9 T yoyms suoyng E oe 4 E Goozzu iSi ROI 1031 DaSL 545 eroi
61. Assembly example 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 trap 15 make the call asm 141 040 put the character in do 3 5 3 CHAR PRESENT This function function code 0x0014 checks if an input character is present to receive A value of zero is returned in DO when no character is present A non zero value in DO means a character is present Assembly example 1 50014 40 Select the function trap 15 Make the call 40 contains the response yes no C example int board char present void asm move 140x0014 d0 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 1 50000 0 Select the function trap 15 Make the call exit to dBUG C example MOTOROLA Chapter 3 Using the Monitor Debug Firmware 3 41 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc TRAP 15 Functions void board exit to dbug void asm 1 0 0000 40 select the function asm trap 15 exit and trans
62. Freescale Semiconductor Inc fe MOTOROLA digital dna intelligence everywhere M5235EVBUM D 5 2004 REV 1 M523xEVB User s Manual For More Information On This Product Go to www freescale com Freescale Semiconductor Inc HOW TO REACH US USA EUROPE LOCATIONS NOT LISTED Motorola Literature Distribution P O Box 5405 Denver Colorado 80217 1 800 521 6274 or 480 768 2130 JAPAN Motorola Japan Ltd SPS Technical Information Center 3 20 1 Minami Azabu Minato ku Tokyo 106 8573 Japan 81 3 3440 3569 ASIA PACIFIC Motorola Semiconductors H K Ltd Silicon Harbour Centre 2 Dai King Street Tai Po Industrial Estate Tai Po N T Hong Kong 852 26668334 TECHNICAL INFORMATION CENTER 1 800 521 6274 HOME PAGE http motorola com semiconductors Information in this document is provided solely to enable system and software implementers to use Motorola 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 Motorola reserves the right to make changes without further notice to any products herein Motorola makes no warranty representation or guarantee regarding the suitability of its products for any particular purpose nor does Motorola assume any liability arising out of the application or use of any product or circuit and specifically disclaims any and all liabilit
63. GND 51 D13 52 D20 53 D9 54 D17 55 012 56 018 57 015 58 016 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 1 24 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE M523xEVB User s Manual For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Connectors and User Components Table 1 21 J9 continued Pin Signal Pin Signal 15 16 16 14 17 15 18 11 19 1 20 21 GND 22 10 23 A12 24 A8 25 9 26 A7 27 A6 28 4 29 5 30 GND 31 A2 32 A0 33 A3 34 M 35 GND 36 GND 37 DTIN3 38 UTPUODIS 39 DTOUT3 40 LTPUODIS 41 42 TEA 43 JTS 44 TA 45 46 50 WE 47 R W 48 CANOTX 49 SD CAS 50 50 CSO 51 CLKOUT 52 50 RAS 53 SD CS1 54 DDATA3 55 XTAL 56 EXTAL 57 GND 58 59 60 Table 1 22 J10 Pin Signal Pin Signal 1 45V 2 41 5V 3 43 3V 4 3 3V 5 D14 6 D10 7 D11 8 D6 9 D7 10 D8 11 D5 12 D4 13 GND 14 GND MOTOROLA Chapter 1 M523xEVB PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com 1 25 Freescale Semiconductor Inc Connectors and User Components Table 1 22 J10
64. HOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc 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 value or a symbol name If no argument is provided the GO command begins executing instructions at the current program counter When the GO command is executed all user defined breakpoints are inserted into the target code and the context is switched to the target program Control is only regained when the target code encounters a breakpoint illegal instruction trap 15 exception or other exception which causes control to 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 MOTOROLA Chapter 3 Using the Monitor Debug Firmware 3 19 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Commands GT Execute To Usage GT addr The GT command inserts a temporary breakpoint at addr and then executes target code starting at the current program counter The value for addr may be an absolute address specified as a hexadecimal value or a symbol name
65. I Queued Serial Peripheral Interface module provides a serial peripheral interface with queued transfer capability It will support up to 16 stacked transfers at one time minimizing CPU intervention between transfers Transfer RAMs in the QSPI are indirectly accessible using address and data registers Functionality is very similar but not identical to the QSPI portion of the QSM Queued Serial Module implemented in the MC68332 processor Programmable queue to support up to 16 transfers without user intervention Supports transfer sizes of 8 to 16 bits in 1 bit increments Four peripheral chip select lines for control of up to 15 devices Baudrates from 147 1 Kbps to 18 75 Mbps at 75 MHz Programmable delays before and after transfers e Programmable QSPI clock phase and polarity Supports wrap around mode for continuous transfers Please see the MCF523x User s Manual for more detail The QSPI signals from the MCF5235 device are brought out to expansion connector J12 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 ADC and wishes to connect 5 50 to an alternative device 1 4 9 USB Host and Device The EVB features a USB controller interf
66. Information On This Product Go to www freescale com Freescale Semiconductor Inc 9r Jo 9t 1994 002 06 Idy ASN 08202 05 8 juewnoog ezg 8A3XeesW enu eit4pjo2 GOAL 6481 SdS 0010 3922 3922 8210 z9eldg I 00 an9a 21591 an9a Lisa Le an WE aN5G 01531 Dr 17000 an9a sia zx Guyjdnoveg ANLO AUL ANFO ANKO dup ix 1 9410 910 40 ELLIO 9910 8910 2102 MLO 15 EF 06H AQEANOL dnro 340 ee 13538 He lt o 19 pra be Ed 9313 igrunejeg D Met 5 i9dr T BIO LINI Hyg oar 50 39143A 20 o _ SS SS H isoa ove i Zepearst mor 198 ISOH Wod Busn zo dro ZNILG 2 suid ueewjeq 195 9547 LENSLSOH gg SNA 20384107 A9 adzy Juzz
67. M yoed 10451591 WYO LG LpZAHV IS co XY 10 10451591 WYO zz LpZAHV 05 sdiiud 9LdH 090 Xv MZ VX 10 VOM 10451591 WYO ZEdH 8l 20 52 JOJOBUUOD eg 2 5 10198UUO Lv 6 8 7 9JoH n4U 22254 6ga 9 v 9r vco g LLLe88 SUSWSIS 9JoH MUL Jojonpu 1 21 JO 01 0121 seibojouuoer 16 001 25101219 Jojonpu 42 1 919282 10j98uuo 51195 ASN ev 1 084784 10 8 seues ASN ov V L 62vOrV 10 j9euuo GSN vir Lv 1705 01 66 1 0 JepeeH X Ov S9JON Jequinw Hed uonduoseg No 10 SA3XECSIN 1 2 1 For More Information On This Product Go to www freescale com Freescale Semiconductor Inc 84H SZH OLY 8042 10 YOM JUNO eoeuns 5080 WYO H0ZZ OSH rH OPH SPH 279 89
68. MOTOROLA Chapter 3 Usingthe Monitor Debug Firmware 3 33 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Commands SHOW Show Configurations Usage SHOW lt option gt The SHOW command displays the settings of the user configurable options within dBUG When no option is provided SHOW displays all options and values Examples To display all options and settings the command is show To display the current baud rate of the board the command is show baud Here is an example of the output from a show command dBUG gt show base 16 baud 19200 server 0 0 0 0 client 0 0 0 0 gateway 0 0 0 0 netmask 255 255 255 0 filename test s19 filetype S Record ethaddr 00 CF 52 82 CF 01 3 34 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc 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 The STEP command can be used to step over BSR and JSR instructions The STEP command will work for other instructions as well but note that if the STEP command is used with an i
69. O CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Troubleshooting Network Problems A 4 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Appendix B Schematics MOTOROLA Appendix B Schematics PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com B 1 Freescale Semiconductor Inc 9t jo 1 ag 7002 06 judy a SejoN 08 02 HOS 8 en eit4pjo GOAL 9451 845 LION squtod 3523 TTY XMS TTY szedwnf tw IV peqeqs 5080 AWS ALX 0 sdeo peqeqs AWS DOD 0 sdeo 8930N 91 5 HOVAWGLNI 4SN SI LHHHS O I WINES Wvads
70. RAP 15 handler and how it is used There are four TRAP 15 functions These are OUT CHAR IN CHAR CHAR PRESENT and EXIT TO 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 d1 contains the character move 1 50013 0 Selects the function TRAP 15 The character in 41 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 1 LINK a6 0 produced by compiler asm move 18 a6 d1 put ch into 41 asm move 140x0013 d0 select the function asm trap 15 make the call UNLK produced by C compiler else If compiler does not produce a LINK UNLK pair the use the following code asm 14 41 put ch into 41 asm move 140x0013 d0 select the function asm traptti5 make the call endif 3 40 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc TRAP 15 Functions 3 5 2 This function function code 0x0010 returns input character from terminal to the caller The returned character is in D1
71. ROM monitor firmware configures the channel for 19200 baud Once the dBUG ROM monitor is running a SET command may be issued to select any baud rate supported by the ROM monitor 2 2 7 The Terminal Character Format The character format of the communication channel is fixed at power up or RESET The default character format is 8 bits per character no parity and one stop bit with no flow control It is necessary to ensure that the terminal or PC is set to this format 2 2 8 Connecting the Terminal The board is now ready to be connected to a PC terminal Use the RS 232 serial cable to connect the PC terminal to the 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 COM2 etc on the PC running terminal emulation software The connector on the PC terminal may be either male 25 pin or 9 pin It may be necessary to obtain a 25pin to 9pin adapter to make this connection If an adapter is required refer to Figure 2 4 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 MOTOROLA Chapter 2 Initialization and Setup 2 5 PRELIMINARY
72. This Product Go to www freescale com Freescale Semiconductor Inc Communication Ports Table 1 17 eTPU Header Pin Assignment continued Pin eTPU Signal Pin eTPU Signal 17 TPUCH23 18 TPUCHS5 19 TPUCH24 20 TPUCH6 21 TPUCH25 22 TPUCH7 23 TPUCH26 24 TPUCH8 25 TPUCH27 26 TPUCH9 27 TPUCH28 28 TPUCH10 29 TPUCH29 30 11 31 TPUCH30 32 TPUCH12 33 TPUCHS1 34 TPUCH13 35 GND 36 TPUCH14 37 TCRCLK 38 TPUCH15 39 GND 40 GND There is a UNI3 connector and HS ENCO connector 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 J1 Figure 1 4 shows the J1 Connector pin assignment MOTOROLA Chapter 1 M523xEVB PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Communication Ports DEVELOPER RESERVED 1 2 GND 3 DSCLK GND 5 6 DEVELOPER RESERVED RESET 7 3 DSI or Pad Voltage 9 10 DSO GND 11 12 PST3 PST2 13 14 PST1 PSTO 15 16 DDATA3 DDATA2 gt 17 18 DDATAO 19 20 GND MOTOROLA RESERVED lt 21 22 lt MOTOROLA RESERVED GND
73. according to the user defined radix hexadecimal by default Example To verify that the data starting at 0x20000 and ending at 0x30000 is identical to the data starting at 0x80000 the command is bc 20000 80000 10000 3 8 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Commands BF Block Fill Usage BF lt width gt begin end data lt inc gt The BF command fills a contiguous block of memory starting at address begin stopping at address end with the value data lt Width gt modifies the size of the data that is written If no lt width gt is specified the default of word sized data is used The value for addresses begin and end may be an absolute address specified as a hexadecimal value or a symbol name The value for data may be a symbol name or a number converted according to the user defined radix normally hexadecimal The optional value lt inc gt can be used to increment or decrement the data value during the fill This command first aligns the starting address for the data access size and then increments the address accordingly during the operation Thus for the duration of the operation this command performs properly aligned memory accesses Examples To fill a memory block starting at 0x00020000 and ending at 0x00040000 with the value 0x1234 the command is bf 20000 40000 1234 To
74. aced externally to the MCF5235 via the DMA and external bus modules The USB controller can be configured to run in Host or Device mode There is a series A connector Host and a series B connector Device populated on the EVB Either 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 MOTOROLA Chapter 1 M523xEVB 1 21 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Connectors and User Components 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 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 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
75. al 32 bit OFF ON ON External 16 bit ON OFF ON External 8 bit 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 PF 7 5 CS 6 4 OFF ON ON PF 7 CS6 PF 6 5 A 22 21 ON OFF ON PF 7 6 CS 6 5 PF 5 A21 ON ON ON PF 7 5 A 23 21 X X OFF PF 7 5 A 23 21 MOTOROLA Chapter 1 M523xEVB PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Support Logic 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 MHz crystal feeding the USB controller U33 1 3 3 Watchdog Timer The dBUG Firmware does NOT enable the watchdog timer on the MCF5235 1 3 4 Exception Sources The ColdFire family of processors can receive seven levels of interrupt priorities When the processor receives an interr
76. al 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 address of the TFTP server Gateway IP address of the gateway Netmask __ Network netmask MOTOROLA Appendix A Configuring dBUG for Network Downloads A 1 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Configuring dBUG Network Parameters 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 The last step is to inform dBUG of the name and type of the file to download Prior to giv
77. and is connected to the board 2 Check that the terminal and board are set for the same character format and baud 3 Press the RESET button to insure that the board has been initialized properly If you still are not receiving the proper response your board may have been damaged Contact Freescale Semiconductor for further instructions please see the beginning of this manual for contact details 2 4 Using The BDM Port The 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 User s Manual BDM Section for additional instructions NOTE BDM functionality and use is supported via third party developer software tools Details may be found on the CD ROM included in this kit 2 8 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc 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 monitor debug interface inline assembler and disassembly program download register and memory manipulation and I O control functio
78. and 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 MOTOROLA Chapter 3 Using the Monitor Debug Firmware 3 5 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Commands Table 3 1 dBUG Command Summary Mnemonic Syntax Description ASM asm lt lt addr gt stmt gt Assemble BC bc addr1 addr2 length Block Compare BF bf lt width gt begin end data lt inc gt Block Fill BM bm begin end dest Block Move BR br addr lt r gt lt c count gt lt t trigger gt Breakpoint BS bs lt width gt 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 gt lt gt lt gt lt s lt offset gt gt filename Download Network FL fl erase addr bytes Flash Utilities fl write dest src bytes GO go lt addr gt Execute GT gt addr Execute To HELP help 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 MD md lt width gt lt begin gt
79. at vH pany S juueu NYO E J3HA u 5 oon 7 IHNVO OND 2 91 19945 uo 680 OWES y PUL INVO en apon zo pou LON S ear 10 Buas uoyeuuuie NYO zo o 25 pany si 10 Bumes 0 jeuueu NYO Q0 CQAHSSNS BUA mwo oon OND 5 ale en n 4 edA q 6 1 sng NYI apon 1 L 79 taf LON S 104 Buas dup anyo anyo 810 910 lt gt xu INYO XLONVO For More Information On This Product Go to www freescale com mg 7002 06 Freescale Semiconductor Inc
80. connector P6 The CANITX and CANIRX signals from FlexCANI are brought out to a 3 3 V CAN transceiver Texas Instruments SN65HVD230D and are jumper selectable 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 Configuration 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 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 MOTOROLA Chapter 1 M523xEVB PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Communication Ports Table 1 14 FlexCANO Jumper Configuration Jumper Function ON OFF JP1 Transceiver mode Standby High Speed No Slope Control JP2 CAN Termination Terminating resistor No terminating resistor between CANL and CANH The CANL and CANH signals are brought out from the CAN transceiver to a female DB 9 connector P1 in the configuration below Table 1 15 CAN Bus Connector Pinout DB 9 pin Signal 1 4 6 7 9 Not Connected 2 CANL 3 Ground 7 CANH
81. cted Figure 2 5 on the next page shows the jumper locations for the board 2 6 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Installation and Setup qu K imm T s 2 4 H il al A CES EL ro n b ELM Figure 2 5 Jumper Locations MOTOROLA Chapter 2 Initialization and Setup 2 7 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc System Power up and Initial Operation 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 v2e la xx Build XXX on XXX XX 20 XX XX XX Enter help for help dBUG The board is now ready for operation under the control of the debugger as described in Chapter 2 If you do not get the above response perform the following checks 1 Make sure that the power supply is properly configured for polarity voltage level and current capability 1A
82. d rate default is 19200 bps a speed commonly available from workstations personal computers and dedicated terminals The command line prompt is dBUG gt Any dBUG command may be entered from this prompt dBUG does not allow command lines to exceed 80 characters Wherever possible dBUG displays data in 80 columns or less dBUG echoes each character as it is typed eliminating the need for any local echo on the terminal side The Backspace and Delete keys are recognized as rub out keys for correcting typographical mistakes Command lines may be recalled using the Control U Control D and Control R key sequences Control U and Control D cycle up and down through previous command lines Control R recalls and executes the last command line In general dBUG is not case sensitive Commands may be entered either in uppercase or lowercase depending upon the user s equipment and preference Only symbol names require that the exact case be used Most commands can be recognized by using an abbreviated name For instance entering h is the same as entering help Thus it is not necessary to type the entire command name The commands DI GO MD STEP and TRACE are used repeatedly when debugging dBUG recognizes this and allows for repeated execution of these commands with minimal typing After a command is entered press the Return or Enter key to invoke the command again The command is executed as if no comm
83. ddress 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 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 md 1 40000 50000 3 26 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc 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 absolute address specified as a hexadecimal value or a symbol name Width specifies the size of the data that is modified If no lt width gt is specified the default of word sized data is used The value for data may be a symbol name or a number converted according to the user defined rad
84. duoseg 10 SA3XECSIN L 1 For More Information This Product Go to www freescale com Freescale Semiconductor Inc 18d07 38002 14d62IA8IN nsy n4 v USe J 19 28 601 92 92001 ven YOL 292 45 910 asn 501 10 dVOSZZEXVIN ZECSH oen 201 19 912V9LINTO18v LIN UOJOI A een een z LOL LGLESXOTPZOIN Jeyng Zen 001 yVSs0ZWdV Sen ven 2 66 AOH StLLd 10 AOH 00LL d SoIUOJl9 d 10 832 994 10 32 OSH 10 9JoH niu ZHINSZ A 050 een 96 men INO980LIT Yoo JoyeinBey ASL een 26 8 59692 1 JoyeinBey ken 96 S96S82W1 JoyeinBey ozn 96 SHS9 82091 1d6cwy 314 91 1 v6 Sn98ZMZZ TN 9 HOX3 1 6 Qvr0OHTZNS 949 9 Zin 26 1 1 EYED 2 911 1 L6 SLN L 06 21488025217 349 ANY vin 1 68
85. e command is symbol a main 40000 To remove the symbol junk from the table the command is symbol junk To see how full the symbol table is the command is symbol s To display the symbol table the command is symbol 1 3 36 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Commands TRACE Trace Into Usage TRACE The TRACE command allows single instruction execution If num is provided then num instructions are executed before control is handed back to dBUG The value for num is a decimal number The TRACE command sets bits in the processors supervisor registers to achieve single instruction execution and the target code executed Control returns to dBUG after a single instruction execution of the target code This command is repeatable Examples To trace one instruction at the program counter the command is Lr To trace 20 instructions from the program counter the command is tr 20 MOTOROLA Chapter 3 Usingthe Monitor Debug Firmware 3 37 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Commands 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 net
86. efer to upuser command for copying code data into Flash memory 3 10 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Commands BR Breakpoints Usage BR addr lt r gt lt c count gt lt t trigger gt The BR command inserts or removes breakpoints at address addr The value for addr may be an absolute address specified as a hexadecimal value or a symbol name Count and trigger are numbers converted according to the user defined radix normally hexadecimal If no argument is provided to the BR command a listing of all defined breakpoints is displayed The r option to the BR command removes a breakpoint defined at address addr If no address is specified in conjunction with the r option then all breakpoints are removed Each time a breakpoint is encountered during the execution of target code its count value is incremented by one By default the initial count value for a breakpoint is zero but the c option allows setting the initial count for the breakpoint Each time a breakpoint is encountered during the execution of target code the count value is compared against the trigger value If the count value is equal to or greater than the trigger value a breakpoint is encountered and control returned to dBUG By default the initial trigger value for a breakpoint is one but the t option allows setting the
87. emiconductor Inc 181248SM Lin 98 OSLINAOSEZSHOIN 40sse204doJ9lU GEZSAOW 0 Sg GOE ZGAHS9NS IL NYO en en z v8 zn 58 YAEGLLDLOATPZNS IL aye ANY gen sn c8 LQSrz9LXOTP4ON 18 OZOLESAOLYOLOZAO sseJd INVHSV 2 08 90141 9109 auojskey 1591 JUNO eoeuns BdL 41 941 SdL 1 141 i 6 19484 1445 uonisod 01 YMS 4MS 8 4920 YAMS PUNON eoepng 9MS ZL 1 9 562 10 leNIS YOUMS vMS 9 5 492 xoelg YOUMS PUNON GMS EMS 2 6 GL JOZNLALLLSINZ 804 w dy yams IMS 22 3001 10 YOM Jojsisay 9080 WYO M00L 99H S8H 72 001 10 YOM 4035139 9080 WYO 001 62H 44H OvH 22 sdiiud 8098 10 YOM Jojsisay UNON 9080 WYO 099 LZ sdiiud 1 H6 vc 10 VOM 10 S S H JUNO eoepns 9080 WYO LOH SH SH r 04 10 YOM 10 S S H JUNO 9080 WYO 4g L 8SH PSH IGH 9 69 5990 Hed uon
88. ent IP is required to be set to a unique value usually assigned by your local network administrator server This is the network IP address of the machine which contains files accessible via TFTP Your local network administrator will have this information and can assist in properly configuring a TFTP server if one does not exist gateway This is the network IP address of the gateway for your local subnetwork If the client IP address and server IP address are not on the same subnetwork then this option must be properly set Your local network administrator will have this information netmask This is the network address mask to determine if use of 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 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
89. fer to dBUG 3 42 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Appendix A 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 Internet Protocol IP address for the computer client IP P address of the Gateway for non local traffic gateway IP and Network netmask for flagging traffic as local or non local netmask In addition the dBUG network download command requires the following three parameters IP address of the TFTP server server IP Name of the file to download filename Type ofthe file to download filetype of S record COFF ELF or Image Your loc
90. fill a block of memory starting at 0x00020000 and ending at 0x0004000 with a byte value of OxAB the command is bf b 20000 40000 AB To zero out the BSS section of the target code defined by the symbols bss_start and bss_end the command is bf bss start bss end 0 To fill a block of memory starting at 0x00020000 and ending at 0x00040000 with data that increments by 2 for each width the command is bf 20000 40000 02 MOTOROLA Chapter 3 Usingthe Monitor Debug Firmware 3 9 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Commands BM Block Move Usage BM begin end dest The BM command moves a contiguous block of memory starting at address begin and stopping at address end to the new address dest The 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 R
91. g E i 64 Kbytes SRAM 8Kx16 x4 8 Kbytes CACHE 1Kx32 x2 To From Arbiter PORTS GPIO lt lt 4 SDA SCL UnTXD UnRXD UnRTS UnCTS M TnouUT TIN ru gt PADI lt gt 0131 0 lt q 23 0 lt gt 513 0 lt gt lt gt 75710 lt 1 TFA lt i 513 0 CIM Timer PLL PITO PIT1 PIT2 PITS CLKGEN To From INTC MDHA Edge Cryptography Modules Figure 1 2 MCF5235 Block Diagram 1 6 M523xEVB User s Manual PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com MOTOROLA Freescale Semiconductor Inc System Memory 1 2 System Memory The following diagram shows the external memory implementation on the EVB MPU Buffers Data lt gt gt gt ASRAM Ue 1 Mbyte Address gt gt Control gt gt gt gt SDRAM Flash 16 Mbytes 512 x 16 gt or _ 512K x 32 gt Expansion Connectors y Figure 1 3 External Memory Scheme Note The external bus interface signals to the external ASRAM and FLASH
92. gurations 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 1 10 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc 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 SupportLogic 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 Extern
93. he 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 2 4 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Installation and Setup Table 2 1 Power LEDs LED Function D17 Indicates that the 5V regulator is working correctly D14 Indicates that the 3 3V regulator is working correctly D21 Indicates that the 1 5V regulator is working correctly If no LEDs are illuminated when the power is applied to the EVB it is possible that either power switch SWA is in the OFF position or that the fuse F1 has blown This can occur if power is applied to the EVB in reverse bias where a protection diode ensures that the fuse blows rather than causing damage to the EVB Replace F1 with a 20mm 1A fast 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
94. ignals 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 1 4 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc MCF5235 Microprocessor 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 MOTOROLA Chapter 1 M523xEVB 1 5 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com MCF5235 Microprocessor To From PADI lt To From PADI To From PADI To From SRAM backdoor Freescale Semiconductor Inc Arbiter INTCO EIM CHIP SELECTS FAST ETHERNET CONTROLLER FEC 4 CH DMA DREQ 2 0 DACK 2 0 V2 ColdFire CPU BDM ZR id gt DIV EMAC JTAG 54 TAP Watchdo
95. ing the name of the file keep in mind the following Most if not all TFTP servers will only permit access to files starting at a particular sub directory This is a security feature which prevents reading of arbitrary files by unknown persons For example SunOS uses the directory tftp boot as the default TFTP directory When specifying a filename to a SunOS TFTP server all filenames are relative to tftp boot As 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 A 2 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Troubleshooting Net
96. ix 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 10000 FF To interactively modify memory beginning at 0x00010000 the command is mm 10000 MOTOROLA Chapter 3 Using the Monitor Debug Firmware 3 27 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Commands 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 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
97. jege 0131 U28198 5553 gt 10X13 ozz 00x13 E Le FEE PE 19 Yaw 18 Yao oz ajqissod se 140 XEZS4ON an ms 0 850 9 se du 8 9284 sa 99 gqyfooan xd ozz PP 037 18001 lt uaxia qa 1 ta As e 88333238538 1842289 ER 599022343425 oe sojoeuuoo spry eeiedos 850099989008 asop se m zou RT 3 19 vou 5 QNO 1 10x13 2081 g 15310031 98 s He z 00 095 1031 z Lor Lg Aaxua ON 7 N3AVMN EQ31 5 3 4 _ 6 Te AVAHA OGXY 5 wie 4 XL 10 LE EQVAHd LOXH 5 949 Shs xu yl XL N3x3 asx4 1 tH LY E T 7 oawa 8 5 DE 2 230 3800 98 Q x PEGE EHETE s Buunp Burseig 101 581 si ii BER appe s Bumes ppe jeors ud yo ILON T Aiddns
98. ler 8 Kbytes of configurable instruction data cache Three universal asynchronous receiver transmitters UARTs with DMA support e 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 MD5 SHA 1 HMAC accelerator Four channel 32 bit direct memory access DMA controller e Four channel 32 bit input capture output compare timers with optional DMA support Four channel 16 bit periodic interrupt timers PITs Programmable software watchdog timer Interrupt controller capable of handling up to 126 interrupt sources Clock module with Phase Locked Loop PLL External bus interface module including a 2 bank synchronous DRAM controller 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 s
99. lt end gt Memory Display MM mm lt width gt addr lt data gt Memory Modify MMAP mmap Memory Map Display RD rd lt reg gt Register Display RM rm reg data Register Modify RESET reset Reset SD sd Stack Dump SET set lt option value gt Set Configurations SHOW show lt option gt Show Configurations STEP step Step Over SYMBOL symbol lt symb gt lt a symb value gt lt 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 3 6 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc 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
100. luation Board BOM MOTOROLA Appendix C Evaluation Board BOM PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com C 1 Freescale Semiconductor Inc SVOLOMS ccCVVGY L XN V AOL 42006 280 LL VeLVAvVOlLOSSO80 XAY XAV 9501 19080 HZX ASZ 680 1880 1980 1690 890 90 1990 01 JeXueA OdN 2426 6210 390 690 290 L90 099 699 1850 0060456039010541 XAV WEL 9500 4101 990 790 LSO e o jN JNM 01 08cHZ2XS0800D JexueA sdeg uno eoeuns 2080 3U0L 0415 SOLD YOLO 010 ZOLO 7960 760 1990 090 0560891039 72541 9580 0 AQ ANLH 1 9 H8390LINOLI9LOV L XN 2580 9601 91 ANOL 8210 ZEO sdey uno 5 900 10 OdN S080 AOS 4001 1810 0810 EZO 220 120 020 0 0835080 XAV VOM juno eoeyung 9601 6080 ASZ Jn LO 2819 9810 9810 7810 9210 210 2210 6910 19910 8910 9910 SLO 2919 LSLO OSLO 6719 8010 2710 9 10 GVLO EVLO ZYLO BELO BELO ZELO 060 210 219 0210 9LLO SELO YLLO LOLO 0010 1980 80 680 280 80 1080 620 18 40 499 SSO 290 290 6 270 EVO
101. n Signal 15 TPUCH22 16 TPUCH2 17 TPUCH23 18 19 TPUCH19 20 21 TPUCH20 22 23 TPUCH21 24 25 TPUCH16 26 EMDIO 27 U2CTS 28 EMDC 29 2 SCL 30 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 41 U2RTS 42 U2RXD 43 QSPI PCS1 44 U1CTS 45 U1RTS 46 47 U1RXD 48 U2TXD 49 U1TXD 50 CS2 51 CS3 52 CS7 53 CS6 54 CS5 55 CS1 56 CSO 57 CS4 58 A23 59 GND 60 Table 1 20 J8 Pin Signal Pin Signal 1 45V 2 1 5V 3 3 3V 4 3 3 5 8 6 TPUCH7 7 TPUCH10 8 TPUCH9 9 TPUCH25 10 12 11 TPUCH27 12 TPUCH11 13 TPUCH26 14 14 PRELIMINARY SUBJECT CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Chapter 1 M523xEVB 1 23 Freescale Semiconductor Connectors and User Components Table 1 20 J8 continued Inc Pin Signal Pin Signal 15 TPUCH29 16 TPUCH13 17 TPUCH28 18 TCRCLK 19 TPUCHS1 20 TPUCH15 21 TPUCH30 22 GND 23 GND 24 UOCTS 25 UORXD 26 DTOUTO 27 DTINO 28 UOTXD 29 UORTS 30 GND 31 CLKMODO 32 3 3V 33 CLKMOD1 34 GND 35 GND 36 D28 37 D30 38 D29 39 D31 40 D24 41 D26 42 D25 43 D27 44 D21 45 D23 46 D22 47 EXT RSTIN 48 019 49 GND 50
102. nding upon the user s equipment and preference Only symbol names require that the exact case be used MOTOROLA Chapter 3 Usingthe Monitor Debug Firmware 3 1 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc What Is dBUG Most commands can be recognized by using an abbreviated name For instance entering h is the same as entering help Thus it is not necessary to type the entire command name The commands DI GO MD STEP and TRACE are used repeatedly when debugging dBUG recognizes this and allows for repeated execution of these commands with minimal typing After a command is entered simply press lt RETURN gt or ENTER to invoke the command again The command is executed as if no command line 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
103. ns 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 is 19200 but can be changed after power up The command line prompt is dBUG gt dBUG command may be entered from this prompt dBUG does not allow command lines to exceed 80 characters Wherever possible dBUG displays data in 80 columns or less dBUG echoes each character as it is typed eliminating the need for any local echo on the terminal side In general dBUG is not case sensitive Commands may be entered either in upper or lower case depe
104. nstruction 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 MOTOROLA Chapter 3 Usingthe Monitor Debug Firmware 3 35 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Commands SYMBOL Symbol Name Management Usage S YMBOL lt symb gt lt symb value lt r symb gt lt cllls gt The SYMBOL command adds or removes symbol names from the symbol table If only a symbol name is provided to the SYMBOL command then the symbol table is searched for a match on the symbol name and its information displayed The a option adds a symbol name and its value into the symbol table The r option removes a symbol name from the table The c option clears the entire symbol table the 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 th
105. o 1 Led 627 820 778 9 Sea vea 20 eed 1 gtd Ag e sid vid 6 sa a 30 sa va a ea 0a SUSAISOSNVHL sna Viva 1QStZ91XO P0 99 aoz DOA 301 99 yz 8 2 Ei 1 182 u 25 ove 982 sve saz pve E eve egz i ave zaz gg 2 182 8 avi 881 181 LEO LOATPZNS 981 E 8 an val 20 Sor 2 5 zal n E ant sn 5 2507 aoz 55 yz 8 2 182 9 gaz d sve eve ri 182 El 8vi 881 B 181 svi 981 svi sai a V val 8 eal 8 pL 181 en loela 0 152 For More Information On This Product Go to www freescale com Freescale Semiconductor Inc 9L o 5 7002 06 ludy Repu NYO 0802 06 NA jequinN jueunooq eag 9931 9451 848 uogeuuue NYO v
106. o 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 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com MOTOROLA Paragraph Number 1 1 1 2 1 2 1 1 2 2 1 2 3 1 2 4 12 5 1 2 5 1 1 3 1 3 1 1 3 2 1 3 3 1 3 4 1 3 5 1 3 6 1 4 1 4 1 1 4 2 1 4 3 1 4 4 1 4 5 1 4 6 1 4 7 1 4 8 1 4 9 1 5 1 5 1 1 5 2 1 5 3 1 5 4 2 1 22 22 1 2 2 2 2 2 5 MOTOROLA Freescale Semiconductor Inc CONTENTS Page ue Number Chapter 1 M523xEVB MCES235 MICFODEOCOSSOT 1 3 System Memory 1 6 ut fe 1 6 SDRAM 1 7 ASRAM p ERR NM T 1 7 Internal 1 7 M523xENVB Memory 1 7 Reset Vector Mapping utu fonde 1 8 aati nae datio 1 9 c 1 9
107. o the dBUG firmware This action differs from RESET in that no processor register memory contents are changed the processor and peripherals are not reset and dBUG is not restarted Also in response to depressing the ABORT button the contents of the MCF5235 core internal registers are displayed The abort function is most appropriate when software is being debugged 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 4 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Command Line Usage 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 bau
108. on to the board Figure 3 1 shows the dBUG operational mode INITIALIZE NO COMMAND LINE INPUT FROM TERMINAL EXECUTE COMMAND FUNCTION A DOES COMMAND LINE CAUSE USER PROGRAM EXECUTION JUMP TO USER PROGRAM AND BEGIN EXECUTION Figure 3 1 Flow Diagram of dBUG Operational Mode MOTOROLA Chapter 3 Usingthe Monitor Debug Firmware 3 3 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Operational Procedure 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 Copyright 1995 2004 Motorola Inc All Rights Reserved 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 t
109. 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 is affirmed the Flash is erased and the user is prompted to begin sending the new dBUG S record file The file should be sent as a text file with no special transfer protocol Use this command with extreme caution as any error can render dBUG useless 3 16 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Commands DN Download Network Usage DN lt gt e i s o offset filename 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
110. reescale com Freescale Semiconductor Inc Commands 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 i e nested function calls After control is returned to dBUG the SD command will decode the stack frames and display a trace of the function calls 3 32 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc 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 cli
111. rmation On This Product Go to www freescale com Freescale Semiconductor Inc Commands 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 on MC68000 and ColdFire to contain the value 0x1234 the command is rm DO 1234 3 30 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc 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 MOTOROLA Chapter 3 Usingthe Monitor Debug Firmware 3 31 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www f
112. ry Osc USB 2 0 Host amp Device ETPU Headers RJ 45 connector Ethernet Transceiver 25 MHz DB 9 connector CAN Transceiver DB 9 connector RS 232 CAN Transceiver Peripheral signals Data 31 0 Address 23 0 Control Signals 5 16 Mbytes I ER gt _ pen o a ee 4 60 pin Daughter expansion connectors There is a jumper 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 11 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 2 ColdFire core with enhanced multiply accumulate unit EMAC providing 144 Dhrystone 2 1MIPS 150 MHz MOTOROLA Chapter 1 M523xEVB 1 3 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc MCF5235 Microprocessor eTPU with 16 32 channels 6 Kbytes of code memory and 1 5 Kbytes of data memory with Nexus debug support 64 Kbytes of internal SRAM External bus speed of one half the CPU operating frequency 75 MHz bus 150 MHz core 10 100 Mbps bus mastering Ethernet control
113. s are the property of their respective owners Motorola Inc is an Equal Opportunity Affirmative Action Employer Motorola Inc 2004 M5235EVBUM D 5 2004 REV 1 For More Information On This Product Go to www freescale com Freescale Semiconductor Inc EMC Information on 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 Inadomestic environment this product may cause radio interference in which case the user may be required to take adequate measures Anti static precautions must be adhered to when using this product 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 MOTOROLA M523xEVB User s Manual iii PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc WARNING This board generates uses and can radiate radio frequency energy and if not installed properly may cause interference to radi
114. s 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 is located and register refers to the specific register to modify The data parameter specifies the new value to be written into the register Example To modify the TMR register of the first Timer module to the value 0x0021 the command is irm timerl tmr 0021 3 22 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Commands HELP Help Usage HELP command The HELP command displays a brief syntax of the commands available within dBUG In addition the address of where user code may start is given If command is provided then a brief listing of the syntax of the specified command is displayed Examples To obtain a listing of all the commands available within dBUG the command is help To obtain help on the breakpoint command the command is help br MOTOROLA Chapter 3 Using the Monitor Debug Firmware 3 23 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Commands 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
115. their functions Table 1 24 LED Functions LED Function D1 D4 Ethernet Phy functionality D5 D12 eTPU functionality D14 3 3V Power Good D17 5V Power Good D21 1 5V Power Good D23 Abort IRQ7 asserted D24 Reset RSTI asserted D25 D32 User LEDs See Table 1 23 MOTOROLA Chapter 1 M523xEVB 1 27 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Connectors and User Components 1 28 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Chapter 2 Initialization and Setup 21 System Configuration The M523xEVB board requires the following items for minimum system configuration The M523xEVB board provided Power supply 6V to 14V DC with minimum of 300 mA RS232C compatible terminal or a PC with terminal emulation software RS232 Communication cable provided MOTOROLA Chapter 2 Initialization and Setup PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com 2 1 Freescale Semiconductor Inc System Configuration Figure 2 1 displays the minimum system configuration 2 2 RS 232 Terminal Or PC dBUG gt 7 to 14VDC Input Power ET
116. tion On This Product Go to www freescale com MOTOROLA Freescale Semiconductor Inc SupportLogic e UART modules 0 1 and 2 module DMA module QSPI module module PIT Security module FlexCANO and FlexCANI e eTPU All external interrupt inputs are edge sensitive The active level is programmable An interrupt request must be held valid until an IACK cycle starts to guarantee correct processing Each interrupt input can have it s priority programmed by setting the xIPL 2 0 bits in the Interrupt Control Registers No interrupt sources should have the same level and priority as another Programming two interrupt sources with the same level and priority can result in undefined operation The M523xEVB hardware uses IRQ7 to support the ABORT function using the ABORT switch SW5 This switch is used to force an interrupt level 7 priority 3 if 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 MCF523x User s 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
117. tor 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 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 U31 and are available on DB 9 connectors P4 and P5 Refer to the MCF523x User s Manual for programming the UART s and their register maps 1 14 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Communication Ports 1 4 2 UART2 FIexCAN 1 Port The third UART on the MCF5235 is multiplexed with the second FlexCAN FlexCANI 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
118. upt 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 MCF523x User s Manual The processor goes to an exception routine via the exception table This table is stored in the Flash EEPROM The address of the table location is stored in the VBR The dBUG ROM monitor writes a copy of the exception table into the RAM starting at 00000000 To set an exception vector the user places the address of the exception handler in the appropriate vector in the vector table located at 00000000 and then points the VBR to 00000000 The MCF5235 microprocessor has seven external interrupt request lines IRQ 7 1 The interrupt controller is capable of providing up to 63 interrupt sources These sources are e External interrupt signals IRQ 7 1 EPORT Software watchdog timer module Timer modules 1 12 M523xEVB User s Manual PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Informa
119. 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 1234 If no match is found then the address is incremented to 0x00040002 and the next 16 bit value is read and compared To search for the 32 bit value OxABCD in the memory block starting at 0 00040000 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 3 12 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc 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 Ox
120. ut 5V 3 3V and 1 5V regulated supplies Board Size 10 00 x 5 40 inches 8 layers Memory Devices 16 Mbyte SDRAM 2 Mbyte 512K x 16 Page Mode FLASH or 4 Mbyte 512K x 32 Page mode FLASH 1 Mbyte ASRAM optional 64 Kbyte SRAM internal to MCF523x device Peripherals Ethernet port 10 100Mb s Dual Speed Fast Ethernet Transceiver with MIT UARTO RS 232 serial port for dBUG firmware UART auxiliary RS 232 serial port 2 auxiliary 1 RS 232 serial port jumper selectable with FlexCANI Enhanced Time Processor Unit eTPU interface QSPI interface to ADC FlexCan0 interface USB Host and Device Interface BDM JTAG interface User Interface 1 2 Reset logic switch debounced Boot logic selectable dip switch Abort IRQ7 logic switch debounced PLL Clocking options Oscillator Crystal or SMA for external clocking signals LEDs for power up indication general purpose I O and timer output signals Expansion connectors for daughter card UNI 3 connector for motor control cards M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc MCF5235 Microprocessor Software Resident firmware package that provides a self contained programming and operating environment dBUG DB 9 2 connector RS 232 transceivers 2 26 pin Debug Header ColdFire MCF523X Clocking 25 MHz circuit
121. ve 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 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 MOTOROLA Chapter 2 Initialization and Setup 2 3 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Installation and Setup the EVB Connector P2 is a 2 1mm power jack Figure 2 2 a lever actuated connector Figure 2 3 GND Figure 2 2 2 1mm Power Connector V 7 14V 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 t
122. work 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 3 38 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Commands 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 2b 1c 1a In this example v 2b Ic la dBUG common C PU major board major major and minor and minor and minor revision revision revision The version date is the day and time at which the entire dBUG monitor was compiled and built Examples To display the version of the dBUG monitor the command is version MOTOROLA Chapter 3 Usingthe Monitor Debug Firmware 3 39 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc TRAP 15 Functions 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 T
123. work Problems 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 Troubleshooting Network Problems Most problems related to network downloads are a direct result of improper configuration Verify that all IP addresses configured into dBUG are correct This is accomplished via the show command Using an IP address already assigned to another machine will cause dBUG network download to fail and probably other severe network problems Make certain the client IP address is unique for the board Check for proper insertion or connection of the network cable Is the status LED lit indicating that network traffic is present Check for proper configuration and operation of the TFTP server Most Unix workstations can execute a command named tftp which can be used to connect to the TFTP server as well Is the default TFTP root directory present and readable If ICMP DESTINATION UNREACHABLE or similar ICMP message appears then a serious error has occurred Reset the board and wait one minute for the TFTP server to time out and terminate any open connections Verify that the IP addresses for the server and gateway are correct Also verify that a TFTP server is running on the server MOTOROLA Appendix A Configuring dBUG for Network Downloads A 3 PRELIMINARY SUBJECT T
124. xecuted 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 MOTOROLA Chapter 1 M523xEVB 1 9 PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc Support Logic Table 1 3 D 20 19 External Boot Chip Select Configuration D 19 18 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 0000 0000 in the SDRAM The Software Watchdog Timer is disabled the Bus Monitor is enabled and the internal timers are placed in a stop condition A memory map for the entire board can be seen in Table 1 2 If the external RCON pin is asserted SW7 1 ON during reset then various chip functions including the reset configuration pin functions after reset are configured according to the levels driven onto the external data pins See tables below on settings for reset confi
125. y including without limitation consequential or incidental damages Typical parameters which may be provided in Motorola 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 Motorola does not convey any license under its patent rights nor the rights of others Motorola 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 Motorola product could create a situation where personal injury or death may occur Should Buyer purchase or use Motorola products for any such unintended or unauthorized application Buyer shall indemnify and hold Motorola 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 Motorola was negligent regarding the design or manufacture of the part MOTOROLA Motorola and the Stylized M Logo are registered in the U S Patent and Trademark Office All other product or service name
126. y Map 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 1 8 M523xEVB User s Manual MOTOROLA PRELIMINARY SUBJECT TO CHANGE WITHOUT NOTICE For More Information On This Product Go to www freescale com Freescale Semiconductor Inc System Memory 5235 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 Memory CSO External ASRAM Memory CS1 Table 1 2 shows the M523xEVB memory map Table 1 2 The M523xEVB Default Memory Map Address Range Signal and Device 0 0000 0000 0xO0FF

Download Pdf Manuals

image

Related Search

Related Contents

SugarCube 3.04 E  A Low-Cost Soft Modem using the Freescale Digital Signal Controller  Nortel Networks Circuit Card 311 User's Manual  Avaya IP Office SSL VPN Solutions Guide    ファイルを開く - MIUSE  

Copyright © All rights reserved.
Failed to retrieve file