LPC2103 does not work after downloading the program.

Publisher:WhisperingWindsLatest update time:2016-08-13 Source: eefocusKeywords:LPC2103 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
       Due to the special MOD of the ARM7 core structure, when the ARM7 system is powered on or reset, several startup modes are selected by configuring the state of the pins.

Usually, depending on the different series of chips from different companies, it generally includes on-chip Flash startup mode, on-chip RAM startup mode, and external memory startup mode.

mode, etc. In addition, many ARM7 chips now support on-chip Boot loader to implement In-System Programming (ISP) and In-Application Programming (IAP).

How to enter ISP or IAP state after reset needs to be determined by the state of the configuration pin.

In addition to the four basic unit circuits of the minimum system, namely power supply, crystal oscillator, jtag and reset, if the minimum system is to work properly,

It is also necessary to add a startup selection circuit according to the special MOD of the chip, which is different from the ordinary 8-bit microcontroller.

      For LPC2103 or LPC2148, its Flash and Ram are built-in and cannot be expanded with external memory.

After power-on or reset, the system selects whether to enter the ISP state or

The system starts from Flash normally. When the system is reset, if the P0.14 port is low, it enters the ISP state. If the P0.14 port is high,

Normally boot from Flash. This is achieved in hardware through jumpers, as shown in the figure below. This part of the circuit is very simple, 1 pull-up resistor, 1 jumper,

But it is essential for the whole system. If this part of the circuit is missing, LPC2103 or LPC2148 will enter an unknown state after powering on.

The system cannot work properly. In normal operation, the jumper is disconnected.

With some corrections I finally got my board to work!

1. But I have to inform you that  I downloaded a LPC2103 program from www.icdev.com.cn/bbs  , but it didn't work. I was so angry that I thought there was something wrong with my board. I was really confused the first time I tried it. In the end, I used the program that came with KEIL to download it and it worked.

2. H-JTAG 5.0 is really bad! When I wrote the program once with the write address set to 0x0, it could no longer recognize LPC2103 (so I changed the CPU twice. I changed it too many times and broke two wires on the board. They were too thin and had to be scrapped.) It said UNKNOW!!!!! Later I changed to version 4.1, and this problem did not occur. I didn't have to reset it manually when writing the program. I don't know what it upgraded, but it is not easy to use.

3. At first I thought the startup program was missing. I understood that you should not start the program during simulation, but you should start the program when working offline. I found it strange that there was no such program in STARTUP.S! Finally, after I burned it in and reset it, I realized that it was there.

4. I have never used KEIL and I don't know OUT PUT HEX START ADR 0X0-07FFF (LPC2103). I started to write 0x1-0x7. The compiled program was only a few dozen bytes. I felt strange! How could it be so small? It turned out that I made a mistake. It was because last time "the address was set to 0x0, and the program was burned once, and it could no longer recognize LPC2103." I was afraid and dared not set it to 0x0. It was really infuriating. Finally, the clouds and fog cleared and the sun came out. The foreigner was also a water. P0.14 didn't have a pull-up. Even the reset didn't have a pull-up. Let alone his program. I burned it into lpc2103 and it didn't work at all. I don't know why there is a 10K binary file. He deceived us...

Keywords:LPC2103 Reference address:LPC2103 does not work after downloading the program.

Previous article:Some questions about MDK-NAND FLASH download
Next article:Real performance analysis of ARM7 and CORTEX M3 cores at high speed

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号