ISP and IAP programming of microcontroller

Publisher:Yinyue1314Latest update time:2018-08-20 Source: eefocusKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

ISP: In-system programming. ISP generally programs the Flash memory inside the microcontroller through a serial programming interface dedicated to the microcontroller.

IAP: In-Application Programming (IAP) is a programming mode applied to Flash program memory. It can read/write another section of program Flash space by calling a specific IAP program when the application is running normally. It can even control the read/write operation of a certain section, a certain page or even a certain byte, which brings greater flexibility for data storage and field upgrades of firmware.

      If the IAP program is damaged, the product must be returned to the factory to re-program, which is very troublesome and very time-consuming and costly. To meet such requirements, STM32 automatically sets the first 4 pages of the user Flash area as write protection while implementing read protection on the Flash area, which can effectively ensure that the IAP program area will not be accidentally damaged.

Difference: ISP generally programs the Flash memory inside the microcontroller through a dedicated serial programming interface for the microcontroller, while IAP technology maps the Flash memory into two storage bodies from a structural perspective. When the user program on one storage body is running, the other storage body can be reprogrammed, and then the control is transferred from one storage body to another. The implementation of ISP generally requires very little external circuit assistance, while the implementation of IAP is more flexible. It can usually use the serial port of the microcontroller to connect to the RS232 port of the computer to program the internal memory through a specially designed firmware program.



Keywords:MCU Reference address:ISP and IAP programming of microcontroller

Previous article:Memory Problems of 51 MCU
Next article:STC89C52MCU--System reset by software

Recommended ReadingLatest update time:2024-11-16 17:56

A must-read for beginners (STC89C52) A simple implementation of a single-chip Bluetooth four-wheeled car that can track and avoid obstacles
1. Material selection            1. L289 drive motor x2 2.1.5V battery (you can buy rechargeable batteries, I have used dozens of batteries!!!) I use 8 1.5v batteries to form a 12v battery to power 4 motors separately, and another 3 1.5v batteries to power the microcontroller. 4.5v is similar to 5v. 3. Base plate plus
[Microcontroller]
PIC Microcontroller Application Questions and Answers
Introduction: PIC Microcontroller Application Questions and Answers 1. How to choose the crystal in the PIC microcontroller oscillation circuit? For a high-reliability system design, the choice of crystal is very important, especially for systems with sleep wake-up (often using low voltage for low power consumption)
[Microcontroller]
STC MCU IO pin damage dynamic self-test program
/*---------------------------------------------------------         STC MCU IO pin damage dynamic self-test program HotPower@126.com 2005.6.6 at Dayanta Village Team Headquarters in Xi'an ----------------------------------------------------------*/ #include #include #include #include #include #pragma NO
[Microcontroller]
A summary of AVR microcontrollers provided by the master
1. The AVR document requires that interrupts should not be nested, and only one interrupt can be executed after the current one; 2. When the ADC is sampling, there is an external pull-up of 51K, the circuit is open, and the measured voltage value is 5V (the working voltage is 5V), which means that the input impedance
[Microcontroller]
A summary of AVR microcontrollers provided by the master
The composition of PIC8-bit microcontroller source program
    The source program of the PIC series microcontroller refers to the program written in the mnemonic instructions of the PIC (assembly language program). Here we will briefly introduce the format requirements of the PIC source program and its establishment or writing.   Generally speaking, there is no unified forma
[Microcontroller]
51 microcontroller controls the USB host bottom driver of SL811HS
Introduction Devices based on USB interface are easy to use and cost-effective, so they have been widely used in people's work and life, such as U disk, mobile hard disk, optical drive, USB camera, USB mouse and keyboard, etc. At the same time, the 51 series of microcontrollers are known for their Mature technology a
[Microcontroller]
Hardware Design of Single Chip Microcomputer
Basic theory Basic theoretical knowledge includes analog circuits, digital circuits and C language knowledge. Analog circuits and digital circuits are abstract subjects, and it takes some effort to learn them well. Before you learn single-chip microcomputers, if you feel that the foundation of analog circuits and digi
[Microcontroller]
MCU LCD display program
MCU LCD display program Hardware circuit: 51 minimum system, no bus mode, direct I/O form, including matrix keyboard, 1602 LCD, a digital tube, 4 LEDs, buzzer, etc. //Complete modified version of single chip LCD stopwatch calculator It can realize the switch between two functions, and other functions
[Microcontroller]
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号