Philips LPC2138 dimensions Troubleshooting

Page 14

Troubleshooting

The flash boot loader code is executed every time the CPU is powered or reset. The loader can execute the ISP command handler or the user application code. P0.14 is sensed on a rising edge on the RST (CPU reset) pin. If a low level is detected, ISP command handler starts and takes over control of the CPU after reset. If there is no request for the ISP command handler execution (a high-level detected), a search is made for a valid user program. If a valid user program is found then the execution control is transferred to it. Refer to CPU User Manual for more details on CPU startup mode.

Normally, jumper J25 is set for ‘User mode’ by default. Boot-loader mode should be normally selected only for troubleshooting or when the user explicitly wants to use Boot-loader mode. J16 must be removed when Boot- loader mode is selected (see J16 description for more details).

There was a case, where the code was programmed in the flash, which disabled the JTAG debug port shortly after reset. Due to the Philips implementation, the debugger cannot take over control over the CPU immediately after reset, but a part of code is executed before the CPU can be stopped by the debugger. In this particular case, the application disabled JTAG port before the debugger took control over the CPU and the debugger could not connect to the CPU at all. Thereby, note that if the debugger cannot connect to the CPU (winIDEA reports “Cannot stop CPU”), it may be due to bad program in the flash. In this case, Boot-loader mode has to be selected (in order for the CPU to start executing ISP command handler), in which the debugger can always stop the program and take over control over the CPU. Then a new valid program can be programmed in the flash or flash erased. Then the User mode can be used again.

© iSYSTEM, December 2005

14/16

Image 14
Contents Philips LPC2138 Target Board User’s GuideDimensions V1.4Contents View of the ITLPC2138 IntroductionDescription Block Diagram Description Components ListName J21 16 Pin LCD Connector see connectors Power SupplyJumper & Connector Descriptions J12 Manufacturing purpose connections3-pinserial connector UART0 J14 ConnectorsDB9 male connector UART1 P5 Pin No. SymbolSymbol 16-pinLCD connector J2120-pinJTAG Debug Connector P3 Pin NoFigure 4 Expansion connectors 38-pinMictor JTAG Debug & ETM Trace Connector P2CPU expansion connectors Schematic 10/16Licensing the on-boardintegrated debugger 11/16Use of the on-boardintegrated debugger Use of an external debugger Setting up a debug environment for the first timeTroubleshooting 15/16 iSYSTEM. All rights reserved 16/16
Related manuals
Manual 13 pages 47.16 Kb