Home

YL-LPC2294 Quick Start Guide

image

Contents

1. N Core Debug LPC2294 v connect 2 RealView ICE Micro Edition ttached to stopped device ode Little Endian disconnect 2 arning Disconnection mode was not honored Disconnected as is without debug connect 2 RealView ICE Micro Edition rboTAP FPGA Simulator Copyright ARM Limited 2002 2003 ttached to stopped device ode Little Endian Stop gt 4 gt Cmd StdiO Build FileFind SrcCtrl Log Stopped ini Coli Clicking hyper link Debug LED axf as seen above will load the LED sample image onto the internal SRAM of LPC2294 for execution Clicking Debug Toggle Source Disassembly the source window will show mixed code At address 0x4000 0000 the first instruction is Reset LDR PC ResetAddr indicating the image has been loaded onto the internal SRAM area successfully Go to Debug select Run or simply press the F5 key on the keyboard the LED blink program will be executed on the debugger the result can be seen on the YL LPC2294 board 5 4 Program Internal Flash using RVDK Once the Board Chip Definition BCD the BCD file has been set in the connection properties for a specific target board the Flash Method FME file will uCDragonQSG Koninklijke Philips Electronics N V 2005 All rights reserved User Guide Revision 1 09 November 2005 17 of 24 Philips Semiconductors YL LPC2294 Quick Start Guide al
2. Boot Internal Flash from External Flash JP2 Open Not installed RESET_EN JP3 Open ISP disable Close ISP enable ISP_EN JP4 1 2 EXT_POWER Power 2 3 USB_POWER Power through USB port through External 5V DC supply The label mask on the board is reversed crs 2 3 External Memory Banks The Philips LPC2292 94 microcontroller provides up to four Chip Select signals CSO to CS3 for easy selection of external peripherals or memory banks All the uCDragonQSG Koninklijke Philips Electronics N V 2005 All rights reserved User Guide Revision 1 09 November 2005 5 of 24 g Semiconductors YL LPC2294 Quick Start Guide Running YL LPC2294 on RVDK 2 2 For Philips chip select signals are used CSO bank 0 is used for 2 MB external Flash SST39VF1601 on U7 CS1 bank 1 is used for 512 kB external RAM IS61LV51216 12T on U6 CS2 bank 2 is used for optional Ethernet device U13 not populated CS3 bank 3 and some address lines are used for selecting D12 USB and LCD module on U16 and U17 as well as for expansion connector OxFFFF FFFF AHP Peripherals 0xF000 0000 VPB Peripherals free usable memory area at CS3 0x8300 0000 optional Ethemet device at CS2 0x8200 0000 Up to 8MB ext RAM at CS1 0x8100 0000 Up to 16MB ext FLASH at CS0 0x8000 0000 remapped Boot Block 0x4000 1FFF 16KB On Chip Static RAM 0x4000 0000 LO B 0x8400 0000 a 0x0004 0000 optional 128kB On Chi
3. COM1 115200bps USB x Serial Port USB Port Configuration Help HEHEHE HH HEHEHE EEE HEHEHE EE EEE EEEE BIOS for YL LPC2292 Board U3 66 Http www uCdragon com HHH HHH HHH HHH HEE HHH JE JE JE JE JE JE JE JE JE JE JE E JE JE E E EEEE Nor Flash ID is 234B00BF SST39UF1601 Found Serial baud 115 266 m save address 6x86666666 Now download file from uart6 to 6x81666666 Received 818 bytes success k 3 Type in prog 80000000 command under the prompt symbol gt and press Enter Key right after next prompt Are you sure y n type in y to confirm Then the sample program is programmed into the external Flash SST39VF1601 As mentioned earlier the external flash is on external memory bankO its address range is from 0x8000 0000 to 0x8020 0000 Once the programming is complete it will return message OK on DNW uCDragonQSG Koninklijke Philips Electronics N V 2005 All rights reserved User Guide Revision 1 09 November 2005 11 of 24 Philips Semiconductors YL LPC2294 Quick Start Guide Running YL LPC2294 on RVDK 2 2 For Philips DHF v0 50A CON 115200bps USB x i aaa HK HEHEHE EEE EEEEEEEEEEEEEEEKEEEKEEEEKEEER BIOS for YL LPC2292 Board 3 66 Http www uCdragon com HHH HHH HHH HHH HHH HHH HH HHH HHH HHH KRKKRHHRHRRHHRE Nor Flash ID is 234BO6BF SST39UF1661 Found Serial baud 115 268 Program save address 6x866666606 Program run address 6x8
4. Developer Kit for Philips Version 2 2 Getting Started Guide 5 2 Getting started with RVDK Using the USB cable included in the package to connect between PC and RVI ME first then connect the 20 pin JTAG cable between the RVI ME and YL LPC2292 Development Board After the installation of the RVDK tool chain and USB driver for RVI ME you can start the RealView Debugger v1 8 by double Koninklijke Philips Electronics N V 2005 All rights reserved User Guide Revision 1 09 November 2005 13 of 24 p Semiconductors YL LPC2294 Quick Start Guide uCDragonQSG Running YL LPC2294 on RVDK 2 2 For Philips clicking from ARM RealView Development Kit v2 2 For Philips RealView Debugger v1 8 Debugger will be shown as below 2 RVDEBUG lt YL_LPC229X_BIOS gt oX a Eile Edit View Target Project Build Debug Tools Help Osa SL SSM PTHRH OO t X SSE ee Fie SND_SOURCE Find Ti tine l Not connected no PC or scope oy xij Click to Connect to a Target u T alue 4 gt Process Map aj gt d x No Register Context gt 4 gt dsm Sre EEE utis cs aj gt al pa xi g zi Wone gt 4 gt Acma Stao Build FieFind Z Srca Flog f gt i oO Oooo SS Unknown ini Colt Dezheng Tang Inbo Se C Philips RVD22944Jp Gl ucDragonQsG Micra P RYDEBUG lt YL_LPC22 Click Target then the Connection
5. Philips Semiconductors For more details on LPC229x family microcontroller such as data sheet User s Manual application notes utilities please refer to below link at http Awww standardics philips com products mcus all LPC2294 LPC2294 2 1 YL LPC2294 Package specification 1 Hardware specification Item Description Processor LPC2294 up to 60MHz Internal RAM 16k Bytes Internal Flash 256 kB External RAM 512 kB External Flash 2 MB LCD Module 128x64 Two CAN connector On chip USB Slave PDI USBD12 Two RS232 MAX3242 and MAX232 connector 2 YL LPC2294 development kit contents Item Description Main Board YL LPC2294 Board RVI ME ARM s RealView I n Circuit Emulator CD Include RVDK DE sample software utility and Documentation Cables Serial cable cross USB cable x 2 J TAG Cable between RVI ME and main board 2 2 Jumper Setting For configuration purposes the YL LPC2294 has four jumpers Some of them have been installed prior to delivery The jumpers J solder jumper have the following functions uCDragonQSG Koninklijke Philips Electronics N V 2005 All rights reserved User Guide Revision 1 09 November 2005 4 of 24 YL LPC2294 Quick Start Guide Philips Semiconductors E Running YL LPC2294 on RVDK 2 2 For Philips Symbol Default Setting Alternative Setting JP1 1 2 INTRE_BOOT Boot from 2 3 EXTRE_BOOT
6. Board and program sample code into the internal flash using RVDK in conjunction with Philips LPC2000 Flash Utility for internal flash programming and GUI utility DNW included in the CD package for external flash programming through YL LPC2294 BIOS running in internal flash Sample Software and Windows testing utilities associated with the Development board 2 YL LPC2294 Development Board The YL LPC2294 development board offers the following features uCDragonQSG MCU Philips 16 32 bit LPC2294 ARM7TDMI S with 256 kB built in program Flash 16 kB internal RAM external Memory Bus RTC 8x10 bit ADC 2xUART 4xCAN I C bus SPI 2x32bit Timers 7xCCR 6xPWM WDT 5V tolerant I O up to 6OMHz operation 512 kB RAM on board External RAM 2 MB on board Flash External Flash SST39VF1601 Standard 20 pin JTAG connector for both debugging and flash programming External USB port PIDUSB D12 Powered through USB port or external 5V DC supply Two CAN connectors with external PCA82C250 1 CAN Transceivers Two RS 232 connector for serial Interfaces LCD Module Eight push buttons Eight LEDs PWM Beeper CF Card Connector true IDE Mode not populated Two on board voltage regulators 1 8 V and 3 3 V with up to 800 mA current Koninklijke Philips Electronics N V 2005 All rights reserved User Guide Revision 1 09 November 2005 3 of 24 YL LPC2294 Quick Start Guide Running YL LPC2294 on RVDK 2 2 For Philips
7. Port USB Port Configuration Help KEKEKE HHH HHH HHH HEHEHE HEEL EEE EEE KEEEKEEKE BIOS for YL LPC2292 Board V3 66 Http www uCdragon com HHH HHH HH HHH HHH HHH HHH HHHK HEHEHE KHKHRKKRHRHRRERE Nor Flash ID is 234B66BF SST39UF1661 Found Serial baud 115 266 Program save address 6x86606066 Program run address 6x816666686 gt 3 2 Programming BIOS into Internal Flash If for whatever reason the internal flash has not been programmed and or has been erased there are several ways to reprogram the application image into the internal flash of LPC2294 e Using Philips Flash Utility via UART e Using RVDK v2 2 for Philips Flash Utility via JTAG To be described in the section later The Philips Flash Utility can be found under http Awww standardics philips com products mcus all LPC2294 LPC2294 After installation change the jumper setting JP3 Close ISP Enabled make sure RS 232 cable is still connected between the PC and YL LPC2294 and neither PC Hyper Terminal window software nor DNW utility should be open then push the red reset button to reboot the board To start the Philips Flash Utility simply double click LPC210x_ISP exe and the ISP program will appear as shown below uCDragonQSG Koninklijke Philips Electronics N V 2005 All rights reserved User Guide Revision 1 09 November 2005 9 of 24 Pris eee are YL LPC2294 Quick Start Guide Running YL LPC2294 on RVDK 2 2 For Phi
8. the LED sample project provided in the RVDK CD ROM for Philips YL LPC2294 board LED prj is the LED blinky project created on RVDK for code running in either internal flash Release or internal SRAM Debug LED_External prj is the RVDK project for code running in either external flash Release or external SRAM Debug We primarily use LED prj as the example to demonstrate not only how to use RealView debugger to single step through and control the flow of the program but also how to use the built in flash utility to program the internal flash of LPC2294 Po Select Project to Open Look in LED R e ce unc src DEJ 7 LED_External File name l eD tt Files of type Projects Fpi Cancel Help Set Directory kRecent Directories x Favorites Set File kRecent Fies x Favorites Go to the LED sample project directory open LED prj as shown above Go to toolbar Build next to Project click Build or Rebuild to compile the sample project Default project setting will build a loadable debug image to be executed on the internal SRAM The loadable image will reside in the Debug directory and the flash image will reside in the Release directory The very first time RVDK will pop out a message Makefile doesn t exist would you like to build it click yes to confirm The complete build process can be seen on the Build wi
9. 1666666 gt comload Now download file from uart to 6x81660660 Received 818 bytes success gt prog 86666666 program flash begin 6x866060660 from ram data 6x81660606 size 2 672Bytes Are you sure y n y Program 6x86666666 Ok gt 4 Change the jumper setting close JP1 jumper 2 3 EXTRE_BOOT to external reboot then press the red reset button After reset the system will boot from external Flash and the LED example will result in LEDs D1 D8 on the Development Board blinking on and off in a circular fashion at equal intervals Warning Don t forget to change the JP1 jumper back to default setting INTRE_BOOT position if you want to resume the program executing from the internal flash 4 Function of YL LPC2294 BIOS 4 1 List of BIOS functions Below is a list of these commands in the YL LPC2294 BIOS help clock Show list of the commands Show clock information such as the frequency of the crystal system clock CCO and VPB comload Download file through UART uCDragonQSG Usage comload external SRAM addresss1 Koninklijke Philips Electronics N V 2005 All rights reserved User Guide Revision 1 09 November 2005 12 of 24 eri Saneas YL LPC2294 Quick Start Guide Running YL LPC2294 on RVDK 2 2 For Philips For example comload 81000000 or comload default address 0x81000000 comrun Download file through UART then run Usage comrun external SRA
10. Control window will pop out go to RVI ME right click then select Connection Properties go to CONNECTION RVI ME click BoardChip Name on the right side and select LPC2294 This indicates RVI ME is going to connect to the LPC229x based target board Save the configuration as seen below and close the Connection Properties windows If the BoardChip Name LPC2294 is not listed it indicates that the LPC2294 BCD file has not been installed in the correct directory under RVDK In the default installation directory all the processor specific or board specific BCD files should be found under C Program Files ARM RVD Core 1 8 848 phil_ mcu win_32 pentium etc More details about RVDK connection properties should refer to Connecting to a debug target in RealView Developer Kit for Philips Version 2 2 Getting Started Guide Koninklijke Philips Electronics N V 2005 All rights reserved User Guide Revision 1 09 November 2005 14 of 24 Philips Semiconductors YL LPC2294 Quick Start Guide uCDragonQSG Running YL LPC2294 on RVDK 2 2 For Philips EE Connection Properties File View Help Description List Pull Advanced information from BOARD CHIP COMPONENT entry rvdebug brd Ha bed Board Chip Defin Gyl CONNE CTION RVI ME Connect_with Remote advanced_ Information Configuration rvime rvc Aux Configuration Auto connect t Fal
11. M address For example comrun 81000000 or comrun default address 0x81000000 prog Program flash Usage prog external flash address external SRAM address length For example prog 80000000 81000000 10000 To simplify the process to program the code into flash only specify external flash starting address as prog 80000000 run Run program Usage run external SRAM address For example run 81000000 5 RealView Development Kit For Philips uCDragonQSG 5 1 Overview RVDK for Philips 2 2 consists of the software development tool chains compiler linker debugger and RealView ICE Micro Edition It enables you to write build and debug applications for Philips ARM architecture based RISC processors It is specifically designed for Philips microcontrollers and is not compatible with ARM microcontrollers from other vendors RVDK 2 2 supports the compilation of C and ARM Assembly source files and debugging on Philips ARM based processors exclusively RVDK is supported on Windows 2000 and Windows XP Professional operating systems only RealView Debugger v1 8 together with RealView ICE Micro Edition v1 1 has a user friendly graphic user interface that enables you to debug your embedded application programs and have complete control over the flow of the program execution so that you can quickly isolate and correct the errors For more details about RVDK For Philips 2 2 please refer to RealView
12. Running YL LPC2294 on RVDK 2 2 For Philips be referenced as well when the BCD file specifies where the internal flash is located By default installation directory all the processor specific FME files should be found under C Program Files ARM RVD Flash 1 8 7 windows The FME code will run to program the flash when you select the Flash Programming window in the RealView Debugger environment For more details about FME please refer to ARM s Application Note 110 Flash Programming with RealView Debugger EE Project Properties File View Help Description active configuration to use fed LED prj 4 PROJECT r Config Config Release k Config DebugRel q COMPILE thumb fal Active config Release COMPILE thumb_cpp Subdir rule Config_name A ASSEMBLE arm a IBI gCUSTOM default BUILD 5 4 1 Build Release Image for Flash Programming To build a flash image go to Target click Disconnect to disconnect the target connection first make JP3 ISP_EN CLOSE to enable ISP push the red Reset button to reset the board and make sure the debugger has stopped Please note the jumper setting and reset process is imperative to make sure the board is in a clean state before the flash programming Then go to Project toolbar next to it click Project Properties then select Configuration as seen above Change Active config from Debug to Release
13. VDD5V Voltage input 5 0V 3 Getting started 3 1 How to start YL LPC2294 This section introduces how to start YL LPC2294 1 Ensure proper jumper settings on the YL LPC2294 Development Board as below JP1 jumper 1 2 INTRE_BOOT boot from internal flash JP2 jumper open N A JP3 jumper open ISP Disabled JP4 jumper 1 2 EXT_POWER powered through USB port label reversed 2 Connect the RS 232 interface of your computer to the DB 9 RS 232 interface COM1 on YL LPC2294 Development Board using the included serial cable 3 Run the Windows based serial utility DNW included in the CD or you can download from Philips Website on a PC with the following setting 115 200 8 N 1 no flow control Please note USB Port functionality on the DNW is not yet available 4 The sample BIOS program has been pre programmed on the YL LPC2294 Development Board After DNW starts click Serial Port select Connect then push the red reset button on the board again When the BIOS starts to run all the LEDs blink the LCD module displays Philips LPC229x www semiconductors philips com and the DNW utility displays as follows uCDragonQSG Koninklijke Philips Electronics N V 2005 All rights reserved User Guide Revision 1 09 November 2005 8 of 24 Running YL LPC2294 on RVDK 2 2 For Philips Pris ene are YL LPC2294 Quick Start Guide DNF v0 504 CON 115200bps USB x MAR Serial
14. YL LPC2294 Quick Start Guide Running YL LPC2294 on RVDK 2 2 For Philips erase Revision 1 09 November 2005 User Guide jj Document information Info Content Keywords LPC2292 94 RVDK Flash Utility Microcontroller MCU Abstract This document describes how to run the YL LPC2294 Development Board on RealView Development Kit v2 2 for Philips tool chain environment PHILIPS YL LPC2294 Quick Start Guide E Semiconductors Revision history Running YL LPC2294 on RVDK 2 2 For Philips 20051109 Initial revision Contact information For additional information please visit http Avww philips com microcontrollers For sales office addresses please send an email to sales addresses www semiconductors philips com uCDragonQSG Koninklijke Philips Electronics N V 2005 All rights reserved User Guide Revision 1 09 November 2005 2 of 24 g Semiconductors YL LPC2294 Quick Start Guide 1 Introduction Running YL LPC2294 on RVDK 2 2 For Philips This YL LPC2294 Development Board Quick Start Guide provides General information about YL LPC2294 Development Board hardware features such as memory external peripheral configuration jumper setting packaging etc Brief introduction of ARM s RealView Development Kit RVDK version 2 2 for Philips and RealView ICE Micro Edition RVI ME Instructions on how to execute sample programs on the YL LPC2294 Development
15. bility or liability for the use of any of these products conveys no license or title under any patent copyright or mask work right to these products and makes no representations or warranties that these products are free from patent copyright or mask work right infringement unless otherwise specified Application information Applications that are described herein for any of these products are for illustrative purposes only Philips Semiconductors make no representation or warranty that such applications will be suitable for the specified use without further testing or modification 7 Trademarks uCDragonQSG All referenced brands product names service names and trademarks are the property of their respective owners Koninklijke Philips Electronics N V 2005 All rights reserved User Guide Revision 1 09 November 2005 22 of 24 g Semiconductors YL LPC2294 Quick Start Guide 8 References Running YL LPC2294 on RVDK 2 2 For Philips uCDragonQSG ARM RealView Development Kit For Philips Version 2 2 Getting Started Guide ARM Limited Sept 2005 ARM Application Note 110 Flash Programming With RealView Debugger ARM Limited April 2003 http www arm com ARM Application Note 142 Generating and Using BCD files with RealView Debugger ARM Limited Feb 2005 http Awww arm com ARM FAQ http Awww arm com ARM7TDMI S html Philips LPC2292 2294 User Manual Philips Semiconductor May 2005 htt
16. either build a loadable image Debug and execute on the external SRAM or change the setting in Active Config to Release in the Project Properties to build a flash image Release and use YL_LPC2294 BIOS sample program along with DNW utility to execute the program in external SRAM and or program and execute the code in external flash uCDragonQSG Koninklijke Philips Electronics N V 2005 All rights reserved User Guide Revision 1 09 November 2005 21 of 24 Philips Semiconductors YL LPC2294 Quick Start Guide Running YL LPC2294 on RVDK 2 2 For Philips 6 Disclaimers Life support These products are not designed for use in life support appliances devices or systems where malfunction of these products can reasonably be expected to result in personal injury Philips Semiconductors customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify Philips Semiconductors for any damages resulting from such application Right to make changes Philips Semiconductors reserves the right to make changes in the products including circuits standard cells and or software described or contained herein in order to improve design and or performance When the product is in full production status Production relevant changes will be communicated via a Customer Product Process Change Notification CPCN Philips Semiconductors assumes no responsi
17. k to load Release LED axf as seen from below screen A RVDEBUG lt LED gt ARM7TDMI S_0 ARM ARM USB Elle Edit view Target Project Build Debug Tools Help 0 ce S BAIA POAT OTs CE S 8 a 8 Fiese Find zle hy o source for context lt Unknowm gt oy x Click to Load C Philips RVD2294 lpc229x5ample_RVDK Philips_demo LED Release LED axf ARM7TDMI PC 0x0000003C i Image LED axf CLoad Not Loaded Project LED HSettin lt Saved gt Sources From Project 4 gt Process Map oi z Memory Accelerator Module Memory Map Control 0l MemoryMode User Flash Phase Locked Lom 4 A Dsm sre shele Lutiis c mf gt 4 Reor Hebu X LPC2294 v z dwarf2 0l I inc pDebugRel src LPC229x_lib c src Main c a io FCARM_CPP c progra l arm rvct programs 2 2 397 phil mcu win_32 l armce c w SRC CARM_CPP o 0BJ none CARM_CPP_FLAGS g dwarf2 cpp 01 pDebugRel FCTHUMB c progra l arm rvct programs 2 2 397 phil_mcu win_32 l a wman an CEAD CCC THT on CENT mana CTH WARS thimh e dmarf NI Koninklijke Philips Electronics N V 2005 All rights reserved User Guide Revision 1 09 November 2005 19 of 24 YL LPC2294 Quick Start Guide Philips Semiconductors E Running YL LPC2294 on RVDK 2 2 For Philips uCDragonQSG The Flash Memory Control Window will pop out automatically a
18. lash by BIOS This section will introduce how to download sample software into external flash on YL LP2294 development board 1 Once the BIOS program runs from DNW type in help to see a list of the commands and type in comload command under the prompt symbol gt and press Enter key uCDragonQSG Koninklijke Philips Electronics N V 2005 All rights reserved User Guide Revision 1 09 November 2005 10 of 24 Philips Semiconductors YL LPC2294 Quick Start Guide fe Running YL LPC2294 on RVDK 2 2 For Philips DNF vO0 504 COM1 115200bps USB x Serial Port USB Port Configuration Help DE FE FE FE FE FE FE FE FE FE FE FE FE FE FE FE FE FE FE FE FE FE FE FE FE HE HE TE HE HE HE HE HE HE HE HE HE EE BIOS for YL LPC2292 Board V3 66 Http wuw uCdragon com DERE HE FE FE FE FE FE FE FE FE FE HE HE HE HE HE HE HE HE HE HE HE HEHE HEHE HHH HHH HHH Nor Flash ID is 234B66BF SST39UF1661 Found Serial baud 115 266 Program save address 6x86666666 Program run address 6x81666666 show this list show system running clock download file by uart download file by uart and run program flash run program 2 Click Serial Port gt Transmit on the DNW then select LED_External bin Sample LED blink code on YL LPC2294 file to download from below LED Release LED_External bin When the download is complete message Received xxx bytes success will be shown as below DHF v0 504
19. lips fc LPC 2000 Flash Utility PHILIPS LPC2000 Flash Utility V2 2 2 Flash Programming Erase Blank Filename C Philips RVD2294 ipc229xS ample SO6 LF Blank Check Entire Device Selected Sectors Execute Code Upload to Flash Iv after Upload a Say Erase Compare Flash Manual Reset tae End Sector Device Device pr2292 z Read Part ID TAL Freq kHz 14746 Device ID Boot Loader ID m Communication Connected To Port COM1 v Use Baud Rate 115200 v Time Out sec 2 Use DTR ATS for Reset and v Boot Loader Selection Just use the setting above and make sure Use DTR RTS for Reset and Boot Loader Selection is checked The YL LPC2294 Development Board BIOS sample image can be found under YL_LPC229X_BIOS Release YL_LPC229X_BlOS hex Browse and select that file name under Flash Programming then click Update To Flash to program the BIOS into the LPC2294 internal flash You will see the file upload progress in the lower bar of the Flash Utility window When complete the bar will indicate File Upload Successfully Completed Once the flash program is finished make JP3 ISP_EN OPEN to disable ISP Reset the board The BIOS sample image will be executed and DNW should be seen as in Chapter 3 1 Warning Don t forget to CLOSE JP3 jumper to enable the ISP if you want to run the Philips ISP Flash Utility again 3 3 Program code into external F
20. ndow Koninklijke Philips Electronics N V 2005 All rights reserved User Guide Revision 1 09 November 2005 16 of 24 Philips Semiconductors YL LPC2294 Quick Start Guide al Running YL LPC2294 on RVDK 2 2 For Philips 5 3 Connect RVI ME to a Target Board Once the project is open click hyperlink Click to connect to a target The debugger will try to connect to the target board It will take a few seconds to connect to the board Once the connection is established the check box next to ARM7TDMI S should be checked and the screen is shown as below 2 RVDEBUG lt LED gt ARM7TDMI S_0 ARM ARM USB IN fie Edit view Target Project Build Debug Tools Help O sc S O OR HPHP HO t Xo OE ee e e File NO_SOURCE Find x Lief B o source for context lt Unknow gt oxi Click to Load C Philips RVD2294 lpc229xSample RVDK Philips demo LED Debug LED axf Type Value fad Connection Control USBO04 23 rvdebug brd JM ARNTIDEI S Pc 0x00000564 lt fed Image LED axf Help Load Not Loaded Project LED Nane Description Settin lt Saved gt R ARM ARM USB RealView ICE Micro Edition Sources From Project le 2 RVI ME ARM JTAG debug interface USB MARMITDMI ARMITDMI S on localhost 4 Process Map Ki gxi EI fo oo000669s Ri 00000001 a R2 oooo00Dc R3 0000000D amp O00000AC R5 00000C48 R6 00000001 R 00000000 Ri 00000000 R9 42CF6AD1 Rig NANNNNAN 4
21. on analog inputs AIN1 AIN2 6 P0 20 EINT3 I O Port PO of the microcontroller Alternative function External Interrupt EINT3 7 8 P3 28 AIN7 O Port P3 of the P3 29 AIN6 microcontroller Alternative function analog inputs AIN7 AIN6 NGCS_USER O CS3 Chip Select 3 10 BUF_OE O Output enable signal of the microcontroller 11 BUF_WE O WR signal of the microcontroller 12 BUF_nRESET O Reset Signal Output of YL LPC2292 13 34 ADDR1 ADDR22 I O Address line of the microcontroller 35 50 DATAO DATA15 O Data line of the microcontroller The other group of Extended User Pins on JP5 30 pins Pin Number Signal VO Description 1 2 3 4 5 GND Ground OV 6 P028 AIN1 T O Port PO of the microcontroller Alternative function Koninklijke Philips Electronics N V 2005 All rights reserved User Guide Revision 1 09 November 2005 7 of 24 Semiconductors YL LPC2294 Quick Start Guide Running YL LPC2294 on RVDK 2 2 For Philips analog inputs AIN1 AIN2 7 8 P3 29 P3 28 1 O Port P3 of the microcontroller 9 10 11 12 13 P2 27 P2 26 P2 25 O Port P2 of the P2 24 P2 23 microcontroller 14 15 16 17 18 1 P1 19 P1 25 P1 22 Port P1 and P2 of the 9 20 P1 21 P1 20 P1 17 microcontroller P0 22 21 P0 20 EINT3 I O Port PO of the microcontroller Alternative function External Interrupt EINT3 22 23 24 25 26 VDD3V3 Voltage input 3 3V 27 28 29 30
22. p Awww standardics philips com support techdocs microcontrollers pdf user_ manual pc2119 2129 2194 2292 2294 pdf Philips Application Note AN10356 Entering ISP from User Mode Philips Semiconductor Feb 2005 Koninklijke Philips Electronics N V 2005 All rights reserved User Guide Revision 1 09 November 2005 23 of 24 Philips Semiconductors YL LPC2294 Quick Start Guide Running YL LPC2294 on RVDK 2 2 For Philips 9 Contents 1 ntroduction sisssctcccassciescecterdectecensstenesncaseursnseanensace 3 5 RealView Development Kit For Philips 13 2 YL LPC2294 Development Board 3 5 1 OVENVICW sesope saaneina dan enoa aaia rata EE areae 13 24 YL LPC2294 Package specification 4 5 2 Getting started with RVDK eseeeeeeeeeeeee 13 2 2 Jumper Setting ccceccescsesecesseeeeessesseeeeeeeaseeees 4 53 Connect RVI ME to a Target Board 04 17 2 3 External Memory Banks c cccccccssssceseeecseees 5 54 Program Internal Flash using RVDK 17 24 External Memory Registers and Address Range 6 5 4 1 Build Release Image for Flash Programming 18 2 5 Extended User Pin Map cecscsceseseseceeeeeesesereeees 7 542 Program Internal Flash with RVDK sss 19 3 Getting Started ccssssssesseeseessensneeeseeseeeees 8 23 Build Images Eel MO me a 3 1 How to start YL LPC2294 ccccccccccccccccccecesees 8 6 Disclaimer wicieiiesiccsscnvecicceetercsrecescceset
23. p Non Volatile Memory 0x0002 0000 optional 128kB On Chip Non Volatile Memory 0x0000 0000 2 4 External Memory Registers and Address Range The following table shows the pre defined address ranges for the individual CS signals banks and the corresponding bus configuration registers Address Range Configuration Register 0 8000 0000 80FF FFFF BCFGO 8100 0000 81FF FFFF BCFG1 8200 0000 82FF FFFF BCFG2 8300 0000 83FF FFFF BCFG3 uCDragonQSG Koninklijke Philips Electronics N V 2005 All rights reserved User Guide Revision 1 09 November 2005 6 of 24 Philips Semiconductors YL LPC2294 Quick Start Guide uCDragonQSG 2 5 Running YL LPC2294 on RVDK 2 2 For Philips Extended User Pin Map YL LPC2294 provides a 50 pin connector CN3 which allows users to connect external devices to Philips LPC2294 MCU In addition to the VCC and ground signals all the 16 data lines DO D15 address lines A1 A22 Write Enable WE and Output Enable OE pins of LPC2294 and CS3 pin are routed out the connector The next Table provides an overview of the extended user pins Please refer to the Philips Data Sheet for more details on the functions and features of MCU signals and port pins Pin Number Signal 1 0 Description 1 2 3 VDD5V VDD3V3 Voltage input 5V Voltage GND input 3 38V Ground OV 4 5 P0 29 AIN2 O Port PO of the P0 28 AIN1 microcontroller Alternative functi
24. s below enter the crystal frequency on the board on YL LPC2294 board the frequency is 14 745 Mhz the Click Write will program the Release image LED axf to the internal flash of LPC2294 Remove the ISP_EN jumper press the red Reset button again to reset the board the code will run in the internal flash The blinking LEDs indicate that the code is running from SRAM in the debug mode At the time of writing there are some issues that flash programming will not complete if the wrong clock frequency is entered In the flash log Flash Programming complete never appears If that happens quit RealView Debugger and start all over again Fo Flash Memory Control Allon AllOff arite Erase Cancel Details Cancel All V Erase Block before Write V Verify Block after Write WV Use Current values for Unspecified data in block Flash Parameters Clock Frequency specify Hz KHz or MHz 114 75 lash Log Flash block 0 opened for modify Close Koninklijke Philips Electronics N V 2005 All rights reserved User Guide Revision 1 09 November 2005 20 of 24 philips Semiconductors YL LPC2294 Quick Start Guide al Running YL LPC2294 on RVDK 2 2 For Philips 5 5 Build Images for External Memory As mentioned earlier LED _External prj is the RVDK project for code running in either external flash Release or external SRAM Debug You can use this sample project to
25. se Pre connect r Description ARM JTAG debug interface USB Project Disabled WY False Shared False fi BoardChip nane 3 BoardChip name LPC2294 En Family seleet After the configuration you can close the Connection Properties window shown above and confirm to save the configuration While in the Connection Control window go to RVI ME right click then select Configure Device Information If no devices appear on the JTAG chain on the right side of the window click Auto Configure Scan Chain ARM7TDMI S should appear after a few seconds as shown below RVConfig C Program Files ARM RVD Core 1 8 848 phil_mcul win_32 pentium etc rvime rvc File Yiew Help Realiew ICE Micro Edition R eB Devices Scan Chain Configuration ARM TDMI S Advanced TDO TAPID Device ID Code IR Length Options Template Version 0 ARM7TDMI S Ox4F1FOFOF 4 1 0 0 TDI Auto Configure Scan Chain Pad Device JTAG Clock Speed __ Adaptive 250kHz 2MHz Koninklijke Philips Electronics N V 2005 All rights reserved User Guide Revision 1 09 November 2005 15 of 24 Pri Sad YL LPC2294 Quick Start Guide uCDragonQSG Running YL LPC2294 on RVDK 2 2 For Philips Once the connection setup is done you are ready to open the sample project and connect the target board through RealView Debugger Click Project select Open Project you can select
26. tenterstecnenees 22 3 2 Programming BIOS into Internal Flash 9 T Trademarks iii viisvsicecsivaicidcecssiceviccsucasdeseecdicccneanne 22 3 3 Program code into external Flash by BIOS 10 8 References 0 eecseecseecseecseecsteeseeesteeneeeneeeneeraeenaes 23 4 Function of YL LPC2294 BIOS sssssecsseeees 12 9 COMUCINS so eeeecis cscede cet cnceecssccesccessterestcncececessncvecntess 24 4 1 List of BIOS functions 1 eect eeeteeeeeeeeteereeee 12 uCDragonQSG Koninklijke Philips Electronics N V 2005 All rights reserved User Guide Revision 1 09 November 2005 24 of 24
27. then save the configuration of the Project Properties click Build or Rebuild to build the release image This will create the image that can be programmed into the internal flash uCDragonQSG Koninklijke Philips Electronics N V 2005 All rights reserved User Guide Revision 1 09 November 2005 18 of 24 Philips Semiconductors YL LPC2294 Quick Start Guide E uCDragonQSG Running YL LPC2294 on RVDK 2 2 For Philips 5 4 2 Program Internal Flash with RVDK Use the same procedure mentioned above to reconnect the target board If the Register window is not open on the RealVlew debugger go to View select Registers There are three sections Core Debug and LPC2294 which can be viewed on the registers window Select LPC2294 and the register window will be shown as below Boi x MemoryMode User Flash Memory Accelerator Module Memory Map Control 0l MemoryMode User Flash Phase Locked Loop Power Control VPE Divider Core Debug 4 LPC2294 Go to Memory Map and make sure Memory Mode is set to 0x01 or User Flash This is to ensure Memory Map Control register is set to User Flash Mode and interrupt vectors are not remapped and reside in internal flash For more details please refer to System Control Block chapter LPC229x User Manual Once the Memory Map register setting is done click hyper link Clic

Download Pdf Manuals

image

Related Search

Related Contents

ACS EXP-06E User's Manual    Manual Vibrador WVB 25 - W-Tec  TANGO6™ - Sig Sauer  Linha M3 c - Ascon S.p.A.  

Copyright © All rights reserved.
Failed to retrieve file