Cortex M0 LPC1114 program download failed

Publisher:温暖心绪Latest update time:2016-12-10 Source: eefocusKeywords:cortex  lpc1114 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

LPC1114 can automatically ISP download programs. Because before it leaves the factory, the bootloader program is solidified in the chip, and the chip leads to the boot pin. The bootloader is used to guide the microcontroller to execute the task of downloading the program or executing the existing program in the chip. This judgment is determined by the high and low levels of the external boot pin.

After the microcontroller is powered on, the bootloader program will be run first. This program relies on the internal IRC clock to work. The bootloader first checks the level of the boot pin. If it is low, it will execute the download task and wait for the program to be downloaded; if it is high, it will execute the existing user program in the chip. Simple!

Manual download:

According to the principle of bootloader, first connect the boot pin to ground, then power on the microcontroller, and then use flash magic to download the program. After downloading the program, disconnect the boot pin from the ground, then power on, and the program just downloaded will run.

Automatic Download:

Connect the DTR of the serial port to the reset pin of the microcontroller, and connect the RTS to the boot pin to realize automatic ISP. Find the program to be downloaded and directly click the flash magic download button.

When downloading manually, the MCU and the computer serial port are connected by 3 wires:
MCU Computer serial port
RXD—–TXD
TXD—–RXD
GND—–GND

When downloading automatically, the MCU and the computer serial port are connected with 5 lines
MCU Computer serial port
RXD——-TXD
TXD——-RXD
GND——-GND
RESET——-DTR
BOOT——-RTS

Generally, download failures are caused by not connecting DTR and RTS. On Ration's lpc1114 development board, the ISP button is used to connect DTR and RTS, so you have to press it to download the program. Or you can use the manual download method.

When running the program, especially the serial port program, in order to prevent errors, disconnect the lines connecting DTR, RTS and the microcontroller. On the Ration lpc1114 development board, flip up the ISP switch.


Keywords:cortex  lpc1114 Reference address:Cortex M0 LPC1114 program download failed

Previous article:LPC1114 system timer systick
Next article:LPC1114 general timer - timing function

Recommended ReadingLatest update time:2024-11-16 21:31

ARM Cortex-M core interrupt/exception system, interrupt priority/nesting details
question When I was using the STM32F3 chip recently, I encountered such a problem: if the frequency of external interrupts is fast enough, and the previous interrupt has not been processed, how to handle the new interrupt? During debugging, I found that there are interrupts with suspended, activated, disabled and othe
[Microcontroller]
ARM Cortex-M core interrupt/exception system, interrupt priority/nesting details
Keil IAR - Cortex M3 debugging problems and solutions (1)
I saw an article and reproduced it below. In fact, it is not only STM32, but other chips and even other IDEs can also be used as references. Common problems and solutions during STM32 debugging 1. After setting the emulator type under the "Debug tab", it prompts "No ULINK Device found." when downloading the program
[Microcontroller]
LM3S9B96 designed 32-bit Cortex-M3 MCU development and design
This article introduces the LM3S9B96 MCU Cortex-M3 processor block diagram and the main features, block diagram, circuit diagram and expansion board circuit diagram of the Stellaris® LM3S9B96 development board. LM3S9B96 is TI's 32-bit MCU based on ARM Cortex-M3, with the price and cost of previous 8-bit and 16-
[Microcontroller]
LM3S9B96 designed 32-bit Cortex-M3 MCU development and design
How to reset LPC1114 in software
LPC1114 software reset, in the program, where reset is required, add NVIC_SystemReset(); this statement. The NVIC_SystemReset() function is located in the core_m0.h file and can be used as long as the lpc11xx.h file is included in the header file. /** \brief System Reset The function initiates a system reset request t
[Microcontroller]
How to reset LPC1114 in software
STM32_CorTex-M3 bit band operation understanding
STM32 supports bit-band operation (bit_band), and bit-band is implemented in two areas. One is the lowest 1MB range of the SRAM area, and the second is the lowest 1MB range of the on-chip peripheral area. In addition to being able to use the addresses in these two areas like ordinary RAM, they also have their own "bit
[Microcontroller]
STM32_CorTex-M3 bit band operation understanding
Pi Zi Heng Embedded: ARM Cortex-M Files (1) - Source Files (.c/.h/.s)
  As we all know, embedded development is a low-level development, and the main programming languages ​​are C and assembly. So the source files to be discussed in this article mainly refer to C files and assembly files.   Although in normal development, we only pay attention to the .c/.h/.s source files we created,
[Microcontroller]
ARM Cortex-M3 Study Notes (4-3)
I'm studying ARM Cortex-M3 recently, and I found a book called "An Definitive Guide to The ARM Cortex-M3" which is considered a classic. This series of study notes is actually the reading notes I made while studying this book. Data processing instructions Cortex-M3 supports a lot of data processing instructions. He
[Microcontroller]
ARM Cortex-M3 Study Notes (4-3)
Transplantation of μCOSII on ARM processor based on Cortex-M3 core
At present, embedded technology has been widely used in various fields such as automotive electronics, wireless communications, and digital products. Embedded operating system and embedded processor technology are developing rapidly. Typical representatives of embedded operating systems include μCOS-II, μClinux, Wi
[Microcontroller]
Transplantation of μCOSII on ARM processor based on Cortex-M3 core
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
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号