F020 online upgrade program

Publisher:EnchantedWishLatest update time:2016-07-01 Source: eefocusKeywords:F020 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

It is divided into three major CODE storage areas:
   upgrade program area + user program area + user Main entry address storage area
 
Reset 0x0000-0x0003 address to save LJMP main command
For example,
C:0x0000 02F741 LJMP STARTUP1(C:F741)
0x0000 – 0x0003 stores 02F741, where 02 is the LJMP command code, and F741 is the jump address (main), which is actually not the address of main. Before main, it also protects the stack initialization code (you can see it through assembly).
 
The addresses after 0x0003 are various interrupt addresses. For example, the address of the SMBUS interrupt function
void SMBUS_ISR (void) interrupt 7
{
} SMBUS_ISR in your program is stored at 0x003B. A program is actually composed of interrupt vector + user code program. The interrupt vector is in the first sector. For KEIL, unless the function address is specifically specified, the compiler will automatically assign the function address after the program is written. That is to say, the address in the interrupt vector may change after the modification and compilation. For KEIL, the address of the program code can be specified, but this address is the user code address. For example, in Option For Target -àBL Loate -à code Range 0XEA00-0XFDFF  Actual code area: Interrupt vector (first sector) + 0XEA00-0XFDFF

 


 

 



Keywords:F020 Reference address:F020 online upgrade program

Previous article:Let’s talk about IAP upgrades in depth
Next article:Digital PID algorithm

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号