Rev 18 | Rev 20 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
19 | mjames | 1 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 1 |
16 | mjames | 2 | |
3 | |||
4 | 1 .cpu cortex-m3 |
||
5 | 2 .eabi_attribute 20, 1 |
||
6 | 3 .eabi_attribute 21, 1 |
||
7 | 4 .eabi_attribute 23, 3 |
||
8 | 5 .eabi_attribute 24, 1 |
||
9 | 6 .eabi_attribute 25, 1 |
||
10 | 7 .eabi_attribute 26, 1 |
||
11 | 8 .eabi_attribute 30, 1 |
||
12 | 9 .eabi_attribute 34, 1 |
||
13 | 10 .eabi_attribute 18, 4 |
||
14 | 11 .file "stm32f1xx_hal_flash.c" |
||
15 | 12 .text |
||
16 | 13 .Ltext0: |
||
17 | 14 .cfi_sections .debug_frame |
||
18 | 15 .section .text.FLASH_Program_HalfWord,"ax",%progbits |
||
19 | 16 .align 1 |
||
20 | 17 .arch armv7-m |
||
21 | 18 .syntax unified |
||
22 | 19 .thumb |
||
23 | 20 .thumb_func |
||
24 | 21 .fpu softvfp |
||
25 | 23 FLASH_Program_HalfWord: |
||
26 | 24 .LVL0: |
||
27 | 25 .LFB76: |
||
28 | 26 .file 1 "Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c" |
||
29 | 1:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
30 | 2:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ****************************************************************************** |
||
31 | 3:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @file stm32f1xx_hal_flash.c |
||
32 | 4:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @author MCD Application Team |
||
33 | 5:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief FLASH HAL module driver. |
||
34 | 6:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * This file provides firmware functions to manage the following |
||
35 | 7:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * functionalities of the internal FLASH memory: |
||
36 | 8:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * + Program operations functions |
||
37 | 9:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * + Memory Control functions |
||
38 | 10:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * + Peripheral State functions |
||
39 | 11:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * |
||
40 | 12:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** @verbatim |
||
41 | 13:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ============================================================================== |
||
42 | 14:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ##### FLASH peripheral features ##### |
||
43 | 15:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ============================================================================== |
||
44 | 16:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** [..] The Flash memory interface manages CPU AHB I-Code and D-Code accesses |
||
45 | 17:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** to the Flash memory. It implements the erase and program Flash memory operations |
||
46 | 18:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** and the read and write protection mechanisms. |
||
47 | 19:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
48 | 20:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** [..] The Flash memory interface accelerates code execution with a system of instruction |
||
49 | 21:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** prefetch. |
||
50 | 22:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
51 | 23:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** [..] The FLASH main features are: |
||
52 | 24:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (+) Flash memory read operations |
||
53 | 25:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (+) Flash memory program/erase operations |
||
54 | 26:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (+) Read / write protections |
||
55 | 27:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (+) Prefetch on I-Code |
||
56 | 28:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (+) Option Bytes programming |
||
57 | 29:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
58 | 30:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
59 | 31:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ##### How to use this driver ##### |
||
60 | 32:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ============================================================================== |
||
19 | mjames | 61 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 2 |
16 | mjames | 62 | |
63 | |||
64 | 33:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** [..] |
||
65 | 34:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** This driver provides functions and macros to configure and program the FLASH |
||
66 | 35:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** memory of all STM32F1xx devices. |
||
67 | 36:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
68 | 37:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (#) FLASH Memory I/O Programming functions: this group includes all needed |
||
69 | 38:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** functions to erase and program the main memory: |
||
70 | 39:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Lock and Unlock the FLASH interface |
||
71 | 40:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Erase function: Erase page, erase all pages |
||
72 | 41:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Program functions: half word, word and doubleword |
||
73 | 42:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (#) FLASH Option Bytes Programming functions: this group includes all needed |
||
74 | 43:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** functions to manage the Option Bytes: |
||
75 | 44:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Lock and Unlock the Option Bytes |
||
76 | 45:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Set/Reset the write protection |
||
77 | 46:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Set the Read protection Level |
||
78 | 47:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Program the user Option Bytes |
||
79 | 48:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Launch the Option Bytes loader |
||
80 | 49:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Erase Option Bytes |
||
81 | 50:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Program the data Option Bytes |
||
82 | 51:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Get the Write protection. |
||
83 | 52:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Get the user option bytes. |
||
84 | 53:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
85 | 54:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (#) Interrupts and flags management functions : this group |
||
86 | 55:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** includes all needed functions to: |
||
87 | 56:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Handle FLASH interrupts |
||
88 | 57:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Wait for last FLASH operation according to its status |
||
89 | 58:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (++) Get error flag status |
||
90 | 59:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
91 | 60:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** [..] In addition to these function, this driver includes a set of macros allowing |
||
92 | 61:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** to handle the following operations: |
||
93 | 62:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
94 | 63:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (+) Set/Get the latency |
||
95 | 64:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (+) Enable/Disable the prefetch buffer |
||
96 | 65:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (+) Enable/Disable the half cycle access |
||
97 | 66:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (+) Enable/Disable the FLASH interrupts |
||
98 | 67:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** (+) Monitor the FLASH flags status |
||
99 | 68:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
100 | 69:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** @endverbatim |
||
101 | 70:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ****************************************************************************** |
||
102 | 71:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @attention |
||
103 | 72:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * |
||
104 | 73:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * <h2><center>© Copyright (c) 2016 STMicroelectronics. |
||
105 | 74:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * All rights reserved.</center></h2> |
||
106 | 75:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * |
||
107 | 76:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * This software component is licensed by ST under BSD 3-Clause license, |
||
108 | 77:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * the "License"; You may not use this file except in compliance with the |
||
109 | 78:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * License. You may obtain a copy of the License at: |
||
110 | 79:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * opensource.org/licenses/BSD-3-Clause |
||
111 | 80:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * |
||
112 | 81:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ****************************************************************************** |
||
113 | 82:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
114 | 83:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
115 | 84:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Includes ------------------------------------------------------------------*/ |
||
116 | 85:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #include "stm32f1xx_hal.h" |
||
117 | 86:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
118 | 87:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** @addtogroup STM32F1xx_HAL_Driver |
||
119 | 88:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @{ |
||
120 | 89:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
19 | mjames | 121 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 3 |
16 | mjames | 122 | |
123 | |||
124 | 90:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
125 | 91:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #ifdef HAL_FLASH_MODULE_ENABLED |
||
126 | 92:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
127 | 93:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** @defgroup FLASH FLASH |
||
128 | 94:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief FLASH HAL module driver |
||
129 | 95:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @{ |
||
130 | 96:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
131 | 97:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
132 | 98:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Private typedef -----------------------------------------------------------*/ |
||
133 | 99:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Private define ------------------------------------------------------------*/ |
||
134 | 100:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** @defgroup FLASH_Private_Constants FLASH Private Constants |
||
135 | 101:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @{ |
||
136 | 102:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
137 | 103:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
138 | 104:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @} |
||
139 | 105:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
140 | 106:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
141 | 107:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Private macro ---------------------------- ---------------------------------*/ |
||
142 | 108:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** @defgroup FLASH_Private_Macros FLASH Private Macros |
||
143 | 109:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @{ |
||
144 | 110:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
145 | 111:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
146 | 112:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
147 | 113:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @} |
||
148 | 114:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
149 | 115:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
150 | 116:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Private variables ---------------------------------------------------------*/ |
||
151 | 117:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** @defgroup FLASH_Private_Variables FLASH Private Variables |
||
152 | 118:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @{ |
||
153 | 119:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
154 | 120:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Variables used for Erase pages under interruption*/ |
||
155 | 121:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** FLASH_ProcessTypeDef pFlash; |
||
156 | 122:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
157 | 123:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @} |
||
158 | 124:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
159 | 125:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
160 | 126:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Private function prototypes -----------------------------------------------*/ |
||
161 | 127:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** @defgroup FLASH_Private_Functions FLASH Private Functions |
||
162 | 128:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @{ |
||
163 | 129:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
164 | 130:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** static void FLASH_Program_HalfWord(uint32_t Address, uint16_t Data); |
||
165 | 131:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** static void FLASH_SetErrorCode(void); |
||
166 | 132:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** extern void FLASH_PageErase(uint32_t PageAddress); |
||
167 | 133:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
168 | 134:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @} |
||
169 | 135:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
170 | 136:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
171 | 137:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Exported functions ---------------------------------------------------------*/ |
||
172 | 138:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions FLASH Exported Functions |
||
173 | 139:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @{ |
||
174 | 140:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
175 | 141:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
176 | 142:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions_Group1 Programming operation functions |
||
177 | 143:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Programming operation functions |
||
178 | 144:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * |
||
179 | 145:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** @verbatim |
||
180 | 146:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** @endverbatim |
||
19 | mjames | 181 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 4 |
16 | mjames | 182 | |
183 | |||
184 | 147:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @{ |
||
185 | 148:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
186 | 149:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
187 | 150:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
188 | 151:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Program halfword, word or double word at a specified address |
||
189 | 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 |
||
190 | 153:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * The function HAL_FLASH_Lock() should be called after to lock the FLASH interface |
||
191 | 154:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * |
||
192 | 155:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @note If an erase and a program operations are requested simultaneously, |
||
193 | 156:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * the erase operation is performed before the program one. |
||
194 | 157:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * |
||
195 | 158:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @note FLASH should be previously erased before new programmation (only exception to this |
||
196 | 159:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * is when 0x0000 is programmed) |
||
197 | 160:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * |
||
198 | 161:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param TypeProgram: Indicate the way to program at a specified address. |
||
199 | 162:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * This parameter can be a value of @ref FLASH_Type_Program |
||
200 | 163:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param Address: Specifies the address to be programmed. |
||
201 | 164:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param Data: Specifies the data to be programmed |
||
202 | 165:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * |
||
203 | 166:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval HAL_StatusTypeDef HAL Status |
||
204 | 167:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
205 | 168:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t Address, uint64_t Data) |
||
206 | 169:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
207 | 170:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_ERROR; |
||
208 | 171:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** uint8_t index = 0; |
||
209 | 172:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** uint8_t nbiterations = 0; |
||
210 | 173:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
211 | 174:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Process Locked */ |
||
212 | 175:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_LOCK(&pFlash); |
||
213 | 176:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
214 | 177:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Check the parameters */ |
||
215 | 178:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** assert_param(IS_FLASH_TYPEPROGRAM(TypeProgram)); |
||
216 | 179:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** assert_param(IS_FLASH_PROGRAM_ADDRESS(Address)); |
||
217 | 180:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
218 | 181:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
219 | 182:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(Address <= FLASH_BANK1_END) |
||
220 | 183:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
221 | 184:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
222 | 185:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Wait for last operation to be completed */ |
||
223 | 186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** status = FLASH_WaitForLastOperation(FLASH_TIMEOUT_VALUE); |
||
224 | 187:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
225 | 188:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
226 | 189:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else |
||
227 | 190:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
228 | 191:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Wait for last operation to be completed */ |
||
229 | 192:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** status = FLASH_WaitForLastOperationBank2(FLASH_TIMEOUT_VALUE); |
||
230 | 193:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
231 | 194:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
232 | 195:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
233 | 196:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(status == HAL_OK) |
||
234 | 197:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
235 | 198:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(TypeProgram == FLASH_TYPEPROGRAM_HALFWORD) |
||
236 | 199:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
237 | 200:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program halfword (16-bit) at a specified address. */ |
||
238 | 201:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** nbiterations = 1U; |
||
239 | 202:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
240 | 203:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else if(TypeProgram == FLASH_TYPEPROGRAM_WORD) |
||
19 | mjames | 241 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 5 |
16 | mjames | 242 | |
243 | |||
244 | 204:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
245 | 205:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program word (32-bit = 2*16-bit) at a specified address. */ |
||
246 | 206:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** nbiterations = 2U; |
||
247 | 207:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
248 | 208:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else |
||
249 | 209:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
250 | 210:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program double word (64-bit = 4*16-bit) at a specified address. */ |
||
251 | 211:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** nbiterations = 4U; |
||
252 | 212:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
253 | 213:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
254 | 214:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** for (index = 0U; index < nbiterations; index++) |
||
255 | 215:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
256 | 216:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** FLASH_Program_HalfWord((Address + (2U*index)), (uint16_t)(Data >> (16U*index))); |
||
257 | 217:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
258 | 218:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
259 | 219:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(Address <= FLASH_BANK1_END) |
||
260 | 220:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
261 | 221:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
262 | 222:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Wait for last operation to be completed */ |
||
263 | 223:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** status = FLASH_WaitForLastOperation(FLASH_TIMEOUT_VALUE); |
||
264 | 224:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
265 | 225:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* If the program operation is completed, disable the PG Bit */ |
||
266 | 226:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PG); |
||
267 | 227:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
268 | 228:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
269 | 229:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else |
||
270 | 230:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
271 | 231:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Wait for last operation to be completed */ |
||
272 | 232:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** status = FLASH_WaitForLastOperationBank2(FLASH_TIMEOUT_VALUE); |
||
273 | 233:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
274 | 234:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* If the program operation is completed, disable the PG Bit */ |
||
275 | 235:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR2, FLASH_CR2_PG); |
||
276 | 236:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
277 | 237:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
278 | 238:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* In case of error, stop programation procedure */ |
||
279 | 239:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (status != HAL_OK) |
||
280 | 240:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
281 | 241:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** break; |
||
282 | 242:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
283 | 243:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
284 | 244:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
285 | 245:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
286 | 246:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Process Unlocked */ |
||
287 | 247:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_UNLOCK(&pFlash); |
||
288 | 248:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
289 | 249:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return status; |
||
290 | 250:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
291 | 251:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
292 | 252:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
293 | 253:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Program halfword, word or double word at a specified address with interrupt enabled. |
||
294 | 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 |
||
295 | 255:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * The function HAL_FLASH_Lock() should be called after to lock the FLASH interface |
||
296 | 256:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * |
||
297 | 257:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @note If an erase and a program operations are requested simultaneously, |
||
298 | 258:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * the erase operation is performed before the program one. |
||
299 | 259:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * |
||
300 | 260:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param TypeProgram: Indicate the way to program at a specified address. |
||
19 | mjames | 301 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 6 |
16 | mjames | 302 | |
303 | |||
304 | 261:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * This parameter can be a value of @ref FLASH_Type_Program |
||
305 | 262:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param Address: Specifies the address to be programmed. |
||
306 | 263:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param Data: Specifies the data to be programmed |
||
307 | 264:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * |
||
308 | 265:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval HAL_StatusTypeDef HAL Status |
||
309 | 266:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
310 | 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) |
||
311 | 268:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
312 | 269:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK; |
||
313 | 270:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
314 | 271:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Process Locked */ |
||
315 | 272:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_LOCK(&pFlash); |
||
316 | 273:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
317 | 274:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Check the parameters */ |
||
318 | 275:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** assert_param(IS_FLASH_TYPEPROGRAM(TypeProgram)); |
||
319 | 276:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** assert_param(IS_FLASH_PROGRAM_ADDRESS(Address)); |
||
320 | 277:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
321 | 278:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
322 | 279:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* If procedure already ongoing, reject the next one */ |
||
323 | 280:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (pFlash.ProcedureOnGoing != FLASH_PROC_NONE) |
||
324 | 281:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
325 | 282:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_ERROR; |
||
326 | 283:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
327 | 284:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
328 | 285:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(Address <= FLASH_BANK1_END) |
||
329 | 286:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
330 | 287:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Enable End of FLASH Operation and Error source interrupts */ |
||
331 | 288:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_ENABLE_IT(FLASH_IT_EOP_BANK1 | FLASH_IT_ERR_BANK1); |
||
332 | 289:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
333 | 290:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** }else |
||
334 | 291:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
335 | 292:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Enable End of FLASH Operation and Error source interrupts */ |
||
336 | 293:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_ENABLE_IT(FLASH_IT_EOP_BANK2 | FLASH_IT_ERR_BANK2); |
||
337 | 294:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
338 | 295:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #else |
||
339 | 296:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Enable End of FLASH Operation and Error source interrupts */ |
||
340 | 297:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_ENABLE_IT(FLASH_IT_EOP | FLASH_IT_ERR); |
||
341 | 298:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
342 | 299:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
343 | 300:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address = Address; |
||
344 | 301:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Data = Data; |
||
345 | 302:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
346 | 303:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(TypeProgram == FLASH_TYPEPROGRAM_HALFWORD) |
||
347 | 304:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
348 | 305:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_PROGRAMHALFWORD; |
||
349 | 306:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program halfword (16-bit) at a specified address. */ |
||
350 | 307:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.DataRemaining = 1U; |
||
351 | 308:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
352 | 309:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else if(TypeProgram == FLASH_TYPEPROGRAM_WORD) |
||
353 | 310:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
354 | 311:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_PROGRAMWORD; |
||
355 | 312:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program word (32-bit : 2*16-bit) at a specified address. */ |
||
356 | 313:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.DataRemaining = 2U; |
||
357 | 314:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
358 | 315:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else |
||
359 | 316:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
360 | 317:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_PROGRAMDOUBLEWORD; |
||
19 | mjames | 361 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 7 |
16 | mjames | 362 | |
363 | |||
364 | 318:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program double word (64-bit : 4*16-bit) at a specified address. */ |
||
365 | 319:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.DataRemaining = 4U; |
||
366 | 320:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
367 | 321:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
368 | 322:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program halfword (16-bit) at a specified address. */ |
||
369 | 323:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** FLASH_Program_HalfWord(Address, (uint16_t)Data); |
||
370 | 324:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
371 | 325:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return status; |
||
372 | 326:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
373 | 327:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
374 | 328:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
375 | 329:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief This function handles FLASH interrupt request. |
||
376 | 330:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval None |
||
377 | 331:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
378 | 332:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** void HAL_FLASH_IRQHandler(void) |
||
379 | 333:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
380 | 334:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** uint32_t addresstmp = 0U; |
||
381 | 335:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
382 | 336:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Check FLASH operation error flags */ |
||
383 | 337:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
384 | 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) |
||
385 | 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)) |
||
386 | 340:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #else |
||
387 | 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)) |
||
388 | 342:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
389 | 343:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
390 | 344:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Return the faulty address */ |
||
391 | 345:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** addresstmp = pFlash.Address; |
||
392 | 346:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Reset address */ |
||
393 | 347:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address = 0xFFFFFFFFU; |
||
394 | 348:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
395 | 349:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Save the Error code */ |
||
396 | 350:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** FLASH_SetErrorCode(); |
||
397 | 351:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
398 | 352:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* FLASH error interrupt user callback */ |
||
399 | 353:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_OperationErrorCallback(addresstmp); |
||
400 | 354:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
401 | 355:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Stop the procedure ongoing */ |
||
402 | 356:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE; |
||
403 | 357:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
404 | 358:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
405 | 359:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Check FLASH End of Operation flag */ |
||
406 | 360:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
407 | 361:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP_BANK1)) |
||
408 | 362:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
409 | 363:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Clear FLASH End of Operation pending bit */ |
||
410 | 364:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP_BANK1); |
||
411 | 365:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #else |
||
412 | 366:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP)) |
||
413 | 367:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
414 | 368:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Clear FLASH End of Operation pending bit */ |
||
415 | 369:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP); |
||
416 | 370:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
417 | 371:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
418 | 372:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Process can continue only if no error detected */ |
||
419 | 373:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(pFlash.ProcedureOnGoing != FLASH_PROC_NONE) |
||
420 | 374:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
19 | mjames | 421 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 8 |
16 | mjames | 422 | |
423 | |||
424 | 375:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(pFlash.ProcedureOnGoing == FLASH_PROC_PAGEERASE) |
||
425 | 376:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
426 | 377:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Nb of pages to erased can be decreased */ |
||
427 | 378:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.DataRemaining--; |
||
428 | 379:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
429 | 380:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Check if there are still pages to erase */ |
||
430 | 381:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(pFlash.DataRemaining != 0U) |
||
431 | 382:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
432 | 383:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** addresstmp = pFlash.Address; |
||
433 | 384:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /*Indicate user which sector has been erased */ |
||
434 | 385:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(addresstmp); |
||
435 | 386:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
436 | 387:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /*Increment sector number*/ |
||
437 | 388:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** addresstmp = pFlash.Address + FLASH_PAGE_SIZE; |
||
438 | 389:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address = addresstmp; |
||
439 | 390:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
440 | 391:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* If the erase operation is completed, disable the PER Bit */ |
||
441 | 392:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PER); |
||
442 | 393:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
443 | 394:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** FLASH_PageErase(addresstmp); |
||
444 | 395:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
445 | 396:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else |
||
446 | 397:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
447 | 398:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* No more pages to Erase, user callback can be called. */ |
||
448 | 399:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Reset Sector and stop Erase pages procedure */ |
||
449 | 400:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address = addresstmp = 0xFFFFFFFFU; |
||
450 | 401:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE; |
||
451 | 402:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* FLASH EOP interrupt user callback */ |
||
452 | 403:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(addresstmp); |
||
453 | 404:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
454 | 405:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
455 | 406:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else if(pFlash.ProcedureOnGoing == FLASH_PROC_MASSERASE) |
||
456 | 407:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
457 | 408:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Operation is completed, disable the MER Bit */ |
||
458 | 409:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_MER); |
||
459 | 410:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
460 | 411:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
461 | 412:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Stop Mass Erase procedure if no pending mass erase on other bank */ |
||
462 | 413:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (HAL_IS_BIT_CLR(FLASH->CR2, FLASH_CR2_MER)) |
||
463 | 414:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
464 | 415:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
465 | 416:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* MassErase ended. Return the selected bank */ |
||
466 | 417:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* FLASH EOP interrupt user callback */ |
||
467 | 418:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(0U); |
||
468 | 419:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
469 | 420:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Stop Mass Erase procedure*/ |
||
470 | 421:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE; |
||
471 | 422:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
472 | 423:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
473 | 424:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
474 | 425:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
475 | 426:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else |
||
476 | 427:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
477 | 428:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Nb of 16-bit data to program can be decreased */ |
||
478 | 429:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.DataRemaining--; |
||
479 | 430:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
480 | 431:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Check if there are still 16-bit data to program */ |
||
19 | mjames | 481 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 9 |
16 | mjames | 482 | |
483 | |||
484 | 432:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(pFlash.DataRemaining != 0U) |
||
485 | 433:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
486 | 434:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Increment address to 16-bit */ |
||
487 | 435:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address += 2U; |
||
488 | 436:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** addresstmp = pFlash.Address; |
||
489 | 437:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
490 | 438:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Shift to have next 16-bit data */ |
||
491 | 439:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Data = (pFlash.Data >> 16U); |
||
492 | 440:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
493 | 441:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Operation is completed, disable the PG Bit */ |
||
494 | 442:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PG); |
||
495 | 443:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
496 | 444:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /*Program halfword (16-bit) at a specified address.*/ |
||
497 | 445:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** FLASH_Program_HalfWord(addresstmp, (uint16_t)pFlash.Data); |
||
498 | 446:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
499 | 447:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else |
||
500 | 448:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
501 | 449:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program ended. Return the selected address */ |
||
502 | 450:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* FLASH EOP interrupt user callback */ |
||
503 | 451:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (pFlash.ProcedureOnGoing == FLASH_PROC_PROGRAMHALFWORD) |
||
504 | 452:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
505 | 453:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address); |
||
506 | 454:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
507 | 455:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else if (pFlash.ProcedureOnGoing == FLASH_PROC_PROGRAMWORD) |
||
508 | 456:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
509 | 457:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address - 2U); |
||
510 | 458:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
511 | 459:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else |
||
512 | 460:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
513 | 461:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address - 6U); |
||
514 | 462:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
515 | 463:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
516 | 464:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Reset Address and stop Program procedure */ |
||
517 | 465:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address = 0xFFFFFFFFU; |
||
518 | 466:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE; |
||
519 | 467:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
520 | 468:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
521 | 469:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
522 | 470:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
523 | 471:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
524 | 472:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
525 | 473:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Check FLASH End of Operation flag */ |
||
526 | 474:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG( FLASH_FLAG_EOP_BANK2)) |
||
527 | 475:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
528 | 476:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Clear FLASH End of Operation pending bit */ |
||
529 | 477:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP_BANK2); |
||
530 | 478:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
531 | 479:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Process can continue only if no error detected */ |
||
532 | 480:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(pFlash.ProcedureOnGoing != FLASH_PROC_NONE) |
||
533 | 481:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
534 | 482:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(pFlash.ProcedureOnGoing == FLASH_PROC_PAGEERASE) |
||
535 | 483:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
536 | 484:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Nb of pages to erased can be decreased */ |
||
537 | 485:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.DataRemaining--; |
||
538 | 486:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
539 | 487:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Check if there are still pages to erase*/ |
||
540 | 488:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(pFlash.DataRemaining != 0U) |
||
19 | mjames | 541 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 10 |
16 | mjames | 542 | |
543 | |||
544 | 489:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
545 | 490:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Indicate user which page address has been erased*/ |
||
546 | 491:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address); |
||
547 | 492:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
548 | 493:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Increment page address to next page */ |
||
549 | 494:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address += FLASH_PAGE_SIZE; |
||
550 | 495:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** addresstmp = pFlash.Address; |
||
551 | 496:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
552 | 497:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Operation is completed, disable the PER Bit */ |
||
553 | 498:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR2, FLASH_CR2_PER); |
||
554 | 499:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
555 | 500:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** FLASH_PageErase(addresstmp); |
||
556 | 501:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
557 | 502:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else |
||
558 | 503:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
559 | 504:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /*No more pages to Erase*/ |
||
560 | 505:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
561 | 506:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /*Reset Address and stop Erase pages procedure*/ |
||
562 | 507:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address = 0xFFFFFFFFU; |
||
563 | 508:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE; |
||
564 | 509:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
565 | 510:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* FLASH EOP interrupt user callback */ |
||
566 | 511:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address); |
||
567 | 512:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
568 | 513:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
569 | 514:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else if(pFlash.ProcedureOnGoing == FLASH_PROC_MASSERASE) |
||
570 | 515:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
571 | 516:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Operation is completed, disable the MER Bit */ |
||
572 | 517:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR2, FLASH_CR2_MER); |
||
573 | 518:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
574 | 519:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (HAL_IS_BIT_CLR(FLASH->CR, FLASH_CR_MER)) |
||
575 | 520:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
576 | 521:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* MassErase ended. Return the selected bank*/ |
||
577 | 522:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* FLASH EOP interrupt user callback */ |
||
578 | 523:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(0U); |
||
579 | 524:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
580 | 525:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE; |
||
581 | 526:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
582 | 527:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
583 | 528:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else |
||
584 | 529:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
585 | 530:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Nb of 16-bit data to program can be decreased */ |
||
586 | 531:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.DataRemaining--; |
||
587 | 532:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
588 | 533:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Check if there are still 16-bit data to program */ |
||
589 | 534:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(pFlash.DataRemaining != 0U) |
||
590 | 535:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
591 | 536:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Increment address to 16-bit */ |
||
592 | 537:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address += 2U; |
||
593 | 538:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** addresstmp = pFlash.Address; |
||
594 | 539:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
595 | 540:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Shift to have next 16-bit data */ |
||
596 | 541:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Data = (pFlash.Data >> 16U); |
||
597 | 542:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
598 | 543:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Operation is completed, disable the PG Bit */ |
||
599 | 544:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR2, FLASH_CR2_PG); |
||
600 | 545:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
19 | mjames | 601 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 11 |
16 | mjames | 602 | |
603 | |||
604 | 546:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /*Program halfword (16-bit) at a specified address.*/ |
||
605 | 547:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** FLASH_Program_HalfWord(addresstmp, (uint16_t)pFlash.Data); |
||
606 | 548:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
607 | 549:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else |
||
608 | 550:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
609 | 551:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /*Program ended. Return the selected address*/ |
||
610 | 552:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* FLASH EOP interrupt user callback */ |
||
611 | 553:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (pFlash.ProcedureOnGoing == FLASH_PROC_PROGRAMHALFWORD) |
||
612 | 554:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
613 | 555:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address); |
||
614 | 556:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
615 | 557:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else if (pFlash.ProcedureOnGoing == FLASH_PROC_PROGRAMWORD) |
||
616 | 558:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
617 | 559:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address-2U); |
||
618 | 560:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
619 | 561:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else |
||
620 | 562:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
621 | 563:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address-6U); |
||
622 | 564:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
623 | 565:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
624 | 566:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Reset Address and stop Program procedure*/ |
||
625 | 567:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address = 0xFFFFFFFFU; |
||
626 | 568:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE; |
||
627 | 569:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
628 | 570:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
629 | 571:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
630 | 572:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
631 | 573:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif |
||
632 | 574:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
633 | 575:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(pFlash.ProcedureOnGoing == FLASH_PROC_NONE) |
||
634 | 576:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
635 | 577:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
636 | 578:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Operation is completed, disable the PG, PER and MER Bits for both bank */ |
||
637 | 579:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, (FLASH_CR_PG | FLASH_CR_PER | FLASH_CR_MER)); |
||
638 | 580:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR2, (FLASH_CR2_PG | FLASH_CR2_PER | FLASH_CR2_MER)); |
||
639 | 581:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
640 | 582:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Disable End of FLASH Operation and Error source interrupts for both banks */ |
||
641 | 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_ |
||
642 | 584:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #else |
||
643 | 585:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Operation is completed, disable the PG, PER and MER Bits */ |
||
644 | 586:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, (FLASH_CR_PG | FLASH_CR_PER | FLASH_CR_MER)); |
||
645 | 587:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
646 | 588:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Disable End of FLASH Operation and Error source interrupts */ |
||
647 | 589:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_DISABLE_IT(FLASH_IT_EOP | FLASH_IT_ERR); |
||
648 | 590:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
649 | 591:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
650 | 592:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Process Unlocked */ |
||
651 | 593:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_UNLOCK(&pFlash); |
||
652 | 594:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
653 | 595:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
654 | 596:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
655 | 597:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
656 | 598:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief FLASH end of operation interrupt callback |
||
657 | 599:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param ReturnValue: The value saved in this parameter depends on the ongoing procedure |
||
658 | 600:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * - Mass Erase: No return value expected |
||
659 | 601:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * - Pages Erase: Address of the page which has been erased |
||
660 | 602:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * (if 0xFFFFFFFF, it means that all the selected pages have been erased) |
||
19 | mjames | 661 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 12 |
16 | mjames | 662 | |
663 | |||
664 | 603:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * - Program: Address which was selected for data program |
||
665 | 604:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval none |
||
666 | 605:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
667 | 606:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __weak void HAL_FLASH_EndOfOperationCallback(uint32_t ReturnValue) |
||
668 | 607:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
669 | 608:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Prevent unused argument(s) compilation warning */ |
||
670 | 609:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** UNUSED(ReturnValue); |
||
671 | 610:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
672 | 611:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* NOTE : This function Should not be modified, when the callback is needed, |
||
673 | 612:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** the HAL_FLASH_EndOfOperationCallback could be implemented in the user file |
||
674 | 613:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
675 | 614:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
676 | 615:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
677 | 616:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
678 | 617:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief FLASH operation error interrupt callback |
||
679 | 618:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param ReturnValue: The value saved in this parameter depends on the ongoing procedure |
||
680 | 619:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * - Mass Erase: No return value expected |
||
681 | 620:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * - Pages Erase: Address of the page which returned an error |
||
682 | 621:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * - Program: Address which was selected for data program |
||
683 | 622:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval none |
||
684 | 623:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
685 | 624:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __weak void HAL_FLASH_OperationErrorCallback(uint32_t ReturnValue) |
||
686 | 625:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
687 | 626:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Prevent unused argument(s) compilation warning */ |
||
688 | 627:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** UNUSED(ReturnValue); |
||
689 | 628:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
690 | 629:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* NOTE : This function Should not be modified, when the callback is needed, |
||
691 | 630:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** the HAL_FLASH_OperationErrorCallback could be implemented in the user file |
||
692 | 631:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
693 | 632:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
694 | 633:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
695 | 634:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
696 | 635:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @} |
||
697 | 636:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
698 | 637:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
699 | 638:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions_Group2 Peripheral Control functions |
||
700 | 639:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief management functions |
||
701 | 640:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * |
||
702 | 641:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** @verbatim |
||
703 | 642:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** =============================================================================== |
||
704 | 643:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ##### Peripheral Control functions ##### |
||
705 | 644:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** =============================================================================== |
||
706 | 645:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** [..] |
||
707 | 646:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** This subsection provides a set of functions allowing to control the FLASH |
||
708 | 647:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** memory operations. |
||
709 | 648:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
710 | 649:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** @endverbatim |
||
711 | 650:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @{ |
||
712 | 651:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
713 | 652:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
714 | 653:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
715 | 654:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Unlock the FLASH control register access |
||
716 | 655:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval HAL Status |
||
717 | 656:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
718 | 657:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_Unlock(void) |
||
719 | 658:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
720 | 659:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK; |
||
19 | mjames | 721 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 13 |
16 | mjames | 722 | |
723 | |||
724 | 660:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
725 | 661:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET) |
||
726 | 662:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
727 | 663:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Authorize the FLASH Registers access */ |
||
728 | 664:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** WRITE_REG(FLASH->KEYR, FLASH_KEY1); |
||
729 | 665:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** WRITE_REG(FLASH->KEYR, FLASH_KEY2); |
||
730 | 666:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
731 | 667:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Verify Flash is unlocked */ |
||
732 | 668:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET) |
||
733 | 669:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
734 | 670:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** status = HAL_ERROR; |
||
735 | 671:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
736 | 672:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
737 | 673:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
738 | 674:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(READ_BIT(FLASH->CR2, FLASH_CR2_LOCK) != RESET) |
||
739 | 675:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
740 | 676:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Authorize the FLASH BANK2 Registers access */ |
||
741 | 677:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** WRITE_REG(FLASH->KEYR2, FLASH_KEY1); |
||
742 | 678:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** WRITE_REG(FLASH->KEYR2, FLASH_KEY2); |
||
743 | 679:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
744 | 680:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Verify Flash BANK2 is unlocked */ |
||
745 | 681:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(READ_BIT(FLASH->CR2, FLASH_CR2_LOCK) != RESET) |
||
746 | 682:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
747 | 683:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** status = HAL_ERROR; |
||
748 | 684:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
749 | 685:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
750 | 686:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
751 | 687:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
752 | 688:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return status; |
||
753 | 689:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
754 | 690:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
755 | 691:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
756 | 692:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Locks the FLASH control register access |
||
757 | 693:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval HAL Status |
||
758 | 694:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
759 | 695:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_Lock(void) |
||
760 | 696:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
761 | 697:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Set the LOCK Bit to lock the FLASH Registers access */ |
||
762 | 698:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** SET_BIT(FLASH->CR, FLASH_CR_LOCK); |
||
763 | 699:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
764 | 700:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
765 | 701:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Set the LOCK Bit to lock the FLASH BANK2 Registers access */ |
||
766 | 702:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** SET_BIT(FLASH->CR2, FLASH_CR2_LOCK); |
||
767 | 703:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
768 | 704:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
769 | 705:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_OK; |
||
770 | 706:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
771 | 707:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
772 | 708:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
773 | 709:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Unlock the FLASH Option Control Registers access. |
||
774 | 710:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval HAL Status |
||
775 | 711:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
776 | 712:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_OB_Unlock(void) |
||
777 | 713:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
778 | 714:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (HAL_IS_BIT_CLR(FLASH->CR, FLASH_CR_OPTWRE)) |
||
779 | 715:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
780 | 716:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Authorizes the Option Byte register programming */ |
||
19 | mjames | 781 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 14 |
16 | mjames | 782 | |
783 | |||
784 | 717:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** WRITE_REG(FLASH->OPTKEYR, FLASH_OPTKEY1); |
||
785 | 718:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** WRITE_REG(FLASH->OPTKEYR, FLASH_OPTKEY2); |
||
786 | 719:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
787 | 720:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else |
||
788 | 721:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
789 | 722:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_ERROR; |
||
790 | 723:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
791 | 724:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
792 | 725:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_OK; |
||
793 | 726:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
794 | 727:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
795 | 728:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
796 | 729:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Lock the FLASH Option Control Registers access. |
||
797 | 730:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval HAL Status |
||
798 | 731:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
799 | 732:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_OB_Lock(void) |
||
800 | 733:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
801 | 734:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Clear the OPTWRE Bit to lock the FLASH Option Byte Registers access */ |
||
802 | 735:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_OPTWRE); |
||
803 | 736:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
804 | 737:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_OK; |
||
805 | 738:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
806 | 739:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
807 | 740:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
808 | 741:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Launch the option byte loading. |
||
809 | 742:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @note This function will reset automatically the MCU. |
||
810 | 743:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval None |
||
811 | 744:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
812 | 745:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** void HAL_FLASH_OB_Launch(void) |
||
813 | 746:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
814 | 747:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Initiates a system reset request to launch the option byte loading */ |
||
815 | 748:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_NVIC_SystemReset(); |
||
816 | 749:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
817 | 750:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
818 | 751:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
819 | 752:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @} |
||
820 | 753:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
821 | 754:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
822 | 755:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions_Group3 Peripheral errors functions |
||
823 | 756:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Peripheral errors functions |
||
824 | 757:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * |
||
825 | 758:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** @verbatim |
||
826 | 759:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** =============================================================================== |
||
827 | 760:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** ##### Peripheral Errors functions ##### |
||
828 | 761:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** =============================================================================== |
||
829 | 762:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** [..] |
||
830 | 763:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** This subsection permit to get in run-time errors of the FLASH peripheral. |
||
831 | 764:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
832 | 765:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** @endverbatim |
||
833 | 766:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @{ |
||
834 | 767:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
835 | 768:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
836 | 769:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
837 | 770:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Get the specific FLASH error flag. |
||
838 | 771:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval FLASH_ErrorCode The returned value can be: |
||
839 | 772:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @ref FLASH_Error_Codes |
||
840 | 773:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
19 | mjames | 841 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 15 |
16 | mjames | 842 | |
843 | |||
844 | 774:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** uint32_t HAL_FLASH_GetError(void) |
||
845 | 775:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
846 | 776:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return pFlash.ErrorCode; |
||
847 | 777:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
848 | 778:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
849 | 779:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
850 | 780:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @} |
||
851 | 781:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
852 | 782:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
853 | 783:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
854 | 784:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @} |
||
855 | 785:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
856 | 786:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
857 | 787:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** @addtogroup FLASH_Private_Functions |
||
858 | 788:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @{ |
||
859 | 789:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
860 | 790:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
861 | 791:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
862 | 792:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Program a half-word (16-bit) at a specified address. |
||
863 | 793:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param Address specify the address to be programmed. |
||
864 | 794:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param Data specify the data to be programmed. |
||
865 | 795:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval None |
||
866 | 796:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
867 | 797:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** static void FLASH_Program_HalfWord(uint32_t Address, uint16_t Data) |
||
868 | 798:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
869 | 27 .loc 1 798 1 view -0 |
||
870 | 28 .cfi_startproc |
||
871 | 29 @ args = 0, pretend = 0, frame = 0 |
||
872 | 30 @ frame_needed = 0, uses_anonymous_args = 0 |
||
873 | 31 @ link register save eliminated. |
||
874 | 799:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Clean the error context */ |
||
875 | 800:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ErrorCode = HAL_FLASH_ERROR_NONE; |
||
876 | 32 .loc 1 800 3 view .LVU1 |
||
877 | 33 .loc 1 800 20 is_stmt 0 view .LVU2 |
||
878 | 34 0000 044B ldr r3, .L2 |
||
879 | 35 0002 0022 movs r2, #0 |
||
880 | 36 0004 DA61 str r2, [r3, #28] |
||
881 | 801:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
882 | 802:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
883 | 803:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(Address <= FLASH_BANK1_END) |
||
884 | 804:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
885 | 805:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
886 | 806:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Proceed to program the new data */ |
||
887 | 807:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** SET_BIT(FLASH->CR, FLASH_CR_PG); |
||
888 | 37 .loc 1 807 5 is_stmt 1 view .LVU3 |
||
889 | 38 0006 044A ldr r2, .L2+4 |
||
890 | 39 0008 1369 ldr r3, [r2, #16] |
||
891 | 40 000a 43F00103 orr r3, r3, #1 |
||
892 | 41 000e 1361 str r3, [r2, #16] |
||
893 | 808:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
894 | 809:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
895 | 810:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** else |
||
896 | 811:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
897 | 812:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Proceed to program the new data */ |
||
898 | 813:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** SET_BIT(FLASH->CR2, FLASH_CR2_PG); |
||
899 | 814:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
900 | 815:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
19 | mjames | 901 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 16 |
16 | mjames | 902 | |
903 | |||
904 | 816:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
905 | 817:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Write data in the address */ |
||
906 | 818:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** *(__IO uint16_t*)Address = Data; |
||
907 | 42 .loc 1 818 3 view .LVU4 |
||
908 | 43 .loc 1 818 28 is_stmt 0 view .LVU5 |
||
909 | 44 0010 0180 strh r1, [r0] @ movhi |
||
910 | 819:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
911 | 45 .loc 1 819 1 view .LVU6 |
||
912 | 46 0012 7047 bx lr |
||
913 | 47 .L3: |
||
914 | 48 .align 2 |
||
915 | 49 .L2: |
||
916 | 50 0014 00000000 .word pFlash |
||
917 | 51 0018 00200240 .word 1073881088 |
||
918 | 52 .cfi_endproc |
||
919 | 53 .LFE76: |
||
920 | 55 .section .text.FLASH_SetErrorCode,"ax",%progbits |
||
921 | 56 .align 1 |
||
922 | 57 .syntax unified |
||
923 | 58 .thumb |
||
924 | 59 .thumb_func |
||
925 | 60 .fpu softvfp |
||
926 | 62 FLASH_SetErrorCode: |
||
927 | 63 .LFB78: |
||
928 | 820:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
929 | 821:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
930 | 822:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Wait for a FLASH operation to complete. |
||
931 | 823:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param Timeout maximum flash operation timeout |
||
932 | 824:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval HAL Status |
||
933 | 825:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
934 | 826:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef FLASH_WaitForLastOperation(uint32_t Timeout) |
||
935 | 827:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
936 | 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. |
||
937 | 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 |
||
938 | 830:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** flag will be set */ |
||
939 | 831:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
940 | 832:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** uint32_t tickstart = HAL_GetTick(); |
||
941 | 833:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
942 | 834:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY)) |
||
943 | 835:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
944 | 836:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (Timeout != HAL_MAX_DELAY) |
||
945 | 837:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
946 | 838:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if((Timeout == 0U) || ((HAL_GetTick()-tickstart) > Timeout)) |
||
947 | 839:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
948 | 840:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_TIMEOUT; |
||
949 | 841:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
950 | 842:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
951 | 843:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
952 | 844:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
953 | 845:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Check FLASH End of Operation flag */ |
||
954 | 846:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP)) |
||
955 | 847:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
956 | 848:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Clear FLASH End of Operation pending bit */ |
||
957 | 849:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP); |
||
958 | 850:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
959 | 851:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
960 | 852:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) || |
||
19 | mjames | 961 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 17 |
16 | mjames | 962 | |
963 | |||
964 | 853:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR) || |
||
965 | 854:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR)) |
||
966 | 855:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
967 | 856:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /*Save the error code*/ |
||
968 | 857:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** FLASH_SetErrorCode(); |
||
969 | 858:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_ERROR; |
||
970 | 859:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
971 | 860:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
972 | 861:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* There is no error flag set */ |
||
973 | 862:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_OK; |
||
974 | 863:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
975 | 864:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
976 | 865:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
977 | 866:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
978 | 867:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Wait for a FLASH BANK2 operation to complete. |
||
979 | 868:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @param Timeout maximum flash operation timeout |
||
980 | 869:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval HAL_StatusTypeDef HAL Status |
||
981 | 870:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
982 | 871:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef FLASH_WaitForLastOperationBank2(uint32_t Timeout) |
||
983 | 872:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
984 | 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. |
||
985 | 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 |
||
986 | 875:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** flag will be set */ |
||
987 | 876:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
988 | 877:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** uint32_t tickstart = HAL_GetTick(); |
||
989 | 878:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
990 | 879:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY_BANK2)) |
||
991 | 880:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
992 | 881:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (Timeout != HAL_MAX_DELAY) |
||
993 | 882:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
994 | 883:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if((Timeout == 0U) || ((HAL_GetTick()-tickstart) > Timeout)) |
||
995 | 884:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
996 | 885:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_TIMEOUT; |
||
997 | 886:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
998 | 887:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
999 | 888:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1000 | 889:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1001 | 890:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Check FLASH End of Operation flag */ |
||
1002 | 891:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP_BANK2)) |
||
1003 | 892:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1004 | 893:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Clear FLASH End of Operation pending bit */ |
||
1005 | 894:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP_BANK2); |
||
1006 | 895:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1007 | 896:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1008 | 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)) |
||
1009 | 898:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1010 | 899:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /*Save the error code*/ |
||
1011 | 900:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** FLASH_SetErrorCode(); |
||
1012 | 901:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_ERROR; |
||
1013 | 902:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1014 | 903:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1015 | 904:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* If there is an error flag set */ |
||
1016 | 905:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_OK; |
||
1017 | 906:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1018 | 907:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1019 | 908:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
1020 | 909:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
19 | mjames | 1021 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 18 |
16 | mjames | 1022 | |
1023 | |||
1024 | 910:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /** |
||
1025 | 911:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @brief Set the specific FLASH error flag. |
||
1026 | 912:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** * @retval None |
||
1027 | 913:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** */ |
||
1028 | 914:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** static void FLASH_SetErrorCode(void) |
||
1029 | 915:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1030 | 64 .loc 1 915 1 is_stmt 1 view -0 |
||
1031 | 65 .cfi_startproc |
||
1032 | 66 @ args = 0, pretend = 0, frame = 0 |
||
1033 | 67 @ frame_needed = 0, uses_anonymous_args = 0 |
||
1034 | 68 @ link register save eliminated. |
||
1035 | 916:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** uint32_t flags = 0U; |
||
1036 | 69 .loc 1 916 3 view .LVU8 |
||
1037 | 70 .LVL1: |
||
1038 | 917:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1039 | 918:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
1040 | 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)) |
||
1041 | 920:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #else |
||
1042 | 921:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR)) |
||
1043 | 71 .loc 1 921 3 view .LVU9 |
||
1044 | 72 .loc 1 921 6 is_stmt 0 view .LVU10 |
||
1045 | 73 0000 154B ldr r3, .L9 |
||
1046 | 74 0002 DB68 ldr r3, [r3, #12] |
||
1047 | 75 .loc 1 921 5 view .LVU11 |
||
1048 | 76 0004 13F0100F tst r3, #16 |
||
1049 | 77 0008 06D0 beq .L8 |
||
1050 | 922:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
1051 | 923:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1052 | 924:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ErrorCode |= HAL_FLASH_ERROR_WRP; |
||
1053 | 78 .loc 1 924 5 is_stmt 1 view .LVU12 |
||
1054 | 79 .loc 1 924 22 is_stmt 0 view .LVU13 |
||
1055 | 80 000a 144A ldr r2, .L9+4 |
||
1056 | 81 000c D369 ldr r3, [r2, #28] |
||
1057 | 82 000e 43F00203 orr r3, r3, #2 |
||
1058 | 83 0012 D361 str r3, [r2, #28] |
||
1059 | 925:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
1060 | 926:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** flags |= FLASH_FLAG_WRPERR | FLASH_FLAG_WRPERR_BANK2; |
||
1061 | 927:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #else |
||
1062 | 928:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** flags |= FLASH_FLAG_WRPERR; |
||
1063 | 84 .loc 1 928 5 is_stmt 1 view .LVU14 |
||
1064 | 85 .LVL2: |
||
1065 | 86 .loc 1 928 11 is_stmt 0 view .LVU15 |
||
1066 | 87 0014 1023 movs r3, #16 |
||
1067 | 88 0016 00E0 b .L5 |
||
1068 | 89 .LVL3: |
||
1069 | 90 .L8: |
||
1070 | 916:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1071 | 91 .loc 1 916 12 view .LVU16 |
||
1072 | 92 0018 0023 movs r3, #0 |
||
1073 | 93 .LVL4: |
||
1074 | 94 .L5: |
||
1075 | 929:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
1076 | 930:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1077 | 931:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
1078 | 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)) |
||
1079 | 933:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #else |
||
1080 | 934:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR)) |
||
19 | mjames | 1081 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 19 |
16 | mjames | 1082 | |
1083 | |||
1084 | 95 .loc 1 934 3 is_stmt 1 view .LVU17 |
||
1085 | 96 .loc 1 934 6 is_stmt 0 view .LVU18 |
||
1086 | 97 001a 0F4A ldr r2, .L9 |
||
1087 | 98 001c D268 ldr r2, [r2, #12] |
||
1088 | 99 .loc 1 934 5 view .LVU19 |
||
1089 | 100 001e 12F0040F tst r2, #4 |
||
1090 | 101 0022 06D0 beq .L6 |
||
1091 | 935:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
1092 | 936:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1093 | 937:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ErrorCode |= HAL_FLASH_ERROR_PROG; |
||
1094 | 102 .loc 1 937 5 is_stmt 1 view .LVU20 |
||
1095 | 103 .loc 1 937 22 is_stmt 0 view .LVU21 |
||
1096 | 104 0024 0D49 ldr r1, .L9+4 |
||
1097 | 105 0026 CA69 ldr r2, [r1, #28] |
||
1098 | 106 0028 42F00102 orr r2, r2, #1 |
||
1099 | 107 002c CA61 str r2, [r1, #28] |
||
1100 | 938:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
1101 | 939:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** flags |= FLASH_FLAG_PGERR | FLASH_FLAG_PGERR_BANK2; |
||
1102 | 940:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #else |
||
1103 | 941:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** flags |= FLASH_FLAG_PGERR; |
||
1104 | 108 .loc 1 941 5 is_stmt 1 view .LVU22 |
||
1105 | 109 .loc 1 941 11 is_stmt 0 view .LVU23 |
||
1106 | 110 002e 43F00403 orr r3, r3, #4 |
||
1107 | 111 .LVL5: |
||
1108 | 112 .L6: |
||
1109 | 942:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
1110 | 943:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1111 | 944:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR)) |
||
1112 | 113 .loc 1 944 3 is_stmt 1 view .LVU24 |
||
1113 | 114 .loc 1 944 6 is_stmt 0 view .LVU25 |
||
1114 | 115 0032 094A ldr r2, .L9 |
||
1115 | 116 0034 D269 ldr r2, [r2, #28] |
||
1116 | 117 .loc 1 944 5 view .LVU26 |
||
1117 | 118 0036 12F0010F tst r2, #1 |
||
1118 | 119 003a 09D0 beq .L7 |
||
1119 | 945:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1120 | 946:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ErrorCode |= HAL_FLASH_ERROR_OPTV; |
||
1121 | 120 .loc 1 946 5 is_stmt 1 view .LVU27 |
||
1122 | 121 .loc 1 946 22 is_stmt 0 view .LVU28 |
||
1123 | 122 003c 0749 ldr r1, .L9+4 |
||
1124 | 123 003e CA69 ldr r2, [r1, #28] |
||
1125 | 124 0040 42F00402 orr r2, r2, #4 |
||
1126 | 125 0044 CA61 str r2, [r1, #28] |
||
1127 | 947:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_OPTVERR); |
||
1128 | 126 .loc 1 947 3 is_stmt 1 view .LVU29 |
||
1129 | 127 .loc 1 947 3 view .LVU30 |
||
1130 | 128 .loc 1 947 3 view .LVU31 |
||
1131 | 129 0046 0449 ldr r1, .L9 |
||
1132 | 130 0048 CA69 ldr r2, [r1, #28] |
||
1133 | 131 004a 22F00102 bic r2, r2, #1 |
||
1134 | 132 004e CA61 str r2, [r1, #28] |
||
1135 | 133 .L7: |
||
1136 | 948:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1137 | 949:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1138 | 950:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Clear FLASH error pending bits */ |
||
1139 | 951:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(flags); |
||
1140 | 134 .loc 1 951 3 view .LVU32 |
||
19 | mjames | 1141 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 20 |
16 | mjames | 1142 | |
1143 | |||
1144 | 135 .loc 1 951 3 view .LVU33 |
||
1145 | 136 .loc 1 951 3 view .LVU34 |
||
1146 | 137 0050 014A ldr r2, .L9 |
||
1147 | 138 0052 D360 str r3, [r2, #12] |
||
1148 | 952:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1149 | 139 .loc 1 952 1 is_stmt 0 view .LVU35 |
||
1150 | 140 0054 7047 bx lr |
||
1151 | 141 .L10: |
||
1152 | 142 0056 00BF .align 2 |
||
1153 | 143 .L9: |
||
1154 | 144 0058 00200240 .word 1073881088 |
||
1155 | 145 005c 00000000 .word pFlash |
||
1156 | 146 .cfi_endproc |
||
1157 | 147 .LFE78: |
||
1158 | 149 .section .text.HAL_FLASH_Program_IT,"ax",%progbits |
||
1159 | 150 .align 1 |
||
1160 | 151 .global HAL_FLASH_Program_IT |
||
1161 | 152 .syntax unified |
||
1162 | 153 .thumb |
||
1163 | 154 .thumb_func |
||
1164 | 155 .fpu softvfp |
||
1165 | 157 HAL_FLASH_Program_IT: |
||
1166 | 158 .LVL6: |
||
1167 | 159 .LFB66: |
||
1168 | 268:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK; |
||
1169 | 160 .loc 1 268 1 is_stmt 1 view -0 |
||
1170 | 161 .cfi_startproc |
||
1171 | 162 @ args = 0, pretend = 0, frame = 0 |
||
1172 | 163 @ frame_needed = 0, uses_anonymous_args = 0 |
||
1173 | 268:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK; |
||
1174 | 164 .loc 1 268 1 is_stmt 0 view .LVU37 |
||
1175 | 165 0000 70B5 push {r4, r5, r6, lr} |
||
1176 | 166 .LCFI0: |
||
1177 | 167 .cfi_def_cfa_offset 16 |
||
1178 | 168 .cfi_offset 4, -16 |
||
1179 | 169 .cfi_offset 5, -12 |
||
1180 | 170 .cfi_offset 6, -8 |
||
1181 | 171 .cfi_offset 14, -4 |
||
1182 | 269:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1183 | 172 .loc 1 269 3 is_stmt 1 view .LVU38 |
||
1184 | 173 .LVL7: |
||
1185 | 272:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1186 | 174 .loc 1 272 3 view .LVU39 |
||
1187 | 272:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1188 | 175 .loc 1 272 3 view .LVU40 |
||
1189 | 176 0002 164C ldr r4, .L20 |
||
1190 | 177 0004 247E ldrb r4, [r4, #24] @ zero_extendqisi2 |
||
1191 | 178 0006 012C cmp r4, #1 |
||
1192 | 179 0008 25D0 beq .L16 |
||
1193 | 272:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1194 | 180 .loc 1 272 3 discriminator 2 view .LVU41 |
||
1195 | 181 000a 144C ldr r4, .L20 |
||
1196 | 182 000c 0125 movs r5, #1 |
||
1197 | 183 000e 2576 strb r5, [r4, #24] |
||
1198 | 275:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** assert_param(IS_FLASH_PROGRAM_ADDRESS(Address)); |
||
1199 | 184 .loc 1 275 3 discriminator 2 view .LVU42 |
||
1200 | 276:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
19 | mjames | 1201 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 21 |
16 | mjames | 1202 | |
1203 | |||
1204 | 185 .loc 1 276 3 discriminator 2 view .LVU43 |
||
1205 | 297:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
1206 | 186 .loc 1 297 3 discriminator 2 view .LVU44 |
||
1207 | 187 0010 134E ldr r6, .L20+4 |
||
1208 | 188 0012 3569 ldr r5, [r6, #16] |
||
1209 | 189 0014 45F4A055 orr r5, r5, #5120 |
||
1210 | 190 0018 3561 str r5, [r6, #16] |
||
1211 | 300:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Data = Data; |
||
1212 | 191 .loc 1 300 3 discriminator 2 view .LVU45 |
||
1213 | 300:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Data = Data; |
||
1214 | 192 .loc 1 300 18 is_stmt 0 discriminator 2 view .LVU46 |
||
1215 | 193 001a A160 str r1, [r4, #8] |
||
1216 | 301:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1217 | 194 .loc 1 301 3 is_stmt 1 discriminator 2 view .LVU47 |
||
1218 | 301:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1219 | 195 .loc 1 301 15 is_stmt 0 discriminator 2 view .LVU48 |
||
1220 | 196 001c C4E90423 strd r2, [r4, #16] |
||
1221 | 303:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1222 | 197 .loc 1 303 3 is_stmt 1 discriminator 2 view .LVU49 |
||
1223 | 303:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1224 | 198 .loc 1 303 5 is_stmt 0 discriminator 2 view .LVU50 |
||
1225 | 199 0020 0128 cmp r0, #1 |
||
1226 | 200 0022 0CD0 beq .L18 |
||
1227 | 309:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1228 | 201 .loc 1 309 8 is_stmt 1 view .LVU51 |
||
1229 | 309:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1230 | 202 .loc 1 309 10 is_stmt 0 view .LVU52 |
||
1231 | 203 0024 0228 cmp r0, #2 |
||
1232 | 204 0026 10D0 beq .L19 |
||
1233 | 317:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program double word (64-bit : 4*16-bit) at a specified address. */ |
||
1234 | 205 .loc 1 317 5 is_stmt 1 view .LVU53 |
||
1235 | 317:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program double word (64-bit : 4*16-bit) at a specified address. */ |
||
1236 | 206 .loc 1 317 29 is_stmt 0 view .LVU54 |
||
1237 | 207 0028 0C48 ldr r0, .L20 |
||
1238 | 208 .LVL8: |
||
1239 | 317:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program double word (64-bit : 4*16-bit) at a specified address. */ |
||
1240 | 209 .loc 1 317 29 view .LVU55 |
||
1241 | 210 002a 0524 movs r4, #5 |
||
1242 | 211 002c 0470 strb r4, [r0] |
||
1243 | 319:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1244 | 212 .loc 1 319 5 is_stmt 1 view .LVU56 |
||
1245 | 319:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1246 | 213 .loc 1 319 26 is_stmt 0 view .LVU57 |
||
1247 | 214 002e 0424 movs r4, #4 |
||
1248 | 215 0030 4460 str r4, [r0, #4] |
||
1249 | 216 .L14: |
||
1250 | 217 0032 0846 mov r0, r1 |
||
1251 | 323:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1252 | 218 .loc 1 323 3 is_stmt 1 view .LVU58 |
||
1253 | 219 0034 91B2 uxth r1, r2 |
||
1254 | 220 .LVL9: |
||
1255 | 323:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1256 | 221 .loc 1 323 3 is_stmt 0 view .LVU59 |
||
1257 | 222 0036 FFF7FEFF bl FLASH_Program_HalfWord |
||
1258 | 223 .LVL10: |
||
1259 | 325:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1260 | 224 .loc 1 325 3 is_stmt 1 view .LVU60 |
||
19 | mjames | 1261 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 22 |
16 | mjames | 1262 | |
1263 | |||
1264 | 325:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1265 | 225 .loc 1 325 10 is_stmt 0 view .LVU61 |
||
1266 | 226 003a 0020 movs r0, #0 |
||
1267 | 227 .L12: |
||
1268 | 326:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1269 | 228 .loc 1 326 1 view .LVU62 |
||
1270 | 229 003c 70BD pop {r4, r5, r6, pc} |
||
1271 | 230 .LVL11: |
||
1272 | 231 .L18: |
||
1273 | 305:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program halfword (16-bit) at a specified address. */ |
||
1274 | 232 .loc 1 305 5 is_stmt 1 view .LVU63 |
||
1275 | 305:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program halfword (16-bit) at a specified address. */ |
||
1276 | 233 .loc 1 305 29 is_stmt 0 view .LVU64 |
||
1277 | 234 003e 2046 mov r0, r4 |
||
1278 | 235 .LVL12: |
||
1279 | 305:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program halfword (16-bit) at a specified address. */ |
||
1280 | 236 .loc 1 305 29 view .LVU65 |
||
1281 | 237 0040 0324 movs r4, #3 |
||
1282 | 238 0042 0470 strb r4, [r0] |
||
1283 | 307:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1284 | 239 .loc 1 307 5 is_stmt 1 view .LVU66 |
||
1285 | 307:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1286 | 240 .loc 1 307 26 is_stmt 0 view .LVU67 |
||
1287 | 241 0044 0124 movs r4, #1 |
||
1288 | 242 0046 4460 str r4, [r0, #4] |
||
1289 | 243 0048 F3E7 b .L14 |
||
1290 | 244 .LVL13: |
||
1291 | 245 .L19: |
||
1292 | 311:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program word (32-bit : 2*16-bit) at a specified address. */ |
||
1293 | 246 .loc 1 311 5 is_stmt 1 view .LVU68 |
||
1294 | 311:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program word (32-bit : 2*16-bit) at a specified address. */ |
||
1295 | 247 .loc 1 311 29 is_stmt 0 view .LVU69 |
||
1296 | 248 004a 0448 ldr r0, .L20 |
||
1297 | 249 .LVL14: |
||
1298 | 311:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Program word (32-bit : 2*16-bit) at a specified address. */ |
||
1299 | 250 .loc 1 311 29 view .LVU70 |
||
1300 | 251 004c 0424 movs r4, #4 |
||
1301 | 252 004e 0470 strb r4, [r0] |
||
1302 | 313:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1303 | 253 .loc 1 313 5 is_stmt 1 view .LVU71 |
||
1304 | 313:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1305 | 254 .loc 1 313 26 is_stmt 0 view .LVU72 |
||
1306 | 255 0050 0224 movs r4, #2 |
||
1307 | 256 0052 4460 str r4, [r0, #4] |
||
1308 | 257 0054 EDE7 b .L14 |
||
1309 | 258 .LVL15: |
||
1310 | 259 .L16: |
||
1311 | 272:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1312 | 260 .loc 1 272 3 view .LVU73 |
||
1313 | 261 0056 0220 movs r0, #2 |
||
1314 | 262 .LVL16: |
||
1315 | 272:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1316 | 263 .loc 1 272 3 view .LVU74 |
||
1317 | 264 0058 F0E7 b .L12 |
||
1318 | 265 .L21: |
||
1319 | 266 005a 00BF .align 2 |
||
1320 | 267 .L20: |
||
19 | mjames | 1321 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 23 |
16 | mjames | 1322 | |
1323 | |||
1324 | 268 005c 00000000 .word pFlash |
||
1325 | 269 0060 00200240 .word 1073881088 |
||
1326 | 270 .cfi_endproc |
||
1327 | 271 .LFE66: |
||
1328 | 273 .section .text.HAL_FLASH_EndOfOperationCallback,"ax",%progbits |
||
1329 | 274 .align 1 |
||
1330 | 275 .weak HAL_FLASH_EndOfOperationCallback |
||
1331 | 276 .syntax unified |
||
1332 | 277 .thumb |
||
1333 | 278 .thumb_func |
||
1334 | 279 .fpu softvfp |
||
1335 | 281 HAL_FLASH_EndOfOperationCallback: |
||
1336 | 282 .LVL17: |
||
1337 | 283 .LFB68: |
||
1338 | 607:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Prevent unused argument(s) compilation warning */ |
||
1339 | 284 .loc 1 607 1 is_stmt 1 view -0 |
||
1340 | 285 .cfi_startproc |
||
1341 | 286 @ args = 0, pretend = 0, frame = 0 |
||
1342 | 287 @ frame_needed = 0, uses_anonymous_args = 0 |
||
1343 | 288 @ link register save eliminated. |
||
1344 | 609:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1345 | 289 .loc 1 609 3 view .LVU76 |
||
1346 | 614:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1347 | 290 .loc 1 614 1 is_stmt 0 view .LVU77 |
||
1348 | 291 0000 7047 bx lr |
||
1349 | 292 .cfi_endproc |
||
1350 | 293 .LFE68: |
||
1351 | 295 .section .text.HAL_FLASH_OperationErrorCallback,"ax",%progbits |
||
1352 | 296 .align 1 |
||
1353 | 297 .weak HAL_FLASH_OperationErrorCallback |
||
1354 | 298 .syntax unified |
||
1355 | 299 .thumb |
||
1356 | 300 .thumb_func |
||
1357 | 301 .fpu softvfp |
||
1358 | 303 HAL_FLASH_OperationErrorCallback: |
||
1359 | 304 .LVL18: |
||
1360 | 305 .LFB69: |
||
1361 | 625:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Prevent unused argument(s) compilation warning */ |
||
1362 | 306 .loc 1 625 1 is_stmt 1 view -0 |
||
1363 | 307 .cfi_startproc |
||
1364 | 308 @ args = 0, pretend = 0, frame = 0 |
||
1365 | 309 @ frame_needed = 0, uses_anonymous_args = 0 |
||
1366 | 310 @ link register save eliminated. |
||
1367 | 627:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1368 | 311 .loc 1 627 3 view .LVU79 |
||
1369 | 632:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1370 | 312 .loc 1 632 1 is_stmt 0 view .LVU80 |
||
1371 | 313 0000 7047 bx lr |
||
1372 | 314 .cfi_endproc |
||
1373 | 315 .LFE69: |
||
1374 | 317 .section .text.HAL_FLASH_IRQHandler,"ax",%progbits |
||
1375 | 318 .align 1 |
||
1376 | 319 .global HAL_FLASH_IRQHandler |
||
1377 | 320 .syntax unified |
||
1378 | 321 .thumb |
||
1379 | 322 .thumb_func |
||
1380 | 323 .fpu softvfp |
||
19 | mjames | 1381 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 24 |
16 | mjames | 1382 | |
1383 | |||
1384 | 325 HAL_FLASH_IRQHandler: |
||
1385 | 326 .LFB67: |
||
1386 | 333:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** uint32_t addresstmp = 0U; |
||
1387 | 327 .loc 1 333 1 is_stmt 1 view -0 |
||
1388 | 328 .cfi_startproc |
||
1389 | 329 @ args = 0, pretend = 0, frame = 0 |
||
1390 | 330 @ frame_needed = 0, uses_anonymous_args = 0 |
||
1391 | 331 0000 F8B5 push {r3, r4, r5, r6, r7, lr} |
||
1392 | 332 .LCFI1: |
||
1393 | 333 .cfi_def_cfa_offset 24 |
||
1394 | 334 .cfi_offset 3, -24 |
||
1395 | 335 .cfi_offset 4, -20 |
||
1396 | 336 .cfi_offset 5, -16 |
||
1397 | 337 .cfi_offset 6, -12 |
||
1398 | 338 .cfi_offset 7, -8 |
||
1399 | 339 .cfi_offset 14, -4 |
||
1400 | 334:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1401 | 340 .loc 1 334 3 view .LVU82 |
||
1402 | 341 .LVL19: |
||
1403 | 341:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
1404 | 342 .loc 1 341 3 view .LVU83 |
||
1405 | 341:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
1406 | 343 .loc 1 341 6 is_stmt 0 view .LVU84 |
||
1407 | 344 0002 524B ldr r3, .L42 |
||
1408 | 345 0004 DB68 ldr r3, [r3, #12] |
||
1409 | 341:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
1410 | 346 .loc 1 341 5 view .LVU85 |
||
1411 | 347 0006 13F0100F tst r3, #16 |
||
1412 | 348 000a 04D1 bne .L25 |
||
1413 | 341:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
1414 | 349 .loc 1 341 48 discriminator 1 view .LVU86 |
||
1415 | 350 000c 4F4B ldr r3, .L42 |
||
1416 | 351 000e DB68 ldr r3, [r3, #12] |
||
1417 | 341:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
1418 | 352 .loc 1 341 46 discriminator 1 view .LVU87 |
||
1419 | 353 0010 13F0040F tst r3, #4 |
||
1420 | 354 0014 0BD0 beq .L26 |
||
1421 | 355 .L25: |
||
1422 | 345:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Reset address */ |
||
1423 | 356 .loc 1 345 5 is_stmt 1 view .LVU88 |
||
1424 | 345:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Reset address */ |
||
1425 | 357 .loc 1 345 16 is_stmt 0 view .LVU89 |
||
1426 | 358 0016 4E4C ldr r4, .L42+4 |
||
1427 | 359 0018 A568 ldr r5, [r4, #8] |
||
1428 | 360 .LVL20: |
||
1429 | 347:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1430 | 361 .loc 1 347 5 is_stmt 1 view .LVU90 |
||
1431 | 347:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1432 | 362 .loc 1 347 20 is_stmt 0 view .LVU91 |
||
1433 | 363 001a 4FF0FF33 mov r3, #-1 |
||
1434 | 364 001e A360 str r3, [r4, #8] |
||
1435 | 350:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1436 | 365 .loc 1 350 5 is_stmt 1 view .LVU92 |
||
1437 | 366 0020 FFF7FEFF bl FLASH_SetErrorCode |
||
1438 | 367 .LVL21: |
||
1439 | 353:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1440 | 368 .loc 1 353 5 view .LVU93 |
||
19 | mjames | 1441 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 25 |
16 | mjames | 1442 | |
1443 | |||
1444 | 369 0024 2846 mov r0, r5 |
||
1445 | 370 0026 FFF7FEFF bl HAL_FLASH_OperationErrorCallback |
||
1446 | 371 .LVL22: |
||
1447 | 356:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1448 | 372 .loc 1 356 5 view .LVU94 |
||
1449 | 356:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1450 | 373 .loc 1 356 29 is_stmt 0 view .LVU95 |
||
1451 | 374 002a 0023 movs r3, #0 |
||
1452 | 375 002c 2370 strb r3, [r4] |
||
1453 | 376 .LVL23: |
||
1454 | 377 .L26: |
||
1455 | 366:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1456 | 378 .loc 1 366 3 is_stmt 1 view .LVU96 |
||
1457 | 366:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1458 | 379 .loc 1 366 6 is_stmt 0 view .LVU97 |
||
1459 | 380 002e 474B ldr r3, .L42 |
||
1460 | 381 0030 DB68 ldr r3, [r3, #12] |
||
1461 | 366:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1462 | 382 .loc 1 366 5 view .LVU98 |
||
1463 | 383 0032 13F0200F tst r3, #32 |
||
1464 | 384 0036 2BD0 beq .L27 |
||
1465 | 369:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
1466 | 385 .loc 1 369 5 is_stmt 1 discriminator 2 view .LVU99 |
||
1467 | 369:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
1468 | 386 .loc 1 369 5 discriminator 2 view .LVU100 |
||
1469 | 369:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
1470 | 387 .loc 1 369 5 discriminator 2 view .LVU101 |
||
1471 | 388 0038 444B ldr r3, .L42 |
||
1472 | 389 003a 2022 movs r2, #32 |
||
1473 | 390 003c DA60 str r2, [r3, #12] |
||
1474 | 373:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1475 | 391 .loc 1 373 5 discriminator 2 view .LVU102 |
||
1476 | 373:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1477 | 392 .loc 1 373 14 is_stmt 0 discriminator 2 view .LVU103 |
||
1478 | 393 003e 444B ldr r3, .L42+4 |
||
1479 | 394 0040 1B78 ldrb r3, [r3] @ zero_extendqisi2 |
||
1480 | 373:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1481 | 395 .loc 1 373 7 discriminator 2 view .LVU104 |
||
1482 | 396 0042 2BB3 cbz r3, .L27 |
||
1483 | 375:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1484 | 397 .loc 1 375 7 is_stmt 1 view .LVU105 |
||
1485 | 375:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1486 | 398 .loc 1 375 16 is_stmt 0 view .LVU106 |
||
1487 | 399 0044 424B ldr r3, .L42+4 |
||
1488 | 400 0046 1B78 ldrb r3, [r3] @ zero_extendqisi2 |
||
1489 | 401 0048 DBB2 uxtb r3, r3 |
||
1490 | 375:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1491 | 402 .loc 1 375 9 view .LVU107 |
||
1492 | 403 004a 012B cmp r3, #1 |
||
1493 | 404 004c 30D0 beq .L37 |
||
1494 | 406:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1495 | 405 .loc 1 406 12 is_stmt 1 view .LVU108 |
||
1496 | 406:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1497 | 406 .loc 1 406 21 is_stmt 0 view .LVU109 |
||
1498 | 407 004e 404B ldr r3, .L42+4 |
||
1499 | 408 0050 1B78 ldrb r3, [r3] @ zero_extendqisi2 |
||
1500 | 409 0052 DBB2 uxtb r3, r3 |
||
19 | mjames | 1501 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 26 |
16 | mjames | 1502 | |
1503 | |||
1504 | 406:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1505 | 410 .loc 1 406 14 view .LVU110 |
||
1506 | 411 0054 022B cmp r3, #2 |
||
1507 | 412 0056 4AD0 beq .L38 |
||
1508 | 429:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1509 | 413 .loc 1 429 9 is_stmt 1 view .LVU111 |
||
1510 | 429:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1511 | 414 .loc 1 429 15 is_stmt 0 view .LVU112 |
||
1512 | 415 0058 3D4B ldr r3, .L42+4 |
||
1513 | 416 005a 5A68 ldr r2, [r3, #4] |
||
1514 | 429:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1515 | 417 .loc 1 429 29 view .LVU113 |
||
1516 | 418 005c 013A subs r2, r2, #1 |
||
1517 | 419 005e 5A60 str r2, [r3, #4] |
||
1518 | 432:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1519 | 420 .loc 1 432 9 is_stmt 1 view .LVU114 |
||
1520 | 432:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1521 | 421 .loc 1 432 18 is_stmt 0 view .LVU115 |
||
1522 | 422 0060 5B68 ldr r3, [r3, #4] |
||
1523 | 432:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1524 | 423 .loc 1 432 11 view .LVU116 |
||
1525 | 424 0062 002B cmp r3, #0 |
||
1526 | 425 0064 4FD1 bne .L39 |
||
1527 | 451:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1528 | 426 .loc 1 451 11 is_stmt 1 view .LVU117 |
||
1529 | 451:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1530 | 427 .loc 1 451 21 is_stmt 0 view .LVU118 |
||
1531 | 428 0066 3A4B ldr r3, .L42+4 |
||
1532 | 429 0068 1B78 ldrb r3, [r3] @ zero_extendqisi2 |
||
1533 | 430 006a DBB2 uxtb r3, r3 |
||
1534 | 451:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1535 | 431 .loc 1 451 14 view .LVU119 |
||
1536 | 432 006c 032B cmp r3, #3 |
||
1537 | 433 006e 62D0 beq .L40 |
||
1538 | 455:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1539 | 434 .loc 1 455 16 is_stmt 1 view .LVU120 |
||
1540 | 455:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1541 | 435 .loc 1 455 26 is_stmt 0 view .LVU121 |
||
1542 | 436 0070 374B ldr r3, .L42+4 |
||
1543 | 437 0072 1B78 ldrb r3, [r3] @ zero_extendqisi2 |
||
1544 | 438 0074 DBB2 uxtb r3, r3 |
||
1545 | 455:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1546 | 439 .loc 1 455 19 view .LVU122 |
||
1547 | 440 0076 042B cmp r3, #4 |
||
1548 | 441 0078 62D0 beq .L41 |
||
1549 | 461:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1550 | 442 .loc 1 461 13 is_stmt 1 view .LVU123 |
||
1551 | 461:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1552 | 443 .loc 1 461 52 is_stmt 0 view .LVU124 |
||
1553 | 444 007a 354B ldr r3, .L42+4 |
||
1554 | 445 007c 9868 ldr r0, [r3, #8] |
||
1555 | 461:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1556 | 446 .loc 1 461 13 view .LVU125 |
||
1557 | 447 007e 0638 subs r0, r0, #6 |
||
1558 | 448 0080 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback |
||
1559 | 449 .LVL24: |
||
1560 | 450 .L33: |
||
19 | mjames | 1561 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 27 |
16 | mjames | 1562 | |
1563 | |||
1564 | 465:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE; |
||
1565 | 451 .loc 1 465 11 is_stmt 1 view .LVU126 |
||
1566 | 465:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE; |
||
1567 | 452 .loc 1 465 26 is_stmt 0 view .LVU127 |
||
1568 | 453 0084 324B ldr r3, .L42+4 |
||
1569 | 454 0086 4FF0FF32 mov r2, #-1 |
||
1570 | 455 008a 9A60 str r2, [r3, #8] |
||
1571 | 466:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1572 | 456 .loc 1 466 11 is_stmt 1 view .LVU128 |
||
1573 | 466:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1574 | 457 .loc 1 466 35 is_stmt 0 view .LVU129 |
||
1575 | 458 008c 0022 movs r2, #0 |
||
1576 | 459 008e 1A70 strb r2, [r3] |
||
1577 | 460 .L27: |
||
1578 | 575:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1579 | 461 .loc 1 575 3 is_stmt 1 view .LVU130 |
||
1580 | 575:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1581 | 462 .loc 1 575 12 is_stmt 0 view .LVU131 |
||
1582 | 463 0090 2F4B ldr r3, .L42+4 |
||
1583 | 464 0092 1B78 ldrb r3, [r3] @ zero_extendqisi2 |
||
1584 | 575:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1585 | 465 .loc 1 575 5 view .LVU132 |
||
1586 | 466 0094 5BB9 cbnz r3, .L24 |
||
1587 | 586:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1588 | 467 .loc 1 586 5 is_stmt 1 view .LVU133 |
||
1589 | 468 0096 2D4B ldr r3, .L42 |
||
1590 | 469 0098 1A69 ldr r2, [r3, #16] |
||
1591 | 470 009a 22F00702 bic r2, r2, #7 |
||
1592 | 471 009e 1A61 str r2, [r3, #16] |
||
1593 | 589:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #endif /* FLASH_BANK2_END */ |
||
1594 | 472 .loc 1 589 5 view .LVU134 |
||
1595 | 473 00a0 1A69 ldr r2, [r3, #16] |
||
1596 | 474 00a2 22F4A052 bic r2, r2, #5120 |
||
1597 | 475 00a6 1A61 str r2, [r3, #16] |
||
1598 | 593:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1599 | 476 .loc 1 593 5 view .LVU135 |
||
1600 | 593:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1601 | 477 .loc 1 593 5 view .LVU136 |
||
1602 | 478 00a8 294B ldr r3, .L42+4 |
||
1603 | 479 00aa 0022 movs r2, #0 |
||
1604 | 480 00ac 1A76 strb r2, [r3, #24] |
||
1605 | 481 .L24: |
||
1606 | 595:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1607 | 482 .loc 1 595 1 is_stmt 0 view .LVU137 |
||
1608 | 483 00ae F8BD pop {r3, r4, r5, r6, r7, pc} |
||
1609 | 484 .L37: |
||
1610 | 378:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1611 | 485 .loc 1 378 9 is_stmt 1 view .LVU138 |
||
1612 | 378:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1613 | 486 .loc 1 378 15 is_stmt 0 view .LVU139 |
||
1614 | 487 00b0 274B ldr r3, .L42+4 |
||
1615 | 488 00b2 5A68 ldr r2, [r3, #4] |
||
1616 | 378:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1617 | 489 .loc 1 378 29 view .LVU140 |
||
1618 | 490 00b4 013A subs r2, r2, #1 |
||
1619 | 491 00b6 5A60 str r2, [r3, #4] |
||
1620 | 381:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
19 | mjames | 1621 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 28 |
16 | mjames | 1622 | |
1623 | |||
1624 | 492 .loc 1 381 9 is_stmt 1 view .LVU141 |
||
1625 | 381:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1626 | 493 .loc 1 381 18 is_stmt 0 view .LVU142 |
||
1627 | 494 00b8 5B68 ldr r3, [r3, #4] |
||
1628 | 381:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1629 | 495 .loc 1 381 11 view .LVU143 |
||
1630 | 496 00ba 7BB1 cbz r3, .L29 |
||
1631 | 383:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /*Indicate user which sector has been erased */ |
||
1632 | 497 .loc 1 383 11 is_stmt 1 view .LVU144 |
||
1633 | 383:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /*Indicate user which sector has been erased */ |
||
1634 | 498 .loc 1 383 22 is_stmt 0 view .LVU145 |
||
1635 | 499 00bc 244C ldr r4, .L42+4 |
||
1636 | 500 00be A068 ldr r0, [r4, #8] |
||
1637 | 501 .LVL25: |
||
1638 | 385:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1639 | 502 .loc 1 385 11 is_stmt 1 view .LVU146 |
||
1640 | 503 00c0 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback |
||
1641 | 504 .LVL26: |
||
1642 | 388:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address = addresstmp; |
||
1643 | 505 .loc 1 388 11 view .LVU147 |
||
1644 | 388:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address = addresstmp; |
||
1645 | 506 .loc 1 388 30 is_stmt 0 view .LVU148 |
||
1646 | 507 00c4 A068 ldr r0, [r4, #8] |
||
1647 | 388:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.Address = addresstmp; |
||
1648 | 508 .loc 1 388 22 view .LVU149 |
||
1649 | 509 00c6 00F58060 add r0, r0, #1024 |
||
1650 | 510 .LVL27: |
||
1651 | 389:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1652 | 511 .loc 1 389 11 is_stmt 1 view .LVU150 |
||
1653 | 389:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1654 | 512 .loc 1 389 26 is_stmt 0 view .LVU151 |
||
1655 | 513 00ca A060 str r0, [r4, #8] |
||
1656 | 392:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1657 | 514 .loc 1 392 11 is_stmt 1 view .LVU152 |
||
1658 | 515 00cc 1F4A ldr r2, .L42 |
||
1659 | 516 00ce 1369 ldr r3, [r2, #16] |
||
1660 | 517 00d0 23F00203 bic r3, r3, #2 |
||
1661 | 518 00d4 1361 str r3, [r2, #16] |
||
1662 | 394:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1663 | 519 .loc 1 394 11 view .LVU153 |
||
1664 | 520 00d6 FFF7FEFF bl FLASH_PageErase |
||
1665 | 521 .LVL28: |
||
1666 | 394:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1667 | 522 .loc 1 394 11 is_stmt 0 view .LVU154 |
||
1668 | 523 00da D9E7 b .L27 |
||
1669 | 524 .L29: |
||
1670 | 400:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE; |
||
1671 | 525 .loc 1 400 11 is_stmt 1 view .LVU155 |
||
1672 | 526 .LVL29: |
||
1673 | 400:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE; |
||
1674 | 527 .loc 1 400 26 is_stmt 0 view .LVU156 |
||
1675 | 528 00dc 1C4B ldr r3, .L42+4 |
||
1676 | 529 00de 4FF0FF30 mov r0, #-1 |
||
1677 | 530 00e2 9860 str r0, [r3, #8] |
||
1678 | 401:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* FLASH EOP interrupt user callback */ |
||
1679 | 531 .loc 1 401 11 is_stmt 1 view .LVU157 |
||
1680 | 401:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* FLASH EOP interrupt user callback */ |
||
19 | mjames | 1681 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 29 |
16 | mjames | 1682 | |
1683 | |||
1684 | 532 .loc 1 401 35 is_stmt 0 view .LVU158 |
||
1685 | 533 00e4 0022 movs r2, #0 |
||
1686 | 534 00e6 1A70 strb r2, [r3] |
||
1687 | 403:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1688 | 535 .loc 1 403 11 is_stmt 1 view .LVU159 |
||
1689 | 536 00e8 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback |
||
1690 | 537 .LVL30: |
||
1691 | 538 00ec D0E7 b .L27 |
||
1692 | 539 .LVL31: |
||
1693 | 540 .L38: |
||
1694 | 409:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1695 | 541 .loc 1 409 9 view .LVU160 |
||
1696 | 542 00ee 174A ldr r2, .L42 |
||
1697 | 543 00f0 1369 ldr r3, [r2, #16] |
||
1698 | 544 00f2 23F00403 bic r3, r3, #4 |
||
1699 | 545 00f6 1361 str r3, [r2, #16] |
||
1700 | 418:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1701 | 546 .loc 1 418 11 view .LVU161 |
||
1702 | 547 00f8 0020 movs r0, #0 |
||
1703 | 548 00fa FFF7FEFF bl HAL_FLASH_EndOfOperationCallback |
||
1704 | 549 .LVL32: |
||
1705 | 421:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1706 | 550 .loc 1 421 11 view .LVU162 |
||
1707 | 421:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1708 | 551 .loc 1 421 35 is_stmt 0 view .LVU163 |
||
1709 | 552 00fe 144B ldr r3, .L42+4 |
||
1710 | 553 0100 0022 movs r2, #0 |
||
1711 | 554 0102 1A70 strb r2, [r3] |
||
1712 | 555 0104 C4E7 b .L27 |
||
1713 | 556 .L39: |
||
1714 | 435:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** addresstmp = pFlash.Address; |
||
1715 | 557 .loc 1 435 11 is_stmt 1 view .LVU164 |
||
1716 | 435:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** addresstmp = pFlash.Address; |
||
1717 | 558 .loc 1 435 26 is_stmt 0 view .LVU165 |
||
1718 | 559 0106 124B ldr r3, .L42+4 |
||
1719 | 560 0108 9A68 ldr r2, [r3, #8] |
||
1720 | 561 010a 0232 adds r2, r2, #2 |
||
1721 | 562 010c 9A60 str r2, [r3, #8] |
||
1722 | 436:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1723 | 563 .loc 1 436 11 is_stmt 1 view .LVU166 |
||
1724 | 436:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1725 | 564 .loc 1 436 22 is_stmt 0 view .LVU167 |
||
1726 | 565 010e 9868 ldr r0, [r3, #8] |
||
1727 | 566 .LVL33: |
||
1728 | 439:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1729 | 567 .loc 1 439 11 is_stmt 1 view .LVU168 |
||
1730 | 439:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1731 | 568 .loc 1 439 32 is_stmt 0 view .LVU169 |
||
1732 | 569 0110 D3E90467 ldrd r6, [r3, #16] |
||
1733 | 439:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1734 | 570 .loc 1 439 38 view .LVU170 |
||
1735 | 571 0114 340C lsrs r4, r6, #16 |
||
1736 | 572 0116 44EA0744 orr r4, r4, r7, lsl #16 |
||
1737 | 573 011a 3D0C lsrs r5, r7, #16 |
||
1738 | 439:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1739 | 574 .loc 1 439 23 view .LVU171 |
||
1740 | 575 011c C3E90445 strd r4, [r3, #16] |
||
19 | mjames | 1741 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 30 |
16 | mjames | 1742 | |
1743 | |||
1744 | 442:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1745 | 576 .loc 1 442 11 is_stmt 1 view .LVU172 |
||
1746 | 577 0120 0A49 ldr r1, .L42 |
||
1747 | 578 0122 0A69 ldr r2, [r1, #16] |
||
1748 | 579 0124 22F00102 bic r2, r2, #1 |
||
1749 | 580 0128 0A61 str r2, [r1, #16] |
||
1750 | 445:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1751 | 581 .loc 1 445 11 view .LVU173 |
||
1752 | 445:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1753 | 582 .loc 1 445 62 is_stmt 0 view .LVU174 |
||
1754 | 583 012a D3E90423 ldrd r2, [r3, #16] |
||
1755 | 445:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1756 | 584 .loc 1 445 11 view .LVU175 |
||
1757 | 585 012e 91B2 uxth r1, r2 |
||
1758 | 586 0130 FFF7FEFF bl FLASH_Program_HalfWord |
||
1759 | 587 .LVL34: |
||
1760 | 445:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1761 | 588 .loc 1 445 11 view .LVU176 |
||
1762 | 589 0134 ACE7 b .L27 |
||
1763 | 590 .L40: |
||
1764 | 453:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1765 | 591 .loc 1 453 13 is_stmt 1 view .LVU177 |
||
1766 | 592 0136 064B ldr r3, .L42+4 |
||
1767 | 593 0138 9868 ldr r0, [r3, #8] |
||
1768 | 594 013a FFF7FEFF bl HAL_FLASH_EndOfOperationCallback |
||
1769 | 595 .LVL35: |
||
1770 | 596 013e A1E7 b .L33 |
||
1771 | 597 .L41: |
||
1772 | 457:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1773 | 598 .loc 1 457 13 view .LVU178 |
||
1774 | 457:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1775 | 599 .loc 1 457 52 is_stmt 0 view .LVU179 |
||
1776 | 600 0140 034B ldr r3, .L42+4 |
||
1777 | 601 0142 9868 ldr r0, [r3, #8] |
||
1778 | 457:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1779 | 602 .loc 1 457 13 view .LVU180 |
||
1780 | 603 0144 0238 subs r0, r0, #2 |
||
1781 | 604 0146 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback |
||
1782 | 605 .LVL36: |
||
1783 | 606 014a 9BE7 b .L33 |
||
1784 | 607 .L43: |
||
1785 | 608 .align 2 |
||
1786 | 609 .L42: |
||
1787 | 610 014c 00200240 .word 1073881088 |
||
1788 | 611 0150 00000000 .word pFlash |
||
1789 | 612 .cfi_endproc |
||
1790 | 613 .LFE67: |
||
1791 | 615 .section .text.HAL_FLASH_Unlock,"ax",%progbits |
||
1792 | 616 .align 1 |
||
1793 | 617 .global HAL_FLASH_Unlock |
||
1794 | 618 .syntax unified |
||
1795 | 619 .thumb |
||
1796 | 620 .thumb_func |
||
1797 | 621 .fpu softvfp |
||
1798 | 623 HAL_FLASH_Unlock: |
||
1799 | 624 .LFB70: |
||
1800 | 658:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK; |
||
19 | mjames | 1801 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 31 |
16 | mjames | 1802 | |
1803 | |||
1804 | 625 .loc 1 658 1 is_stmt 1 view -0 |
||
1805 | 626 .cfi_startproc |
||
1806 | 627 @ args = 0, pretend = 0, frame = 0 |
||
1807 | 628 @ frame_needed = 0, uses_anonymous_args = 0 |
||
1808 | 629 @ link register save eliminated. |
||
1809 | 659:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1810 | 630 .loc 1 659 3 view .LVU182 |
||
1811 | 631 .LVL37: |
||
1812 | 661:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1813 | 632 .loc 1 661 3 view .LVU183 |
||
1814 | 661:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1815 | 633 .loc 1 661 6 is_stmt 0 view .LVU184 |
||
1816 | 634 0000 0A4B ldr r3, .L48 |
||
1817 | 635 0002 1B69 ldr r3, [r3, #16] |
||
1818 | 661:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1819 | 636 .loc 1 661 5 view .LVU185 |
||
1820 | 637 0004 13F0800F tst r3, #128 |
||
1821 | 638 0008 0BD0 beq .L46 |
||
1822 | 664:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** WRITE_REG(FLASH->KEYR, FLASH_KEY2); |
||
1823 | 639 .loc 1 664 5 is_stmt 1 view .LVU186 |
||
1824 | 640 000a 084B ldr r3, .L48 |
||
1825 | 641 000c 084A ldr r2, .L48+4 |
||
1826 | 642 000e 5A60 str r2, [r3, #4] |
||
1827 | 665:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1828 | 643 .loc 1 665 5 view .LVU187 |
||
1829 | 644 0010 02F18832 add r2, r2, #-2004318072 |
||
1830 | 645 0014 5A60 str r2, [r3, #4] |
||
1831 | 668:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1832 | 646 .loc 1 668 5 view .LVU188 |
||
1833 | 668:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1834 | 647 .loc 1 668 8 is_stmt 0 view .LVU189 |
||
1835 | 648 0016 1B69 ldr r3, [r3, #16] |
||
1836 | 668:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1837 | 649 .loc 1 668 7 view .LVU190 |
||
1838 | 650 0018 13F0800F tst r3, #128 |
||
1839 | 651 001c 03D1 bne .L47 |
||
1840 | 659:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1841 | 652 .loc 1 659 21 view .LVU191 |
||
1842 | 653 001e 0020 movs r0, #0 |
||
1843 | 654 0020 7047 bx lr |
||
1844 | 655 .L46: |
||
1845 | 656 0022 0020 movs r0, #0 |
||
1846 | 657 0024 7047 bx lr |
||
1847 | 658 .L47: |
||
1848 | 670:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1849 | 659 .loc 1 670 14 view .LVU192 |
||
1850 | 660 0026 0120 movs r0, #1 |
||
1851 | 661 .LVL38: |
||
1852 | 688:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1853 | 662 .loc 1 688 3 is_stmt 1 view .LVU193 |
||
1854 | 689:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1855 | 663 .loc 1 689 1 is_stmt 0 view .LVU194 |
||
1856 | 664 0028 7047 bx lr |
||
1857 | 665 .L49: |
||
1858 | 666 002a 00BF .align 2 |
||
1859 | 667 .L48: |
||
1860 | 668 002c 00200240 .word 1073881088 |
||
19 | mjames | 1861 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 32 |
16 | mjames | 1862 | |
1863 | |||
1864 | 669 0030 23016745 .word 1164378403 |
||
1865 | 670 .cfi_endproc |
||
1866 | 671 .LFE70: |
||
1867 | 673 .section .text.HAL_FLASH_Lock,"ax",%progbits |
||
1868 | 674 .align 1 |
||
1869 | 675 .global HAL_FLASH_Lock |
||
1870 | 676 .syntax unified |
||
1871 | 677 .thumb |
||
1872 | 678 .thumb_func |
||
1873 | 679 .fpu softvfp |
||
1874 | 681 HAL_FLASH_Lock: |
||
1875 | 682 .LFB71: |
||
1876 | 696:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Set the LOCK Bit to lock the FLASH Registers access */ |
||
1877 | 683 .loc 1 696 1 is_stmt 1 view -0 |
||
1878 | 684 .cfi_startproc |
||
1879 | 685 @ args = 0, pretend = 0, frame = 0 |
||
1880 | 686 @ frame_needed = 0, uses_anonymous_args = 0 |
||
1881 | 687 @ link register save eliminated. |
||
1882 | 698:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1883 | 688 .loc 1 698 3 view .LVU196 |
||
1884 | 689 0000 034A ldr r2, .L51 |
||
1885 | 690 0002 1369 ldr r3, [r2, #16] |
||
1886 | 691 0004 43F08003 orr r3, r3, #128 |
||
1887 | 692 0008 1361 str r3, [r2, #16] |
||
1888 | 705:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1889 | 693 .loc 1 705 3 view .LVU197 |
||
1890 | 706:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1891 | 694 .loc 1 706 1 is_stmt 0 view .LVU198 |
||
1892 | 695 000a 0020 movs r0, #0 |
||
1893 | 696 000c 7047 bx lr |
||
1894 | 697 .L52: |
||
1895 | 698 000e 00BF .align 2 |
||
1896 | 699 .L51: |
||
1897 | 700 0010 00200240 .word 1073881088 |
||
1898 | 701 .cfi_endproc |
||
1899 | 702 .LFE71: |
||
1900 | 704 .section .text.HAL_FLASH_OB_Unlock,"ax",%progbits |
||
1901 | 705 .align 1 |
||
1902 | 706 .global HAL_FLASH_OB_Unlock |
||
1903 | 707 .syntax unified |
||
1904 | 708 .thumb |
||
1905 | 709 .thumb_func |
||
1906 | 710 .fpu softvfp |
||
1907 | 712 HAL_FLASH_OB_Unlock: |
||
1908 | 713 .LFB72: |
||
1909 | 713:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** if (HAL_IS_BIT_CLR(FLASH->CR, FLASH_CR_OPTWRE)) |
||
1910 | 714 .loc 1 713 1 is_stmt 1 view -0 |
||
1911 | 715 .cfi_startproc |
||
1912 | 716 @ args = 0, pretend = 0, frame = 0 |
||
1913 | 717 @ frame_needed = 0, uses_anonymous_args = 0 |
||
1914 | 718 @ link register save eliminated. |
||
1915 | 714:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1916 | 719 .loc 1 714 3 view .LVU200 |
||
1917 | 714:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1918 | 720 .loc 1 714 7 is_stmt 0 view .LVU201 |
||
1919 | 721 0000 074B ldr r3, .L56 |
||
1920 | 722 0002 1B69 ldr r3, [r3, #16] |
||
19 | mjames | 1921 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 33 |
16 | mjames | 1922 | |
1923 | |||
1924 | 714:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
1925 | 723 .loc 1 714 6 view .LVU202 |
||
1926 | 724 0004 13F4007F tst r3, #512 |
||
1927 | 725 0008 07D1 bne .L55 |
||
1928 | 717:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** WRITE_REG(FLASH->OPTKEYR, FLASH_OPTKEY2); |
||
1929 | 726 .loc 1 717 5 is_stmt 1 view .LVU203 |
||
1930 | 727 000a 054B ldr r3, .L56 |
||
1931 | 728 000c 054A ldr r2, .L56+4 |
||
1932 | 729 000e 9A60 str r2, [r3, #8] |
||
1933 | 718:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1934 | 730 .loc 1 718 5 view .LVU204 |
||
1935 | 731 0010 02F18832 add r2, r2, #-2004318072 |
||
1936 | 732 0014 9A60 str r2, [r3, #8] |
||
1937 | 725:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1938 | 733 .loc 1 725 3 view .LVU205 |
||
1939 | 725:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1940 | 734 .loc 1 725 10 is_stmt 0 view .LVU206 |
||
1941 | 735 0016 0020 movs r0, #0 |
||
1942 | 736 0018 7047 bx lr |
||
1943 | 737 .L55: |
||
1944 | 722:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1945 | 738 .loc 1 722 12 view .LVU207 |
||
1946 | 739 001a 0120 movs r0, #1 |
||
1947 | 726:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1948 | 740 .loc 1 726 1 view .LVU208 |
||
1949 | 741 001c 7047 bx lr |
||
1950 | 742 .L57: |
||
1951 | 743 001e 00BF .align 2 |
||
1952 | 744 .L56: |
||
1953 | 745 0020 00200240 .word 1073881088 |
||
1954 | 746 0024 23016745 .word 1164378403 |
||
1955 | 747 .cfi_endproc |
||
1956 | 748 .LFE72: |
||
1957 | 750 .section .text.HAL_FLASH_OB_Lock,"ax",%progbits |
||
1958 | 751 .align 1 |
||
1959 | 752 .global HAL_FLASH_OB_Lock |
||
1960 | 753 .syntax unified |
||
1961 | 754 .thumb |
||
1962 | 755 .thumb_func |
||
1963 | 756 .fpu softvfp |
||
1964 | 758 HAL_FLASH_OB_Lock: |
||
1965 | 759 .LFB73: |
||
1966 | 733:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Clear the OPTWRE Bit to lock the FLASH Option Byte Registers access */ |
||
1967 | 760 .loc 1 733 1 is_stmt 1 view -0 |
||
1968 | 761 .cfi_startproc |
||
1969 | 762 @ args = 0, pretend = 0, frame = 0 |
||
1970 | 763 @ frame_needed = 0, uses_anonymous_args = 0 |
||
1971 | 764 @ link register save eliminated. |
||
1972 | 735:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
1973 | 765 .loc 1 735 3 view .LVU210 |
||
1974 | 766 0000 034A ldr r2, .L59 |
||
1975 | 767 0002 1369 ldr r3, [r2, #16] |
||
1976 | 768 0004 23F40073 bic r3, r3, #512 |
||
1977 | 769 0008 1361 str r3, [r2, #16] |
||
1978 | 737:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
1979 | 770 .loc 1 737 3 view .LVU211 |
||
1980 | 738:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
19 | mjames | 1981 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 34 |
16 | mjames | 1982 | |
1983 | |||
1984 | 771 .loc 1 738 1 is_stmt 0 view .LVU212 |
||
1985 | 772 000a 0020 movs r0, #0 |
||
1986 | 773 000c 7047 bx lr |
||
1987 | 774 .L60: |
||
1988 | 775 000e 00BF .align 2 |
||
1989 | 776 .L59: |
||
1990 | 777 0010 00200240 .word 1073881088 |
||
1991 | 778 .cfi_endproc |
||
1992 | 779 .LFE73: |
||
1993 | 781 .section .text.HAL_FLASH_OB_Launch,"ax",%progbits |
||
1994 | 782 .align 1 |
||
1995 | 783 .global HAL_FLASH_OB_Launch |
||
1996 | 784 .syntax unified |
||
1997 | 785 .thumb |
||
1998 | 786 .thumb_func |
||
1999 | 787 .fpu softvfp |
||
2000 | 789 HAL_FLASH_OB_Launch: |
||
2001 | 790 .LFB74: |
||
2002 | 746:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** /* Initiates a system reset request to launch the option byte loading */ |
||
2003 | 791 .loc 1 746 1 is_stmt 1 view -0 |
||
2004 | 792 .cfi_startproc |
||
2005 | 793 @ args = 0, pretend = 0, frame = 0 |
||
2006 | 794 @ frame_needed = 0, uses_anonymous_args = 0 |
||
2007 | 795 0000 08B5 push {r3, lr} |
||
2008 | 796 .LCFI2: |
||
2009 | 797 .cfi_def_cfa_offset 8 |
||
2010 | 798 .cfi_offset 3, -8 |
||
2011 | 799 .cfi_offset 14, -4 |
||
2012 | 748:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
2013 | 800 .loc 1 748 3 view .LVU214 |
||
2014 | 801 0002 FFF7FEFF bl HAL_NVIC_SystemReset |
||
2015 | 802 .LVL39: |
||
2016 | 749:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2017 | 803 .loc 1 749 1 is_stmt 0 view .LVU215 |
||
2018 | 804 0006 08BD pop {r3, pc} |
||
2019 | 805 .cfi_endproc |
||
2020 | 806 .LFE74: |
||
2021 | 808 .section .text.HAL_FLASH_GetError,"ax",%progbits |
||
2022 | 809 .align 1 |
||
2023 | 810 .global HAL_FLASH_GetError |
||
2024 | 811 .syntax unified |
||
2025 | 812 .thumb |
||
2026 | 813 .thumb_func |
||
2027 | 814 .fpu softvfp |
||
2028 | 816 HAL_FLASH_GetError: |
||
2029 | 817 .LFB75: |
||
2030 | 775:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return pFlash.ErrorCode; |
||
2031 | 818 .loc 1 775 1 is_stmt 1 view -0 |
||
2032 | 819 .cfi_startproc |
||
2033 | 820 @ args = 0, pretend = 0, frame = 0 |
||
2034 | 821 @ frame_needed = 0, uses_anonymous_args = 0 |
||
2035 | 822 @ link register save eliminated. |
||
2036 | 776:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
2037 | 823 .loc 1 776 4 view .LVU217 |
||
2038 | 776:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
2039 | 824 .loc 1 776 17 is_stmt 0 view .LVU218 |
||
2040 | 825 0000 014B ldr r3, .L64 |
||
19 | mjames | 2041 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 35 |
16 | mjames | 2042 | |
2043 | |||
2044 | 826 0002 D869 ldr r0, [r3, #28] |
||
2045 | 777:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2046 | 827 .loc 1 777 1 view .LVU219 |
||
2047 | 828 0004 7047 bx lr |
||
2048 | 829 .L65: |
||
2049 | 830 0006 00BF .align 2 |
||
2050 | 831 .L64: |
||
2051 | 832 0008 00000000 .word pFlash |
||
2052 | 833 .cfi_endproc |
||
2053 | 834 .LFE75: |
||
2054 | 836 .section .text.FLASH_WaitForLastOperation,"ax",%progbits |
||
2055 | 837 .align 1 |
||
2056 | 838 .global FLASH_WaitForLastOperation |
||
2057 | 839 .syntax unified |
||
2058 | 840 .thumb |
||
2059 | 841 .thumb_func |
||
2060 | 842 .fpu softvfp |
||
2061 | 844 FLASH_WaitForLastOperation: |
||
2062 | 845 .LVL40: |
||
2063 | 846 .LFB77: |
||
2064 | 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. |
||
2065 | 847 .loc 1 827 1 is_stmt 1 view -0 |
||
2066 | 848 .cfi_startproc |
||
2067 | 849 @ args = 0, pretend = 0, frame = 0 |
||
2068 | 850 @ frame_needed = 0, uses_anonymous_args = 0 |
||
2069 | 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. |
||
2070 | 851 .loc 1 827 1 is_stmt 0 view .LVU221 |
||
2071 | 852 0000 38B5 push {r3, r4, r5, lr} |
||
2072 | 853 .LCFI3: |
||
2073 | 854 .cfi_def_cfa_offset 16 |
||
2074 | 855 .cfi_offset 3, -16 |
||
2075 | 856 .cfi_offset 4, -12 |
||
2076 | 857 .cfi_offset 5, -8 |
||
2077 | 858 .cfi_offset 14, -4 |
||
2078 | 859 0002 0446 mov r4, r0 |
||
2079 | 832:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2080 | 860 .loc 1 832 3 is_stmt 1 view .LVU222 |
||
2081 | 832:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2082 | 861 .loc 1 832 24 is_stmt 0 view .LVU223 |
||
2083 | 862 0004 FFF7FEFF bl HAL_GetTick |
||
2084 | 863 .LVL41: |
||
2085 | 832:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2086 | 864 .loc 1 832 24 view .LVU224 |
||
2087 | 865 0008 0546 mov r5, r0 |
||
2088 | 866 .LVL42: |
||
2089 | 834:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2090 | 867 .loc 1 834 3 is_stmt 1 view .LVU225 |
||
2091 | 868 .L68: |
||
2092 | 834:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2093 | 869 .loc 1 834 9 is_stmt 0 view .LVU226 |
||
2094 | 870 000a 164B ldr r3, .L77 |
||
2095 | 871 000c DB68 ldr r3, [r3, #12] |
||
2096 | 834:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2097 | 872 .loc 1 834 8 view .LVU227 |
||
2098 | 873 000e 13F0010F tst r3, #1 |
||
2099 | 874 0012 0AD0 beq .L76 |
||
2100 | 836:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
19 | mjames | 2101 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 36 |
16 | mjames | 2102 | |
2103 | |||
2104 | 875 .loc 1 836 5 is_stmt 1 view .LVU228 |
||
2105 | 836:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2106 | 876 .loc 1 836 8 is_stmt 0 view .LVU229 |
||
2107 | 877 0014 B4F1FF3F cmp r4, #-1 |
||
2108 | 878 0018 F7D0 beq .L68 |
||
2109 | 838:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2110 | 879 .loc 1 838 7 is_stmt 1 view .LVU230 |
||
2111 | 838:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2112 | 880 .loc 1 838 9 is_stmt 0 view .LVU231 |
||
2113 | 881 001a 24B1 cbz r4, .L69 |
||
2114 | 838:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2115 | 882 .loc 1 838 31 discriminator 1 view .LVU232 |
||
2116 | 883 001c FFF7FEFF bl HAL_GetTick |
||
2117 | 884 .LVL43: |
||
2118 | 838:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2119 | 885 .loc 1 838 44 discriminator 1 view .LVU233 |
||
2120 | 886 0020 401B subs r0, r0, r5 |
||
2121 | 838:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2122 | 887 .loc 1 838 26 discriminator 1 view .LVU234 |
||
2123 | 888 0022 A042 cmp r0, r4 |
||
2124 | 889 0024 F1D9 bls .L68 |
||
2125 | 890 .L69: |
||
2126 | 840:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
2127 | 891 .loc 1 840 9 is_stmt 1 view .LVU235 |
||
2128 | 840:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
2129 | 892 .loc 1 840 16 is_stmt 0 view .LVU236 |
||
2130 | 893 0026 0320 movs r0, #3 |
||
2131 | 894 0028 1BE0 b .L70 |
||
2132 | 895 .L76: |
||
2133 | 846:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2134 | 896 .loc 1 846 3 is_stmt 1 view .LVU237 |
||
2135 | 846:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2136 | 897 .loc 1 846 7 is_stmt 0 view .LVU238 |
||
2137 | 898 002a 0E4B ldr r3, .L77 |
||
2138 | 899 002c DB68 ldr r3, [r3, #12] |
||
2139 | 846:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2140 | 900 .loc 1 846 6 view .LVU239 |
||
2141 | 901 002e 13F0200F tst r3, #32 |
||
2142 | 902 0032 02D0 beq .L72 |
||
2143 | 849:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
2144 | 903 .loc 1 849 5 is_stmt 1 discriminator 2 view .LVU240 |
||
2145 | 849:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
2146 | 904 .loc 1 849 5 discriminator 2 view .LVU241 |
||
2147 | 849:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
2148 | 905 .loc 1 849 5 discriminator 2 view .LVU242 |
||
2149 | 906 0034 0B4B ldr r3, .L77 |
||
2150 | 907 0036 2022 movs r2, #32 |
||
2151 | 908 0038 DA60 str r2, [r3, #12] |
||
2152 | 909 .L72: |
||
2153 | 852:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR) || |
||
2154 | 910 .loc 1 852 3 view .LVU243 |
||
2155 | 852:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR) || |
||
2156 | 911 .loc 1 852 6 is_stmt 0 view .LVU244 |
||
2157 | 912 003a 0A4B ldr r3, .L77 |
||
2158 | 913 003c DB68 ldr r3, [r3, #12] |
||
2159 | 852:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR) || |
||
2160 | 914 .loc 1 852 5 view .LVU245 |
||
19 | mjames | 2161 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 37 |
16 | mjames | 2162 | |
2163 | |||
2164 | 915 003e 13F0100F tst r3, #16 |
||
2165 | 916 0042 0BD1 bne .L73 |
||
2166 | 853:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR)) |
||
2167 | 917 .loc 1 853 6 discriminator 1 view .LVU246 |
||
2168 | 918 0044 074B ldr r3, .L77 |
||
2169 | 919 0046 DB69 ldr r3, [r3, #28] |
||
2170 | 852:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_GET_FLAG(FLASH_FLAG_OPTVERR) || |
||
2171 | 920 .loc 1 852 47 discriminator 1 view .LVU247 |
||
2172 | 921 0048 13F0010F tst r3, #1 |
||
2173 | 922 004c 06D1 bne .L73 |
||
2174 | 854:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2175 | 923 .loc 1 854 6 view .LVU248 |
||
2176 | 924 004e 054B ldr r3, .L77 |
||
2177 | 925 0050 DB68 ldr r3, [r3, #12] |
||
2178 | 853:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR)) |
||
2179 | 926 .loc 1 853 47 view .LVU249 |
||
2180 | 927 0052 13F0040F tst r3, #4 |
||
2181 | 928 0056 01D1 bne .L73 |
||
2182 | 862:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
2183 | 929 .loc 1 862 10 view .LVU250 |
||
2184 | 930 0058 0020 movs r0, #0 |
||
2185 | 931 005a 02E0 b .L70 |
||
2186 | 932 .L73: |
||
2187 | 857:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** return HAL_ERROR; |
||
2188 | 933 .loc 1 857 5 is_stmt 1 view .LVU251 |
||
2189 | 934 005c FFF7FEFF bl FLASH_SetErrorCode |
||
2190 | 935 .LVL44: |
||
2191 | 858:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
2192 | 936 .loc 1 858 5 view .LVU252 |
||
2193 | 858:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
2194 | 937 .loc 1 858 12 is_stmt 0 view .LVU253 |
||
2195 | 938 0060 0120 movs r0, #1 |
||
2196 | 939 .L70: |
||
2197 | 863:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2198 | 940 .loc 1 863 1 view .LVU254 |
||
2199 | 941 0062 38BD pop {r3, r4, r5, pc} |
||
2200 | 942 .LVL45: |
||
2201 | 943 .L78: |
||
2202 | 863:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2203 | 944 .loc 1 863 1 view .LVU255 |
||
2204 | 945 .align 2 |
||
2205 | 946 .L77: |
||
2206 | 947 0064 00200240 .word 1073881088 |
||
2207 | 948 .cfi_endproc |
||
2208 | 949 .LFE77: |
||
2209 | 951 .section .text.HAL_FLASH_Program,"ax",%progbits |
||
2210 | 952 .align 1 |
||
2211 | 953 .global HAL_FLASH_Program |
||
2212 | 954 .syntax unified |
||
2213 | 955 .thumb |
||
2214 | 956 .thumb_func |
||
2215 | 957 .fpu softvfp |
||
2216 | 959 HAL_FLASH_Program: |
||
2217 | 960 .LVL46: |
||
2218 | 961 .LFB65: |
||
2219 | 169:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_ERROR; |
||
2220 | 962 .loc 1 169 1 is_stmt 1 view -0 |
||
19 | mjames | 2221 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 38 |
16 | mjames | 2222 | |
2223 | |||
2224 | 963 .cfi_startproc |
||
2225 | 964 @ args = 0, pretend = 0, frame = 0 |
||
2226 | 965 @ frame_needed = 0, uses_anonymous_args = 0 |
||
2227 | 169:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_ERROR; |
||
2228 | 966 .loc 1 169 1 is_stmt 0 view .LVU257 |
||
2229 | 967 0000 2DE9F843 push {r3, r4, r5, r6, r7, r8, r9, lr} |
||
2230 | 968 .LCFI4: |
||
2231 | 969 .cfi_def_cfa_offset 32 |
||
2232 | 970 .cfi_offset 3, -32 |
||
2233 | 971 .cfi_offset 4, -28 |
||
2234 | 972 .cfi_offset 5, -24 |
||
2235 | 973 .cfi_offset 6, -20 |
||
2236 | 974 .cfi_offset 7, -16 |
||
2237 | 975 .cfi_offset 8, -12 |
||
2238 | 976 .cfi_offset 9, -8 |
||
2239 | 977 .cfi_offset 14, -4 |
||
2240 | 170:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** uint8_t index = 0; |
||
2241 | 978 .loc 1 170 3 is_stmt 1 view .LVU258 |
||
2242 | 979 .LVL47: |
||
2243 | 171:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** uint8_t nbiterations = 0; |
||
2244 | 980 .loc 1 171 3 view .LVU259 |
||
2245 | 172:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2246 | 981 .loc 1 172 3 view .LVU260 |
||
2247 | 175:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2248 | 982 .loc 1 175 3 view .LVU261 |
||
2249 | 175:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2250 | 983 .loc 1 175 3 view .LVU262 |
||
2251 | 984 0004 234C ldr r4, .L90 |
||
2252 | 985 0006 247E ldrb r4, [r4, #24] @ zero_extendqisi2 |
||
2253 | 986 0008 012C cmp r4, #1 |
||
2254 | 987 000a 41D0 beq .L85 |
||
2255 | 988 000c 1E46 mov r6, r3 |
||
2256 | 989 000e 9046 mov r8, r2 |
||
2257 | 990 0010 0F46 mov r7, r1 |
||
2258 | 991 0012 0446 mov r4, r0 |
||
2259 | 175:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2260 | 992 .loc 1 175 3 discriminator 2 view .LVU263 |
||
2261 | 993 0014 1F4B ldr r3, .L90 |
||
2262 | 994 0016 0122 movs r2, #1 |
||
2263 | 995 .LVL48: |
||
2264 | 175:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2265 | 996 .loc 1 175 3 is_stmt 0 discriminator 2 view .LVU264 |
||
2266 | 997 0018 1A76 strb r2, [r3, #24] |
||
2267 | 178:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** assert_param(IS_FLASH_PROGRAM_ADDRESS(Address)); |
||
2268 | 998 .loc 1 178 3 is_stmt 1 discriminator 2 view .LVU265 |
||
2269 | 179:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2270 | 999 .loc 1 179 3 discriminator 2 view .LVU266 |
||
2271 | 186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
2272 | 1000 .loc 1 186 5 discriminator 2 view .LVU267 |
||
2273 | 186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
2274 | 1001 .loc 1 186 14 is_stmt 0 discriminator 2 view .LVU268 |
||
2275 | 1002 001a 4CF25030 movw r0, #50000 |
||
2276 | 1003 .LVL49: |
||
2277 | 186:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
2278 | 1004 .loc 1 186 14 discriminator 2 view .LVU269 |
||
2279 | 1005 001e FFF7FEFF bl FLASH_WaitForLastOperation |
||
2280 | 1006 .LVL50: |
||
19 | mjames | 2281 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 39 |
16 | mjames | 2282 | |
2283 | |||
2284 | 196:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2285 | 1007 .loc 1 196 3 is_stmt 1 discriminator 2 view .LVU270 |
||
2286 | 196:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2287 | 1008 .loc 1 196 5 is_stmt 0 discriminator 2 view .LVU271 |
||
2288 | 1009 0022 0346 mov r3, r0 |
||
2289 | 1010 0024 70BB cbnz r0, .L81 |
||
2290 | 198:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2291 | 1011 .loc 1 198 5 is_stmt 1 view .LVU272 |
||
2292 | 198:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2293 | 1012 .loc 1 198 7 is_stmt 0 view .LVU273 |
||
2294 | 1013 0026 012C cmp r4, #1 |
||
2295 | 1014 0028 29D0 beq .L86 |
||
2296 | 203:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2297 | 1015 .loc 1 203 10 is_stmt 1 view .LVU274 |
||
2298 | 203:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2299 | 1016 .loc 1 203 12 is_stmt 0 view .LVU275 |
||
2300 | 1017 002a 022C cmp r4, #2 |
||
2301 | 1018 002c 24D0 beq .L89 |
||
2302 | 211:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
2303 | 1019 .loc 1 211 20 view .LVU276 |
||
2304 | 1020 002e 4FF00409 mov r9, #4 |
||
2305 | 1021 .L82: |
||
2306 | 1022 .LVL51: |
||
2307 | 214:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2308 | 1023 .loc 1 214 5 is_stmt 1 view .LVU277 |
||
2309 | 214:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2310 | 1024 .loc 1 214 16 is_stmt 0 view .LVU278 |
||
2311 | 1025 0032 0024 movs r4, #0 |
||
2312 | 1026 .LVL52: |
||
2313 | 1027 .L83: |
||
2314 | 214:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2315 | 1028 .loc 1 214 5 discriminator 1 view .LVU279 |
||
2316 | 1029 0034 4C45 cmp r4, r9 |
||
2317 | 1030 0036 25D2 bcs .L81 |
||
2318 | 216:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2319 | 1031 .loc 1 216 7 is_stmt 1 view .LVU280 |
||
2320 | 216:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2321 | 1032 .loc 1 216 77 is_stmt 0 view .LVU281 |
||
2322 | 1033 0038 2101 lsls r1, r4, #4 |
||
2323 | 216:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2324 | 1034 .loc 1 216 70 view .LVU282 |
||
2325 | 1035 003a C1F12002 rsb r2, r1, #32 |
||
2326 | 1036 003e A1F12003 sub r3, r1, #32 |
||
2327 | 1037 .LVL53: |
||
2328 | 216:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2329 | 1038 .loc 1 216 70 view .LVU283 |
||
2330 | 1039 0042 28FA01F1 lsr r1, r8, r1 |
||
2331 | 1040 0046 06FA02F2 lsl r2, r6, r2 |
||
2332 | 1041 004a 1143 orrs r1, r1, r2 |
||
2333 | 1042 004c 26FA03F3 lsr r3, r6, r3 |
||
2334 | 1043 0050 1943 orrs r1, r1, r3 |
||
2335 | 216:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2336 | 1044 .loc 1 216 7 view .LVU284 |
||
2337 | 1045 0052 89B2 uxth r1, r1 |
||
2338 | 1046 0054 07EB4400 add r0, r7, r4, lsl #1 |
||
2339 | 1047 0058 FFF7FEFF bl FLASH_Program_HalfWord |
||
2340 | 1048 .LVL54: |
||
19 | mjames | 2341 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 40 |
16 | mjames | 2342 | |
2343 | |||
2344 | 223:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2345 | 1049 .loc 1 223 9 is_stmt 1 view .LVU285 |
||
2346 | 223:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2347 | 1050 .loc 1 223 18 is_stmt 0 view .LVU286 |
||
2348 | 1051 005c 4CF25030 movw r0, #50000 |
||
2349 | 1052 0060 FFF7FEFF bl FLASH_WaitForLastOperation |
||
2350 | 1053 .LVL55: |
||
2351 | 226:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** #if defined(FLASH_BANK2_END) |
||
2352 | 1054 .loc 1 226 9 is_stmt 1 view .LVU287 |
||
2353 | 1055 0064 0C4B ldr r3, .L90+4 |
||
2354 | 1056 0066 1D69 ldr r5, [r3, #16] |
||
2355 | 1057 0068 25F00105 bic r5, r5, #1 |
||
2356 | 1058 006c 1D61 str r5, [r3, #16] |
||
2357 | 239:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2358 | 1059 .loc 1 239 7 view .LVU288 |
||
2359 | 239:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2360 | 1060 .loc 1 239 10 is_stmt 0 view .LVU289 |
||
2361 | 1061 006e 0346 mov r3, r0 |
||
2362 | 1062 0070 40B9 cbnz r0, .L81 |
||
2363 | 214:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2364 | 1063 .loc 1 214 49 discriminator 2 view .LVU290 |
||
2365 | 1064 0072 0134 adds r4, r4, #1 |
||
2366 | 1065 .LVL56: |
||
2367 | 214:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2368 | 1066 .loc 1 214 49 discriminator 2 view .LVU291 |
||
2369 | 1067 0074 E4B2 uxtb r4, r4 |
||
2370 | 1068 .LVL57: |
||
2371 | 214:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** { |
||
2372 | 1069 .loc 1 214 49 discriminator 2 view .LVU292 |
||
2373 | 1070 0076 DDE7 b .L83 |
||
2374 | 1071 .LVL58: |
||
2375 | 1072 .L89: |
||
2376 | 206:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
2377 | 1073 .loc 1 206 20 view .LVU293 |
||
2378 | 1074 0078 4FF00209 mov r9, #2 |
||
2379 | 1075 007c D9E7 b .L82 |
||
2380 | 1076 .L86: |
||
2381 | 201:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
2382 | 1077 .loc 1 201 20 view .LVU294 |
||
2383 | 1078 007e 4FF00109 mov r9, #1 |
||
2384 | 1079 0082 D6E7 b .L82 |
||
2385 | 1080 .LVL59: |
||
2386 | 1081 .L81: |
||
2387 | 247:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2388 | 1082 .loc 1 247 3 is_stmt 1 view .LVU295 |
||
2389 | 247:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2390 | 1083 .loc 1 247 3 view .LVU296 |
||
2391 | 1084 0084 034A ldr r2, .L90 |
||
2392 | 1085 0086 0021 movs r1, #0 |
||
2393 | 1086 0088 1176 strb r1, [r2, #24] |
||
2394 | 249:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** } |
||
2395 | 1087 .loc 1 249 3 view .LVU297 |
||
2396 | 1088 .LVL60: |
||
2397 | 1089 .L80: |
||
2398 | 250:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2399 | 1090 .loc 1 250 1 is_stmt 0 view .LVU298 |
||
2400 | 1091 008a 1846 mov r0, r3 |
||
19 | mjames | 2401 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 41 |
16 | mjames | 2402 | |
2403 | |||
2404 | 1092 008c BDE8F883 pop {r3, r4, r5, r6, r7, r8, r9, pc} |
||
2405 | 1093 .LVL61: |
||
2406 | 1094 .L85: |
||
2407 | 175:Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c **** |
||
2408 | 1095 .loc 1 175 3 view .LVU299 |
||
2409 | 1096 0090 0223 movs r3, #2 |
||
2410 | 1097 0092 FAE7 b .L80 |
||
2411 | 1098 .L91: |
||
2412 | 1099 .align 2 |
||
2413 | 1100 .L90: |
||
2414 | 1101 0094 00000000 .word pFlash |
||
2415 | 1102 0098 00200240 .word 1073881088 |
||
2416 | 1103 .cfi_endproc |
||
2417 | 1104 .LFE65: |
||
2418 | 1106 .comm pFlash,32,8 |
||
2419 | 1107 .text |
||
2420 | 1108 .Letext0: |
||
2421 | 1109 .file 2 "c:\\users\\mike\\appdata\\roaming\\xpacks\\@gnu-mcu-eclipse\\arm-none-eabi-gcc\\8.2.1-1.7 |
||
2422 | 1110 .file 3 "c:\\users\\mike\\appdata\\roaming\\xpacks\\@gnu-mcu-eclipse\\arm-none-eabi-gcc\\8.2.1-1.7 |
||
2423 | 1111 .file 4 "Drivers/CMSIS/Include/core_cm3.h" |
||
2424 | 1112 .file 5 "Drivers/CMSIS/Device/ST/STM32F1xx/Include/system_stm32f1xx.h" |
||
2425 | 1113 .file 6 "Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h" |
||
2426 | 1114 .file 7 "Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h" |
||
2427 | 1115 .file 8 "Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_def.h" |
||
2428 | 1116 .file 9 "Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h" |
||
2429 | 1117 .file 10 "Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h" |
||
2430 | 1118 .file 11 "Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_cortex.h" |
||
19 | mjames | 2431 | ARM GAS C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s page 42 |
16 | mjames | 2432 | |
2433 | |||
2434 | DEFINED SYMBOLS |
||
2435 | *ABS*:0000000000000000 stm32f1xx_hal_flash.c |
||
19 | mjames | 2436 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:16 .text.FLASH_Program_HalfWord:0000000000000000 $t |
2437 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:23 .text.FLASH_Program_HalfWord:0000000000000000 FLASH_Program_HalfWord |
||
2438 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:50 .text.FLASH_Program_HalfWord:0000000000000014 $d |
||
16 | mjames | 2439 | *COM*:0000000000000020 pFlash |
19 | mjames | 2440 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:56 .text.FLASH_SetErrorCode:0000000000000000 $t |
2441 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:62 .text.FLASH_SetErrorCode:0000000000000000 FLASH_SetErrorCode |
||
2442 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:144 .text.FLASH_SetErrorCode:0000000000000058 $d |
||
2443 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:150 .text.HAL_FLASH_Program_IT:0000000000000000 $t |
||
2444 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:157 .text.HAL_FLASH_Program_IT:0000000000000000 HAL_FLASH_Program_IT |
||
2445 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:268 .text.HAL_FLASH_Program_IT:000000000000005c $d |
||
2446 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:274 .text.HAL_FLASH_EndOfOperationCallback:0000000000000000 $t |
||
2447 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:281 .text.HAL_FLASH_EndOfOperationCallback:0000000000000000 HAL_FLASH_EndOfOperationCallback |
||
2448 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:296 .text.HAL_FLASH_OperationErrorCallback:0000000000000000 $t |
||
2449 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:303 .text.HAL_FLASH_OperationErrorCallback:0000000000000000 HAL_FLASH_OperationErrorCallback |
||
2450 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:318 .text.HAL_FLASH_IRQHandler:0000000000000000 $t |
||
2451 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:325 .text.HAL_FLASH_IRQHandler:0000000000000000 HAL_FLASH_IRQHandler |
||
2452 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:610 .text.HAL_FLASH_IRQHandler:000000000000014c $d |
||
2453 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:616 .text.HAL_FLASH_Unlock:0000000000000000 $t |
||
2454 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:623 .text.HAL_FLASH_Unlock:0000000000000000 HAL_FLASH_Unlock |
||
2455 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:668 .text.HAL_FLASH_Unlock:000000000000002c $d |
||
2456 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:674 .text.HAL_FLASH_Lock:0000000000000000 $t |
||
2457 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:681 .text.HAL_FLASH_Lock:0000000000000000 HAL_FLASH_Lock |
||
2458 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:700 .text.HAL_FLASH_Lock:0000000000000010 $d |
||
2459 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:705 .text.HAL_FLASH_OB_Unlock:0000000000000000 $t |
||
2460 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:712 .text.HAL_FLASH_OB_Unlock:0000000000000000 HAL_FLASH_OB_Unlock |
||
2461 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:745 .text.HAL_FLASH_OB_Unlock:0000000000000020 $d |
||
2462 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:751 .text.HAL_FLASH_OB_Lock:0000000000000000 $t |
||
2463 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:758 .text.HAL_FLASH_OB_Lock:0000000000000000 HAL_FLASH_OB_Lock |
||
2464 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:777 .text.HAL_FLASH_OB_Lock:0000000000000010 $d |
||
2465 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:782 .text.HAL_FLASH_OB_Launch:0000000000000000 $t |
||
2466 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:789 .text.HAL_FLASH_OB_Launch:0000000000000000 HAL_FLASH_OB_Launch |
||
2467 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:809 .text.HAL_FLASH_GetError:0000000000000000 $t |
||
2468 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:816 .text.HAL_FLASH_GetError:0000000000000000 HAL_FLASH_GetError |
||
2469 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:832 .text.HAL_FLASH_GetError:0000000000000008 $d |
||
2470 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:837 .text.FLASH_WaitForLastOperation:0000000000000000 $t |
||
2471 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:844 .text.FLASH_WaitForLastOperation:0000000000000000 FLASH_WaitForLastOperation |
||
2472 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:947 .text.FLASH_WaitForLastOperation:0000000000000064 $d |
||
2473 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:952 .text.HAL_FLASH_Program:0000000000000000 $t |
||
2474 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:959 .text.HAL_FLASH_Program:0000000000000000 HAL_FLASH_Program |
||
2475 | C:\Users\mike\AppData\Local\Temp\ccbPcAxh.s:1101 .text.HAL_FLASH_Program:0000000000000094 $d |
||
16 | mjames | 2476 | |
2477 | UNDEFINED SYMBOLS |
||
2478 | FLASH_PageErase |
||
2479 | HAL_NVIC_SystemReset |
||
2480 | HAL_GetTick |