2481 lines
158 KiB
Plaintext
2481 lines
158 KiB
Plaintext
ARM GAS /tmp/ccYB9eBD.s page 1
|
||
|
||
|
||
1 .cpu cortex-m3
|
||
2 .eabi_attribute 20, 1
|
||
3 .eabi_attribute 21, 1
|
||
4 .eabi_attribute 23, 3
|
||
5 .eabi_attribute 24, 1
|
||
6 .eabi_attribute 25, 1
|
||
7 .eabi_attribute 26, 1
|
||
8 .eabi_attribute 30, 1
|
||
9 .eabi_attribute 34, 1
|
||
10 .eabi_attribute 18, 4
|
||
11 .file "stm32f1xx_hal_flash.c"
|
||
12 .text
|
||
13 .Ltext0:
|
||
14 .cfi_sections .debug_frame
|
||
15 .section .text.FLASH_Program_HalfWord,"ax",%progbits
|
||
16 .align 1
|
||
17 .arch armv7-m
|
||
18 .syntax unified
|
||
19 .thumb
|
||
20 .thumb_func
|
||
21 .fpu softvfp
|
||
23 FLASH_Program_HalfWord:
|
||
24 .LVL0:
|
||
25 .LFB76:
|
||
26 .file 1 "Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c"
|
||
1:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
2:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ******************************************************************************
|
||
3:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @file stm32f1xx_hal_flash.c
|
||
4:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @author MCD Application Team
|
||
5:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief FLASH HAL module driver.
|
||
6:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * This file provides firmware functions to manage the following
|
||
7:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * functionalities of the internal FLASH memory:
|
||
8:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * + Program operations functions
|
||
9:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * + Memory Control functions
|
||
10:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * + Peripheral State functions
|
||
11:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** *
|
||
12:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** @verbatim
|
||
13:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ==============================================================================
|
||
14:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ##### FLASH peripheral features #####
|
||
15:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ==============================================================================
|
||
16:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** [..] The Flash memory interface manages CPU AHB I-Code and D-Code accesses
|
||
17:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** to the Flash memory. It implements the erase and program Flash memory operations
|
||
18:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** and the read and write protection mechanisms.
|
||
19:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
20:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** [..] The Flash memory interface accelerates code execution with a system of instruction
|
||
21:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** prefetch.
|
||
22:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
23:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** [..] The FLASH main features are:
|
||
24:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (+) Flash memory read operations
|
||
25:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (+) Flash memory program/erase operations
|
||
26:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (+) Read / write protections
|
||
27:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (+) Prefetch on I-Code
|
||
28:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (+) Option Bytes programming
|
||
29:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
30:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
31:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ##### How to use this driver #####
|
||
32:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ==============================================================================
|
||
ARM GAS /tmp/ccYB9eBD.s page 2
|
||
|
||
|
||
33:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** [..]
|
||
34:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** This driver provides functions and macros to configure and program the FLASH
|
||
35:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** memory of all STM32F1xx devices.
|
||
36:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
37:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (#) FLASH Memory I/O Programming functions: this group includes all needed
|
||
38:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** functions to erase and program the main memory:
|
||
39:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Lock and Unlock the FLASH interface
|
||
40:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Erase function: Erase page, erase all pages
|
||
41:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Program functions: half word, word and doubleword
|
||
42:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (#) FLASH Option Bytes Programming functions: this group includes all needed
|
||
43:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** functions to manage the Option Bytes:
|
||
44:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Lock and Unlock the Option Bytes
|
||
45:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Set/Reset the write protection
|
||
46:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Set the Read protection Level
|
||
47:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Program the user Option Bytes
|
||
48:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Launch the Option Bytes loader
|
||
49:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Erase Option Bytes
|
||
50:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Program the data Option Bytes
|
||
51:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Get the Write protection.
|
||
52:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Get the user option bytes.
|
||
53:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
54:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (#) Interrupts and flags management functions : this group
|
||
55:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** includes all needed functions to:
|
||
56:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Handle FLASH interrupts
|
||
57:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Wait for last FLASH operation according to its status
|
||
58:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Get error flag status
|
||
59:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
60:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** [..] In addition to these function, this driver includes a set of macros allowing
|
||
61:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** to handle the following operations:
|
||
62:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
63:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (+) Set/Get the latency
|
||
64:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (+) Enable/Disable the prefetch buffer
|
||
65:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (+) Enable/Disable the half cycle access
|
||
66:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (+) Enable/Disable the FLASH interrupts
|
||
67:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (+) Monitor the FLASH flags status
|
||
68:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
69:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** @endverbatim
|
||
70:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ******************************************************************************
|
||
71:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @attention
|
||
72:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** *
|
||
73:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * <h2><center>© Copyright (c) 2016 STMicroelectronics.
|
||
74:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * All rights reserved.</center></h2>
|
||
75:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** *
|
||
76:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * This software component is licensed by ST under BSD 3-Clause license,
|
||
77:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * the "License"; You may not use this file except in compliance with the
|
||
78:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * License. You may obtain a copy of the License at:
|
||
79:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * opensource.org/licenses/BSD-3-Clause
|
||
80:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** *
|
||
81:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ******************************************************************************
|
||
82:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
83:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
84:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Includes ------------------------------------------------------------------*/
|
||
85:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #include "stm32f1xx_hal.h"
|
||
86:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
87:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** @addtogroup STM32F1xx_HAL_Driver
|
||
88:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @{
|
||
89:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
ARM GAS /tmp/ccYB9eBD.s page 3
|
||
|
||
|
||
90:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
91:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #ifdef HAL_FLASH_MODULE_ENABLED
|
||
92:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
93:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** @defgroup FLASH FLASH
|
||
94:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief FLASH HAL module driver
|
||
95:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @{
|
||
96:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
97:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
98:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Private typedef -----------------------------------------------------------*/
|
||
99:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Private define ------------------------------------------------------------*/
|
||
100:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** @defgroup FLASH_Private_Constants FLASH Private Constants
|
||
101:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @{
|
||
102:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
103:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
104:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @}
|
||
105:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
106:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
107:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Private macro ---------------------------- ---------------------------------*/
|
||
108:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** @defgroup FLASH_Private_Macros FLASH Private Macros
|
||
109:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @{
|
||
110:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
111:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
112:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
113:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @}
|
||
114:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
115:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
116:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Private variables ---------------------------------------------------------*/
|
||
117:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** @defgroup FLASH_Private_Variables FLASH Private Variables
|
||
118:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @{
|
||
119:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
120:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Variables used for Erase pages under interruption*/
|
||
121:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** FLASH_ProcessTypeDef pFlash;
|
||
122:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
123:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @}
|
||
124:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
125:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
126:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Private function prototypes -----------------------------------------------*/
|
||
127:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** @defgroup FLASH_Private_Functions FLASH Private Functions
|
||
128:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @{
|
||
129:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
130:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** static void FLASH_Program_HalfWord(uint32_t Address, uint16_t Data);
|
||
131:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** static void FLASH_SetErrorCode(void);
|
||
132:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** extern void FLASH_PageErase(uint32_t PageAddress);
|
||
133:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
134:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @}
|
||
135:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
136:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
137:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Exported functions ---------------------------------------------------------*/
|
||
138:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions FLASH Exported Functions
|
||
139:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @{
|
||
140:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
141:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
142:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions_Group1 Programming operation functions
|
||
143:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Programming operation functions
|
||
144:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** *
|
||
145:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** @verbatim
|
||
146:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** @endverbatim
|
||
ARM GAS /tmp/ccYB9eBD.s page 4
|
||
|
||
|
||
147:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @{
|
||
148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
149:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
150:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
151:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Program halfword, word or double word at a specified address
|
||
152:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @note The function HAL_FLASH_Unlock() should be called before to unlock the FLASH interface
|
||
153:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * The function HAL_FLASH_Lock() should be called after to lock the FLASH interface
|
||
154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** *
|
||
155:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @note If an erase and a program operations are requested simultaneously,
|
||
156:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * the erase operation is performed before the program one.
|
||
157:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** *
|
||
158:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @note FLASH should be previously erased before new programmation (only exception to this
|
||
159:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * is when 0x0000 is programmed)
|
||
160:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** *
|
||
161:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param TypeProgram: Indicate the way to program at a specified address.
|
||
162:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * This parameter can be a value of @ref FLASH_Type_Program
|
||
163:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param Address: Specifies the address to be programmed.
|
||
164:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param Data: Specifies the data to be programmed
|
||
165:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** *
|
||
166:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval HAL_StatusTypeDef HAL Status
|
||
167:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
168:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t Address, uint64_t Data)
|
||
169:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
170:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_ERROR;
|
||
171:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** uint8_t index = 0;
|
||
172:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** uint8_t nbiterations = 0;
|
||
173:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
174:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Process Locked */
|
||
175:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_LOCK(&pFlash);
|
||
176:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
177:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Check the parameters */
|
||
178:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** assert_param(IS_FLASH_TYPEPROGRAM(TypeProgram));
|
||
179:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** assert_param(IS_FLASH_PROGRAM_ADDRESS(Address));
|
||
180:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
182:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(Address <= FLASH_BANK1_END)
|
||
183:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
184:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
185:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Wait for last operation to be completed */
|
||
186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** status = FLASH_WaitForLastOperation(FLASH_TIMEOUT_VALUE);
|
||
187:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
188:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
189:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else
|
||
190:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
191:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Wait for last operation to be completed */
|
||
192:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** status = FLASH_WaitForLastOperationBank2(FLASH_TIMEOUT_VALUE);
|
||
193:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
194:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
195:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
196:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(status == HAL_OK)
|
||
197:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
198:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(TypeProgram == FLASH_TYPEPROGRAM_HALFWORD)
|
||
199:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
200:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program halfword (16-bit) at a specified address. */
|
||
201:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** nbiterations = 1U;
|
||
202:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
203:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else if(TypeProgram == FLASH_TYPEPROGRAM_WORD)
|
||
ARM GAS /tmp/ccYB9eBD.s page 5
|
||
|
||
|
||
204:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
205:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program word (32-bit = 2*16-bit) at a specified address. */
|
||
206:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** nbiterations = 2U;
|
||
207:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
208:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else
|
||
209:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
210:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program double word (64-bit = 4*16-bit) at a specified address. */
|
||
211:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** nbiterations = 4U;
|
||
212:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
213:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
214:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** for (index = 0U; index < nbiterations; index++)
|
||
215:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
216:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** FLASH_Program_HalfWord((Address + (2U*index)), (uint16_t)(Data >> (16U*index)));
|
||
217:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
218:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
219:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(Address <= FLASH_BANK1_END)
|
||
220:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
221:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
222:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Wait for last operation to be completed */
|
||
223:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** status = FLASH_WaitForLastOperation(FLASH_TIMEOUT_VALUE);
|
||
224:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
225:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* If the program operation is completed, disable the PG Bit */
|
||
226:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PG);
|
||
227:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
228:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
229:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else
|
||
230:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
231:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Wait for last operation to be completed */
|
||
232:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** status = FLASH_WaitForLastOperationBank2(FLASH_TIMEOUT_VALUE);
|
||
233:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
234:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* If the program operation is completed, disable the PG Bit */
|
||
235:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR2, FLASH_CR2_PG);
|
||
236:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
237:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
238:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* In case of error, stop programation procedure */
|
||
239:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (status != HAL_OK)
|
||
240:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
241:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** break;
|
||
242:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
243:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
244:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
245:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
246:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Process Unlocked */
|
||
247:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_UNLOCK(&pFlash);
|
||
248:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
249:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return status;
|
||
250:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
251:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
252:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
253:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Program halfword, word or double word at a specified address with interrupt enabled.
|
||
254:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @note The function HAL_FLASH_Unlock() should be called before to unlock the FLASH interface
|
||
255:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * The function HAL_FLASH_Lock() should be called after to lock the FLASH interface
|
||
256:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** *
|
||
257:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @note If an erase and a program operations are requested simultaneously,
|
||
258:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * the erase operation is performed before the program one.
|
||
259:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** *
|
||
260:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param TypeProgram: Indicate the way to program at a specified address.
|
||
ARM GAS /tmp/ccYB9eBD.s page 6
|
||
|
||
|
||
261:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * This parameter can be a value of @ref FLASH_Type_Program
|
||
262:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param Address: Specifies the address to be programmed.
|
||
263:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param Data: Specifies the data to be programmed
|
||
264:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** *
|
||
265:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval HAL_StatusTypeDef HAL Status
|
||
266:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
267:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_Program_IT(uint32_t TypeProgram, uint32_t Address, uint64_t Data)
|
||
268:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
269:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
270:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
271:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Process Locked */
|
||
272:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_LOCK(&pFlash);
|
||
273:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
274:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Check the parameters */
|
||
275:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** assert_param(IS_FLASH_TYPEPROGRAM(TypeProgram));
|
||
276:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** assert_param(IS_FLASH_PROGRAM_ADDRESS(Address));
|
||
277:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
278:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
279:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* If procedure already ongoing, reject the next one */
|
||
280:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (pFlash.ProcedureOnGoing != FLASH_PROC_NONE)
|
||
281:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
282:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_ERROR;
|
||
283:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
284:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
285:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(Address <= FLASH_BANK1_END)
|
||
286:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
287:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Enable End of FLASH Operation and Error source interrupts */
|
||
288:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_ENABLE_IT(FLASH_IT_EOP_BANK1 | FLASH_IT_ERR_BANK1);
|
||
289:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
290:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }else
|
||
291:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
292:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Enable End of FLASH Operation and Error source interrupts */
|
||
293:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_ENABLE_IT(FLASH_IT_EOP_BANK2 | FLASH_IT_ERR_BANK2);
|
||
294:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
295:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #else
|
||
296:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Enable End of FLASH Operation and Error source interrupts */
|
||
297:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_ENABLE_IT(FLASH_IT_EOP | FLASH_IT_ERR);
|
||
298:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
299:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
300:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address = Address;
|
||
301:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Data = Data;
|
||
302:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
303:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(TypeProgram == FLASH_TYPEPROGRAM_HALFWORD)
|
||
304:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
305:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_PROGRAMHALFWORD;
|
||
306:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program halfword (16-bit) at a specified address. */
|
||
307:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.DataRemaining = 1U;
|
||
308:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
309:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else if(TypeProgram == FLASH_TYPEPROGRAM_WORD)
|
||
310:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
311:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_PROGRAMWORD;
|
||
312:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program word (32-bit : 2*16-bit) at a specified address. */
|
||
313:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.DataRemaining = 2U;
|
||
314:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
315:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else
|
||
316:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
317:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_PROGRAMDOUBLEWORD;
|
||
ARM GAS /tmp/ccYB9eBD.s page 7
|
||
|
||
|
||
318:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program double word (64-bit : 4*16-bit) at a specified address. */
|
||
319:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.DataRemaining = 4U;
|
||
320:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
321:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
322:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program halfword (16-bit) at a specified address. */
|
||
323:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** FLASH_Program_HalfWord(Address, (uint16_t)Data);
|
||
324:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
325:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return status;
|
||
326:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
327:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
328:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
329:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief This function handles FLASH interrupt request.
|
||
330:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval None
|
||
331:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
332:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** void HAL_FLASH_IRQHandler(void)
|
||
333:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
334:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** uint32_t addresstmp = 0U;
|
||
335:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
336:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Check FLASH operation error flags */
|
||
337:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
338:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR_BANK1) || __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR_BANK1)
|
||
339:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR_BANK2) || __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR_BANK2))
|
||
340:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #else
|
||
341:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) ||__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR))
|
||
342:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
343:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
344:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Return the faulty address */
|
||
345:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** addresstmp = pFlash.Address;
|
||
346:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Reset address */
|
||
347:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address = 0xFFFFFFFFU;
|
||
348:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
349:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Save the Error code */
|
||
350:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** FLASH_SetErrorCode();
|
||
351:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
352:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* FLASH error interrupt user callback */
|
||
353:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_OperationErrorCallback(addresstmp);
|
||
354:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
355:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Stop the procedure ongoing */
|
||
356:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE;
|
||
357:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
358:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
359:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Check FLASH End of Operation flag */
|
||
360:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
361:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP_BANK1))
|
||
362:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
363:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Clear FLASH End of Operation pending bit */
|
||
364:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP_BANK1);
|
||
365:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #else
|
||
366:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP))
|
||
367:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
368:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Clear FLASH End of Operation pending bit */
|
||
369:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP);
|
||
370:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
371:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
372:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Process can continue only if no error detected */
|
||
373:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(pFlash.ProcedureOnGoing != FLASH_PROC_NONE)
|
||
374:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
ARM GAS /tmp/ccYB9eBD.s page 8
|
||
|
||
|
||
375:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(pFlash.ProcedureOnGoing == FLASH_PROC_PAGEERASE)
|
||
376:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
377:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Nb of pages to erased can be decreased */
|
||
378:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.DataRemaining--;
|
||
379:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
380:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Check if there are still pages to erase */
|
||
381:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(pFlash.DataRemaining != 0U)
|
||
382:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
383:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** addresstmp = pFlash.Address;
|
||
384:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /*Indicate user which sector has been erased */
|
||
385:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(addresstmp);
|
||
386:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
387:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /*Increment sector number*/
|
||
388:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** addresstmp = pFlash.Address + FLASH_PAGE_SIZE;
|
||
389:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address = addresstmp;
|
||
390:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
391:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* If the erase operation is completed, disable the PER Bit */
|
||
392:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PER);
|
||
393:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
394:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** FLASH_PageErase(addresstmp);
|
||
395:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
396:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else
|
||
397:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
398:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* No more pages to Erase, user callback can be called. */
|
||
399:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Reset Sector and stop Erase pages procedure */
|
||
400:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address = addresstmp = 0xFFFFFFFFU;
|
||
401:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE;
|
||
402:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* FLASH EOP interrupt user callback */
|
||
403:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(addresstmp);
|
||
404:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
405:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
406:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else if(pFlash.ProcedureOnGoing == FLASH_PROC_MASSERASE)
|
||
407:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
408:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Operation is completed, disable the MER Bit */
|
||
409:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_MER);
|
||
410:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
411:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
412:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Stop Mass Erase procedure if no pending mass erase on other bank */
|
||
413:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (HAL_IS_BIT_CLR(FLASH->CR2, FLASH_CR2_MER))
|
||
414:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
415:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
416:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* MassErase ended. Return the selected bank */
|
||
417:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* FLASH EOP interrupt user callback */
|
||
418:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(0U);
|
||
419:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
420:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Stop Mass Erase procedure*/
|
||
421:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE;
|
||
422:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
423:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
424:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
425:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
426:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else
|
||
427:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
428:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Nb of 16-bit data to program can be decreased */
|
||
429:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.DataRemaining--;
|
||
430:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
431:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Check if there are still 16-bit data to program */
|
||
ARM GAS /tmp/ccYB9eBD.s page 9
|
||
|
||
|
||
432:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(pFlash.DataRemaining != 0U)
|
||
433:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
434:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Increment address to 16-bit */
|
||
435:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address += 2U;
|
||
436:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** addresstmp = pFlash.Address;
|
||
437:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
438:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Shift to have next 16-bit data */
|
||
439:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Data = (pFlash.Data >> 16U);
|
||
440:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
441:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Operation is completed, disable the PG Bit */
|
||
442:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PG);
|
||
443:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
444:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /*Program halfword (16-bit) at a specified address.*/
|
||
445:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** FLASH_Program_HalfWord(addresstmp, (uint16_t)pFlash.Data);
|
||
446:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
447:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else
|
||
448:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
449:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program ended. Return the selected address */
|
||
450:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* FLASH EOP interrupt user callback */
|
||
451:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (pFlash.ProcedureOnGoing == FLASH_PROC_PROGRAMHALFWORD)
|
||
452:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
453:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address);
|
||
454:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
455:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else if (pFlash.ProcedureOnGoing == FLASH_PROC_PROGRAMWORD)
|
||
456:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
457:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address - 2U);
|
||
458:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
459:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else
|
||
460:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
461:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address - 6U);
|
||
462:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
463:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
464:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Reset Address and stop Program procedure */
|
||
465:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address = 0xFFFFFFFFU;
|
||
466:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE;
|
||
467:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
468:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
469:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
470:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
471:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
472:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
473:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Check FLASH End of Operation flag */
|
||
474:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG( FLASH_FLAG_EOP_BANK2))
|
||
475:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
476:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Clear FLASH End of Operation pending bit */
|
||
477:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP_BANK2);
|
||
478:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
479:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Process can continue only if no error detected */
|
||
480:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(pFlash.ProcedureOnGoing != FLASH_PROC_NONE)
|
||
481:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
482:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(pFlash.ProcedureOnGoing == FLASH_PROC_PAGEERASE)
|
||
483:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
484:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Nb of pages to erased can be decreased */
|
||
485:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.DataRemaining--;
|
||
486:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
487:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Check if there are still pages to erase*/
|
||
488:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(pFlash.DataRemaining != 0U)
|
||
ARM GAS /tmp/ccYB9eBD.s page 10
|
||
|
||
|
||
489:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
490:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Indicate user which page address has been erased*/
|
||
491:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address);
|
||
492:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
493:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Increment page address to next page */
|
||
494:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address += FLASH_PAGE_SIZE;
|
||
495:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** addresstmp = pFlash.Address;
|
||
496:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
497:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Operation is completed, disable the PER Bit */
|
||
498:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR2, FLASH_CR2_PER);
|
||
499:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
500:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** FLASH_PageErase(addresstmp);
|
||
501:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
502:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else
|
||
503:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
504:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /*No more pages to Erase*/
|
||
505:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
506:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /*Reset Address and stop Erase pages procedure*/
|
||
507:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address = 0xFFFFFFFFU;
|
||
508:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE;
|
||
509:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
510:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* FLASH EOP interrupt user callback */
|
||
511:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address);
|
||
512:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
513:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
514:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else if(pFlash.ProcedureOnGoing == FLASH_PROC_MASSERASE)
|
||
515:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
516:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Operation is completed, disable the MER Bit */
|
||
517:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR2, FLASH_CR2_MER);
|
||
518:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
519:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (HAL_IS_BIT_CLR(FLASH->CR, FLASH_CR_MER))
|
||
520:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
521:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* MassErase ended. Return the selected bank*/
|
||
522:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* FLASH EOP interrupt user callback */
|
||
523:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(0U);
|
||
524:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
525:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE;
|
||
526:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
527:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
528:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else
|
||
529:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
530:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Nb of 16-bit data to program can be decreased */
|
||
531:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.DataRemaining--;
|
||
532:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
533:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Check if there are still 16-bit data to program */
|
||
534:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(pFlash.DataRemaining != 0U)
|
||
535:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
536:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Increment address to 16-bit */
|
||
537:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address += 2U;
|
||
538:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** addresstmp = pFlash.Address;
|
||
539:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
540:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Shift to have next 16-bit data */
|
||
541:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Data = (pFlash.Data >> 16U);
|
||
542:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
543:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Operation is completed, disable the PG Bit */
|
||
544:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR2, FLASH_CR2_PG);
|
||
545:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
ARM GAS /tmp/ccYB9eBD.s page 11
|
||
|
||
|
||
546:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /*Program halfword (16-bit) at a specified address.*/
|
||
547:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** FLASH_Program_HalfWord(addresstmp, (uint16_t)pFlash.Data);
|
||
548:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
549:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else
|
||
550:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
551:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /*Program ended. Return the selected address*/
|
||
552:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* FLASH EOP interrupt user callback */
|
||
553:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (pFlash.ProcedureOnGoing == FLASH_PROC_PROGRAMHALFWORD)
|
||
554:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
555:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address);
|
||
556:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
557:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else if (pFlash.ProcedureOnGoing == FLASH_PROC_PROGRAMWORD)
|
||
558:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
559:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address-2U);
|
||
560:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
561:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else
|
||
562:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
563:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address-6U);
|
||
564:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
565:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
566:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Reset Address and stop Program procedure*/
|
||
567:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address = 0xFFFFFFFFU;
|
||
568:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE;
|
||
569:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
570:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
571:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
572:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
573:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif
|
||
574:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
575:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(pFlash.ProcedureOnGoing == FLASH_PROC_NONE)
|
||
576:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
577:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
578:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Operation is completed, disable the PG, PER and MER Bits for both bank */
|
||
579:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, (FLASH_CR_PG | FLASH_CR_PER | FLASH_CR_MER));
|
||
580:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR2, (FLASH_CR2_PG | FLASH_CR2_PER | FLASH_CR2_MER));
|
||
581:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
582:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Disable End of FLASH Operation and Error source interrupts for both banks */
|
||
583:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_DISABLE_IT(FLASH_IT_EOP_BANK1 | FLASH_IT_ERR_BANK1 | FLASH_IT_EOP_BANK2 | FLASH_IT_
|
||
584:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #else
|
||
585:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Operation is completed, disable the PG, PER and MER Bits */
|
||
586:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, (FLASH_CR_PG | FLASH_CR_PER | FLASH_CR_MER));
|
||
587:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
588:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Disable End of FLASH Operation and Error source interrupts */
|
||
589:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_DISABLE_IT(FLASH_IT_EOP | FLASH_IT_ERR);
|
||
590:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
591:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
592:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Process Unlocked */
|
||
593:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_UNLOCK(&pFlash);
|
||
594:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
595:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
596:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
597:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
598:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief FLASH end of operation interrupt callback
|
||
599:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param ReturnValue: The value saved in this parameter depends on the ongoing procedure
|
||
600:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * - Mass Erase: No return value expected
|
||
601:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * - Pages Erase: Address of the page which has been erased
|
||
602:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * (if 0xFFFFFFFF, it means that all the selected pages have been erased)
|
||
ARM GAS /tmp/ccYB9eBD.s page 12
|
||
|
||
|
||
603:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * - Program: Address which was selected for data program
|
||
604:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval none
|
||
605:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
606:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __weak void HAL_FLASH_EndOfOperationCallback(uint32_t ReturnValue)
|
||
607:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
608:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Prevent unused argument(s) compilation warning */
|
||
609:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** UNUSED(ReturnValue);
|
||
610:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
611:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* NOTE : This function Should not be modified, when the callback is needed,
|
||
612:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** the HAL_FLASH_EndOfOperationCallback could be implemented in the user file
|
||
613:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
614:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
615:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
616:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
617:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief FLASH operation error interrupt callback
|
||
618:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param ReturnValue: The value saved in this parameter depends on the ongoing procedure
|
||
619:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * - Mass Erase: No return value expected
|
||
620:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * - Pages Erase: Address of the page which returned an error
|
||
621:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * - Program: Address which was selected for data program
|
||
622:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval none
|
||
623:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
624:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __weak void HAL_FLASH_OperationErrorCallback(uint32_t ReturnValue)
|
||
625:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
626:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Prevent unused argument(s) compilation warning */
|
||
627:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** UNUSED(ReturnValue);
|
||
628:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
629:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* NOTE : This function Should not be modified, when the callback is needed,
|
||
630:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** the HAL_FLASH_OperationErrorCallback could be implemented in the user file
|
||
631:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
632:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
633:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
634:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
635:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @}
|
||
636:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
637:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
638:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions_Group2 Peripheral Control functions
|
||
639:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief management functions
|
||
640:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** *
|
||
641:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** @verbatim
|
||
642:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ===============================================================================
|
||
643:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ##### Peripheral Control functions #####
|
||
644:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ===============================================================================
|
||
645:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** [..]
|
||
646:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** This subsection provides a set of functions allowing to control the FLASH
|
||
647:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** memory operations.
|
||
648:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
649:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** @endverbatim
|
||
650:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @{
|
||
651:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
652:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
653:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
654:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Unlock the FLASH control register access
|
||
655:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval HAL Status
|
||
656:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
657:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_Unlock(void)
|
||
658:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
659:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
ARM GAS /tmp/ccYB9eBD.s page 13
|
||
|
||
|
||
660:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
661:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET)
|
||
662:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
663:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Authorize the FLASH Registers access */
|
||
664:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** WRITE_REG(FLASH->KEYR, FLASH_KEY1);
|
||
665:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** WRITE_REG(FLASH->KEYR, FLASH_KEY2);
|
||
666:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
667:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Verify Flash is unlocked */
|
||
668:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET)
|
||
669:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
670:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** status = HAL_ERROR;
|
||
671:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
672:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
673:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
674:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(READ_BIT(FLASH->CR2, FLASH_CR2_LOCK) != RESET)
|
||
675:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
676:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Authorize the FLASH BANK2 Registers access */
|
||
677:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** WRITE_REG(FLASH->KEYR2, FLASH_KEY1);
|
||
678:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** WRITE_REG(FLASH->KEYR2, FLASH_KEY2);
|
||
679:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
680:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Verify Flash BANK2 is unlocked */
|
||
681:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(READ_BIT(FLASH->CR2, FLASH_CR2_LOCK) != RESET)
|
||
682:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
683:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** status = HAL_ERROR;
|
||
684:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
685:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
686:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
687:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
688:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return status;
|
||
689:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
690:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
691:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
692:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Locks the FLASH control register access
|
||
693:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval HAL Status
|
||
694:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
695:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_Lock(void)
|
||
696:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
697:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Set the LOCK Bit to lock the FLASH Registers access */
|
||
698:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** SET_BIT(FLASH->CR, FLASH_CR_LOCK);
|
||
699:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
700:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
701:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Set the LOCK Bit to lock the FLASH BANK2 Registers access */
|
||
702:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** SET_BIT(FLASH->CR2, FLASH_CR2_LOCK);
|
||
703:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
704:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
705:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_OK;
|
||
706:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
707:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
708:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
709:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Unlock the FLASH Option Control Registers access.
|
||
710:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval HAL Status
|
||
711:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
712:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_OB_Unlock(void)
|
||
713:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
714:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (HAL_IS_BIT_CLR(FLASH->CR, FLASH_CR_OPTWRE))
|
||
715:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
716:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Authorizes the Option Byte register programming */
|
||
ARM GAS /tmp/ccYB9eBD.s page 14
|
||
|
||
|
||
717:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** WRITE_REG(FLASH->OPTKEYR, FLASH_OPTKEY1);
|
||
718:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** WRITE_REG(FLASH->OPTKEYR, FLASH_OPTKEY2);
|
||
719:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
720:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else
|
||
721:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
722:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_ERROR;
|
||
723:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
724:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
725:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_OK;
|
||
726:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
727:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
728:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
729:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Lock the FLASH Option Control Registers access.
|
||
730:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval HAL Status
|
||
731:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
732:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_OB_Lock(void)
|
||
733:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
734:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Clear the OPTWRE Bit to lock the FLASH Option Byte Registers access */
|
||
735:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_OPTWRE);
|
||
736:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
737:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_OK;
|
||
738:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
739:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
740:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
741:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Launch the option byte loading.
|
||
742:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @note This function will reset automatically the MCU.
|
||
743:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval None
|
||
744:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
745:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** void HAL_FLASH_OB_Launch(void)
|
||
746:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
747:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Initiates a system reset request to launch the option byte loading */
|
||
748:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_NVIC_SystemReset();
|
||
749:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
750:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
751:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
752:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @}
|
||
753:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
754:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
755:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions_Group3 Peripheral errors functions
|
||
756:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Peripheral errors functions
|
||
757:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** *
|
||
758:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** @verbatim
|
||
759:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ===============================================================================
|
||
760:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ##### Peripheral Errors functions #####
|
||
761:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ===============================================================================
|
||
762:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** [..]
|
||
763:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** This subsection permit to get in run-time errors of the FLASH peripheral.
|
||
764:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
765:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** @endverbatim
|
||
766:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @{
|
||
767:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
768:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
769:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
770:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Get the specific FLASH error flag.
|
||
771:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval FLASH_ErrorCode The returned value can be:
|
||
772:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @ref FLASH_Error_Codes
|
||
773:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
ARM GAS /tmp/ccYB9eBD.s page 15
|
||
|
||
|
||
774:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** uint32_t HAL_FLASH_GetError(void)
|
||
775:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
776:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return pFlash.ErrorCode;
|
||
777:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
778:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
779:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
780:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @}
|
||
781:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
782:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
783:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
784:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @}
|
||
785:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
786:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
787:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** @addtogroup FLASH_Private_Functions
|
||
788:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @{
|
||
789:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
790:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
791:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
792:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Program a half-word (16-bit) at a specified address.
|
||
793:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param Address specify the address to be programmed.
|
||
794:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param Data specify the data to be programmed.
|
||
795:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval None
|
||
796:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
797:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** static void FLASH_Program_HalfWord(uint32_t Address, uint16_t Data)
|
||
798:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
27 .loc 1 798 1 view -0
|
||
28 .cfi_startproc
|
||
29 @ args = 0, pretend = 0, frame = 0
|
||
30 @ frame_needed = 0, uses_anonymous_args = 0
|
||
31 @ link register save eliminated.
|
||
799:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Clean the error context */
|
||
800:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ErrorCode = HAL_FLASH_ERROR_NONE;
|
||
32 .loc 1 800 3 view .LVU1
|
||
33 .loc 1 800 20 is_stmt 0 view .LVU2
|
||
34 0000 044B ldr r3, .L2
|
||
35 0002 0022 movs r2, #0
|
||
36 0004 DA61 str r2, [r3, #28]
|
||
801:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
802:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
803:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(Address <= FLASH_BANK1_END)
|
||
804:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
805:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
806:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Proceed to program the new data */
|
||
807:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** SET_BIT(FLASH->CR, FLASH_CR_PG);
|
||
37 .loc 1 807 5 is_stmt 1 view .LVU3
|
||
38 0006 044A ldr r2, .L2+4
|
||
39 0008 1369 ldr r3, [r2, #16]
|
||
40 000a 43F00103 orr r3, r3, #1
|
||
41 000e 1361 str r3, [r2, #16]
|
||
808:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
809:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
810:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else
|
||
811:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
812:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Proceed to program the new data */
|
||
813:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** SET_BIT(FLASH->CR2, FLASH_CR2_PG);
|
||
814:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
815:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
ARM GAS /tmp/ccYB9eBD.s page 16
|
||
|
||
|
||
816:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
817:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Write data in the address */
|
||
818:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** *(__IO uint16_t*)Address = Data;
|
||
42 .loc 1 818 3 view .LVU4
|
||
43 .loc 1 818 28 is_stmt 0 view .LVU5
|
||
44 0010 0180 strh r1, [r0] @ movhi
|
||
819:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
45 .loc 1 819 1 view .LVU6
|
||
46 0012 7047 bx lr
|
||
47 .L3:
|
||
48 .align 2
|
||
49 .L2:
|
||
50 0014 00000000 .word pFlash
|
||
51 0018 00200240 .word 1073881088
|
||
52 .cfi_endproc
|
||
53 .LFE76:
|
||
55 .section .text.FLASH_SetErrorCode,"ax",%progbits
|
||
56 .align 1
|
||
57 .syntax unified
|
||
58 .thumb
|
||
59 .thumb_func
|
||
60 .fpu softvfp
|
||
62 FLASH_SetErrorCode:
|
||
63 .LFB78:
|
||
820:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
821:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
822:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Wait for a FLASH operation to complete.
|
||
823:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param Timeout maximum flash operation timeout
|
||
824:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval HAL Status
|
||
825:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
826:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef FLASH_WaitForLastOperation(uint32_t Timeout)
|
||
827:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
828:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Wait for the FLASH operation to complete by polling on BUSY flag to be reset.
|
||
829:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** Even if the FLASH operation fails, the BUSY flag will be reset and an error
|
||
830:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** flag will be set */
|
||
831:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
832:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** uint32_t tickstart = HAL_GetTick();
|
||
833:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
834:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY))
|
||
835:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
836:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (Timeout != HAL_MAX_DELAY)
|
||
837:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
838:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if((Timeout == 0U) || ((HAL_GetTick()-tickstart) > Timeout))
|
||
839:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
840:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_TIMEOUT;
|
||
841:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
842:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
843:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
844:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
845:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Check FLASH End of Operation flag */
|
||
846:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP))
|
||
847:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
848:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Clear FLASH End of Operation pending bit */
|
||
849:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP);
|
||
850:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
851:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
852:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) ||
|
||
ARM GAS /tmp/ccYB9eBD.s page 17
|
||
|
||
|
||
853:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR) ||
|
||
854:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR))
|
||
855:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
856:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /*Save the error code*/
|
||
857:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** FLASH_SetErrorCode();
|
||
858:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_ERROR;
|
||
859:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
860:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
861:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* There is no error flag set */
|
||
862:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_OK;
|
||
863:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
864:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
865:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
866:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
867:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Wait for a FLASH BANK2 operation to complete.
|
||
868:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param Timeout maximum flash operation timeout
|
||
869:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval HAL_StatusTypeDef HAL Status
|
||
870:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
871:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef FLASH_WaitForLastOperationBank2(uint32_t Timeout)
|
||
872:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
873:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Wait for the FLASH BANK2 operation to complete by polling on BUSY flag to be reset.
|
||
874:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** Even if the FLASH BANK2 operation fails, the BUSY flag will be reset and an error
|
||
875:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** flag will be set */
|
||
876:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
877:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** uint32_t tickstart = HAL_GetTick();
|
||
878:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
879:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY_BANK2))
|
||
880:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
881:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (Timeout != HAL_MAX_DELAY)
|
||
882:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
883:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if((Timeout == 0U) || ((HAL_GetTick()-tickstart) > Timeout))
|
||
884:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
885:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_TIMEOUT;
|
||
886:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
887:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
888:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
889:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
890:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Check FLASH End of Operation flag */
|
||
891:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP_BANK2))
|
||
892:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
893:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Clear FLASH End of Operation pending bit */
|
||
894:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP_BANK2);
|
||
895:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
896:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
897:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR_BANK2) || __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR_BANK2))
|
||
898:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
899:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /*Save the error code*/
|
||
900:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** FLASH_SetErrorCode();
|
||
901:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_ERROR;
|
||
902:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
903:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
904:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* If there is an error flag set */
|
||
905:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_OK;
|
||
906:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
907:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
908:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
909:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
ARM GAS /tmp/ccYB9eBD.s page 18
|
||
|
||
|
||
910:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /**
|
||
911:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Set the specific FLASH error flag.
|
||
912:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval None
|
||
913:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */
|
||
914:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** static void FLASH_SetErrorCode(void)
|
||
915:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
64 .loc 1 915 1 is_stmt 1 view -0
|
||
65 .cfi_startproc
|
||
66 @ args = 0, pretend = 0, frame = 0
|
||
67 @ frame_needed = 0, uses_anonymous_args = 0
|
||
68 @ link register save eliminated.
|
||
916:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** uint32_t flags = 0U;
|
||
69 .loc 1 916 3 view .LVU8
|
||
70 .LVL1:
|
||
917:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
918:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
919:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) || __HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR_BANK2))
|
||
920:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #else
|
||
921:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR))
|
||
71 .loc 1 921 3 view .LVU9
|
||
72 .loc 1 921 6 is_stmt 0 view .LVU10
|
||
73 0000 154B ldr r3, .L9
|
||
74 0002 DB68 ldr r3, [r3, #12]
|
||
75 .loc 1 921 5 view .LVU11
|
||
76 0004 13F0100F tst r3, #16
|
||
77 0008 06D0 beq .L8
|
||
922:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
923:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
924:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ErrorCode |= HAL_FLASH_ERROR_WRP;
|
||
78 .loc 1 924 5 is_stmt 1 view .LVU12
|
||
79 .loc 1 924 22 is_stmt 0 view .LVU13
|
||
80 000a 144A ldr r2, .L9+4
|
||
81 000c D369 ldr r3, [r2, #28]
|
||
82 000e 43F00203 orr r3, r3, #2
|
||
83 0012 D361 str r3, [r2, #28]
|
||
925:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
926:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** flags |= FLASH_FLAG_WRPERR | FLASH_FLAG_WRPERR_BANK2;
|
||
927:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #else
|
||
928:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** flags |= FLASH_FLAG_WRPERR;
|
||
84 .loc 1 928 5 is_stmt 1 view .LVU14
|
||
85 .LVL2:
|
||
86 .loc 1 928 11 is_stmt 0 view .LVU15
|
||
87 0014 1023 movs r3, #16
|
||
88 0016 00E0 b .L5
|
||
89 .LVL3:
|
||
90 .L8:
|
||
916:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
91 .loc 1 916 12 view .LVU16
|
||
92 0018 0023 movs r3, #0
|
||
93 .LVL4:
|
||
94 .L5:
|
||
929:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
930:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
931:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
932:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR) || __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR_BANK2))
|
||
933:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #else
|
||
934:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR))
|
||
ARM GAS /tmp/ccYB9eBD.s page 19
|
||
|
||
|
||
95 .loc 1 934 3 is_stmt 1 view .LVU17
|
||
96 .loc 1 934 6 is_stmt 0 view .LVU18
|
||
97 001a 0F4A ldr r2, .L9
|
||
98 001c D268 ldr r2, [r2, #12]
|
||
99 .loc 1 934 5 view .LVU19
|
||
100 001e 12F0040F tst r2, #4
|
||
101 0022 06D0 beq .L6
|
||
935:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
936:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
937:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ErrorCode |= HAL_FLASH_ERROR_PROG;
|
||
102 .loc 1 937 5 is_stmt 1 view .LVU20
|
||
103 .loc 1 937 22 is_stmt 0 view .LVU21
|
||
104 0024 0D49 ldr r1, .L9+4
|
||
105 0026 CA69 ldr r2, [r1, #28]
|
||
106 0028 42F00102 orr r2, r2, #1
|
||
107 002c CA61 str r2, [r1, #28]
|
||
938:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
939:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** flags |= FLASH_FLAG_PGERR | FLASH_FLAG_PGERR_BANK2;
|
||
940:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #else
|
||
941:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** flags |= FLASH_FLAG_PGERR;
|
||
108 .loc 1 941 5 is_stmt 1 view .LVU22
|
||
109 .loc 1 941 11 is_stmt 0 view .LVU23
|
||
110 002e 43F00403 orr r3, r3, #4
|
||
111 .LVL5:
|
||
112 .L6:
|
||
942:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
943:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
944:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR))
|
||
113 .loc 1 944 3 is_stmt 1 view .LVU24
|
||
114 .loc 1 944 6 is_stmt 0 view .LVU25
|
||
115 0032 094A ldr r2, .L9
|
||
116 0034 D269 ldr r2, [r2, #28]
|
||
117 .loc 1 944 5 view .LVU26
|
||
118 0036 12F0010F tst r2, #1
|
||
119 003a 09D0 beq .L7
|
||
945:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
946:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ErrorCode |= HAL_FLASH_ERROR_OPTV;
|
||
120 .loc 1 946 5 is_stmt 1 view .LVU27
|
||
121 .loc 1 946 22 is_stmt 0 view .LVU28
|
||
122 003c 0749 ldr r1, .L9+4
|
||
123 003e CA69 ldr r2, [r1, #28]
|
||
124 0040 42F00402 orr r2, r2, #4
|
||
125 0044 CA61 str r2, [r1, #28]
|
||
947:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_OPTVERR);
|
||
126 .loc 1 947 3 is_stmt 1 view .LVU29
|
||
127 .loc 1 947 3 view .LVU30
|
||
128 .loc 1 947 3 view .LVU31
|
||
129 0046 0449 ldr r1, .L9
|
||
130 0048 CA69 ldr r2, [r1, #28]
|
||
131 004a 22F00102 bic r2, r2, #1
|
||
132 004e CA61 str r2, [r1, #28]
|
||
133 .L7:
|
||
948:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
949:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
950:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Clear FLASH error pending bits */
|
||
951:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(flags);
|
||
134 .loc 1 951 3 view .LVU32
|
||
ARM GAS /tmp/ccYB9eBD.s page 20
|
||
|
||
|
||
135 .loc 1 951 3 view .LVU33
|
||
136 .loc 1 951 3 view .LVU34
|
||
137 0050 014A ldr r2, .L9
|
||
138 0052 D360 str r3, [r2, #12]
|
||
952:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
139 .loc 1 952 1 is_stmt 0 view .LVU35
|
||
140 0054 7047 bx lr
|
||
141 .L10:
|
||
142 0056 00BF .align 2
|
||
143 .L9:
|
||
144 0058 00200240 .word 1073881088
|
||
145 005c 00000000 .word pFlash
|
||
146 .cfi_endproc
|
||
147 .LFE78:
|
||
149 .section .text.HAL_FLASH_Program_IT,"ax",%progbits
|
||
150 .align 1
|
||
151 .global HAL_FLASH_Program_IT
|
||
152 .syntax unified
|
||
153 .thumb
|
||
154 .thumb_func
|
||
155 .fpu softvfp
|
||
157 HAL_FLASH_Program_IT:
|
||
158 .LVL6:
|
||
159 .LFB66:
|
||
268:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
160 .loc 1 268 1 is_stmt 1 view -0
|
||
161 .cfi_startproc
|
||
162 @ args = 0, pretend = 0, frame = 0
|
||
163 @ frame_needed = 0, uses_anonymous_args = 0
|
||
268:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
164 .loc 1 268 1 is_stmt 0 view .LVU37
|
||
165 0000 70B5 push {r4, r5, r6, lr}
|
||
166 .LCFI0:
|
||
167 .cfi_def_cfa_offset 16
|
||
168 .cfi_offset 4, -16
|
||
169 .cfi_offset 5, -12
|
||
170 .cfi_offset 6, -8
|
||
171 .cfi_offset 14, -4
|
||
269:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
172 .loc 1 269 3 is_stmt 1 view .LVU38
|
||
173 .LVL7:
|
||
272:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
174 .loc 1 272 3 view .LVU39
|
||
272:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
175 .loc 1 272 3 view .LVU40
|
||
176 0002 164C ldr r4, .L20
|
||
177 0004 247E ldrb r4, [r4, #24] @ zero_extendqisi2
|
||
178 0006 012C cmp r4, #1
|
||
179 0008 25D0 beq .L16
|
||
272:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
180 .loc 1 272 3 discriminator 2 view .LVU41
|
||
181 000a 144C ldr r4, .L20
|
||
182 000c 0125 movs r5, #1
|
||
183 000e 2576 strb r5, [r4, #24]
|
||
275:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** assert_param(IS_FLASH_PROGRAM_ADDRESS(Address));
|
||
184 .loc 1 275 3 discriminator 2 view .LVU42
|
||
276:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
ARM GAS /tmp/ccYB9eBD.s page 21
|
||
|
||
|
||
185 .loc 1 276 3 discriminator 2 view .LVU43
|
||
297:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
186 .loc 1 297 3 discriminator 2 view .LVU44
|
||
187 0010 134E ldr r6, .L20+4
|
||
188 0012 3569 ldr r5, [r6, #16]
|
||
189 0014 45F4A055 orr r5, r5, #5120
|
||
190 0018 3561 str r5, [r6, #16]
|
||
300:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Data = Data;
|
||
191 .loc 1 300 3 discriminator 2 view .LVU45
|
||
300:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Data = Data;
|
||
192 .loc 1 300 18 is_stmt 0 discriminator 2 view .LVU46
|
||
193 001a A160 str r1, [r4, #8]
|
||
301:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
194 .loc 1 301 3 is_stmt 1 discriminator 2 view .LVU47
|
||
301:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
195 .loc 1 301 15 is_stmt 0 discriminator 2 view .LVU48
|
||
196 001c C4E90423 strd r2, [r4, #16]
|
||
303:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
197 .loc 1 303 3 is_stmt 1 discriminator 2 view .LVU49
|
||
303:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
198 .loc 1 303 5 is_stmt 0 discriminator 2 view .LVU50
|
||
199 0020 0128 cmp r0, #1
|
||
200 0022 0CD0 beq .L18
|
||
309:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
201 .loc 1 309 8 is_stmt 1 view .LVU51
|
||
309:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
202 .loc 1 309 10 is_stmt 0 view .LVU52
|
||
203 0024 0228 cmp r0, #2
|
||
204 0026 10D0 beq .L19
|
||
317:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program double word (64-bit : 4*16-bit) at a specified address. */
|
||
205 .loc 1 317 5 is_stmt 1 view .LVU53
|
||
317:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program double word (64-bit : 4*16-bit) at a specified address. */
|
||
206 .loc 1 317 29 is_stmt 0 view .LVU54
|
||
207 0028 0C48 ldr r0, .L20
|
||
208 .LVL8:
|
||
317:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program double word (64-bit : 4*16-bit) at a specified address. */
|
||
209 .loc 1 317 29 view .LVU55
|
||
210 002a 0524 movs r4, #5
|
||
211 002c 0470 strb r4, [r0]
|
||
319:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
212 .loc 1 319 5 is_stmt 1 view .LVU56
|
||
319:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
213 .loc 1 319 26 is_stmt 0 view .LVU57
|
||
214 002e 0424 movs r4, #4
|
||
215 0030 4460 str r4, [r0, #4]
|
||
216 .L14:
|
||
217 0032 0846 mov r0, r1
|
||
323:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
218 .loc 1 323 3 is_stmt 1 view .LVU58
|
||
219 0034 91B2 uxth r1, r2
|
||
220 .LVL9:
|
||
323:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
221 .loc 1 323 3 is_stmt 0 view .LVU59
|
||
222 0036 FFF7FEFF bl FLASH_Program_HalfWord
|
||
223 .LVL10:
|
||
325:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
224 .loc 1 325 3 is_stmt 1 view .LVU60
|
||
ARM GAS /tmp/ccYB9eBD.s page 22
|
||
|
||
|
||
325:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
225 .loc 1 325 10 is_stmt 0 view .LVU61
|
||
226 003a 0020 movs r0, #0
|
||
227 .L12:
|
||
326:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
228 .loc 1 326 1 view .LVU62
|
||
229 003c 70BD pop {r4, r5, r6, pc}
|
||
230 .LVL11:
|
||
231 .L18:
|
||
305:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program halfword (16-bit) at a specified address. */
|
||
232 .loc 1 305 5 is_stmt 1 view .LVU63
|
||
305:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program halfword (16-bit) at a specified address. */
|
||
233 .loc 1 305 29 is_stmt 0 view .LVU64
|
||
234 003e 2046 mov r0, r4
|
||
235 .LVL12:
|
||
305:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program halfword (16-bit) at a specified address. */
|
||
236 .loc 1 305 29 view .LVU65
|
||
237 0040 0324 movs r4, #3
|
||
238 0042 0470 strb r4, [r0]
|
||
307:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
239 .loc 1 307 5 is_stmt 1 view .LVU66
|
||
307:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
240 .loc 1 307 26 is_stmt 0 view .LVU67
|
||
241 0044 0124 movs r4, #1
|
||
242 0046 4460 str r4, [r0, #4]
|
||
243 0048 F3E7 b .L14
|
||
244 .LVL13:
|
||
245 .L19:
|
||
311:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program word (32-bit : 2*16-bit) at a specified address. */
|
||
246 .loc 1 311 5 is_stmt 1 view .LVU68
|
||
311:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program word (32-bit : 2*16-bit) at a specified address. */
|
||
247 .loc 1 311 29 is_stmt 0 view .LVU69
|
||
248 004a 0448 ldr r0, .L20
|
||
249 .LVL14:
|
||
311:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program word (32-bit : 2*16-bit) at a specified address. */
|
||
250 .loc 1 311 29 view .LVU70
|
||
251 004c 0424 movs r4, #4
|
||
252 004e 0470 strb r4, [r0]
|
||
313:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
253 .loc 1 313 5 is_stmt 1 view .LVU71
|
||
313:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
254 .loc 1 313 26 is_stmt 0 view .LVU72
|
||
255 0050 0224 movs r4, #2
|
||
256 0052 4460 str r4, [r0, #4]
|
||
257 0054 EDE7 b .L14
|
||
258 .LVL15:
|
||
259 .L16:
|
||
272:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
260 .loc 1 272 3 view .LVU73
|
||
261 0056 0220 movs r0, #2
|
||
262 .LVL16:
|
||
272:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
263 .loc 1 272 3 view .LVU74
|
||
264 0058 F0E7 b .L12
|
||
265 .L21:
|
||
266 005a 00BF .align 2
|
||
267 .L20:
|
||
ARM GAS /tmp/ccYB9eBD.s page 23
|
||
|
||
|
||
268 005c 00000000 .word pFlash
|
||
269 0060 00200240 .word 1073881088
|
||
270 .cfi_endproc
|
||
271 .LFE66:
|
||
273 .section .text.HAL_FLASH_EndOfOperationCallback,"ax",%progbits
|
||
274 .align 1
|
||
275 .weak HAL_FLASH_EndOfOperationCallback
|
||
276 .syntax unified
|
||
277 .thumb
|
||
278 .thumb_func
|
||
279 .fpu softvfp
|
||
281 HAL_FLASH_EndOfOperationCallback:
|
||
282 .LVL17:
|
||
283 .LFB68:
|
||
607:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Prevent unused argument(s) compilation warning */
|
||
284 .loc 1 607 1 is_stmt 1 view -0
|
||
285 .cfi_startproc
|
||
286 @ args = 0, pretend = 0, frame = 0
|
||
287 @ frame_needed = 0, uses_anonymous_args = 0
|
||
288 @ link register save eliminated.
|
||
609:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
289 .loc 1 609 3 view .LVU76
|
||
614:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
290 .loc 1 614 1 is_stmt 0 view .LVU77
|
||
291 0000 7047 bx lr
|
||
292 .cfi_endproc
|
||
293 .LFE68:
|
||
295 .section .text.HAL_FLASH_OperationErrorCallback,"ax",%progbits
|
||
296 .align 1
|
||
297 .weak HAL_FLASH_OperationErrorCallback
|
||
298 .syntax unified
|
||
299 .thumb
|
||
300 .thumb_func
|
||
301 .fpu softvfp
|
||
303 HAL_FLASH_OperationErrorCallback:
|
||
304 .LVL18:
|
||
305 .LFB69:
|
||
625:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Prevent unused argument(s) compilation warning */
|
||
306 .loc 1 625 1 is_stmt 1 view -0
|
||
307 .cfi_startproc
|
||
308 @ args = 0, pretend = 0, frame = 0
|
||
309 @ frame_needed = 0, uses_anonymous_args = 0
|
||
310 @ link register save eliminated.
|
||
627:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
311 .loc 1 627 3 view .LVU79
|
||
632:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
312 .loc 1 632 1 is_stmt 0 view .LVU80
|
||
313 0000 7047 bx lr
|
||
314 .cfi_endproc
|
||
315 .LFE69:
|
||
317 .section .text.HAL_FLASH_IRQHandler,"ax",%progbits
|
||
318 .align 1
|
||
319 .global HAL_FLASH_IRQHandler
|
||
320 .syntax unified
|
||
321 .thumb
|
||
322 .thumb_func
|
||
323 .fpu softvfp
|
||
ARM GAS /tmp/ccYB9eBD.s page 24
|
||
|
||
|
||
325 HAL_FLASH_IRQHandler:
|
||
326 .LFB67:
|
||
333:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** uint32_t addresstmp = 0U;
|
||
327 .loc 1 333 1 is_stmt 1 view -0
|
||
328 .cfi_startproc
|
||
329 @ args = 0, pretend = 0, frame = 0
|
||
330 @ frame_needed = 0, uses_anonymous_args = 0
|
||
331 0000 F8B5 push {r3, r4, r5, r6, r7, lr}
|
||
332 .LCFI1:
|
||
333 .cfi_def_cfa_offset 24
|
||
334 .cfi_offset 3, -24
|
||
335 .cfi_offset 4, -20
|
||
336 .cfi_offset 5, -16
|
||
337 .cfi_offset 6, -12
|
||
338 .cfi_offset 7, -8
|
||
339 .cfi_offset 14, -4
|
||
334:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
340 .loc 1 334 3 view .LVU82
|
||
341 .LVL19:
|
||
341:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
342 .loc 1 341 3 view .LVU83
|
||
341:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
343 .loc 1 341 6 is_stmt 0 view .LVU84
|
||
344 0002 524B ldr r3, .L42
|
||
345 0004 DB68 ldr r3, [r3, #12]
|
||
341:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
346 .loc 1 341 5 view .LVU85
|
||
347 0006 13F0100F tst r3, #16
|
||
348 000a 04D1 bne .L25
|
||
341:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
349 .loc 1 341 48 discriminator 1 view .LVU86
|
||
350 000c 4F4B ldr r3, .L42
|
||
351 000e DB68 ldr r3, [r3, #12]
|
||
341:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
352 .loc 1 341 46 discriminator 1 view .LVU87
|
||
353 0010 13F0040F tst r3, #4
|
||
354 0014 0BD0 beq .L26
|
||
355 .L25:
|
||
345:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Reset address */
|
||
356 .loc 1 345 5 is_stmt 1 view .LVU88
|
||
345:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Reset address */
|
||
357 .loc 1 345 16 is_stmt 0 view .LVU89
|
||
358 0016 4E4C ldr r4, .L42+4
|
||
359 0018 A568 ldr r5, [r4, #8]
|
||
360 .LVL20:
|
||
347:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
361 .loc 1 347 5 is_stmt 1 view .LVU90
|
||
347:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
362 .loc 1 347 20 is_stmt 0 view .LVU91
|
||
363 001a 4FF0FF33 mov r3, #-1
|
||
364 001e A360 str r3, [r4, #8]
|
||
350:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
365 .loc 1 350 5 is_stmt 1 view .LVU92
|
||
366 0020 FFF7FEFF bl FLASH_SetErrorCode
|
||
367 .LVL21:
|
||
353:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
368 .loc 1 353 5 view .LVU93
|
||
ARM GAS /tmp/ccYB9eBD.s page 25
|
||
|
||
|
||
369 0024 2846 mov r0, r5
|
||
370 0026 FFF7FEFF bl HAL_FLASH_OperationErrorCallback
|
||
371 .LVL22:
|
||
356:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
372 .loc 1 356 5 view .LVU94
|
||
356:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
373 .loc 1 356 29 is_stmt 0 view .LVU95
|
||
374 002a 0023 movs r3, #0
|
||
375 002c 2370 strb r3, [r4]
|
||
376 .LVL23:
|
||
377 .L26:
|
||
366:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
378 .loc 1 366 3 is_stmt 1 view .LVU96
|
||
366:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
379 .loc 1 366 6 is_stmt 0 view .LVU97
|
||
380 002e 474B ldr r3, .L42
|
||
381 0030 DB68 ldr r3, [r3, #12]
|
||
366:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
382 .loc 1 366 5 view .LVU98
|
||
383 0032 13F0200F tst r3, #32
|
||
384 0036 2BD0 beq .L27
|
||
369:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
385 .loc 1 369 5 is_stmt 1 discriminator 2 view .LVU99
|
||
369:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
386 .loc 1 369 5 discriminator 2 view .LVU100
|
||
369:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
387 .loc 1 369 5 discriminator 2 view .LVU101
|
||
388 0038 444B ldr r3, .L42
|
||
389 003a 2022 movs r2, #32
|
||
390 003c DA60 str r2, [r3, #12]
|
||
373:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
391 .loc 1 373 5 discriminator 2 view .LVU102
|
||
373:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
392 .loc 1 373 14 is_stmt 0 discriminator 2 view .LVU103
|
||
393 003e 444B ldr r3, .L42+4
|
||
394 0040 1B78 ldrb r3, [r3] @ zero_extendqisi2
|
||
373:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
395 .loc 1 373 7 discriminator 2 view .LVU104
|
||
396 0042 2BB3 cbz r3, .L27
|
||
375:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
397 .loc 1 375 7 is_stmt 1 view .LVU105
|
||
375:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
398 .loc 1 375 16 is_stmt 0 view .LVU106
|
||
399 0044 424B ldr r3, .L42+4
|
||
400 0046 1B78 ldrb r3, [r3] @ zero_extendqisi2
|
||
401 0048 DBB2 uxtb r3, r3
|
||
375:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
402 .loc 1 375 9 view .LVU107
|
||
403 004a 012B cmp r3, #1
|
||
404 004c 30D0 beq .L37
|
||
406:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
405 .loc 1 406 12 is_stmt 1 view .LVU108
|
||
406:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
406 .loc 1 406 21 is_stmt 0 view .LVU109
|
||
407 004e 404B ldr r3, .L42+4
|
||
408 0050 1B78 ldrb r3, [r3] @ zero_extendqisi2
|
||
409 0052 DBB2 uxtb r3, r3
|
||
ARM GAS /tmp/ccYB9eBD.s page 26
|
||
|
||
|
||
406:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
410 .loc 1 406 14 view .LVU110
|
||
411 0054 022B cmp r3, #2
|
||
412 0056 4AD0 beq .L38
|
||
429:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
413 .loc 1 429 9 is_stmt 1 view .LVU111
|
||
429:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
414 .loc 1 429 15 is_stmt 0 view .LVU112
|
||
415 0058 3D4B ldr r3, .L42+4
|
||
416 005a 5A68 ldr r2, [r3, #4]
|
||
429:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
417 .loc 1 429 29 view .LVU113
|
||
418 005c 013A subs r2, r2, #1
|
||
419 005e 5A60 str r2, [r3, #4]
|
||
432:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
420 .loc 1 432 9 is_stmt 1 view .LVU114
|
||
432:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
421 .loc 1 432 18 is_stmt 0 view .LVU115
|
||
422 0060 5B68 ldr r3, [r3, #4]
|
||
432:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
423 .loc 1 432 11 view .LVU116
|
||
424 0062 002B cmp r3, #0
|
||
425 0064 4FD1 bne .L39
|
||
451:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
426 .loc 1 451 11 is_stmt 1 view .LVU117
|
||
451:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
427 .loc 1 451 21 is_stmt 0 view .LVU118
|
||
428 0066 3A4B ldr r3, .L42+4
|
||
429 0068 1B78 ldrb r3, [r3] @ zero_extendqisi2
|
||
430 006a DBB2 uxtb r3, r3
|
||
451:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
431 .loc 1 451 14 view .LVU119
|
||
432 006c 032B cmp r3, #3
|
||
433 006e 62D0 beq .L40
|
||
455:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
434 .loc 1 455 16 is_stmt 1 view .LVU120
|
||
455:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
435 .loc 1 455 26 is_stmt 0 view .LVU121
|
||
436 0070 374B ldr r3, .L42+4
|
||
437 0072 1B78 ldrb r3, [r3] @ zero_extendqisi2
|
||
438 0074 DBB2 uxtb r3, r3
|
||
455:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
439 .loc 1 455 19 view .LVU122
|
||
440 0076 042B cmp r3, #4
|
||
441 0078 62D0 beq .L41
|
||
461:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
442 .loc 1 461 13 is_stmt 1 view .LVU123
|
||
461:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
443 .loc 1 461 52 is_stmt 0 view .LVU124
|
||
444 007a 354B ldr r3, .L42+4
|
||
445 007c 9868 ldr r0, [r3, #8]
|
||
461:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
446 .loc 1 461 13 view .LVU125
|
||
447 007e 0638 subs r0, r0, #6
|
||
448 0080 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback
|
||
449 .LVL24:
|
||
450 .L33:
|
||
ARM GAS /tmp/ccYB9eBD.s page 27
|
||
|
||
|
||
465:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE;
|
||
451 .loc 1 465 11 is_stmt 1 view .LVU126
|
||
465:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE;
|
||
452 .loc 1 465 26 is_stmt 0 view .LVU127
|
||
453 0084 324B ldr r3, .L42+4
|
||
454 0086 4FF0FF32 mov r2, #-1
|
||
455 008a 9A60 str r2, [r3, #8]
|
||
466:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
456 .loc 1 466 11 is_stmt 1 view .LVU128
|
||
466:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
457 .loc 1 466 35 is_stmt 0 view .LVU129
|
||
458 008c 0022 movs r2, #0
|
||
459 008e 1A70 strb r2, [r3]
|
||
460 .L27:
|
||
575:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
461 .loc 1 575 3 is_stmt 1 view .LVU130
|
||
575:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
462 .loc 1 575 12 is_stmt 0 view .LVU131
|
||
463 0090 2F4B ldr r3, .L42+4
|
||
464 0092 1B78 ldrb r3, [r3] @ zero_extendqisi2
|
||
575:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
465 .loc 1 575 5 view .LVU132
|
||
466 0094 5BB9 cbnz r3, .L24
|
||
586:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
467 .loc 1 586 5 is_stmt 1 view .LVU133
|
||
468 0096 2D4B ldr r3, .L42
|
||
469 0098 1A69 ldr r2, [r3, #16]
|
||
470 009a 22F00702 bic r2, r2, #7
|
||
471 009e 1A61 str r2, [r3, #16]
|
||
589:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */
|
||
472 .loc 1 589 5 view .LVU134
|
||
473 00a0 1A69 ldr r2, [r3, #16]
|
||
474 00a2 22F4A052 bic r2, r2, #5120
|
||
475 00a6 1A61 str r2, [r3, #16]
|
||
593:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
476 .loc 1 593 5 view .LVU135
|
||
593:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
477 .loc 1 593 5 view .LVU136
|
||
478 00a8 294B ldr r3, .L42+4
|
||
479 00aa 0022 movs r2, #0
|
||
480 00ac 1A76 strb r2, [r3, #24]
|
||
481 .L24:
|
||
595:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
482 .loc 1 595 1 is_stmt 0 view .LVU137
|
||
483 00ae F8BD pop {r3, r4, r5, r6, r7, pc}
|
||
484 .L37:
|
||
378:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
485 .loc 1 378 9 is_stmt 1 view .LVU138
|
||
378:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
486 .loc 1 378 15 is_stmt 0 view .LVU139
|
||
487 00b0 274B ldr r3, .L42+4
|
||
488 00b2 5A68 ldr r2, [r3, #4]
|
||
378:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
489 .loc 1 378 29 view .LVU140
|
||
490 00b4 013A subs r2, r2, #1
|
||
491 00b6 5A60 str r2, [r3, #4]
|
||
381:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
ARM GAS /tmp/ccYB9eBD.s page 28
|
||
|
||
|
||
492 .loc 1 381 9 is_stmt 1 view .LVU141
|
||
381:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
493 .loc 1 381 18 is_stmt 0 view .LVU142
|
||
494 00b8 5B68 ldr r3, [r3, #4]
|
||
381:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
495 .loc 1 381 11 view .LVU143
|
||
496 00ba 7BB1 cbz r3, .L29
|
||
383:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /*Indicate user which sector has been erased */
|
||
497 .loc 1 383 11 is_stmt 1 view .LVU144
|
||
383:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /*Indicate user which sector has been erased */
|
||
498 .loc 1 383 22 is_stmt 0 view .LVU145
|
||
499 00bc 244C ldr r4, .L42+4
|
||
500 00be A068 ldr r0, [r4, #8]
|
||
501 .LVL25:
|
||
385:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
502 .loc 1 385 11 is_stmt 1 view .LVU146
|
||
503 00c0 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback
|
||
504 .LVL26:
|
||
388:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address = addresstmp;
|
||
505 .loc 1 388 11 view .LVU147
|
||
388:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address = addresstmp;
|
||
506 .loc 1 388 30 is_stmt 0 view .LVU148
|
||
507 00c4 A068 ldr r0, [r4, #8]
|
||
388:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address = addresstmp;
|
||
508 .loc 1 388 22 view .LVU149
|
||
509 00c6 00F58060 add r0, r0, #1024
|
||
510 .LVL27:
|
||
389:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
511 .loc 1 389 11 is_stmt 1 view .LVU150
|
||
389:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
512 .loc 1 389 26 is_stmt 0 view .LVU151
|
||
513 00ca A060 str r0, [r4, #8]
|
||
392:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
514 .loc 1 392 11 is_stmt 1 view .LVU152
|
||
515 00cc 1F4A ldr r2, .L42
|
||
516 00ce 1369 ldr r3, [r2, #16]
|
||
517 00d0 23F00203 bic r3, r3, #2
|
||
518 00d4 1361 str r3, [r2, #16]
|
||
394:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
519 .loc 1 394 11 view .LVU153
|
||
520 00d6 FFF7FEFF bl FLASH_PageErase
|
||
521 .LVL28:
|
||
394:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
522 .loc 1 394 11 is_stmt 0 view .LVU154
|
||
523 00da D9E7 b .L27
|
||
524 .L29:
|
||
400:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE;
|
||
525 .loc 1 400 11 is_stmt 1 view .LVU155
|
||
526 .LVL29:
|
||
400:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE;
|
||
527 .loc 1 400 26 is_stmt 0 view .LVU156
|
||
528 00dc 1C4B ldr r3, .L42+4
|
||
529 00de 4FF0FF30 mov r0, #-1
|
||
530 00e2 9860 str r0, [r3, #8]
|
||
401:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* FLASH EOP interrupt user callback */
|
||
531 .loc 1 401 11 is_stmt 1 view .LVU157
|
||
401:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* FLASH EOP interrupt user callback */
|
||
ARM GAS /tmp/ccYB9eBD.s page 29
|
||
|
||
|
||
532 .loc 1 401 35 is_stmt 0 view .LVU158
|
||
533 00e4 0022 movs r2, #0
|
||
534 00e6 1A70 strb r2, [r3]
|
||
403:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
535 .loc 1 403 11 is_stmt 1 view .LVU159
|
||
536 00e8 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback
|
||
537 .LVL30:
|
||
538 00ec D0E7 b .L27
|
||
539 .LVL31:
|
||
540 .L38:
|
||
409:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
541 .loc 1 409 9 view .LVU160
|
||
542 00ee 174A ldr r2, .L42
|
||
543 00f0 1369 ldr r3, [r2, #16]
|
||
544 00f2 23F00403 bic r3, r3, #4
|
||
545 00f6 1361 str r3, [r2, #16]
|
||
418:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
546 .loc 1 418 11 view .LVU161
|
||
547 00f8 0020 movs r0, #0
|
||
548 00fa FFF7FEFF bl HAL_FLASH_EndOfOperationCallback
|
||
549 .LVL32:
|
||
421:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
550 .loc 1 421 11 view .LVU162
|
||
421:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
551 .loc 1 421 35 is_stmt 0 view .LVU163
|
||
552 00fe 144B ldr r3, .L42+4
|
||
553 0100 0022 movs r2, #0
|
||
554 0102 1A70 strb r2, [r3]
|
||
555 0104 C4E7 b .L27
|
||
556 .L39:
|
||
435:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** addresstmp = pFlash.Address;
|
||
557 .loc 1 435 11 is_stmt 1 view .LVU164
|
||
435:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** addresstmp = pFlash.Address;
|
||
558 .loc 1 435 26 is_stmt 0 view .LVU165
|
||
559 0106 124B ldr r3, .L42+4
|
||
560 0108 9A68 ldr r2, [r3, #8]
|
||
561 010a 0232 adds r2, r2, #2
|
||
562 010c 9A60 str r2, [r3, #8]
|
||
436:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
563 .loc 1 436 11 is_stmt 1 view .LVU166
|
||
436:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
564 .loc 1 436 22 is_stmt 0 view .LVU167
|
||
565 010e 9868 ldr r0, [r3, #8]
|
||
566 .LVL33:
|
||
439:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
567 .loc 1 439 11 is_stmt 1 view .LVU168
|
||
439:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
568 .loc 1 439 32 is_stmt 0 view .LVU169
|
||
569 0110 D3E90467 ldrd r6, [r3, #16]
|
||
439:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
570 .loc 1 439 38 view .LVU170
|
||
571 0114 340C lsrs r4, r6, #16
|
||
572 0116 44EA0744 orr r4, r4, r7, lsl #16
|
||
573 011a 3D0C lsrs r5, r7, #16
|
||
439:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
574 .loc 1 439 23 view .LVU171
|
||
575 011c C3E90445 strd r4, [r3, #16]
|
||
ARM GAS /tmp/ccYB9eBD.s page 30
|
||
|
||
|
||
442:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
576 .loc 1 442 11 is_stmt 1 view .LVU172
|
||
577 0120 0A49 ldr r1, .L42
|
||
578 0122 0A69 ldr r2, [r1, #16]
|
||
579 0124 22F00102 bic r2, r2, #1
|
||
580 0128 0A61 str r2, [r1, #16]
|
||
445:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
581 .loc 1 445 11 view .LVU173
|
||
445:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
582 .loc 1 445 62 is_stmt 0 view .LVU174
|
||
583 012a D3E90423 ldrd r2, [r3, #16]
|
||
445:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
584 .loc 1 445 11 view .LVU175
|
||
585 012e 91B2 uxth r1, r2
|
||
586 0130 FFF7FEFF bl FLASH_Program_HalfWord
|
||
587 .LVL34:
|
||
445:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
588 .loc 1 445 11 view .LVU176
|
||
589 0134 ACE7 b .L27
|
||
590 .L40:
|
||
453:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
591 .loc 1 453 13 is_stmt 1 view .LVU177
|
||
592 0136 064B ldr r3, .L42+4
|
||
593 0138 9868 ldr r0, [r3, #8]
|
||
594 013a FFF7FEFF bl HAL_FLASH_EndOfOperationCallback
|
||
595 .LVL35:
|
||
596 013e A1E7 b .L33
|
||
597 .L41:
|
||
457:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
598 .loc 1 457 13 view .LVU178
|
||
457:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
599 .loc 1 457 52 is_stmt 0 view .LVU179
|
||
600 0140 034B ldr r3, .L42+4
|
||
601 0142 9868 ldr r0, [r3, #8]
|
||
457:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
602 .loc 1 457 13 view .LVU180
|
||
603 0144 0238 subs r0, r0, #2
|
||
604 0146 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback
|
||
605 .LVL36:
|
||
606 014a 9BE7 b .L33
|
||
607 .L43:
|
||
608 .align 2
|
||
609 .L42:
|
||
610 014c 00200240 .word 1073881088
|
||
611 0150 00000000 .word pFlash
|
||
612 .cfi_endproc
|
||
613 .LFE67:
|
||
615 .section .text.HAL_FLASH_Unlock,"ax",%progbits
|
||
616 .align 1
|
||
617 .global HAL_FLASH_Unlock
|
||
618 .syntax unified
|
||
619 .thumb
|
||
620 .thumb_func
|
||
621 .fpu softvfp
|
||
623 HAL_FLASH_Unlock:
|
||
624 .LFB70:
|
||
658:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
ARM GAS /tmp/ccYB9eBD.s page 31
|
||
|
||
|
||
625 .loc 1 658 1 is_stmt 1 view -0
|
||
626 .cfi_startproc
|
||
627 @ args = 0, pretend = 0, frame = 0
|
||
628 @ frame_needed = 0, uses_anonymous_args = 0
|
||
629 @ link register save eliminated.
|
||
659:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
630 .loc 1 659 3 view .LVU182
|
||
631 .LVL37:
|
||
661:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
632 .loc 1 661 3 view .LVU183
|
||
661:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
633 .loc 1 661 6 is_stmt 0 view .LVU184
|
||
634 0000 0A4B ldr r3, .L48
|
||
635 0002 1B69 ldr r3, [r3, #16]
|
||
661:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
636 .loc 1 661 5 view .LVU185
|
||
637 0004 13F0800F tst r3, #128
|
||
638 0008 0BD0 beq .L46
|
||
664:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** WRITE_REG(FLASH->KEYR, FLASH_KEY2);
|
||
639 .loc 1 664 5 is_stmt 1 view .LVU186
|
||
640 000a 084B ldr r3, .L48
|
||
641 000c 084A ldr r2, .L48+4
|
||
642 000e 5A60 str r2, [r3, #4]
|
||
665:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
643 .loc 1 665 5 view .LVU187
|
||
644 0010 02F18832 add r2, r2, #-2004318072
|
||
645 0014 5A60 str r2, [r3, #4]
|
||
668:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
646 .loc 1 668 5 view .LVU188
|
||
668:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
647 .loc 1 668 8 is_stmt 0 view .LVU189
|
||
648 0016 1B69 ldr r3, [r3, #16]
|
||
668:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
649 .loc 1 668 7 view .LVU190
|
||
650 0018 13F0800F tst r3, #128
|
||
651 001c 03D1 bne .L47
|
||
659:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
652 .loc 1 659 21 view .LVU191
|
||
653 001e 0020 movs r0, #0
|
||
654 0020 7047 bx lr
|
||
655 .L46:
|
||
656 0022 0020 movs r0, #0
|
||
657 0024 7047 bx lr
|
||
658 .L47:
|
||
670:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
659 .loc 1 670 14 view .LVU192
|
||
660 0026 0120 movs r0, #1
|
||
661 .LVL38:
|
||
688:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
662 .loc 1 688 3 is_stmt 1 view .LVU193
|
||
689:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
663 .loc 1 689 1 is_stmt 0 view .LVU194
|
||
664 0028 7047 bx lr
|
||
665 .L49:
|
||
666 002a 00BF .align 2
|
||
667 .L48:
|
||
668 002c 00200240 .word 1073881088
|
||
ARM GAS /tmp/ccYB9eBD.s page 32
|
||
|
||
|
||
669 0030 23016745 .word 1164378403
|
||
670 .cfi_endproc
|
||
671 .LFE70:
|
||
673 .section .text.HAL_FLASH_Lock,"ax",%progbits
|
||
674 .align 1
|
||
675 .global HAL_FLASH_Lock
|
||
676 .syntax unified
|
||
677 .thumb
|
||
678 .thumb_func
|
||
679 .fpu softvfp
|
||
681 HAL_FLASH_Lock:
|
||
682 .LFB71:
|
||
696:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Set the LOCK Bit to lock the FLASH Registers access */
|
||
683 .loc 1 696 1 is_stmt 1 view -0
|
||
684 .cfi_startproc
|
||
685 @ args = 0, pretend = 0, frame = 0
|
||
686 @ frame_needed = 0, uses_anonymous_args = 0
|
||
687 @ link register save eliminated.
|
||
698:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
688 .loc 1 698 3 view .LVU196
|
||
689 0000 034A ldr r2, .L51
|
||
690 0002 1369 ldr r3, [r2, #16]
|
||
691 0004 43F08003 orr r3, r3, #128
|
||
692 0008 1361 str r3, [r2, #16]
|
||
705:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
693 .loc 1 705 3 view .LVU197
|
||
706:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
694 .loc 1 706 1 is_stmt 0 view .LVU198
|
||
695 000a 0020 movs r0, #0
|
||
696 000c 7047 bx lr
|
||
697 .L52:
|
||
698 000e 00BF .align 2
|
||
699 .L51:
|
||
700 0010 00200240 .word 1073881088
|
||
701 .cfi_endproc
|
||
702 .LFE71:
|
||
704 .section .text.HAL_FLASH_OB_Unlock,"ax",%progbits
|
||
705 .align 1
|
||
706 .global HAL_FLASH_OB_Unlock
|
||
707 .syntax unified
|
||
708 .thumb
|
||
709 .thumb_func
|
||
710 .fpu softvfp
|
||
712 HAL_FLASH_OB_Unlock:
|
||
713 .LFB72:
|
||
713:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (HAL_IS_BIT_CLR(FLASH->CR, FLASH_CR_OPTWRE))
|
||
714 .loc 1 713 1 is_stmt 1 view -0
|
||
715 .cfi_startproc
|
||
716 @ args = 0, pretend = 0, frame = 0
|
||
717 @ frame_needed = 0, uses_anonymous_args = 0
|
||
718 @ link register save eliminated.
|
||
714:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
719 .loc 1 714 3 view .LVU200
|
||
714:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
720 .loc 1 714 7 is_stmt 0 view .LVU201
|
||
721 0000 074B ldr r3, .L56
|
||
722 0002 1B69 ldr r3, [r3, #16]
|
||
ARM GAS /tmp/ccYB9eBD.s page 33
|
||
|
||
|
||
714:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
723 .loc 1 714 6 view .LVU202
|
||
724 0004 13F4007F tst r3, #512
|
||
725 0008 07D1 bne .L55
|
||
717:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** WRITE_REG(FLASH->OPTKEYR, FLASH_OPTKEY2);
|
||
726 .loc 1 717 5 is_stmt 1 view .LVU203
|
||
727 000a 054B ldr r3, .L56
|
||
728 000c 054A ldr r2, .L56+4
|
||
729 000e 9A60 str r2, [r3, #8]
|
||
718:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
730 .loc 1 718 5 view .LVU204
|
||
731 0010 02F18832 add r2, r2, #-2004318072
|
||
732 0014 9A60 str r2, [r3, #8]
|
||
725:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
733 .loc 1 725 3 view .LVU205
|
||
725:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
734 .loc 1 725 10 is_stmt 0 view .LVU206
|
||
735 0016 0020 movs r0, #0
|
||
736 0018 7047 bx lr
|
||
737 .L55:
|
||
722:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
738 .loc 1 722 12 view .LVU207
|
||
739 001a 0120 movs r0, #1
|
||
726:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
740 .loc 1 726 1 view .LVU208
|
||
741 001c 7047 bx lr
|
||
742 .L57:
|
||
743 001e 00BF .align 2
|
||
744 .L56:
|
||
745 0020 00200240 .word 1073881088
|
||
746 0024 23016745 .word 1164378403
|
||
747 .cfi_endproc
|
||
748 .LFE72:
|
||
750 .section .text.HAL_FLASH_OB_Lock,"ax",%progbits
|
||
751 .align 1
|
||
752 .global HAL_FLASH_OB_Lock
|
||
753 .syntax unified
|
||
754 .thumb
|
||
755 .thumb_func
|
||
756 .fpu softvfp
|
||
758 HAL_FLASH_OB_Lock:
|
||
759 .LFB73:
|
||
733:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Clear the OPTWRE Bit to lock the FLASH Option Byte Registers access */
|
||
760 .loc 1 733 1 is_stmt 1 view -0
|
||
761 .cfi_startproc
|
||
762 @ args = 0, pretend = 0, frame = 0
|
||
763 @ frame_needed = 0, uses_anonymous_args = 0
|
||
764 @ link register save eliminated.
|
||
735:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
765 .loc 1 735 3 view .LVU210
|
||
766 0000 034A ldr r2, .L59
|
||
767 0002 1369 ldr r3, [r2, #16]
|
||
768 0004 23F40073 bic r3, r3, #512
|
||
769 0008 1361 str r3, [r2, #16]
|
||
737:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
770 .loc 1 737 3 view .LVU211
|
||
738:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
ARM GAS /tmp/ccYB9eBD.s page 34
|
||
|
||
|
||
771 .loc 1 738 1 is_stmt 0 view .LVU212
|
||
772 000a 0020 movs r0, #0
|
||
773 000c 7047 bx lr
|
||
774 .L60:
|
||
775 000e 00BF .align 2
|
||
776 .L59:
|
||
777 0010 00200240 .word 1073881088
|
||
778 .cfi_endproc
|
||
779 .LFE73:
|
||
781 .section .text.HAL_FLASH_OB_Launch,"ax",%progbits
|
||
782 .align 1
|
||
783 .global HAL_FLASH_OB_Launch
|
||
784 .syntax unified
|
||
785 .thumb
|
||
786 .thumb_func
|
||
787 .fpu softvfp
|
||
789 HAL_FLASH_OB_Launch:
|
||
790 .LFB74:
|
||
746:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Initiates a system reset request to launch the option byte loading */
|
||
791 .loc 1 746 1 is_stmt 1 view -0
|
||
792 .cfi_startproc
|
||
793 @ args = 0, pretend = 0, frame = 0
|
||
794 @ frame_needed = 0, uses_anonymous_args = 0
|
||
795 0000 08B5 push {r3, lr}
|
||
796 .LCFI2:
|
||
797 .cfi_def_cfa_offset 8
|
||
798 .cfi_offset 3, -8
|
||
799 .cfi_offset 14, -4
|
||
748:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
800 .loc 1 748 3 view .LVU214
|
||
801 0002 FFF7FEFF bl HAL_NVIC_SystemReset
|
||
802 .LVL39:
|
||
749:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
803 .loc 1 749 1 is_stmt 0 view .LVU215
|
||
804 0006 08BD pop {r3, pc}
|
||
805 .cfi_endproc
|
||
806 .LFE74:
|
||
808 .section .text.HAL_FLASH_GetError,"ax",%progbits
|
||
809 .align 1
|
||
810 .global HAL_FLASH_GetError
|
||
811 .syntax unified
|
||
812 .thumb
|
||
813 .thumb_func
|
||
814 .fpu softvfp
|
||
816 HAL_FLASH_GetError:
|
||
817 .LFB75:
|
||
775:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return pFlash.ErrorCode;
|
||
818 .loc 1 775 1 is_stmt 1 view -0
|
||
819 .cfi_startproc
|
||
820 @ args = 0, pretend = 0, frame = 0
|
||
821 @ frame_needed = 0, uses_anonymous_args = 0
|
||
822 @ link register save eliminated.
|
||
776:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
823 .loc 1 776 4 view .LVU217
|
||
776:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
824 .loc 1 776 17 is_stmt 0 view .LVU218
|
||
825 0000 014B ldr r3, .L64
|
||
ARM GAS /tmp/ccYB9eBD.s page 35
|
||
|
||
|
||
826 0002 D869 ldr r0, [r3, #28]
|
||
777:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
827 .loc 1 777 1 view .LVU219
|
||
828 0004 7047 bx lr
|
||
829 .L65:
|
||
830 0006 00BF .align 2
|
||
831 .L64:
|
||
832 0008 00000000 .word pFlash
|
||
833 .cfi_endproc
|
||
834 .LFE75:
|
||
836 .section .text.FLASH_WaitForLastOperation,"ax",%progbits
|
||
837 .align 1
|
||
838 .global FLASH_WaitForLastOperation
|
||
839 .syntax unified
|
||
840 .thumb
|
||
841 .thumb_func
|
||
842 .fpu softvfp
|
||
844 FLASH_WaitForLastOperation:
|
||
845 .LVL40:
|
||
846 .LFB77:
|
||
827:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Wait for the FLASH operation to complete by polling on BUSY flag to be reset.
|
||
847 .loc 1 827 1 is_stmt 1 view -0
|
||
848 .cfi_startproc
|
||
849 @ args = 0, pretend = 0, frame = 0
|
||
850 @ frame_needed = 0, uses_anonymous_args = 0
|
||
827:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Wait for the FLASH operation to complete by polling on BUSY flag to be reset.
|
||
851 .loc 1 827 1 is_stmt 0 view .LVU221
|
||
852 0000 38B5 push {r3, r4, r5, lr}
|
||
853 .LCFI3:
|
||
854 .cfi_def_cfa_offset 16
|
||
855 .cfi_offset 3, -16
|
||
856 .cfi_offset 4, -12
|
||
857 .cfi_offset 5, -8
|
||
858 .cfi_offset 14, -4
|
||
859 0002 0446 mov r4, r0
|
||
832:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
860 .loc 1 832 3 is_stmt 1 view .LVU222
|
||
832:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
861 .loc 1 832 24 is_stmt 0 view .LVU223
|
||
862 0004 FFF7FEFF bl HAL_GetTick
|
||
863 .LVL41:
|
||
832:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
864 .loc 1 832 24 view .LVU224
|
||
865 0008 0546 mov r5, r0
|
||
866 .LVL42:
|
||
834:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
867 .loc 1 834 3 is_stmt 1 view .LVU225
|
||
868 .L68:
|
||
834:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
869 .loc 1 834 9 is_stmt 0 view .LVU226
|
||
870 000a 164B ldr r3, .L77
|
||
871 000c DB68 ldr r3, [r3, #12]
|
||
834:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
872 .loc 1 834 8 view .LVU227
|
||
873 000e 13F0010F tst r3, #1
|
||
874 0012 0AD0 beq .L76
|
||
836:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
ARM GAS /tmp/ccYB9eBD.s page 36
|
||
|
||
|
||
875 .loc 1 836 5 is_stmt 1 view .LVU228
|
||
836:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
876 .loc 1 836 8 is_stmt 0 view .LVU229
|
||
877 0014 B4F1FF3F cmp r4, #-1
|
||
878 0018 F7D0 beq .L68
|
||
838:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
879 .loc 1 838 7 is_stmt 1 view .LVU230
|
||
838:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
880 .loc 1 838 9 is_stmt 0 view .LVU231
|
||
881 001a 24B1 cbz r4, .L69
|
||
838:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
882 .loc 1 838 31 discriminator 1 view .LVU232
|
||
883 001c FFF7FEFF bl HAL_GetTick
|
||
884 .LVL43:
|
||
838:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
885 .loc 1 838 44 discriminator 1 view .LVU233
|
||
886 0020 401B subs r0, r0, r5
|
||
838:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
887 .loc 1 838 26 discriminator 1 view .LVU234
|
||
888 0022 A042 cmp r0, r4
|
||
889 0024 F1D9 bls .L68
|
||
890 .L69:
|
||
840:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
891 .loc 1 840 9 is_stmt 1 view .LVU235
|
||
840:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
892 .loc 1 840 16 is_stmt 0 view .LVU236
|
||
893 0026 0320 movs r0, #3
|
||
894 0028 1BE0 b .L70
|
||
895 .L76:
|
||
846:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
896 .loc 1 846 3 is_stmt 1 view .LVU237
|
||
846:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
897 .loc 1 846 7 is_stmt 0 view .LVU238
|
||
898 002a 0E4B ldr r3, .L77
|
||
899 002c DB68 ldr r3, [r3, #12]
|
||
846:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
900 .loc 1 846 6 view .LVU239
|
||
901 002e 13F0200F tst r3, #32
|
||
902 0032 02D0 beq .L72
|
||
849:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
903 .loc 1 849 5 is_stmt 1 discriminator 2 view .LVU240
|
||
849:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
904 .loc 1 849 5 discriminator 2 view .LVU241
|
||
849:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
905 .loc 1 849 5 discriminator 2 view .LVU242
|
||
906 0034 0B4B ldr r3, .L77
|
||
907 0036 2022 movs r2, #32
|
||
908 0038 DA60 str r2, [r3, #12]
|
||
909 .L72:
|
||
852:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR) ||
|
||
910 .loc 1 852 3 view .LVU243
|
||
852:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR) ||
|
||
911 .loc 1 852 6 is_stmt 0 view .LVU244
|
||
912 003a 0A4B ldr r3, .L77
|
||
913 003c DB68 ldr r3, [r3, #12]
|
||
852:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR) ||
|
||
914 .loc 1 852 5 view .LVU245
|
||
ARM GAS /tmp/ccYB9eBD.s page 37
|
||
|
||
|
||
915 003e 13F0100F tst r3, #16
|
||
916 0042 0BD1 bne .L73
|
||
853:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR))
|
||
917 .loc 1 853 6 discriminator 1 view .LVU246
|
||
918 0044 074B ldr r3, .L77
|
||
919 0046 DB69 ldr r3, [r3, #28]
|
||
852:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR) ||
|
||
920 .loc 1 852 47 discriminator 1 view .LVU247
|
||
921 0048 13F0010F tst r3, #1
|
||
922 004c 06D1 bne .L73
|
||
854:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
923 .loc 1 854 6 view .LVU248
|
||
924 004e 054B ldr r3, .L77
|
||
925 0050 DB68 ldr r3, [r3, #12]
|
||
853:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR))
|
||
926 .loc 1 853 47 view .LVU249
|
||
927 0052 13F0040F tst r3, #4
|
||
928 0056 01D1 bne .L73
|
||
862:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
929 .loc 1 862 10 view .LVU250
|
||
930 0058 0020 movs r0, #0
|
||
931 005a 02E0 b .L70
|
||
932 .L73:
|
||
857:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_ERROR;
|
||
933 .loc 1 857 5 is_stmt 1 view .LVU251
|
||
934 005c FFF7FEFF bl FLASH_SetErrorCode
|
||
935 .LVL44:
|
||
858:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
936 .loc 1 858 5 view .LVU252
|
||
858:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
937 .loc 1 858 12 is_stmt 0 view .LVU253
|
||
938 0060 0120 movs r0, #1
|
||
939 .L70:
|
||
863:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
940 .loc 1 863 1 view .LVU254
|
||
941 0062 38BD pop {r3, r4, r5, pc}
|
||
942 .LVL45:
|
||
943 .L78:
|
||
863:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
944 .loc 1 863 1 view .LVU255
|
||
945 .align 2
|
||
946 .L77:
|
||
947 0064 00200240 .word 1073881088
|
||
948 .cfi_endproc
|
||
949 .LFE77:
|
||
951 .section .text.HAL_FLASH_Program,"ax",%progbits
|
||
952 .align 1
|
||
953 .global HAL_FLASH_Program
|
||
954 .syntax unified
|
||
955 .thumb
|
||
956 .thumb_func
|
||
957 .fpu softvfp
|
||
959 HAL_FLASH_Program:
|
||
960 .LVL46:
|
||
961 .LFB65:
|
||
169:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_ERROR;
|
||
962 .loc 1 169 1 is_stmt 1 view -0
|
||
ARM GAS /tmp/ccYB9eBD.s page 38
|
||
|
||
|
||
963 .cfi_startproc
|
||
964 @ args = 0, pretend = 0, frame = 0
|
||
965 @ frame_needed = 0, uses_anonymous_args = 0
|
||
169:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_ERROR;
|
||
966 .loc 1 169 1 is_stmt 0 view .LVU257
|
||
967 0000 2DE9F843 push {r3, r4, r5, r6, r7, r8, r9, lr}
|
||
968 .LCFI4:
|
||
969 .cfi_def_cfa_offset 32
|
||
970 .cfi_offset 3, -32
|
||
971 .cfi_offset 4, -28
|
||
972 .cfi_offset 5, -24
|
||
973 .cfi_offset 6, -20
|
||
974 .cfi_offset 7, -16
|
||
975 .cfi_offset 8, -12
|
||
976 .cfi_offset 9, -8
|
||
977 .cfi_offset 14, -4
|
||
170:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** uint8_t index = 0;
|
||
978 .loc 1 170 3 is_stmt 1 view .LVU258
|
||
979 .LVL47:
|
||
171:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** uint8_t nbiterations = 0;
|
||
980 .loc 1 171 3 view .LVU259
|
||
172:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
981 .loc 1 172 3 view .LVU260
|
||
175:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
982 .loc 1 175 3 view .LVU261
|
||
175:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
983 .loc 1 175 3 view .LVU262
|
||
984 0004 234C ldr r4, .L90
|
||
985 0006 247E ldrb r4, [r4, #24] @ zero_extendqisi2
|
||
986 0008 012C cmp r4, #1
|
||
987 000a 41D0 beq .L85
|
||
988 000c 1E46 mov r6, r3
|
||
989 000e 9046 mov r8, r2
|
||
990 0010 0F46 mov r7, r1
|
||
991 0012 0446 mov r4, r0
|
||
175:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
992 .loc 1 175 3 discriminator 2 view .LVU263
|
||
993 0014 1F4B ldr r3, .L90
|
||
994 0016 0122 movs r2, #1
|
||
995 .LVL48:
|
||
175:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
996 .loc 1 175 3 is_stmt 0 discriminator 2 view .LVU264
|
||
997 0018 1A76 strb r2, [r3, #24]
|
||
178:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** assert_param(IS_FLASH_PROGRAM_ADDRESS(Address));
|
||
998 .loc 1 178 3 is_stmt 1 discriminator 2 view .LVU265
|
||
179:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
999 .loc 1 179 3 discriminator 2 view .LVU266
|
||
186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
1000 .loc 1 186 5 discriminator 2 view .LVU267
|
||
186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
1001 .loc 1 186 14 is_stmt 0 discriminator 2 view .LVU268
|
||
1002 001a 4CF25030 movw r0, #50000
|
||
1003 .LVL49:
|
||
186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
1004 .loc 1 186 14 discriminator 2 view .LVU269
|
||
1005 001e FFF7FEFF bl FLASH_WaitForLastOperation
|
||
1006 .LVL50:
|
||
ARM GAS /tmp/ccYB9eBD.s page 39
|
||
|
||
|
||
196:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
1007 .loc 1 196 3 is_stmt 1 discriminator 2 view .LVU270
|
||
196:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
1008 .loc 1 196 5 is_stmt 0 discriminator 2 view .LVU271
|
||
1009 0022 0346 mov r3, r0
|
||
1010 0024 70BB cbnz r0, .L81
|
||
198:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
1011 .loc 1 198 5 is_stmt 1 view .LVU272
|
||
198:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
1012 .loc 1 198 7 is_stmt 0 view .LVU273
|
||
1013 0026 012C cmp r4, #1
|
||
1014 0028 29D0 beq .L86
|
||
203:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
1015 .loc 1 203 10 is_stmt 1 view .LVU274
|
||
203:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
1016 .loc 1 203 12 is_stmt 0 view .LVU275
|
||
1017 002a 022C cmp r4, #2
|
||
1018 002c 24D0 beq .L89
|
||
211:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
1019 .loc 1 211 20 view .LVU276
|
||
1020 002e 4FF00409 mov r9, #4
|
||
1021 .L82:
|
||
1022 .LVL51:
|
||
214:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
1023 .loc 1 214 5 is_stmt 1 view .LVU277
|
||
214:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
1024 .loc 1 214 16 is_stmt 0 view .LVU278
|
||
1025 0032 0024 movs r4, #0
|
||
1026 .LVL52:
|
||
1027 .L83:
|
||
214:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
1028 .loc 1 214 5 discriminator 1 view .LVU279
|
||
1029 0034 4C45 cmp r4, r9
|
||
1030 0036 25D2 bcs .L81
|
||
216:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
1031 .loc 1 216 7 is_stmt 1 view .LVU280
|
||
216:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
1032 .loc 1 216 77 is_stmt 0 view .LVU281
|
||
1033 0038 2101 lsls r1, r4, #4
|
||
216:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
1034 .loc 1 216 70 view .LVU282
|
||
1035 003a C1F12002 rsb r2, r1, #32
|
||
1036 003e A1F12003 sub r3, r1, #32
|
||
1037 .LVL53:
|
||
216:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
1038 .loc 1 216 70 view .LVU283
|
||
1039 0042 28FA01F1 lsr r1, r8, r1
|
||
1040 0046 06FA02F2 lsl r2, r6, r2
|
||
1041 004a 1143 orrs r1, r1, r2
|
||
1042 004c 26FA03F3 lsr r3, r6, r3
|
||
1043 0050 1943 orrs r1, r1, r3
|
||
216:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
1044 .loc 1 216 7 view .LVU284
|
||
1045 0052 89B2 uxth r1, r1
|
||
1046 0054 07EB4400 add r0, r7, r4, lsl #1
|
||
1047 0058 FFF7FEFF bl FLASH_Program_HalfWord
|
||
1048 .LVL54:
|
||
ARM GAS /tmp/ccYB9eBD.s page 40
|
||
|
||
|
||
223:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
1049 .loc 1 223 9 is_stmt 1 view .LVU285
|
||
223:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
1050 .loc 1 223 18 is_stmt 0 view .LVU286
|
||
1051 005c 4CF25030 movw r0, #50000
|
||
1052 0060 FFF7FEFF bl FLASH_WaitForLastOperation
|
||
1053 .LVL55:
|
||
226:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END)
|
||
1054 .loc 1 226 9 is_stmt 1 view .LVU287
|
||
1055 0064 0C4B ldr r3, .L90+4
|
||
1056 0066 1D69 ldr r5, [r3, #16]
|
||
1057 0068 25F00105 bic r5, r5, #1
|
||
1058 006c 1D61 str r5, [r3, #16]
|
||
239:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
1059 .loc 1 239 7 view .LVU288
|
||
239:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
1060 .loc 1 239 10 is_stmt 0 view .LVU289
|
||
1061 006e 0346 mov r3, r0
|
||
1062 0070 40B9 cbnz r0, .L81
|
||
214:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
1063 .loc 1 214 49 discriminator 2 view .LVU290
|
||
1064 0072 0134 adds r4, r4, #1
|
||
1065 .LVL56:
|
||
214:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
1066 .loc 1 214 49 discriminator 2 view .LVU291
|
||
1067 0074 E4B2 uxtb r4, r4
|
||
1068 .LVL57:
|
||
214:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** {
|
||
1069 .loc 1 214 49 discriminator 2 view .LVU292
|
||
1070 0076 DDE7 b .L83
|
||
1071 .LVL58:
|
||
1072 .L89:
|
||
206:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
1073 .loc 1 206 20 view .LVU293
|
||
1074 0078 4FF00209 mov r9, #2
|
||
1075 007c D9E7 b .L82
|
||
1076 .L86:
|
||
201:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
1077 .loc 1 201 20 view .LVU294
|
||
1078 007e 4FF00109 mov r9, #1
|
||
1079 0082 D6E7 b .L82
|
||
1080 .LVL59:
|
||
1081 .L81:
|
||
247:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
1082 .loc 1 247 3 is_stmt 1 view .LVU295
|
||
247:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
1083 .loc 1 247 3 view .LVU296
|
||
1084 0084 034A ldr r2, .L90
|
||
1085 0086 0021 movs r1, #0
|
||
1086 0088 1176 strb r1, [r2, #24]
|
||
249:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }
|
||
1087 .loc 1 249 3 view .LVU297
|
||
1088 .LVL60:
|
||
1089 .L80:
|
||
250:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
1090 .loc 1 250 1 is_stmt 0 view .LVU298
|
||
1091 008a 1846 mov r0, r3
|
||
ARM GAS /tmp/ccYB9eBD.s page 41
|
||
|
||
|
||
1092 008c BDE8F883 pop {r3, r4, r5, r6, r7, r8, r9, pc}
|
||
1093 .LVL61:
|
||
1094 .L85:
|
||
175:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c ****
|
||
1095 .loc 1 175 3 view .LVU299
|
||
1096 0090 0223 movs r3, #2
|
||
1097 0092 FAE7 b .L80
|
||
1098 .L91:
|
||
1099 .align 2
|
||
1100 .L90:
|
||
1101 0094 00000000 .word pFlash
|
||
1102 0098 00200240 .word 1073881088
|
||
1103 .cfi_endproc
|
||
1104 .LFE65:
|
||
1106 .comm pFlash,32,8
|
||
1107 .text
|
||
1108 .Letext0:
|
||
1109 .file 2 "/usr/arm-none-eabi/include/machine/_default_types.h"
|
||
1110 .file 3 "/usr/arm-none-eabi/include/sys/_stdint.h"
|
||
1111 .file 4 "Drivers/CMSIS/Include/core_cm3.h"
|
||
1112 .file 5 "Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h"
|
||
1113 .file 6 "Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h"
|
||
1114 .file 7 "Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h"
|
||
1115 .file 8 "Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h"
|
||
1116 .file 9 "Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h"
|
||
1117 .file 10 "Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h"
|
||
1118 .file 11 "Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h"
|
||
ARM GAS /tmp/ccYB9eBD.s page 42
|
||
|
||
|
||
DEFINED SYMBOLS
|
||
*ABS*:0000000000000000 stm32f1xx_hal_flash.c
|
||
/tmp/ccYB9eBD.s:16 .text.FLASH_Program_HalfWord:0000000000000000 $t
|
||
/tmp/ccYB9eBD.s:23 .text.FLASH_Program_HalfWord:0000000000000000 FLASH_Program_HalfWord
|
||
/tmp/ccYB9eBD.s:50 .text.FLASH_Program_HalfWord:0000000000000014 $d
|
||
*COM*:0000000000000020 pFlash
|
||
/tmp/ccYB9eBD.s:56 .text.FLASH_SetErrorCode:0000000000000000 $t
|
||
/tmp/ccYB9eBD.s:62 .text.FLASH_SetErrorCode:0000000000000000 FLASH_SetErrorCode
|
||
/tmp/ccYB9eBD.s:144 .text.FLASH_SetErrorCode:0000000000000058 $d
|
||
/tmp/ccYB9eBD.s:150 .text.HAL_FLASH_Program_IT:0000000000000000 $t
|
||
/tmp/ccYB9eBD.s:157 .text.HAL_FLASH_Program_IT:0000000000000000 HAL_FLASH_Program_IT
|
||
/tmp/ccYB9eBD.s:268 .text.HAL_FLASH_Program_IT:000000000000005c $d
|
||
/tmp/ccYB9eBD.s:274 .text.HAL_FLASH_EndOfOperationCallback:0000000000000000 $t
|
||
/tmp/ccYB9eBD.s:281 .text.HAL_FLASH_EndOfOperationCallback:0000000000000000 HAL_FLASH_EndOfOperationCallback
|
||
/tmp/ccYB9eBD.s:296 .text.HAL_FLASH_OperationErrorCallback:0000000000000000 $t
|
||
/tmp/ccYB9eBD.s:303 .text.HAL_FLASH_OperationErrorCallback:0000000000000000 HAL_FLASH_OperationErrorCallback
|
||
/tmp/ccYB9eBD.s:318 .text.HAL_FLASH_IRQHandler:0000000000000000 $t
|
||
/tmp/ccYB9eBD.s:325 .text.HAL_FLASH_IRQHandler:0000000000000000 HAL_FLASH_IRQHandler
|
||
/tmp/ccYB9eBD.s:610 .text.HAL_FLASH_IRQHandler:000000000000014c $d
|
||
/tmp/ccYB9eBD.s:616 .text.HAL_FLASH_Unlock:0000000000000000 $t
|
||
/tmp/ccYB9eBD.s:623 .text.HAL_FLASH_Unlock:0000000000000000 HAL_FLASH_Unlock
|
||
/tmp/ccYB9eBD.s:668 .text.HAL_FLASH_Unlock:000000000000002c $d
|
||
/tmp/ccYB9eBD.s:674 .text.HAL_FLASH_Lock:0000000000000000 $t
|
||
/tmp/ccYB9eBD.s:681 .text.HAL_FLASH_Lock:0000000000000000 HAL_FLASH_Lock
|
||
/tmp/ccYB9eBD.s:700 .text.HAL_FLASH_Lock:0000000000000010 $d
|
||
/tmp/ccYB9eBD.s:705 .text.HAL_FLASH_OB_Unlock:0000000000000000 $t
|
||
/tmp/ccYB9eBD.s:712 .text.HAL_FLASH_OB_Unlock:0000000000000000 HAL_FLASH_OB_Unlock
|
||
/tmp/ccYB9eBD.s:745 .text.HAL_FLASH_OB_Unlock:0000000000000020 $d
|
||
/tmp/ccYB9eBD.s:751 .text.HAL_FLASH_OB_Lock:0000000000000000 $t
|
||
/tmp/ccYB9eBD.s:758 .text.HAL_FLASH_OB_Lock:0000000000000000 HAL_FLASH_OB_Lock
|
||
/tmp/ccYB9eBD.s:777 .text.HAL_FLASH_OB_Lock:0000000000000010 $d
|
||
/tmp/ccYB9eBD.s:782 .text.HAL_FLASH_OB_Launch:0000000000000000 $t
|
||
/tmp/ccYB9eBD.s:789 .text.HAL_FLASH_OB_Launch:0000000000000000 HAL_FLASH_OB_Launch
|
||
/tmp/ccYB9eBD.s:809 .text.HAL_FLASH_GetError:0000000000000000 $t
|
||
/tmp/ccYB9eBD.s:816 .text.HAL_FLASH_GetError:0000000000000000 HAL_FLASH_GetError
|
||
/tmp/ccYB9eBD.s:832 .text.HAL_FLASH_GetError:0000000000000008 $d
|
||
/tmp/ccYB9eBD.s:837 .text.FLASH_WaitForLastOperation:0000000000000000 $t
|
||
/tmp/ccYB9eBD.s:844 .text.FLASH_WaitForLastOperation:0000000000000000 FLASH_WaitForLastOperation
|
||
/tmp/ccYB9eBD.s:947 .text.FLASH_WaitForLastOperation:0000000000000064 $d
|
||
/tmp/ccYB9eBD.s:952 .text.HAL_FLASH_Program:0000000000000000 $t
|
||
/tmp/ccYB9eBD.s:959 .text.HAL_FLASH_Program:0000000000000000 HAL_FLASH_Program
|
||
/tmp/ccYB9eBD.s:1101 .text.HAL_FLASH_Program:0000000000000094 $d
|
||
|
||
UNDEFINED SYMBOLS
|
||
FLASH_PageErase
|
||
HAL_NVIC_SystemReset
|
||
HAL_GetTick
|