stm32 online upgrade jump function

Publisher:leader4Latest update time:2017-10-30 Source: eefocusKeywords:stm32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. Function:

Used to jump between programs;

2. Examples


typedef void(*pFunction)(void);

u32 JumpAddress;

pFunction Jump_To_Application;

void GotoAPPMain(void)

{

   JumpAddress = *(__IO uint32_t*) (ApplicationAddress + 4);

   Jump_To_Application = (pFunction) JumpAddress;

   __set_MSP(*(__IO uint32_t*) ApplicationAddress);

   Jump_To_Application();

}

3. Explanation

1. ApplicationAddress is the starting address of the defined program storage;


Keywords:stm32 Reference address:stm32 online upgrade jump function

Previous article:STM32 online upgrade summary
Next article:STM32 character sending function notes

Recommended ReadingLatest update time:2024-11-16 15:36

STM32-Read protection function and clear read protection function settings
1. STM32 protection measures for internal Flash     All STM32 chips provide Flash protection to prevent illegal access to the Flash - write protection and read protection.    1) Read protection, also known as "encryption", is applied to the entire Flash storage area. Once Flash read protection is set, the built-in
[Microcontroller]
Basic knowledge points about C language in STM32 learning
C language is an essential basic knowledge in the development of microcontrollers. Here are some basic knowledge points of C language that you will encounter in STM32 learning. 01 Bit operations Below we first explain several bit operators, and then explain the techniques for using bit operations. C language su
[Microcontroller]
stm32 startup sequence and system clock settings
1. The startup file startup_stm32f10x_hd.s of stm32 The startup file is the first assembly program to be run after the processor is reset. Before running the C language code, it is necessary to assemble a suitable environment for the C language. The functions of the startup file are mainly divided into: Initializ
[Microcontroller]
Characteristics of STM32 DMA
DMA features of STM32:    Each channel is directly connected to a dedicated hardware DMA request, and each channel also supports software triggering. These functions are configured through software.    Priority among the seven requests can be set programmatically by software (there are four levels: very high, high
[Microcontroller]
Characteristics of STM32 DMA
STM32 study notes - serial port interrupt receiving indefinite data buff
Today, let's talk about how to receive indefinite length byte data on the STM32 microcontroller. Since the STM32 microcontroller has an IDLE interrupt, this interrupt can be used to receive indefinite length byte data. Since the STM32 microcontroller belongs to an ARM microcontroller, the method in this article is als
[Microcontroller]
STM32 study notes - serial port interrupt receiving indefinite data buff
High torque permanent magnet synchronous motor drive system based on STM32 microcontroller
0 Introduction The high-torque permanent magnet synchronous motor direct drive eliminates the disadvantages of low efficiency, frequent maintenance, large noise and rotational inertia caused by the mechanical structure by removing the complex mechanical transmission mechanism. It has a series of outstanding advantag
[Microcontroller]
High torque permanent magnet synchronous motor drive system based on STM32 microcontroller
STM32 firmware library file tree and detailed structure
STM32 firmware library file tree and detailed composition (library version: STM32F10x_StdPeriph_Lib_V3.5.0) After the library is decompressed, all folders are structured as follows: ///////////////////////////////////////////////////// ///////////////////////////////////////////////
[Microcontroller]
STM32 firmware library file tree and detailed structure
STM32 FSMC Summary
background During DP development, the DP chip and the ARM chip need to communicate. Generally, there are two ways: 1) IO port (bus) mode for communication; 2) FSMC-memory mapping method for communication; The previous development was done using the first method on the F103 chip. Now we have switched to the F4 plat
[Microcontroller]
STM32 FSMC Summary
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号