Set the ISP to write data using the lpc2103 protocol.

Source: Internet
Author: User

Before the holiday, I was so glad to have borrowed an easyarm development platform from me that I could finally develop something for fun. Who knows there is no JTAG, with serial port. Then I asked him for a JTAG. He said that JTAG can be used without it. I went to the e-market to buy a serial port. When you are preparing to develop a program for fun at home on holidays, you can download the JTAG program for all the tutorials. When I try to use the flash burning software in the CD for writing, I don't get any results. That's depressing! Later, the Board was not moved at home. When I came to school, I asked my classmates to tell him that JTAG would not work. He said that the Board was also sent to him by a friend who said yes. Then let me adjust it. With the love for embedded. I picked up the board again. Finally, today I successfully entered a piece of code. Let's talk about this. Let's take a look at the problem and how to solve it.

 

Flash magic only supports hex hexadecimal file download. Therefore, you must generate a HEX file when using ads for ARM development. The specific method is as follows:

Deubginflash settings ----> targets

S

Because of the special mod of the ARM7 kernel structure, when the ARM7 system is powered on or reset, several startup modes are selected by configuring the pin status.

Generally, based on the different chips of various companies, it generally includes in-chip Flash Boot Mode, In-chip RAM boot mode, and external memory boot.

Mode. In addition, many of the 7.7 chips now support in-chip Boot programs in System Programming (ISP) and Application Programming (IAP ),

How to enter the ISP or IAP Status After resetting is determined by configuring the pin status. Therefore,

Except the power supply, crystal oscillator, JTAG, and reset constitute the four basic unit circuits of the minimum system, if the minimum system needs to work properly,

You also need to add the boot selection circuit according to the chip's special mod, which is different from the ordinary 8-bit single chip microcomputer.

For the lpc2103 or lpc2148, its flash and RAM are both built in and cannot be expanded externally,

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

The system starts from flash normally. When the system is reset, if the limit 14 Port is low, it enters the ISP status. If the limit 14 Port is high,

Boot from flash normally. The hardware is implemented by Jumper, as shown in. This part of the circuit is very simple, one pull-up resistor, one jumper,

However, it is essential for the entire system. If this part of the circuit is missing, the status of the system will be unknown after the power-on of the lpc2103 or lpc2148,

As a result, the system cannot work normally. The jumper is disconnected normally.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.