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...
Previous article:Some questions about MDK-NAND FLASH download
Next article:Real performance analysis of ARM7 and CORTEX M3 cores at high speed
- Popular Resources
- Popular amplifiers
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- STMicroelectronics discloses its 2027-2028 financial model and path to achieve its 2030 goals
- 2024 China Automotive Charging and Battery Swapping Ecosystem Conference held in Taiyuan
- State-owned enterprises team up to invest in solid-state battery giant
- The evolution of electronic and electrical architecture is accelerating
- The first! National Automotive Chip Quality Inspection Center established
- BYD releases self-developed automotive chip using 4nm process, with a running score of up to 1.15 million
- GEODNET launches GEO-PULSE, a car GPS navigation device
- Should Chinese car companies develop their own high-computing chips?
- Infineon and Siemens combine embedded automotive software platform with microcontrollers to provide the necessary functions for next-generation SDVs
- Continental launches invisible biometric sensor display to monitor passengers' vital signs
- Help, why can't this negative voltage output circuit work?
- HSPICE Tutorial
- The relationship between microcontroller instruction set and operating system
- Python 3.10 released with many improvements
- How to soft start a DC water pump
- Power H-bridge controller for 80W automotive DC motor
- First article: RVB2601 unboxing and initial test
- STM32MP157A-DK1 Review - 3. MPU functions: SPI, ADC, I2C
- ST MEMS Creative Competition Post 2 - Project Introduction and Planning
- AP6212 Firmware