Detailed explanation of the meaning of the five states of FLASH_Status in STM32

Publisher:SereneNatureLatest update time:2018-09-11 Source: eefocusKeywords:STM32  FLASH_Status Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Get status: FLASH_Status FLASH_GetStatus(void);

The return value is defined by the enumeration type.


 typedef enum

   FLASH_BUSY = 1, //Busy
   FLASH_ERROR_PG, //Programming error
   FLASH_ERROR_WRP, //Write protection error
   FLASH_COMPLETE, //Operation completed
   FLASH_TIMEOUT //Operation timeout
 } FLASH_Status;


Keywords:STM32  FLASH_Status Reference address:Detailed explanation of the meaning of the five states of FLASH_Status in STM32

Previous article:STM32 implements one of the IAP functions
Next article:Detailed explanation of reading and writing flash in STM32

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

How to port uCGUI to STM32, see here!
Part 1: Before UCGUI Porting Before porting, you must first understand the file structure of the UCGUI 3.98 source code downloaded from the Internet. There are three folders in the UCGUI 3.98 source code: 1) The "tool folder" is used to use some uCgui host programs, basically fonts and template viewing. 2) Und
[Microcontroller]
Detailed explanation of GPIO in STM32 learning
GPIO: STM32 has 3 (64-pin) IO ports, namely PA, PB, and PC. The IO ports of STM32 can be configured into 8 modes by software: 1. Input floating 2. Input pull-up 3. Input drop-down 4. Analog Input 5. Open drain output 6. Push-pull output 7. Push-pull multiplexing function 8. Open-drain multiplexing
[Microcontroller]
stm32 tick timer (4): tick timer priority setting
The only thing left to talk about last time is the tick timer priority setting function NVIC_SetPriority. The details of this function are as follows static __INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) {   if(IRQn 0) {     SCB- SHP = ((priority (8 - __NVIC_PRIO_BITS)) & 0xff); } * set Priority f
[Microcontroller]
stm32 tick timer (4): tick timer priority setting
A problem that bothered me for two days: stm32 serial communication
Problem description: The program is "same", there is no problem in compiling, but the functions cannot be implemented and cannot be echoed. Explanation: USART1 baud rate setting failed But the USART1 initialization routine is "ok". 1. My friend thinks there is something wrong with the way I created my project, but
[Microcontroller]
A problem that bothered me for two days: stm32 serial communication
stm32_timer basic timer configuration and light flashing
There are a total of 11 timers in STM32, including 2 advanced control timers, 4 ordinary timers and 2 basic timers, as well as 2 watchdog timers and 1 system tick timer. TIM1 and TIM8 are advanced timers that can generate three pairs of PWM complementary outputs, and are commonly used to drive three-phase motors. The
[Microcontroller]
stm32_timer basic timer configuration and light flashing
stm32 common IO port simulation iic timing
1.Using the ordinary IO port of stm32 to simulate the iic timing, you can use fewer IO ports to implement the iic function, which has great advantages in practical use. 2. The IO of stm32 can be set to push-pull or open-drain output mode. In open-drain output, if a pull-up resistor is provided, data can be transmitted
[Microcontroller]
STM32 development board capacitive touch screen driver, single point effective
STM32 development board capacitive touch screen driver, single point effective   Header file touch.h: u8 ft5x0x_read_data(void); void ft5x0x_i2c_init(void);   struct _ts_event {     u16    x1;     u16 y1;     u16    x2;     u16 y2;     u16    x3;     u16 y3;     u16 x4;     u16    y4;     u16 x5;     u16    y5;     u8
[Microcontroller]
STM32 MCU GPIO register
Each GPIO port has two 32-bit configuration registers (GPIOx_CRL, GPIOx_CRH) to control the high and low eight bits of each port respectively. If the IO port is 0-7, write the CRL register, if the IO port is 8-15, write the CRH register, two 32-bit data registers (GPIOx_IDR, GPIOx_ODR), one is read-only as input data r
[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号