3760 lines
248 KiB
Plaintext
3760 lines
248 KiB
Plaintext
ARM GAS /tmp/ccYzp9Nl.s page 1
|
||
|
||
|
||
1 .cpu cortex-m4
|
||
2 .arch armv7e-m
|
||
3 .fpu fpv4-sp-d16
|
||
4 .eabi_attribute 27, 1
|
||
5 .eabi_attribute 28, 1
|
||
6 .eabi_attribute 20, 1
|
||
7 .eabi_attribute 21, 1
|
||
8 .eabi_attribute 23, 3
|
||
9 .eabi_attribute 24, 1
|
||
10 .eabi_attribute 25, 1
|
||
11 .eabi_attribute 26, 1
|
||
12 .eabi_attribute 30, 1
|
||
13 .eabi_attribute 34, 1
|
||
14 .eabi_attribute 18, 4
|
||
15 .file "stm32f4xx_hal_flash_ex.c"
|
||
16 .text
|
||
17 .Ltext0:
|
||
18 .cfi_sections .debug_frame
|
||
19 .file 1 "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c"
|
||
20 .section .text.FLASH_MassErase,"ax",%progbits
|
||
21 .align 1
|
||
22 .syntax unified
|
||
23 .thumb
|
||
24 .thumb_func
|
||
26 FLASH_MassErase:
|
||
27 .LVL0:
|
||
28 .LFB248:
|
||
1:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
2:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** ******************************************************************************
|
||
3:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @file stm32f4xx_hal_flash_ex.c
|
||
4:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @author MCD Application Team
|
||
5:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Extended FLASH HAL module driver.
|
||
6:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This file provides firmware functions to manage the following
|
||
7:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * functionalities of the FLASH extension peripheral:
|
||
8:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * + Extended programming operations functions
|
||
9:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
10:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** @verbatim
|
||
11:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** ==============================================================================
|
||
12:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** ##### Flash Extension features #####
|
||
13:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** ==============================================================================
|
||
14:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
15:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** [..] Comparing to other previous devices, the FLASH interface for STM32F427xx/437xx and
|
||
16:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** STM32F429xx/439xx devices contains the following additional features
|
||
17:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
18:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (+) Capacity up to 2 Mbyte with dual bank architecture supporting read-while-write
|
||
19:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** capability (RWW)
|
||
20:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (+) Dual bank memory organization
|
||
21:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (+) PCROP protection for all banks
|
||
22:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
23:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** ##### How to use this driver #####
|
||
24:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** ==============================================================================
|
||
25:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** [..] This driver provides functions to configure and program the FLASH memory
|
||
26:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** of all STM32F427xx/437xx, STM32F429xx/439xx, STM32F469xx/479xx and STM32F446xx
|
||
27:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** devices. It includes
|
||
28:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (#) FLASH Memory Erase functions:
|
||
29:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (++) Lock and Unlock the FLASH interface using HAL_FLASH_Unlock() and
|
||
30:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_FLASH_Lock() functions
|
||
ARM GAS /tmp/ccYzp9Nl.s page 2
|
||
|
||
|
||
31:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (++) Erase function: Erase sector, erase all sectors
|
||
32:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (++) There are two modes of erase :
|
||
33:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (+++) Polling Mode using HAL_FLASHEx_Erase()
|
||
34:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (+++) Interrupt Mode using HAL_FLASHEx_Erase_IT()
|
||
35:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
36:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (#) Option Bytes Programming functions: Use HAL_FLASHEx_OBProgram() to :
|
||
37:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (++) Set/Reset the write protection
|
||
38:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (++) Set the Read protection Level
|
||
39:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (++) Set the BOR level
|
||
40:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (++) Program the user Option Bytes
|
||
41:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (#) Advanced Option Bytes Programming functions: Use HAL_FLASHEx_AdvOBProgram() to :
|
||
42:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (++) Extended space (bank 2) erase function
|
||
43:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (++) Full FLASH space (2 Mo) erase (bank 1 and bank 2)
|
||
44:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (++) Dual Boot activation
|
||
45:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (++) Write protection configuration for bank 2
|
||
46:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (++) PCROP protection configuration and control for both banks
|
||
47:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
48:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** @endverbatim
|
||
49:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** ******************************************************************************
|
||
50:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @attention
|
||
51:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
52:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * Copyright (c) 2017 STMicroelectronics.
|
||
53:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * All rights reserved.
|
||
54:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
55:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This software is licensed under terms that can be found in the LICENSE file in
|
||
56:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * the root directory of this software component.
|
||
57:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * If no LICENSE file comes with this software, it is provided AS-IS.
|
||
58:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** ******************************************************************************
|
||
59:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
60:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
61:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Includes ------------------------------------------------------------------*/
|
||
62:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #include "stm32f4xx_hal.h"
|
||
63:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
64:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /** @addtogroup STM32F4xx_HAL_Driver
|
||
65:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @{
|
||
66:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
67:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
68:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /** @defgroup FLASHEx FLASHEx
|
||
69:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief FLASH HAL Extension module driver
|
||
70:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @{
|
||
71:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
72:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
73:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #ifdef HAL_FLASH_MODULE_ENABLED
|
||
74:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
75:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Private typedef -----------------------------------------------------------*/
|
||
76:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Private define ------------------------------------------------------------*/
|
||
77:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /** @addtogroup FLASHEx_Private_Constants
|
||
78:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @{
|
||
79:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
80:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #define FLASH_TIMEOUT_VALUE 50000U /* 50 s */
|
||
81:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
82:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @}
|
||
83:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
84:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
85:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Private macro -------------------------------------------------------------*/
|
||
86:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Private variables ---------------------------------------------------------*/
|
||
87:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /** @addtogroup FLASHEx_Private_Variables
|
||
ARM GAS /tmp/ccYzp9Nl.s page 3
|
||
|
||
|
||
88:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @{
|
||
89:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
90:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** extern FLASH_ProcessTypeDef pFlash;
|
||
91:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
92:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @}
|
||
93:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
94:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
95:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Private function prototypes -----------------------------------------------*/
|
||
96:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /** @addtogroup FLASHEx_Private_Functions
|
||
97:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @{
|
||
98:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
99:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Option bytes control */
|
||
100:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static void FLASH_MassErase(uint8_t VoltageRange, uint32_t Banks);
|
||
101:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_EnableWRP(uint32_t WRPSector, uint32_t Banks);
|
||
102:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_DisableWRP(uint32_t WRPSector, uint32_t Banks);
|
||
103:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_RDP_LevelConfig(uint8_t Level);
|
||
104:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_UserConfig(uint8_t Iwdg, uint8_t Stop, uint8_t Stdby);
|
||
105:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_BOR_LevelConfig(uint8_t Level);
|
||
106:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static uint8_t FLASH_OB_GetUser(void);
|
||
107:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static uint16_t FLASH_OB_GetWRP(void);
|
||
108:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static uint8_t FLASH_OB_GetRDP(void);
|
||
109:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static uint8_t FLASH_OB_GetBOR(void);
|
||
110:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
111:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) ||
|
||
112:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** defined(STM32F446xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) ||
|
||
113:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** defined(STM32F423xx)
|
||
114:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_EnablePCROP(uint32_t Sector);
|
||
115:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_DisablePCROP(uint32_t Sector);
|
||
116:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F401xC || STM32F401xE || STM32F410xx || STM32F411xE || STM32F446xx || STM32F412Zx ||
|
||
117:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** STM32F413xx || STM32F423xx */
|
||
118:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
119:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx)|| defined(STM32F439xx) ||
|
||
120:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_EnablePCROP(uint32_t SectorBank1, uint32_t SectorBank2, uint32_t
|
||
121:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_DisablePCROP(uint32_t SectorBank1, uint32_t SectorBank2, uint32_t
|
||
122:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_BootConfig(uint8_t BootConfig);
|
||
123:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */
|
||
124:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
125:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** extern HAL_StatusTypeDef FLASH_WaitForLastOperation(uint32_t Timeout);
|
||
126:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
127:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @}
|
||
128:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
129:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
130:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Exported functions --------------------------------------------------------*/
|
||
131:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /** @defgroup FLASHEx_Exported_Functions FLASHEx Exported Functions
|
||
132:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @{
|
||
133:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
134:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
135:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /** @defgroup FLASHEx_Exported_Functions_Group1 Extended IO operation functions
|
||
136:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Extended IO operation functions
|
||
137:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
138:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** @verbatim
|
||
139:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** ===============================================================================
|
||
140:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** ##### Extended programming operation functions #####
|
||
141:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** ===============================================================================
|
||
142:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** [..]
|
||
143:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** This subsection provides a set of functions allowing to manage the Extension FLASH
|
||
144:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** programming operations.
|
||
ARM GAS /tmp/ccYzp9Nl.s page 4
|
||
|
||
|
||
145:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
146:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** @endverbatim
|
||
147:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @{
|
||
148:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
149:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
150:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Perform a mass erase or erase the specified FLASH memory sectors
|
||
151:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param[in] pEraseInit pointer to an FLASH_EraseInitTypeDef structure that
|
||
152:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * contains the configuration information for the erasing.
|
||
153:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
154:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param[out] SectorError pointer to variable that
|
||
155:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * contains the configuration information on faulty sector in case of error
|
||
156:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * (0xFFFFFFFFU means that all the sectors have been correctly erased)
|
||
157:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
158:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval HAL Status
|
||
159:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
160:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef HAL_FLASHEx_Erase(FLASH_EraseInitTypeDef *pEraseInit, uint32_t *SectorError)
|
||
161:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
162:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status;
|
||
163:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** uint32_t index = 0U;
|
||
164:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
165:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Process Locked */
|
||
166:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** __HAL_LOCK(&pFlash);
|
||
167:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
168:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Check the parameters */
|
||
169:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_FLASH_TYPEERASE(pEraseInit->TypeErase));
|
||
170:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
171:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Wait for last operation to be completed */
|
||
172:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
|
||
173:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
174:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (status == HAL_OK)
|
||
175:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
176:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Initialization of SectorError variable*/
|
||
177:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *SectorError = 0xFFFFFFFFU;
|
||
178:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
179:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (pEraseInit->TypeErase == FLASH_TYPEERASE_MASSERASE)
|
||
180:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
181:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Mass erase to be done*/
|
||
182:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH_MassErase((uint8_t) pEraseInit->VoltageRange, pEraseInit->Banks);
|
||
183:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
184:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Wait for last operation to be completed */
|
||
185:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
|
||
186:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
187:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* if the erase operation is completed, disable the MER Bit */
|
||
188:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH->CR &= (~FLASH_MER_BIT);
|
||
189:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
190:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** else
|
||
191:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
192:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Check the parameters */
|
||
193:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_FLASH_NBSECTORS(pEraseInit->NbSectors + pEraseInit->Sector));
|
||
194:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
195:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Erase by sector by sector to be done*/
|
||
196:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** for (index = pEraseInit->Sector; index < (pEraseInit->NbSectors + pEraseInit->Sector); index+
|
||
197:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
198:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH_Erase_Sector(index, (uint8_t) pEraseInit->VoltageRange);
|
||
199:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
200:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Wait for last operation to be completed */
|
||
201:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
|
||
ARM GAS /tmp/ccYzp9Nl.s page 5
|
||
|
||
|
||
202:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
203:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* If the erase operation is completed, disable the SER and SNB Bits */
|
||
204:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** CLEAR_BIT(FLASH->CR, (FLASH_CR_SER | FLASH_CR_SNB));
|
||
205:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
206:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (status != HAL_OK)
|
||
207:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
208:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* In case of error, stop erase procedure and return the faulty sector*/
|
||
209:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *SectorError = index;
|
||
210:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** break;
|
||
211:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
212:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
213:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
214:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Flush the caches to be sure of the data consistency */
|
||
215:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH_FlushCaches();
|
||
216:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
217:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
218:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Process Unlocked */
|
||
219:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** __HAL_UNLOCK(&pFlash);
|
||
220:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
221:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** return status;
|
||
222:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
223:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
224:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
225:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Perform a mass erase or erase the specified FLASH memory sectors with interrupt enable
|
||
226:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param pEraseInit pointer to an FLASH_EraseInitTypeDef structure that
|
||
227:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * contains the configuration information for the erasing.
|
||
228:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
229:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval HAL Status
|
||
230:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
231:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef HAL_FLASHEx_Erase_IT(FLASH_EraseInitTypeDef *pEraseInit)
|
||
232:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
233:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
234:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
235:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Check the parameters */
|
||
236:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_FLASH_TYPEERASE(pEraseInit->TypeErase));
|
||
237:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
238:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Enable End of FLASH Operation interrupt */
|
||
239:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** __HAL_FLASH_ENABLE_IT(FLASH_IT_EOP);
|
||
240:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
241:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Enable Error source interrupt */
|
||
242:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** __HAL_FLASH_ENABLE_IT(FLASH_IT_ERR);
|
||
243:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
244:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Clear pending flags (if any) */
|
||
245:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP | FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | \
|
||
246:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH_FLAG_PGAERR | FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR);
|
||
247:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
248:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (pEraseInit->TypeErase == FLASH_TYPEERASE_MASSERASE)
|
||
249:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
250:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Mass erase to be done*/
|
||
251:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pFlash.ProcedureOnGoing = FLASH_PROC_MASSERASE;
|
||
252:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pFlash.Bank = pEraseInit->Banks;
|
||
253:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH_MassErase((uint8_t) pEraseInit->VoltageRange, pEraseInit->Banks);
|
||
254:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
255:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** else
|
||
256:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
257:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Erase by sector to be done*/
|
||
258:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
ARM GAS /tmp/ccYzp9Nl.s page 6
|
||
|
||
|
||
259:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Check the parameters */
|
||
260:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_FLASH_NBSECTORS(pEraseInit->NbSectors + pEraseInit->Sector));
|
||
261:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
262:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pFlash.ProcedureOnGoing = FLASH_PROC_SECTERASE;
|
||
263:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pFlash.NbSectorsToErase = pEraseInit->NbSectors;
|
||
264:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pFlash.Sector = pEraseInit->Sector;
|
||
265:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pFlash.VoltageForErase = (uint8_t)pEraseInit->VoltageRange;
|
||
266:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
267:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Erase 1st sector and wait for IT*/
|
||
268:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH_Erase_Sector(pEraseInit->Sector, pEraseInit->VoltageRange);
|
||
269:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
270:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
271:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** return status;
|
||
272:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
273:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
274:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
275:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Program option bytes
|
||
276:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param pOBInit pointer to an FLASH_OBInitStruct structure that
|
||
277:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * contains the configuration information for the programming.
|
||
278:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
279:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval HAL Status
|
||
280:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
281:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef HAL_FLASHEx_OBProgram(FLASH_OBProgramInitTypeDef *pOBInit)
|
||
282:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
283:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_ERROR;
|
||
284:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
285:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Process Locked */
|
||
286:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** __HAL_LOCK(&pFlash);
|
||
287:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
288:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Check the parameters */
|
||
289:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_OPTIONBYTE(pOBInit->OptionType));
|
||
290:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
291:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Write protection configuration*/
|
||
292:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if ((pOBInit->OptionType & OPTIONBYTE_WRP) == OPTIONBYTE_WRP)
|
||
293:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
294:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_WRPSTATE(pOBInit->WRPState));
|
||
295:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (pOBInit->WRPState == OB_WRPSTATE_ENABLE)
|
||
296:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
297:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Enable of Write protection on the selected Sector*/
|
||
298:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_OB_EnableWRP(pOBInit->WRPSector, pOBInit->Banks);
|
||
299:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
300:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** else
|
||
301:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
302:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Disable of Write protection on the selected Sector*/
|
||
303:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_OB_DisableWRP(pOBInit->WRPSector, pOBInit->Banks);
|
||
304:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
305:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
306:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
307:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Read protection configuration*/
|
||
308:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if ((pOBInit->OptionType & OPTIONBYTE_RDP) == OPTIONBYTE_RDP)
|
||
309:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
310:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_OB_RDP_LevelConfig(pOBInit->RDPLevel);
|
||
311:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
312:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
313:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*USER configuration*/
|
||
314:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if ((pOBInit->OptionType & OPTIONBYTE_USER) == OPTIONBYTE_USER)
|
||
315:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
ARM GAS /tmp/ccYzp9Nl.s page 7
|
||
|
||
|
||
316:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_OB_UserConfig(pOBInit->USERConfig & OB_IWDG_SW,
|
||
317:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pOBInit->USERConfig & OB_STOP_NO_RST,
|
||
318:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pOBInit->USERConfig & OB_STDBY_NO_RST);
|
||
319:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
320:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
321:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*BOR Level configuration*/
|
||
322:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if ((pOBInit->OptionType & OPTIONBYTE_BOR) == OPTIONBYTE_BOR)
|
||
323:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
324:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_OB_BOR_LevelConfig(pOBInit->BORLevel);
|
||
325:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
326:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
327:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Process Unlocked */
|
||
328:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** __HAL_UNLOCK(&pFlash);
|
||
329:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
330:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** return status;
|
||
331:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
332:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
333:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
334:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Get the Option byte configuration
|
||
335:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param pOBInit pointer to an FLASH_OBInitStruct structure that
|
||
336:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * contains the configuration information for the programming.
|
||
337:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
338:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval None
|
||
339:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
340:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** void HAL_FLASHEx_OBGetConfig(FLASH_OBProgramInitTypeDef *pOBInit)
|
||
341:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
342:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pOBInit->OptionType = OPTIONBYTE_WRP | OPTIONBYTE_RDP | OPTIONBYTE_USER | OPTIONBYTE_BOR;
|
||
343:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
344:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Get WRP*/
|
||
345:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pOBInit->WRPSector = (uint32_t)FLASH_OB_GetWRP();
|
||
346:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
347:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Get RDP Level*/
|
||
348:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pOBInit->RDPLevel = (uint32_t)FLASH_OB_GetRDP();
|
||
349:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
350:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Get USER*/
|
||
351:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pOBInit->USERConfig = (uint8_t)FLASH_OB_GetUser();
|
||
352:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
353:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Get BOR Level*/
|
||
354:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pOBInit->BORLevel = (uint32_t)FLASH_OB_GetBOR();
|
||
355:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
356:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
357:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||
|
||
358:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) ||
|
||
359:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** defined(STM32F410Rx) || defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F469xx) ||
|
||
360:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx) || defined(STM32F412Rx) ||
|
||
361:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx)
|
||
362:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
363:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Program option bytes
|
||
364:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param pAdvOBInit pointer to an FLASH_AdvOBProgramInitTypeDef structure that
|
||
365:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * contains the configuration information for the programming.
|
||
366:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
367:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval HAL Status
|
||
368:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
369:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef HAL_FLASHEx_AdvOBProgram(FLASH_AdvOBProgramInitTypeDef *pAdvOBInit)
|
||
370:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
371:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_ERROR;
|
||
372:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
ARM GAS /tmp/ccYzp9Nl.s page 8
|
||
|
||
|
||
373:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Check the parameters */
|
||
374:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_OBEX(pAdvOBInit->OptionType));
|
||
375:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
376:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Program PCROP option byte*/
|
||
377:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (((pAdvOBInit->OptionType) & OPTIONBYTE_PCROP) == OPTIONBYTE_PCROP)
|
||
378:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
379:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Check the parameters */
|
||
380:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_PCROPSTATE(pAdvOBInit->PCROPState));
|
||
381:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if ((pAdvOBInit->PCROPState) == OB_PCROP_STATE_ENABLE)
|
||
382:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
383:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Enable of Write protection on the selected Sector*/
|
||
384:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) ||
|
||
385:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F412Zx) || defined(STM32F412Vx) ||
|
||
386:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx)
|
||
387:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_OB_EnablePCROP(pAdvOBInit->Sectors);
|
||
388:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #else /* STM32F427xx || STM32F437xx || STM32F429xx|| STM32F439xx || STM32F469xx || STM32F479xx */
|
||
389:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_OB_EnablePCROP(pAdvOBInit->SectorsBank1, pAdvOBInit->SectorsBank2, pAdvOBInit-
|
||
390:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F401xC || STM32F401xE || STM32F410xx || STM32F411xE || STM32F446xx || STM32F412Zx ||
|
||
391:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** STM32F413xx || STM32F423xx */
|
||
392:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
393:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** else
|
||
394:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
395:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Disable of Write protection on the selected Sector*/
|
||
396:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) ||
|
||
397:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F412Zx) || defined(STM32F412Vx) ||
|
||
398:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx)
|
||
399:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_OB_DisablePCROP(pAdvOBInit->Sectors);
|
||
400:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #else /* STM32F427xx || STM32F437xx || STM32F429xx|| STM32F439xx || STM32F469xx || STM32F479xx */
|
||
401:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_OB_DisablePCROP(pAdvOBInit->SectorsBank1, pAdvOBInit->SectorsBank2, pAdvOBInit
|
||
402:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F401xC || STM32F401xE || STM32F410xx || STM32F411xE || STM32F446xx || STM32F412Zx ||
|
||
403:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** STM32F413xx || STM32F423xx */
|
||
404:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
405:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
406:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
407:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||
|
||
408:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Program BOOT config option byte*/
|
||
409:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (((pAdvOBInit->OptionType) & OPTIONBYTE_BOOTCONFIG) == OPTIONBYTE_BOOTCONFIG)
|
||
410:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
411:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_OB_BootConfig(pAdvOBInit->BootConfig);
|
||
412:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
413:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */
|
||
414:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
415:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** return status;
|
||
416:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
417:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
418:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
419:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Get the OBEX byte configuration
|
||
420:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param pAdvOBInit pointer to an FLASH_AdvOBProgramInitTypeDef structure that
|
||
421:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * contains the configuration information for the programming.
|
||
422:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
423:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval None
|
||
424:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
425:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** void HAL_FLASHEx_AdvOBGetConfig(FLASH_AdvOBProgramInitTypeDef *pAdvOBInit)
|
||
426:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
427:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) ||
|
||
428:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F412Zx) || defined(STM32F412Vx) ||
|
||
429:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx)
|
||
ARM GAS /tmp/ccYzp9Nl.s page 9
|
||
|
||
|
||
430:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Get Sector*/
|
||
431:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pAdvOBInit->Sectors = (*(__IO uint16_t *)(OPTCR_BYTE2_ADDRESS));
|
||
432:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #else /* STM32F427xx || STM32F437xx || STM32F429xx|| STM32F439xx || STM32F469xx || STM32F479xx */
|
||
433:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Get Sector for Bank1*/
|
||
434:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pAdvOBInit->SectorsBank1 = (*(__IO uint16_t *)(OPTCR_BYTE2_ADDRESS));
|
||
435:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
436:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Get Sector for Bank2*/
|
||
437:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pAdvOBInit->SectorsBank2 = (*(__IO uint16_t *)(OPTCR1_BYTE2_ADDRESS));
|
||
438:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
439:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Get Boot config OB*/
|
||
440:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pAdvOBInit->BootConfig = *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS;
|
||
441:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F401xC || STM32F401xE || STM32F410xx || STM32F411xE || STM32F446xx || STM32F412Zx ||
|
||
442:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** STM32F413xx || STM32F423xx */
|
||
443:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
444:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
445:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
446:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Select the Protection Mode
|
||
447:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
448:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note After PCROP activated Option Byte modification NOT POSSIBLE! excepted
|
||
449:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * Global Read Out Protection modification (from level1 to level0)
|
||
450:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note Once SPRMOD bit is active unprotection of a protected sector is not possible
|
||
451:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note Read a protected sector will set RDERR Flag and write a protected sector will set WRPER
|
||
452:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note This function can be used only for STM32F42xxx/STM32F43xxx/STM32F401xx/STM32F411xx/STM3
|
||
453:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * STM32F469xx/STM32F479xx/STM32F412xx/STM32F413xx devices.
|
||
454:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
455:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval HAL Status
|
||
456:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
457:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef HAL_FLASHEx_OB_SelectPCROP(void)
|
||
458:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
459:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** uint8_t optiontmp;
|
||
460:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
461:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Mask SPRMOD bit */
|
||
462:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** optiontmp = (uint8_t)((*(__IO uint8_t *)OPTCR_BYTE3_ADDRESS) & (uint8_t)0x7F);
|
||
463:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
464:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Update Option Byte */
|
||
465:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint8_t *)OPTCR_BYTE3_ADDRESS = (uint8_t)(OB_PCROP_SELECTED | optiontmp);
|
||
466:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
467:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** return HAL_OK;
|
||
468:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
469:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
470:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
471:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Deselect the Protection Mode
|
||
472:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
473:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note After PCROP activated Option Byte modification NOT POSSIBLE! excepted
|
||
474:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * Global Read Out Protection modification (from level1 to level0)
|
||
475:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note Once SPRMOD bit is active unprotection of a protected sector is not possible
|
||
476:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note Read a protected sector will set RDERR Flag and write a protected sector will set WRPER
|
||
477:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note This function can be used only for STM32F42xxx/STM32F43xxx/STM32F401xx/STM32F411xx/STM3
|
||
478:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * STM32F469xx/STM32F479xx/STM32F412xx/STM32F413xx devices.
|
||
479:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
480:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval HAL Status
|
||
481:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
482:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef HAL_FLASHEx_OB_DeSelectPCROP(void)
|
||
483:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
484:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** uint8_t optiontmp;
|
||
485:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
486:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Mask SPRMOD bit */
|
||
ARM GAS /tmp/ccYzp9Nl.s page 10
|
||
|
||
|
||
487:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** optiontmp = (uint8_t)((*(__IO uint8_t *)OPTCR_BYTE3_ADDRESS) & (uint8_t)0x7F);
|
||
488:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
489:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Update Option Byte */
|
||
490:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint8_t *)OPTCR_BYTE3_ADDRESS = (uint8_t)(OB_PCROP_DESELECTED | optiontmp);
|
||
491:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
492:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** return HAL_OK;
|
||
493:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
494:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F401xC || STM32F401xE ||
|
||
495:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** STM32F411xE || STM32F469xx || STM32F479xx || STM32F412Zx || STM32F412Vx || STM32F412Rx ||
|
||
496:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** STM32F413xx || STM32F423xx */
|
||
497:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
498:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx)|| defined(STM32F439xx) ||
|
||
499:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
500:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Returns the FLASH Write Protection Option Bytes value for Bank 2
|
||
501:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note This function can be used only for STM32F42xxx/STM32F43xxx/STM32F469xx/STM32F479xx devi
|
||
502:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval The FLASH Write Protection Option Bytes value
|
||
503:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
504:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** uint16_t HAL_FLASHEx_OB_GetBank2WRP(void)
|
||
505:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
506:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Return the FLASH write protection Register value */
|
||
507:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** return (*(__IO uint16_t *)(OPTCR1_BYTE2_ADDRESS));
|
||
508:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
509:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */
|
||
510:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
511:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
512:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @}
|
||
513:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
514:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
515:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx) ||
|
||
516:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
517:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Full erase of FLASH memory sectors
|
||
518:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param VoltageRange The device voltage range which defines the erase parallelism.
|
||
519:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
520:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_VOLTAGE_RANGE_1: when the device voltage range is 1.8V to 2.1V,
|
||
521:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * the operation will be done by byte (8-bit)
|
||
522:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_VOLTAGE_RANGE_2: when the device voltage range is 2.1V to 2.7V,
|
||
523:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * the operation will be done by half word (16-bit)
|
||
524:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_VOLTAGE_RANGE_3: when the device voltage range is 2.7V to 3.6V,
|
||
525:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * the operation will be done by word (32-bit)
|
||
526:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_VOLTAGE_RANGE_4: when the device voltage range is 2.7V to 3.6V + External
|
||
527:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * the operation will be done by double word (64-bit)
|
||
528:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
529:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param Banks Banks to be erased
|
||
530:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
531:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_BANK_1: Bank1 to be erased
|
||
532:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_BANK_2: Bank2 to be erased
|
||
533:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_BANK_BOTH: Bank1 and Bank2 to be erased
|
||
534:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
535:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval HAL Status
|
||
536:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
537:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static void FLASH_MassErase(uint8_t VoltageRange, uint32_t Banks)
|
||
538:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
29 .loc 1 538 1 view -0
|
||
30 .cfi_startproc
|
||
31 @ args = 0, pretend = 0, frame = 0
|
||
32 @ frame_needed = 0, uses_anonymous_args = 0
|
||
33 @ link register save eliminated.
|
||
ARM GAS /tmp/ccYzp9Nl.s page 11
|
||
|
||
|
||
34 .loc 1 538 1 is_stmt 0 view .LVU1
|
||
35 0000 0346 mov r3, r0
|
||
539:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Check the parameters */
|
||
540:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_VOLTAGERANGE(VoltageRange));
|
||
36 .loc 1 540 3 is_stmt 1 view .LVU2
|
||
541:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_FLASH_BANK(Banks));
|
||
37 .loc 1 541 3 view .LVU3
|
||
542:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
543:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* if the previous operation is completed, proceed to erase all sectors */
|
||
544:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE);
|
||
38 .loc 1 544 3 view .LVU4
|
||
39 0002 1148 ldr r0, .L7
|
||
40 .LVL1:
|
||
41 .loc 1 544 3 is_stmt 0 view .LVU5
|
||
42 0004 0269 ldr r2, [r0, #16]
|
||
43 0006 22F44072 bic r2, r2, #768
|
||
44 000a 0261 str r2, [r0, #16]
|
||
545:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
546:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (Banks == FLASH_BANK_BOTH)
|
||
45 .loc 1 546 3 is_stmt 1 view .LVU6
|
||
46 .loc 1 546 6 is_stmt 0 view .LVU7
|
||
47 000c 0329 cmp r1, #3
|
||
48 000e 0ED0 beq .L5
|
||
547:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
548:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* bank1 & bank2 will be erased*/
|
||
549:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH->CR |= FLASH_MER_BIT;
|
||
550:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
551:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** else if (Banks == FLASH_BANK_1)
|
||
49 .loc 1 551 8 is_stmt 1 view .LVU8
|
||
50 .loc 1 551 11 is_stmt 0 view .LVU9
|
||
51 0010 0129 cmp r1, #1
|
||
52 0012 13D0 beq .L6
|
||
552:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
553:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Only bank1 will be erased*/
|
||
554:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH->CR |= FLASH_CR_MER1;
|
||
555:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
556:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** else
|
||
557:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
558:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Only bank2 will be erased*/
|
||
559:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH->CR |= FLASH_CR_MER2;
|
||
53 .loc 1 559 5 is_stmt 1 view .LVU10
|
||
54 .loc 1 559 10 is_stmt 0 view .LVU11
|
||
55 0014 0C49 ldr r1, .L7
|
||
56 .LVL2:
|
||
57 .loc 1 559 10 view .LVU12
|
||
58 0016 0A69 ldr r2, [r1, #16]
|
||
59 .loc 1 559 15 view .LVU13
|
||
60 0018 42F40042 orr r2, r2, #32768
|
||
61 001c 0A61 str r2, [r1, #16]
|
||
62 .L3:
|
||
560:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
561:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH->CR |= FLASH_CR_STRT | ((uint32_t)VoltageRange << 8U);
|
||
63 .loc 1 561 3 is_stmt 1 view .LVU14
|
||
64 .loc 1 561 8 is_stmt 0 view .LVU15
|
||
65 001e 0A4A ldr r2, .L7
|
||
66 0020 1069 ldr r0, [r2, #16]
|
||
67 .loc 1 561 13 view .LVU16
|
||
ARM GAS /tmp/ccYzp9Nl.s page 12
|
||
|
||
|
||
68 0022 40EA0320 orr r0, r0, r3, lsl #8
|
||
69 0026 40F48030 orr r0, r0, #65536
|
||
70 002a 1061 str r0, [r2, #16]
|
||
562:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
71 .loc 1 562 1 view .LVU17
|
||
72 002c 7047 bx lr
|
||
73 .LVL3:
|
||
74 .L5:
|
||
549:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
75 .loc 1 549 5 is_stmt 1 view .LVU18
|
||
549:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
76 .loc 1 549 10 is_stmt 0 view .LVU19
|
||
77 002e 0269 ldr r2, [r0, #16]
|
||
549:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
78 .loc 1 549 15 view .LVU20
|
||
79 0030 42F40042 orr r2, r2, #32768
|
||
80 0034 42F00402 orr r2, r2, #4
|
||
81 0038 0261 str r2, [r0, #16]
|
||
82 003a F0E7 b .L3
|
||
83 .L6:
|
||
554:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
84 .loc 1 554 5 is_stmt 1 view .LVU21
|
||
554:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
85 .loc 1 554 10 is_stmt 0 view .LVU22
|
||
86 003c 0249 ldr r1, .L7
|
||
87 .LVL4:
|
||
554:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
88 .loc 1 554 10 view .LVU23
|
||
89 003e 0A69 ldr r2, [r1, #16]
|
||
554:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
90 .loc 1 554 15 view .LVU24
|
||
91 0040 42F00402 orr r2, r2, #4
|
||
92 0044 0A61 str r2, [r1, #16]
|
||
93 0046 EAE7 b .L3
|
||
94 .L8:
|
||
95 .align 2
|
||
96 .L7:
|
||
97 0048 003C0240 .word 1073888256
|
||
98 .cfi_endproc
|
||
99 .LFE248:
|
||
101 .section .text.FLASH_OB_BOR_LevelConfig,"ax",%progbits
|
||
102 .align 1
|
||
103 .syntax unified
|
||
104 .thumb
|
||
105 .thumb_func
|
||
107 FLASH_OB_BOR_LevelConfig:
|
||
108 .LVL5:
|
||
109 .LFB257:
|
||
563:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
564:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
565:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Erase the specified FLASH memory sector
|
||
566:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param Sector FLASH sector to erase
|
||
567:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * The value of this parameter depend on device used within the same series
|
||
568:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param VoltageRange The device voltage range which defines the erase parallelism.
|
||
569:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
570:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_VOLTAGE_RANGE_1: when the device voltage range is 1.8V to 2.1V,
|
||
571:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * the operation will be done by byte (8-bit)
|
||
ARM GAS /tmp/ccYzp9Nl.s page 13
|
||
|
||
|
||
572:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_VOLTAGE_RANGE_2: when the device voltage range is 2.1V to 2.7V,
|
||
573:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * the operation will be done by half word (16-bit)
|
||
574:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_VOLTAGE_RANGE_3: when the device voltage range is 2.7V to 3.6V,
|
||
575:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * the operation will be done by word (32-bit)
|
||
576:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_VOLTAGE_RANGE_4: when the device voltage range is 2.7V to 3.6V + External
|
||
577:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * the operation will be done by double word (64-bit)
|
||
578:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
579:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval None
|
||
580:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
581:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** void FLASH_Erase_Sector(uint32_t Sector, uint8_t VoltageRange)
|
||
582:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
583:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** uint32_t tmp_psize = 0U;
|
||
584:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
585:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Check the parameters */
|
||
586:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_FLASH_SECTOR(Sector));
|
||
587:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_VOLTAGERANGE(VoltageRange));
|
||
588:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
589:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (VoltageRange == FLASH_VOLTAGE_RANGE_1)
|
||
590:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
591:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** tmp_psize = FLASH_PSIZE_BYTE;
|
||
592:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
593:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** else if (VoltageRange == FLASH_VOLTAGE_RANGE_2)
|
||
594:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
595:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** tmp_psize = FLASH_PSIZE_HALF_WORD;
|
||
596:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
597:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** else if (VoltageRange == FLASH_VOLTAGE_RANGE_3)
|
||
598:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
599:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** tmp_psize = FLASH_PSIZE_WORD;
|
||
600:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
601:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** else
|
||
602:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
603:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** tmp_psize = FLASH_PSIZE_DOUBLE_WORD;
|
||
604:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
605:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
606:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Need to add offset of 4 when sector higher than FLASH_SECTOR_11 */
|
||
607:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (Sector > FLASH_SECTOR_11)
|
||
608:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
609:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** Sector += 4U;
|
||
610:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
611:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* If the previous operation is completed, proceed to erase the sector */
|
||
612:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE);
|
||
613:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH->CR |= tmp_psize;
|
||
614:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_SNB);
|
||
615:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH->CR |= FLASH_CR_SER | (Sector << FLASH_CR_SNB_Pos);
|
||
616:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH->CR |= FLASH_CR_STRT;
|
||
617:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
618:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
619:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
620:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Enable the write protection of the desired bank1 or bank 2 sectors
|
||
621:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
622:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note When the memory read protection level is selected (RDP level = 1),
|
||
623:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * it is not possible to program or erase the flash sector i if CortexM4
|
||
624:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * debug features are connected or boot code is executed in RAM, even if nWRPi = 1
|
||
625:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note Active value of nWRPi bits is inverted when PCROP mode is active (SPRMOD =1).
|
||
626:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
627:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param WRPSector specifies the sector(s) to be write protected.
|
||
628:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
ARM GAS /tmp/ccYzp9Nl.s page 14
|
||
|
||
|
||
629:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg WRPSector: A value between OB_WRP_SECTOR_0 and OB_WRP_SECTOR_23
|
||
630:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_WRP_SECTOR_All
|
||
631:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note BANK2 starts from OB_WRP_SECTOR_12
|
||
632:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
633:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param Banks Enable write protection on all the sectors for the specific bank
|
||
634:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
635:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_BANK_1: WRP on all sectors of bank1
|
||
636:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_BANK_2: WRP on all sectors of bank2
|
||
637:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_BANK_BOTH: WRP on all sectors of bank1 & bank2
|
||
638:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
639:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval HAL FLASH State
|
||
640:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
641:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_EnableWRP(uint32_t WRPSector, uint32_t Banks)
|
||
642:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
643:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
644:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
645:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Check the parameters */
|
||
646:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_OB_WRP_SECTOR(WRPSector));
|
||
647:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_FLASH_BANK(Banks));
|
||
648:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
649:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Wait for last operation to be completed */
|
||
650:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
|
||
651:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
652:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (status == HAL_OK)
|
||
653:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
654:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (((WRPSector == OB_WRP_SECTOR_All) && ((Banks == FLASH_BANK_1) || (Banks == FLASH_BANK_BOTH)
|
||
655:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (WRPSector < OB_WRP_SECTOR_12))
|
||
656:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
657:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (WRPSector == OB_WRP_SECTOR_All)
|
||
658:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
659:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Write protection on all sector of BANK1*/
|
||
660:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint16_t *)OPTCR_BYTE2_ADDRESS &= (~(WRPSector >> 12));
|
||
661:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
662:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** else
|
||
663:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
664:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Write protection done on sectors of BANK1*/
|
||
665:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint16_t *)OPTCR_BYTE2_ADDRESS &= (~WRPSector);
|
||
666:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
667:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
668:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** else
|
||
669:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
670:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Write protection done on sectors of BANK2*/
|
||
671:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint16_t *)OPTCR1_BYTE2_ADDRESS &= (~(WRPSector >> 12));
|
||
672:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
673:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
674:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Write protection on all sector of BANK2*/
|
||
675:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if ((WRPSector == OB_WRP_SECTOR_All) && (Banks == FLASH_BANK_BOTH))
|
||
676:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
677:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Wait for last operation to be completed */
|
||
678:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
|
||
679:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
680:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (status == HAL_OK)
|
||
681:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
682:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint16_t *)OPTCR1_BYTE2_ADDRESS &= (~(WRPSector >> 12));
|
||
683:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
684:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
685:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
ARM GAS /tmp/ccYzp9Nl.s page 15
|
||
|
||
|
||
686:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
687:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** return status;
|
||
688:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
689:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
690:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
691:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Disable the write protection of the desired bank1 or bank 2 sectors
|
||
692:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
693:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note When the memory read protection level is selected (RDP level = 1),
|
||
694:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * it is not possible to program or erase the flash sector i if CortexM4
|
||
695:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * debug features are connected or boot code is executed in RAM, even if nWRPi = 1
|
||
696:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note Active value of nWRPi bits is inverted when PCROP mode is active (SPRMOD =1).
|
||
697:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
698:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param WRPSector specifies the sector(s) to be write protected.
|
||
699:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
700:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg WRPSector: A value between OB_WRP_SECTOR_0 and OB_WRP_SECTOR_23
|
||
701:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_WRP_Sector_All
|
||
702:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note BANK2 starts from OB_WRP_SECTOR_12
|
||
703:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
704:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param Banks Disable write protection on all the sectors for the specific bank
|
||
705:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
706:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_BANK_1: Bank1 to be erased
|
||
707:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_BANK_2: Bank2 to be erased
|
||
708:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_BANK_BOTH: Bank1 and Bank2 to be erased
|
||
709:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
710:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval HAL Status
|
||
711:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
712:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_DisableWRP(uint32_t WRPSector, uint32_t Banks)
|
||
713:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
714:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
715:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
716:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Check the parameters */
|
||
717:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_OB_WRP_SECTOR(WRPSector));
|
||
718:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_FLASH_BANK(Banks));
|
||
719:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
720:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Wait for last operation to be completed */
|
||
721:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
|
||
722:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
723:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (status == HAL_OK)
|
||
724:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
725:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (((WRPSector == OB_WRP_SECTOR_All) && ((Banks == FLASH_BANK_1) || (Banks == FLASH_BANK_BOTH)
|
||
726:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (WRPSector < OB_WRP_SECTOR_12))
|
||
727:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
728:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (WRPSector == OB_WRP_SECTOR_All)
|
||
729:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
730:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Write protection on all sector of BANK1*/
|
||
731:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint16_t *)OPTCR_BYTE2_ADDRESS |= (uint16_t)(WRPSector >> 12);
|
||
732:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
733:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** else
|
||
734:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
735:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Write protection done on sectors of BANK1*/
|
||
736:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint16_t *)OPTCR_BYTE2_ADDRESS |= (uint16_t)WRPSector;
|
||
737:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
738:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
739:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** else
|
||
740:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
741:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Write protection done on sectors of BANK2*/
|
||
742:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint16_t *)OPTCR1_BYTE2_ADDRESS |= (uint16_t)(WRPSector >> 12);
|
||
ARM GAS /tmp/ccYzp9Nl.s page 16
|
||
|
||
|
||
743:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
744:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
745:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Write protection on all sector of BANK2*/
|
||
746:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if ((WRPSector == OB_WRP_SECTOR_All) && (Banks == FLASH_BANK_BOTH))
|
||
747:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
748:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Wait for last operation to be completed */
|
||
749:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
|
||
750:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
751:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (status == HAL_OK)
|
||
752:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
753:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint16_t *)OPTCR1_BYTE2_ADDRESS |= (uint16_t)(WRPSector >> 12);
|
||
754:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
755:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
756:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
757:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
758:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
759:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** return status;
|
||
760:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
761:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
762:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
763:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Configure the Dual Bank Boot.
|
||
764:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
765:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note This function can be used only for STM32F42xxx/43xxx devices.
|
||
766:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
767:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param BootConfig specifies the Dual Bank Boot Option byte.
|
||
768:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
769:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_Dual_BootEnabled: Dual Bank Boot Enable
|
||
770:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_Dual_BootDisabled: Dual Bank Boot Disabled
|
||
771:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval None
|
||
772:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
773:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_BootConfig(uint8_t BootConfig)
|
||
774:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
775:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
776:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
777:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Check the parameters */
|
||
778:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_OB_BOOT(BootConfig));
|
||
779:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
780:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Wait for last operation to be completed */
|
||
781:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
|
||
782:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
783:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (status == HAL_OK)
|
||
784:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
785:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Set Dual Bank Boot */
|
||
786:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS &= (~FLASH_OPTCR_BFB2);
|
||
787:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS |= BootConfig;
|
||
788:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
789:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
790:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** return status;
|
||
791:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
792:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
793:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
794:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Enable the read/write protection (PCROP) of the desired
|
||
795:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * sectors of Bank 1 and/or Bank 2.
|
||
796:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note This function can be used only for STM32F42xxx/43xxx devices.
|
||
797:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param SectorBank1 Specifies the sector(s) to be read/write protected or unprotected for bank1
|
||
798:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
799:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_PCROP: A value between OB_PCROP_SECTOR_0 and OB_PCROP_SECTOR_11
|
||
ARM GAS /tmp/ccYzp9Nl.s page 17
|
||
|
||
|
||
800:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_PCROP_SECTOR__All
|
||
801:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param SectorBank2 Specifies the sector(s) to be read/write protected or unprotected for bank2
|
||
802:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
803:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_PCROP: A value between OB_PCROP_SECTOR_12 and OB_PCROP_SECTOR_23
|
||
804:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_PCROP_SECTOR__All
|
||
805:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param Banks Enable PCROP protection on all the sectors for the specific bank
|
||
806:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
807:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_BANK_1: WRP on all sectors of bank1
|
||
808:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_BANK_2: WRP on all sectors of bank2
|
||
809:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_BANK_BOTH: WRP on all sectors of bank1 & bank2
|
||
810:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
811:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval HAL Status
|
||
812:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
813:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_EnablePCROP(uint32_t SectorBank1, uint32_t SectorBank2, uint32_t
|
||
814:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
815:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
816:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
817:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_FLASH_BANK(Banks));
|
||
818:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
819:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Wait for last operation to be completed */
|
||
820:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
|
||
821:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
822:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (status == HAL_OK)
|
||
823:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
824:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if ((Banks == FLASH_BANK_1) || (Banks == FLASH_BANK_BOTH))
|
||
825:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
826:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_OB_PCROP(SectorBank1));
|
||
827:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Write protection done on sectors of BANK1*/
|
||
828:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint16_t *)OPTCR_BYTE2_ADDRESS |= (uint16_t)SectorBank1;
|
||
829:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
830:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** else
|
||
831:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
832:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_OB_PCROP(SectorBank2));
|
||
833:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Write protection done on sectors of BANK2*/
|
||
834:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint16_t *)OPTCR1_BYTE2_ADDRESS |= (uint16_t)SectorBank2;
|
||
835:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
836:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
837:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Write protection on all sector of BANK2*/
|
||
838:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (Banks == FLASH_BANK_BOTH)
|
||
839:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
840:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_OB_PCROP(SectorBank2));
|
||
841:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Wait for last operation to be completed */
|
||
842:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
|
||
843:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
844:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (status == HAL_OK)
|
||
845:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
846:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Write protection done on sectors of BANK2*/
|
||
847:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint16_t *)OPTCR1_BYTE2_ADDRESS |= (uint16_t)SectorBank2;
|
||
848:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
849:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
850:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
851:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
852:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
853:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** return status;
|
||
854:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
855:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
856:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
ARM GAS /tmp/ccYzp9Nl.s page 18
|
||
|
||
|
||
857:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
858:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Disable the read/write protection (PCROP) of the desired
|
||
859:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * sectors of Bank 1 and/or Bank 2.
|
||
860:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note This function can be used only for STM32F42xxx/43xxx devices.
|
||
861:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param SectorBank1 specifies the sector(s) to be read/write protected or unprotected for bank1
|
||
862:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
863:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_PCROP: A value between OB_PCROP_SECTOR_0 and OB_PCROP_SECTOR_11
|
||
864:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_PCROP_SECTOR__All
|
||
865:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param SectorBank2 Specifies the sector(s) to be read/write protected or unprotected for bank2
|
||
866:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
867:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_PCROP: A value between OB_PCROP_SECTOR_12 and OB_PCROP_SECTOR_23
|
||
868:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_PCROP_SECTOR__All
|
||
869:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param Banks Disable PCROP protection on all the sectors for the specific bank
|
||
870:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
871:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_BANK_1: WRP on all sectors of bank1
|
||
872:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_BANK_2: WRP on all sectors of bank2
|
||
873:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_BANK_BOTH: WRP on all sectors of bank1 & bank2
|
||
874:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
875:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval HAL Status
|
||
876:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
877:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_DisablePCROP(uint32_t SectorBank1, uint32_t SectorBank2, uint32_t
|
||
878:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
879:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
880:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
881:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Check the parameters */
|
||
882:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_FLASH_BANK(Banks));
|
||
883:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
884:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Wait for last operation to be completed */
|
||
885:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
|
||
886:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
887:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (status == HAL_OK)
|
||
888:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
889:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if ((Banks == FLASH_BANK_1) || (Banks == FLASH_BANK_BOTH))
|
||
890:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
891:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_OB_PCROP(SectorBank1));
|
||
892:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Write protection done on sectors of BANK1*/
|
||
893:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint16_t *)OPTCR_BYTE2_ADDRESS &= (~SectorBank1);
|
||
894:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
895:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** else
|
||
896:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
897:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Write protection done on sectors of BANK2*/
|
||
898:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_OB_PCROP(SectorBank2));
|
||
899:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint16_t *)OPTCR1_BYTE2_ADDRESS &= (~SectorBank2);
|
||
900:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
901:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
902:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Write protection on all sector of BANK2*/
|
||
903:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (Banks == FLASH_BANK_BOTH)
|
||
904:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
905:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_OB_PCROP(SectorBank2));
|
||
906:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Wait for last operation to be completed */
|
||
907:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
|
||
908:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
909:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (status == HAL_OK)
|
||
910:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
911:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Write protection done on sectors of BANK2*/
|
||
912:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint16_t *)OPTCR1_BYTE2_ADDRESS &= (~SectorBank2);
|
||
913:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
ARM GAS /tmp/ccYzp9Nl.s page 19
|
||
|
||
|
||
914:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
915:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
916:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
917:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
918:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** return status;
|
||
919:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
920:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
921:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
922:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */
|
||
923:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
924:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx) ||
|
||
925:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) ||
|
||
926:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** defined(STM32F410Rx) || defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F412Zx) ||
|
||
927:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** defined(STM32F412Vx) || defined(STM32F412Rx) || defined(STM32F412Cx) || defined(STM32F413xx) ||
|
||
928:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** defined(STM32F423xx)
|
||
929:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
930:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Mass erase of FLASH memory
|
||
931:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param VoltageRange The device voltage range which defines the erase parallelism.
|
||
932:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
933:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_VOLTAGE_RANGE_1: when the device voltage range is 1.8V to 2.1V,
|
||
934:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * the operation will be done by byte (8-bit)
|
||
935:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_VOLTAGE_RANGE_2: when the device voltage range is 2.1V to 2.7V,
|
||
936:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * the operation will be done by half word (16-bit)
|
||
937:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_VOLTAGE_RANGE_3: when the device voltage range is 2.7V to 3.6V,
|
||
938:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * the operation will be done by word (32-bit)
|
||
939:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_VOLTAGE_RANGE_4: when the device voltage range is 2.7V to 3.6V + External
|
||
940:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * the operation will be done by double word (64-bit)
|
||
941:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
942:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param Banks Banks to be erased
|
||
943:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
944:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_BANK_1: Bank1 to be erased
|
||
945:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
946:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval None
|
||
947:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
948:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static void FLASH_MassErase(uint8_t VoltageRange, uint32_t Banks)
|
||
949:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
950:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Check the parameters */
|
||
951:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_VOLTAGERANGE(VoltageRange));
|
||
952:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_FLASH_BANK(Banks));
|
||
953:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
954:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* If the previous operation is completed, proceed to erase all sectors */
|
||
955:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE);
|
||
956:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH->CR |= FLASH_CR_MER;
|
||
957:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH->CR |= FLASH_CR_STRT | ((uint32_t)VoltageRange << 8U);
|
||
958:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
959:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
960:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
961:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Erase the specified FLASH memory sector
|
||
962:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param Sector FLASH sector to erase
|
||
963:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * The value of this parameter depend on device used within the same series
|
||
964:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param VoltageRange The device voltage range which defines the erase parallelism.
|
||
965:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
966:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_VOLTAGE_RANGE_1: when the device voltage range is 1.8V to 2.1V,
|
||
967:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * the operation will be done by byte (8-bit)
|
||
968:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_VOLTAGE_RANGE_2: when the device voltage range is 2.1V to 2.7V,
|
||
969:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * the operation will be done by half word (16-bit)
|
||
970:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_VOLTAGE_RANGE_3: when the device voltage range is 2.7V to 3.6V,
|
||
ARM GAS /tmp/ccYzp9Nl.s page 20
|
||
|
||
|
||
971:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * the operation will be done by word (32-bit)
|
||
972:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_VOLTAGE_RANGE_4: when the device voltage range is 2.7V to 3.6V + External
|
||
973:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * the operation will be done by double word (64-bit)
|
||
974:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
975:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval None
|
||
976:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
977:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** void FLASH_Erase_Sector(uint32_t Sector, uint8_t VoltageRange)
|
||
978:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
979:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** uint32_t tmp_psize = 0U;
|
||
980:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
981:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Check the parameters */
|
||
982:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_FLASH_SECTOR(Sector));
|
||
983:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_VOLTAGERANGE(VoltageRange));
|
||
984:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
985:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (VoltageRange == FLASH_VOLTAGE_RANGE_1)
|
||
986:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
987:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** tmp_psize = FLASH_PSIZE_BYTE;
|
||
988:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
989:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** else if (VoltageRange == FLASH_VOLTAGE_RANGE_2)
|
||
990:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
991:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** tmp_psize = FLASH_PSIZE_HALF_WORD;
|
||
992:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
993:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** else if (VoltageRange == FLASH_VOLTAGE_RANGE_3)
|
||
994:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
995:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** tmp_psize = FLASH_PSIZE_WORD;
|
||
996:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
997:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** else
|
||
998:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
999:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** tmp_psize = FLASH_PSIZE_DOUBLE_WORD;
|
||
1000:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1001:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1002:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* If the previous operation is completed, proceed to erase the sector */
|
||
1003:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE);
|
||
1004:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH->CR |= tmp_psize;
|
||
1005:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_SNB);
|
||
1006:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH->CR |= FLASH_CR_SER | (Sector << FLASH_CR_SNB_Pos);
|
||
1007:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH->CR |= FLASH_CR_STRT;
|
||
1008:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1009:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1010:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
1011:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Enable the write protection of the desired bank 1 sectors
|
||
1012:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
1013:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note When the memory read protection level is selected (RDP level = 1),
|
||
1014:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * it is not possible to program or erase the flash sector i if CortexM4
|
||
1015:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * debug features are connected or boot code is executed in RAM, even if nWRPi = 1
|
||
1016:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note Active value of nWRPi bits is inverted when PCROP mode is active (SPRMOD =1).
|
||
1017:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
1018:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param WRPSector specifies the sector(s) to be write protected.
|
||
1019:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * The value of this parameter depend on device used within the same series
|
||
1020:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
1021:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param Banks Enable write protection on all the sectors for the specific bank
|
||
1022:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
1023:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_BANK_1: WRP on all sectors of bank1
|
||
1024:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
1025:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval HAL Status
|
||
1026:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
1027:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_EnableWRP(uint32_t WRPSector, uint32_t Banks)
|
||
ARM GAS /tmp/ccYzp9Nl.s page 21
|
||
|
||
|
||
1028:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1029:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
1030:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1031:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Check the parameters */
|
||
1032:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_OB_WRP_SECTOR(WRPSector));
|
||
1033:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_FLASH_BANK(Banks));
|
||
1034:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1035:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Wait for last operation to be completed */
|
||
1036:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
|
||
1037:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1038:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (status == HAL_OK)
|
||
1039:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1040:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint16_t *)OPTCR_BYTE2_ADDRESS &= (~WRPSector);
|
||
1041:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1042:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1043:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** return status;
|
||
1044:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1045:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1046:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
1047:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Disable the write protection of the desired bank 1 sectors
|
||
1048:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
1049:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note When the memory read protection level is selected (RDP level = 1),
|
||
1050:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * it is not possible to program or erase the flash sector i if CortexM4
|
||
1051:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * debug features are connected or boot code is executed in RAM, even if nWRPi = 1
|
||
1052:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note Active value of nWRPi bits is inverted when PCROP mode is active (SPRMOD =1).
|
||
1053:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
1054:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param WRPSector specifies the sector(s) to be write protected.
|
||
1055:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * The value of this parameter depend on device used within the same series
|
||
1056:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
1057:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param Banks Enable write protection on all the sectors for the specific bank
|
||
1058:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
1059:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg FLASH_BANK_1: WRP on all sectors of bank1
|
||
1060:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
1061:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval HAL Status
|
||
1062:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
1063:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_DisableWRP(uint32_t WRPSector, uint32_t Banks)
|
||
1064:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1065:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
1066:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1067:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Check the parameters */
|
||
1068:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_OB_WRP_SECTOR(WRPSector));
|
||
1069:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_FLASH_BANK(Banks));
|
||
1070:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1071:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Wait for last operation to be completed */
|
||
1072:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
|
||
1073:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1074:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (status == HAL_OK)
|
||
1075:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1076:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint16_t *)OPTCR_BYTE2_ADDRESS |= (uint16_t)WRPSector;
|
||
1077:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1078:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1079:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** return status;
|
||
1080:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1081:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F40xxx || STM32F41xxx || STM32F401xx || STM32F410xx || STM32F411xE || STM32F446xx ||
|
||
1082:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** STM32F413xx || STM32F423xx */
|
||
1083:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1084:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) ||
|
||
ARM GAS /tmp/ccYzp9Nl.s page 22
|
||
|
||
|
||
1085:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** defined(STM32F411xE) || defined(STM32F446xx) || defined(STM32F412Zx) || defined(STM32F412Vx) ||
|
||
1086:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** defined(STM32F412Cx) || defined(STM32F413xx) || defined(STM32F423xx)
|
||
1087:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
1088:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Enable the read/write protection (PCROP) of the desired sectors.
|
||
1089:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note This function can be used only for STM32F401xx devices.
|
||
1090:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param Sector specifies the sector(s) to be read/write protected or unprotected.
|
||
1091:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
1092:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_PCROP: A value between OB_PCROP_Sector0 and OB_PCROP_Sector5
|
||
1093:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_PCROP_Sector_All
|
||
1094:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval HAL Status
|
||
1095:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
1096:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_EnablePCROP(uint32_t Sector)
|
||
1097:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1098:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
1099:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1100:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Check the parameters */
|
||
1101:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_OB_PCROP(Sector));
|
||
1102:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1103:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Wait for last operation to be completed */
|
||
1104:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
|
||
1105:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1106:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (status == HAL_OK)
|
||
1107:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1108:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint16_t *)OPTCR_BYTE2_ADDRESS |= (uint16_t)Sector;
|
||
1109:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1110:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1111:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** return status;
|
||
1112:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1113:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1114:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1115:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
1116:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Disable the read/write protection (PCROP) of the desired sectors.
|
||
1117:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note This function can be used only for STM32F401xx devices.
|
||
1118:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param Sector specifies the sector(s) to be read/write protected or unprotected.
|
||
1119:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
1120:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_PCROP: A value between OB_PCROP_Sector0 and OB_PCROP_Sector5
|
||
1121:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_PCROP_Sector_All
|
||
1122:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval HAL Status
|
||
1123:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
1124:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_DisablePCROP(uint32_t Sector)
|
||
1125:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1126:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
1127:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1128:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Check the parameters */
|
||
1129:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_OB_PCROP(Sector));
|
||
1130:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1131:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Wait for last operation to be completed */
|
||
1132:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
|
||
1133:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1134:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (status == HAL_OK)
|
||
1135:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1136:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint16_t *)OPTCR_BYTE2_ADDRESS &= (~Sector);
|
||
1137:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1138:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1139:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** return status;
|
||
1140:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1141:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
ARM GAS /tmp/ccYzp9Nl.s page 23
|
||
|
||
|
||
1142:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F401xC || STM32F401xE || STM32F411xE || STM32F446xx || STM32F412Zx || STM32F412Vx ||
|
||
1143:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** STM32F413xx || STM32F423xx */
|
||
1144:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1145:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
1146:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Set the read protection level.
|
||
1147:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param Level specifies the read protection level.
|
||
1148:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
1149:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_RDP_LEVEL_0: No protection
|
||
1150:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_RDP_LEVEL_1: Read protection of the memory
|
||
1151:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_RDP_LEVEL_2: Full chip protection
|
||
1152:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
1153:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @note WARNING: When enabling OB_RDP level 2 it's no more possible to go back to level 1 or 0
|
||
1154:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *
|
||
1155:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval HAL Status
|
||
1156:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
1157:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_RDP_LevelConfig(uint8_t Level)
|
||
1158:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1159:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
1160:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1161:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Check the parameters */
|
||
1162:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_OB_RDP_LEVEL(Level));
|
||
1163:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1164:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Wait for last operation to be completed */
|
||
1165:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
|
||
1166:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1167:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (status == HAL_OK)
|
||
1168:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1169:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint8_t *)OPTCR_BYTE1_ADDRESS = Level;
|
||
1170:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1171:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1172:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** return status;
|
||
1173:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1174:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1175:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
1176:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Program the FLASH User Option Byte: IWDG_SW / RST_STOP / RST_STDBY.
|
||
1177:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param Iwdg Selects the IWDG mode
|
||
1178:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
1179:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_IWDG_SW: Software IWDG selected
|
||
1180:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_IWDG_HW: Hardware IWDG selected
|
||
1181:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param Stop Reset event when entering STOP mode.
|
||
1182:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
1183:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_STOP_NO_RST: No reset generated when entering in STOP
|
||
1184:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_STOP_RST: Reset generated when entering in STOP
|
||
1185:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param Stdby Reset event when entering Standby mode.
|
||
1186:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
1187:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_STDBY_NO_RST: No reset generated when entering in STANDBY
|
||
1188:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_STDBY_RST: Reset generated when entering in STANDBY
|
||
1189:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval HAL Status
|
||
1190:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
1191:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_UserConfig(uint8_t Iwdg, uint8_t Stop, uint8_t Stdby)
|
||
1192:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1193:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** uint8_t optiontmp;
|
||
1194:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
1195:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1196:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Check the parameters */
|
||
1197:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_OB_IWDG_SOURCE(Iwdg));
|
||
1198:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_OB_STOP_SOURCE(Stop));
|
||
ARM GAS /tmp/ccYzp9Nl.s page 24
|
||
|
||
|
||
1199:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_OB_STDBY_SOURCE(Stdby));
|
||
1200:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1201:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Wait for last operation to be completed */
|
||
1202:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
|
||
1203:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1204:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (status == HAL_OK)
|
||
1205:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1206:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Mask OPTLOCK, OPTSTRT, BOR_LEV and BFB2 bits */
|
||
1207:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** optiontmp = (uint8_t)((*(__IO uint8_t *)OPTCR_BYTE0_ADDRESS) & (uint8_t)0x1F);
|
||
1208:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1209:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Update User Option Byte */
|
||
1210:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS = Iwdg | (uint8_t)(Stdby | (uint8_t)(Stop | ((uint8_t)opti
|
||
1211:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1212:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1213:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** return status;
|
||
1214:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1215:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1216:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
1217:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Set the BOR Level.
|
||
1218:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @param Level specifies the Option Bytes BOR Reset Level.
|
||
1219:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
1220:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_BOR_LEVEL3: Supply voltage ranges from 2.7 to 3.6 V
|
||
1221:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_BOR_LEVEL2: Supply voltage ranges from 2.4 to 2.7 V
|
||
1222:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_BOR_LEVEL1: Supply voltage ranges from 2.1 to 2.4 V
|
||
1223:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_BOR_OFF: Supply voltage ranges from 1.62 to 2.1 V
|
||
1224:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval HAL Status
|
||
1225:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
1226:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static HAL_StatusTypeDef FLASH_OB_BOR_LevelConfig(uint8_t Level)
|
||
1227:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
110 .loc 1 1227 1 is_stmt 1 view -0
|
||
111 .cfi_startproc
|
||
112 @ args = 0, pretend = 0, frame = 0
|
||
113 @ frame_needed = 0, uses_anonymous_args = 0
|
||
114 @ link register save eliminated.
|
||
1228:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Check the parameters */
|
||
1229:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_OB_BOR_LEVEL(Level));
|
||
115 .loc 1 1229 3 view .LVU26
|
||
1230:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1231:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Set the BOR Level */
|
||
1232:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS &= (~FLASH_OPTCR_BOR_LEV);
|
||
116 .loc 1 1232 3 view .LVU27
|
||
117 0000 044B ldr r3, .L10
|
||
118 0002 1A7D ldrb r2, [r3, #20] @ zero_extendqisi2
|
||
119 .loc 1 1232 40 is_stmt 0 view .LVU28
|
||
120 0004 02F0F302 and r2, r2, #243
|
||
121 0008 1A75 strb r2, [r3, #20]
|
||
1233:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS |= Level;
|
||
122 .loc 1 1233 3 is_stmt 1 view .LVU29
|
||
123 000a 1A7D ldrb r2, [r3, #20] @ zero_extendqisi2
|
||
124 .loc 1 1233 40 is_stmt 0 view .LVU30
|
||
125 000c 0243 orrs r2, r2, r0
|
||
126 000e 1A75 strb r2, [r3, #20]
|
||
1234:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1235:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** return HAL_OK;
|
||
127 .loc 1 1235 3 is_stmt 1 view .LVU31
|
||
1236:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1237:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
ARM GAS /tmp/ccYzp9Nl.s page 25
|
||
|
||
|
||
128 .loc 1 1237 1 is_stmt 0 view .LVU32
|
||
129 0010 0020 movs r0, #0
|
||
130 .LVL6:
|
||
131 .loc 1 1237 1 view .LVU33
|
||
132 0012 7047 bx lr
|
||
133 .L11:
|
||
134 .align 2
|
||
135 .L10:
|
||
136 0014 003C0240 .word 1073888256
|
||
137 .cfi_endproc
|
||
138 .LFE257:
|
||
140 .section .text.FLASH_OB_GetUser,"ax",%progbits
|
||
141 .align 1
|
||
142 .syntax unified
|
||
143 .thumb
|
||
144 .thumb_func
|
||
146 FLASH_OB_GetUser:
|
||
147 .LFB258:
|
||
1238:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1239:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
1240:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Return the FLASH User Option Byte value.
|
||
1241:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval uint8_t FLASH User Option Bytes values: IWDG_SW(Bit0), RST_STOP(Bit1)
|
||
1242:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * and RST_STDBY(Bit2).
|
||
1243:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
1244:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static uint8_t FLASH_OB_GetUser(void)
|
||
1245:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
148 .loc 1 1245 1 is_stmt 1 view -0
|
||
149 .cfi_startproc
|
||
150 @ args = 0, pretend = 0, frame = 0
|
||
151 @ frame_needed = 0, uses_anonymous_args = 0
|
||
152 @ link register save eliminated.
|
||
1246:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Return the User Option Byte */
|
||
1247:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** return ((uint8_t)(FLASH->OPTCR & 0xE0));
|
||
153 .loc 1 1247 3 view .LVU35
|
||
154 .loc 1 1247 26 is_stmt 0 view .LVU36
|
||
155 0000 024B ldr r3, .L13
|
||
156 0002 5869 ldr r0, [r3, #20]
|
||
1248:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
157 .loc 1 1248 1 view .LVU37
|
||
158 0004 00F0E000 and r0, r0, #224
|
||
159 0008 7047 bx lr
|
||
160 .L14:
|
||
161 000a 00BF .align 2
|
||
162 .L13:
|
||
163 000c 003C0240 .word 1073888256
|
||
164 .cfi_endproc
|
||
165 .LFE258:
|
||
167 .section .text.FLASH_OB_GetWRP,"ax",%progbits
|
||
168 .align 1
|
||
169 .syntax unified
|
||
170 .thumb
|
||
171 .thumb_func
|
||
173 FLASH_OB_GetWRP:
|
||
174 .LFB259:
|
||
1249:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1250:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
1251:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Return the FLASH Write Protection Option Bytes value.
|
||
ARM GAS /tmp/ccYzp9Nl.s page 26
|
||
|
||
|
||
1252:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval uint16_t FLASH Write Protection Option Bytes value
|
||
1253:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
1254:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static uint16_t FLASH_OB_GetWRP(void)
|
||
1255:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
175 .loc 1 1255 1 is_stmt 1 view -0
|
||
176 .cfi_startproc
|
||
177 @ args = 0, pretend = 0, frame = 0
|
||
178 @ frame_needed = 0, uses_anonymous_args = 0
|
||
179 @ link register save eliminated.
|
||
1256:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Return the FLASH write protection Register value */
|
||
1257:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** return (*(__IO uint16_t *)(OPTCR_BYTE2_ADDRESS));
|
||
180 .loc 1 1257 3 view .LVU39
|
||
181 .loc 1 1257 11 is_stmt 0 view .LVU40
|
||
182 0000 014B ldr r3, .L16
|
||
183 0002 D88A ldrh r0, [r3, #22]
|
||
1258:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
184 .loc 1 1258 1 view .LVU41
|
||
185 0004 80B2 uxth r0, r0
|
||
186 0006 7047 bx lr
|
||
187 .L17:
|
||
188 .align 2
|
||
189 .L16:
|
||
190 0008 003C0240 .word 1073888256
|
||
191 .cfi_endproc
|
||
192 .LFE259:
|
||
194 .section .text.FLASH_OB_GetRDP,"ax",%progbits
|
||
195 .align 1
|
||
196 .syntax unified
|
||
197 .thumb
|
||
198 .thumb_func
|
||
200 FLASH_OB_GetRDP:
|
||
201 .LFB260:
|
||
1259:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1260:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
1261:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Returns the FLASH Read Protection level.
|
||
1262:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval FLASH ReadOut Protection Status:
|
||
1263:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * This parameter can be one of the following values:
|
||
1264:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_RDP_LEVEL_0: No protection
|
||
1265:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_RDP_LEVEL_1: Read protection of the memory
|
||
1266:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @arg OB_RDP_LEVEL_2: Full chip protection
|
||
1267:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
1268:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static uint8_t FLASH_OB_GetRDP(void)
|
||
1269:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
202 .loc 1 1269 1 is_stmt 1 view -0
|
||
203 .cfi_startproc
|
||
204 @ args = 0, pretend = 0, frame = 0
|
||
205 @ frame_needed = 0, uses_anonymous_args = 0
|
||
206 @ link register save eliminated.
|
||
1270:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** uint8_t readstatus = OB_RDP_LEVEL_0;
|
||
207 .loc 1 1270 3 view .LVU43
|
||
208 .LVL7:
|
||
1271:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1272:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (*(__IO uint8_t *)(OPTCR_BYTE1_ADDRESS) == (uint8_t)OB_RDP_LEVEL_2)
|
||
209 .loc 1 1272 3 view .LVU44
|
||
210 .loc 1 1272 7 is_stmt 0 view .LVU45
|
||
211 0000 054B ldr r3, .L21
|
||
212 0002 587D ldrb r0, [r3, #21] @ zero_extendqisi2
|
||
ARM GAS /tmp/ccYzp9Nl.s page 27
|
||
|
||
|
||
213 0004 C0B2 uxtb r0, r0
|
||
214 .loc 1 1272 6 view .LVU46
|
||
215 0006 CC28 cmp r0, #204
|
||
216 0008 04D0 beq .L19
|
||
1273:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1274:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** readstatus = OB_RDP_LEVEL_2;
|
||
1275:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1276:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** else if (*(__IO uint8_t *)(OPTCR_BYTE1_ADDRESS) == (uint8_t)OB_RDP_LEVEL_0)
|
||
217 .loc 1 1276 8 is_stmt 1 view .LVU47
|
||
218 .loc 1 1276 12 is_stmt 0 view .LVU48
|
||
219 000a 587D ldrb r0, [r3, #21] @ zero_extendqisi2
|
||
220 000c C0B2 uxtb r0, r0
|
||
221 .loc 1 1276 11 view .LVU49
|
||
222 000e AA28 cmp r0, #170
|
||
223 0010 00D0 beq .L19
|
||
1277:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1278:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** readstatus = OB_RDP_LEVEL_0;
|
||
1279:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1280:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** else
|
||
1281:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1282:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** readstatus = OB_RDP_LEVEL_1;
|
||
224 .loc 1 1282 16 view .LVU50
|
||
225 0012 5520 movs r0, #85
|
||
226 .L19:
|
||
227 .LVL8:
|
||
1283:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1284:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1285:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** return readstatus;
|
||
228 .loc 1 1285 3 is_stmt 1 view .LVU51
|
||
1286:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
229 .loc 1 1286 1 is_stmt 0 view .LVU52
|
||
230 0014 7047 bx lr
|
||
231 .L22:
|
||
232 0016 00BF .align 2
|
||
233 .L21:
|
||
234 0018 003C0240 .word 1073888256
|
||
235 .cfi_endproc
|
||
236 .LFE260:
|
||
238 .section .text.FLASH_OB_GetBOR,"ax",%progbits
|
||
239 .align 1
|
||
240 .syntax unified
|
||
241 .thumb
|
||
242 .thumb_func
|
||
244 FLASH_OB_GetBOR:
|
||
245 .LFB261:
|
||
1287:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1288:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
1289:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Returns the FLASH BOR level.
|
||
1290:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval uint8_t The FLASH BOR level:
|
||
1291:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * - OB_BOR_LEVEL3: Supply voltage ranges from 2.7 to 3.6 V
|
||
1292:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * - OB_BOR_LEVEL2: Supply voltage ranges from 2.4 to 2.7 V
|
||
1293:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * - OB_BOR_LEVEL1: Supply voltage ranges from 2.1 to 2.4 V
|
||
1294:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * - OB_BOR_OFF : Supply voltage ranges from 1.62 to 2.1 V
|
||
1295:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
1296:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** static uint8_t FLASH_OB_GetBOR(void)
|
||
1297:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
246 .loc 1 1297 1 is_stmt 1 view -0
|
||
ARM GAS /tmp/ccYzp9Nl.s page 28
|
||
|
||
|
||
247 .cfi_startproc
|
||
248 @ args = 0, pretend = 0, frame = 0
|
||
249 @ frame_needed = 0, uses_anonymous_args = 0
|
||
250 @ link register save eliminated.
|
||
1298:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Return the FLASH BOR level */
|
||
1299:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** return (uint8_t)(*(__IO uint8_t *)(OPTCR_BYTE0_ADDRESS) & (uint8_t)0x0C);
|
||
251 .loc 1 1299 3 view .LVU54
|
||
252 .loc 1 1299 10 is_stmt 0 view .LVU55
|
||
253 0000 024B ldr r3, .L24
|
||
254 0002 187D ldrb r0, [r3, #20] @ zero_extendqisi2
|
||
1300:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
255 .loc 1 1300 1 view .LVU56
|
||
256 0004 00F00C00 and r0, r0, #12
|
||
257 0008 7047 bx lr
|
||
258 .L25:
|
||
259 000a 00BF .align 2
|
||
260 .L24:
|
||
261 000c 003C0240 .word 1073888256
|
||
262 .cfi_endproc
|
||
263 .LFE261:
|
||
265 .section .text.FLASH_OB_EnableWRP,"ax",%progbits
|
||
266 .align 1
|
||
267 .syntax unified
|
||
268 .thumb
|
||
269 .thumb_func
|
||
271 FLASH_OB_EnableWRP:
|
||
272 .LVL9:
|
||
273 .LFB250:
|
||
642:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
274 .loc 1 642 1 is_stmt 1 view -0
|
||
275 .cfi_startproc
|
||
276 @ args = 0, pretend = 0, frame = 0
|
||
277 @ frame_needed = 0, uses_anonymous_args = 0
|
||
642:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
278 .loc 1 642 1 is_stmt 0 view .LVU58
|
||
279 0000 38B5 push {r3, r4, r5, lr}
|
||
280 .LCFI0:
|
||
281 .cfi_def_cfa_offset 16
|
||
282 .cfi_offset 3, -16
|
||
283 .cfi_offset 4, -12
|
||
284 .cfi_offset 5, -8
|
||
285 .cfi_offset 14, -4
|
||
286 0002 0446 mov r4, r0
|
||
287 0004 0D46 mov r5, r1
|
||
643:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
288 .loc 1 643 3 is_stmt 1 view .LVU59
|
||
289 .LVL10:
|
||
646:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_FLASH_BANK(Banks));
|
||
290 .loc 1 646 3 view .LVU60
|
||
647:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
291 .loc 1 647 3 view .LVU61
|
||
650:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
292 .loc 1 650 3 view .LVU62
|
||
650:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
293 .loc 1 650 12 is_stmt 0 view .LVU63
|
||
294 0006 4CF25030 movw r0, #50000
|
||
295 .LVL11:
|
||
ARM GAS /tmp/ccYzp9Nl.s page 29
|
||
|
||
|
||
650:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
296 .loc 1 650 12 view .LVU64
|
||
297 000a FFF7FEFF bl FLASH_WaitForLastOperation
|
||
298 .LVL12:
|
||
652:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
299 .loc 1 652 3 is_stmt 1 view .LVU65
|
||
652:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
300 .loc 1 652 6 is_stmt 0 view .LVU66
|
||
301 000e 00BB cbnz r0, .L27
|
||
654:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (WRPSector < OB_WRP_SECTOR_12))
|
||
302 .loc 1 654 5 is_stmt 1 view .LVU67
|
||
654:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (WRPSector < OB_WRP_SECTOR_12))
|
||
303 .loc 1 654 8 is_stmt 0 view .LVU68
|
||
304 0010 184B ldr r3, .L37
|
||
305 0012 9C42 cmp r4, r3
|
||
306 0014 09D0 beq .L35
|
||
307 .L28:
|
||
654:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (WRPSector < OB_WRP_SECTOR_12))
|
||
308 .loc 1 654 103 discriminator 4 view .LVU69
|
||
309 0016 B4F5805F cmp r4, #4096
|
||
310 001a 11D3 bcc .L30
|
||
671:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
311 .loc 1 671 7 is_stmt 1 view .LVU70
|
||
312 001c 164A ldr r2, .L37+4
|
||
313 001e 538B ldrh r3, [r2, #26]
|
||
314 0020 9BB2 uxth r3, r3
|
||
671:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
315 .loc 1 671 46 is_stmt 0 view .LVU71
|
||
316 0022 23EA1433 bic r3, r3, r4, lsr #12
|
||
317 0026 5383 strh r3, [r2, #26] @ movhi
|
||
318 0028 10E0 b .L32
|
||
319 .L35:
|
||
654:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (WRPSector < OB_WRP_SECTOR_12))
|
||
320 .loc 1 654 43 discriminator 1 view .LVU72
|
||
321 002a 012D cmp r5, #1
|
||
322 002c 01D0 beq .L29
|
||
654:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (WRPSector < OB_WRP_SECTOR_12))
|
||
323 .loc 1 654 71 discriminator 3 view .LVU73
|
||
324 002e 032D cmp r5, #3
|
||
325 0030 F1D1 bne .L28
|
||
326 .L29:
|
||
657:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
327 .loc 1 657 7 is_stmt 1 view .LVU74
|
||
660:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
328 .loc 1 660 9 view .LVU75
|
||
329 0032 114A ldr r2, .L37+4
|
||
330 0034 D38A ldrh r3, [r2, #22]
|
||
331 0036 9BB2 uxth r3, r3
|
||
660:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
332 .loc 1 660 47 is_stmt 0 view .LVU76
|
||
333 0038 23EA1433 bic r3, r3, r4, lsr #12
|
||
334 003c D382 strh r3, [r2, #22] @ movhi
|
||
335 003e 05E0 b .L32
|
||
336 .L30:
|
||
665:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
337 .loc 1 665 9 is_stmt 1 view .LVU77
|
||
338 0040 0D4A ldr r2, .L37+4
|
||
ARM GAS /tmp/ccYzp9Nl.s page 30
|
||
|
||
|
||
339 0042 D38A ldrh r3, [r2, #22]
|
||
340 0044 9BB2 uxth r3, r3
|
||
665:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
341 .loc 1 665 47 is_stmt 0 view .LVU78
|
||
342 0046 23EA0403 bic r3, r3, r4
|
||
343 004a D382 strh r3, [r2, #22] @ movhi
|
||
344 .L32:
|
||
675:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
345 .loc 1 675 5 is_stmt 1 view .LVU79
|
||
675:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
346 .loc 1 675 8 is_stmt 0 view .LVU80
|
||
347 004c 094B ldr r3, .L37
|
||
348 004e 9C42 cmp r4, r3
|
||
349 0050 00D0 beq .L36
|
||
350 .LVL13:
|
||
351 .L27:
|
||
687:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
352 .loc 1 687 3 is_stmt 1 view .LVU81
|
||
688:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
353 .loc 1 688 1 is_stmt 0 view .LVU82
|
||
354 0052 38BD pop {r3, r4, r5, pc}
|
||
355 .LVL14:
|
||
356 .L36:
|
||
675:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
357 .loc 1 675 42 discriminator 1 view .LVU83
|
||
358 0054 032D cmp r5, #3
|
||
359 0056 FCD1 bne .L27
|
||
678:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
360 .loc 1 678 7 is_stmt 1 view .LVU84
|
||
678:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
361 .loc 1 678 16 is_stmt 0 view .LVU85
|
||
362 0058 4CF25030 movw r0, #50000
|
||
363 005c FFF7FEFF bl FLASH_WaitForLastOperation
|
||
364 .LVL15:
|
||
680:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
365 .loc 1 680 7 is_stmt 1 view .LVU86
|
||
680:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
366 .loc 1 680 10 is_stmt 0 view .LVU87
|
||
367 0060 0028 cmp r0, #0
|
||
368 0062 F6D1 bne .L27
|
||
682:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
369 .loc 1 682 9 is_stmt 1 view .LVU88
|
||
370 0064 044A ldr r2, .L37+4
|
||
371 0066 538B ldrh r3, [r2, #26]
|
||
372 0068 9BB2 uxth r3, r3
|
||
682:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
373 .loc 1 682 48 is_stmt 0 view .LVU89
|
||
374 006a 23EA1433 bic r3, r3, r4, lsr #12
|
||
375 006e 5383 strh r3, [r2, #26] @ movhi
|
||
376 0070 EFE7 b .L27
|
||
377 .L38:
|
||
378 0072 00BF .align 2
|
||
379 .L37:
|
||
380 0074 00F0FF00 .word 16773120
|
||
381 0078 003C0240 .word 1073888256
|
||
382 .cfi_endproc
|
||
383 .LFE250:
|
||
ARM GAS /tmp/ccYzp9Nl.s page 31
|
||
|
||
|
||
385 .section .text.FLASH_OB_DisableWRP,"ax",%progbits
|
||
386 .align 1
|
||
387 .syntax unified
|
||
388 .thumb
|
||
389 .thumb_func
|
||
391 FLASH_OB_DisableWRP:
|
||
392 .LVL16:
|
||
393 .LFB251:
|
||
713:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
394 .loc 1 713 1 is_stmt 1 view -0
|
||
395 .cfi_startproc
|
||
396 @ args = 0, pretend = 0, frame = 0
|
||
397 @ frame_needed = 0, uses_anonymous_args = 0
|
||
713:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
398 .loc 1 713 1 is_stmt 0 view .LVU91
|
||
399 0000 38B5 push {r3, r4, r5, lr}
|
||
400 .LCFI1:
|
||
401 .cfi_def_cfa_offset 16
|
||
402 .cfi_offset 3, -16
|
||
403 .cfi_offset 4, -12
|
||
404 .cfi_offset 5, -8
|
||
405 .cfi_offset 14, -4
|
||
406 0002 0446 mov r4, r0
|
||
407 0004 0D46 mov r5, r1
|
||
714:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
408 .loc 1 714 3 is_stmt 1 view .LVU92
|
||
409 .LVL17:
|
||
717:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_FLASH_BANK(Banks));
|
||
410 .loc 1 717 3 view .LVU93
|
||
718:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
411 .loc 1 718 3 view .LVU94
|
||
721:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
412 .loc 1 721 3 view .LVU95
|
||
721:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
413 .loc 1 721 12 is_stmt 0 view .LVU96
|
||
414 0006 4CF25030 movw r0, #50000
|
||
415 .LVL18:
|
||
721:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
416 .loc 1 721 12 view .LVU97
|
||
417 000a FFF7FEFF bl FLASH_WaitForLastOperation
|
||
418 .LVL19:
|
||
723:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
419 .loc 1 723 3 is_stmt 1 view .LVU98
|
||
723:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
420 .loc 1 723 6 is_stmt 0 view .LVU99
|
||
421 000e 10BB cbnz r0, .L40
|
||
725:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (WRPSector < OB_WRP_SECTOR_12))
|
||
422 .loc 1 725 5 is_stmt 1 view .LVU100
|
||
725:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (WRPSector < OB_WRP_SECTOR_12))
|
||
423 .loc 1 725 8 is_stmt 0 view .LVU101
|
||
424 0010 194B ldr r3, .L50
|
||
425 0012 9C42 cmp r4, r3
|
||
426 0014 0AD0 beq .L48
|
||
427 .L41:
|
||
725:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (WRPSector < OB_WRP_SECTOR_12))
|
||
428 .loc 1 725 103 discriminator 4 view .LVU102
|
||
429 0016 B4F5805F cmp r4, #4096
|
||
ARM GAS /tmp/ccYzp9Nl.s page 32
|
||
|
||
|
||
430 001a 13D3 bcc .L43
|
||
742:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
431 .loc 1 742 7 is_stmt 1 view .LVU103
|
||
432 001c 174A ldr r2, .L50+4
|
||
433 001e 538B ldrh r3, [r2, #26]
|
||
434 0020 9BB2 uxth r3, r3
|
||
742:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
435 .loc 1 742 49 is_stmt 0 view .LVU104
|
||
436 0022 C4F30F31 ubfx r1, r4, #12, #16
|
||
742:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
437 .loc 1 742 46 view .LVU105
|
||
438 0026 0B43 orrs r3, r3, r1
|
||
439 0028 5383 strh r3, [r2, #26] @ movhi
|
||
440 002a 11E0 b .L45
|
||
441 .L48:
|
||
725:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (WRPSector < OB_WRP_SECTOR_12))
|
||
442 .loc 1 725 43 discriminator 1 view .LVU106
|
||
443 002c 012D cmp r5, #1
|
||
444 002e 01D0 beq .L42
|
||
725:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** (WRPSector < OB_WRP_SECTOR_12))
|
||
445 .loc 1 725 71 discriminator 3 view .LVU107
|
||
446 0030 032D cmp r5, #3
|
||
447 0032 F0D1 bne .L41
|
||
448 .L42:
|
||
728:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
449 .loc 1 728 7 is_stmt 1 view .LVU108
|
||
731:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
450 .loc 1 731 9 view .LVU109
|
||
451 0034 114A ldr r2, .L50+4
|
||
452 0036 D38A ldrh r3, [r2, #22]
|
||
453 0038 9BB2 uxth r3, r3
|
||
731:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
454 .loc 1 731 50 is_stmt 0 view .LVU110
|
||
455 003a C4F30F31 ubfx r1, r4, #12, #16
|
||
731:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
456 .loc 1 731 47 view .LVU111
|
||
457 003e 0B43 orrs r3, r3, r1
|
||
458 0040 D382 strh r3, [r2, #22] @ movhi
|
||
459 0042 05E0 b .L45
|
||
460 .L43:
|
||
736:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
461 .loc 1 736 9 is_stmt 1 view .LVU112
|
||
462 0044 0D4A ldr r2, .L50+4
|
||
463 0046 D38A ldrh r3, [r2, #22]
|
||
464 0048 9BB2 uxth r3, r3
|
||
736:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
465 .loc 1 736 50 is_stmt 0 view .LVU113
|
||
466 004a A1B2 uxth r1, r4
|
||
736:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
467 .loc 1 736 47 view .LVU114
|
||
468 004c 0B43 orrs r3, r3, r1
|
||
469 004e D382 strh r3, [r2, #22] @ movhi
|
||
470 .L45:
|
||
746:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
471 .loc 1 746 5 is_stmt 1 view .LVU115
|
||
746:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
472 .loc 1 746 8 is_stmt 0 view .LVU116
|
||
ARM GAS /tmp/ccYzp9Nl.s page 33
|
||
|
||
|
||
473 0050 094B ldr r3, .L50
|
||
474 0052 9C42 cmp r4, r3
|
||
475 0054 00D0 beq .L49
|
||
476 .LVL20:
|
||
477 .L40:
|
||
759:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
478 .loc 1 759 3 is_stmt 1 view .LVU117
|
||
760:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
479 .loc 1 760 1 is_stmt 0 view .LVU118
|
||
480 0056 38BD pop {r3, r4, r5, pc}
|
||
481 .LVL21:
|
||
482 .L49:
|
||
746:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
483 .loc 1 746 42 discriminator 1 view .LVU119
|
||
484 0058 032D cmp r5, #3
|
||
485 005a FCD1 bne .L40
|
||
749:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
486 .loc 1 749 7 is_stmt 1 view .LVU120
|
||
749:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
487 .loc 1 749 16 is_stmt 0 view .LVU121
|
||
488 005c 4CF25030 movw r0, #50000
|
||
489 0060 FFF7FEFF bl FLASH_WaitForLastOperation
|
||
490 .LVL22:
|
||
751:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
491 .loc 1 751 7 is_stmt 1 view .LVU122
|
||
751:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
492 .loc 1 751 10 is_stmt 0 view .LVU123
|
||
493 0064 0028 cmp r0, #0
|
||
494 0066 F6D1 bne .L40
|
||
753:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
495 .loc 1 753 9 is_stmt 1 view .LVU124
|
||
496 0068 044A ldr r2, .L50+4
|
||
497 006a 538B ldrh r3, [r2, #26]
|
||
498 006c 9BB2 uxth r3, r3
|
||
753:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
499 .loc 1 753 51 is_stmt 0 view .LVU125
|
||
500 006e C4F30F34 ubfx r4, r4, #12, #16
|
||
501 .LVL23:
|
||
753:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
502 .loc 1 753 48 view .LVU126
|
||
503 0072 2343 orrs r3, r3, r4
|
||
504 0074 5383 strh r3, [r2, #26] @ movhi
|
||
505 0076 EEE7 b .L40
|
||
506 .L51:
|
||
507 .align 2
|
||
508 .L50:
|
||
509 0078 00F0FF00 .word 16773120
|
||
510 007c 003C0240 .word 1073888256
|
||
511 .cfi_endproc
|
||
512 .LFE251:
|
||
514 .section .text.FLASH_OB_RDP_LevelConfig,"ax",%progbits
|
||
515 .align 1
|
||
516 .syntax unified
|
||
517 .thumb
|
||
518 .thumb_func
|
||
520 FLASH_OB_RDP_LevelConfig:
|
||
521 .LVL24:
|
||
ARM GAS /tmp/ccYzp9Nl.s page 34
|
||
|
||
|
||
522 .LFB255:
|
||
1158:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
523 .loc 1 1158 1 is_stmt 1 view -0
|
||
524 .cfi_startproc
|
||
525 @ args = 0, pretend = 0, frame = 0
|
||
526 @ frame_needed = 0, uses_anonymous_args = 0
|
||
1158:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
527 .loc 1 1158 1 is_stmt 0 view .LVU128
|
||
528 0000 10B5 push {r4, lr}
|
||
529 .LCFI2:
|
||
530 .cfi_def_cfa_offset 8
|
||
531 .cfi_offset 4, -8
|
||
532 .cfi_offset 14, -4
|
||
533 0002 0446 mov r4, r0
|
||
1159:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
534 .loc 1 1159 3 is_stmt 1 view .LVU129
|
||
535 .LVL25:
|
||
1162:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
536 .loc 1 1162 3 view .LVU130
|
||
1165:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
537 .loc 1 1165 3 view .LVU131
|
||
1165:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
538 .loc 1 1165 12 is_stmt 0 view .LVU132
|
||
539 0004 4CF25030 movw r0, #50000
|
||
540 .LVL26:
|
||
1165:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
541 .loc 1 1165 12 view .LVU133
|
||
542 0008 FFF7FEFF bl FLASH_WaitForLastOperation
|
||
543 .LVL27:
|
||
1167:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
544 .loc 1 1167 3 is_stmt 1 view .LVU134
|
||
1167:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
545 .loc 1 1167 6 is_stmt 0 view .LVU135
|
||
546 000c 08B9 cbnz r0, .L53
|
||
1169:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
547 .loc 1 1169 5 is_stmt 1 view .LVU136
|
||
1169:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
548 .loc 1 1169 42 is_stmt 0 view .LVU137
|
||
549 000e 014B ldr r3, .L55
|
||
550 0010 5C75 strb r4, [r3, #21]
|
||
551 .L53:
|
||
1172:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
552 .loc 1 1172 3 is_stmt 1 view .LVU138
|
||
1173:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
553 .loc 1 1173 1 is_stmt 0 view .LVU139
|
||
554 0012 10BD pop {r4, pc}
|
||
555 .LVL28:
|
||
556 .L56:
|
||
1173:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
557 .loc 1 1173 1 view .LVU140
|
||
558 .align 2
|
||
559 .L55:
|
||
560 0014 003C0240 .word 1073888256
|
||
561 .cfi_endproc
|
||
562 .LFE255:
|
||
564 .section .text.FLASH_OB_UserConfig,"ax",%progbits
|
||
565 .align 1
|
||
ARM GAS /tmp/ccYzp9Nl.s page 35
|
||
|
||
|
||
566 .syntax unified
|
||
567 .thumb
|
||
568 .thumb_func
|
||
570 FLASH_OB_UserConfig:
|
||
571 .LVL29:
|
||
572 .LFB256:
|
||
1192:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** uint8_t optiontmp;
|
||
573 .loc 1 1192 1 is_stmt 1 view -0
|
||
574 .cfi_startproc
|
||
575 @ args = 0, pretend = 0, frame = 0
|
||
576 @ frame_needed = 0, uses_anonymous_args = 0
|
||
1192:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** uint8_t optiontmp;
|
||
577 .loc 1 1192 1 is_stmt 0 view .LVU142
|
||
578 0000 F8B5 push {r3, r4, r5, r6, r7, lr}
|
||
579 .LCFI3:
|
||
580 .cfi_def_cfa_offset 24
|
||
581 .cfi_offset 3, -24
|
||
582 .cfi_offset 4, -20
|
||
583 .cfi_offset 5, -16
|
||
584 .cfi_offset 6, -12
|
||
585 .cfi_offset 7, -8
|
||
586 .cfi_offset 14, -4
|
||
587 0002 0446 mov r4, r0
|
||
588 0004 0E46 mov r6, r1
|
||
589 0006 1546 mov r5, r2
|
||
1193:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
590 .loc 1 1193 3 is_stmt 1 view .LVU143
|
||
1194:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
591 .loc 1 1194 3 view .LVU144
|
||
592 .LVL30:
|
||
1197:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_OB_STOP_SOURCE(Stop));
|
||
593 .loc 1 1197 3 view .LVU145
|
||
1198:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_OB_STDBY_SOURCE(Stdby));
|
||
594 .loc 1 1198 3 view .LVU146
|
||
1199:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
595 .loc 1 1199 3 view .LVU147
|
||
1202:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
596 .loc 1 1202 3 view .LVU148
|
||
1202:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
597 .loc 1 1202 12 is_stmt 0 view .LVU149
|
||
598 0008 4CF25030 movw r0, #50000
|
||
599 .LVL31:
|
||
1202:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
600 .loc 1 1202 12 view .LVU150
|
||
601 000c FFF7FEFF bl FLASH_WaitForLastOperation
|
||
602 .LVL32:
|
||
1204:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
603 .loc 1 1204 3 is_stmt 1 view .LVU151
|
||
1204:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
604 .loc 1 1204 6 is_stmt 0 view .LVU152
|
||
605 0010 48B9 cbnz r0, .L58
|
||
1207:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
606 .loc 1 1207 5 is_stmt 1 view .LVU153
|
||
1207:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
607 .loc 1 1207 66 is_stmt 0 view .LVU154
|
||
608 0012 054F ldr r7, .L60
|
||
609 0014 3B7D ldrb r3, [r7, #20] @ zero_extendqisi2
|
||
ARM GAS /tmp/ccYzp9Nl.s page 36
|
||
|
||
|
||
1207:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
610 .loc 1 1207 15 view .LVU155
|
||
611 0016 03F01F03 and r3, r3, #31
|
||
612 .LVL33:
|
||
1210:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
613 .loc 1 1210 5 is_stmt 1 view .LVU156
|
||
1210:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
614 .loc 1 1210 69 is_stmt 0 view .LVU157
|
||
615 001a 43EA0601 orr r1, r3, r6
|
||
1210:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
616 .loc 1 1210 51 view .LVU158
|
||
617 001e 41EA0502 orr r2, r1, r5
|
||
1210:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
618 .loc 1 1210 42 view .LVU159
|
||
619 0022 2243 orrs r2, r2, r4
|
||
620 0024 3A75 strb r2, [r7, #20]
|
||
621 .LVL34:
|
||
622 .L58:
|
||
1213:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
623 .loc 1 1213 3 is_stmt 1 view .LVU160
|
||
1214:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
624 .loc 1 1214 1 is_stmt 0 view .LVU161
|
||
625 0026 F8BD pop {r3, r4, r5, r6, r7, pc}
|
||
626 .LVL35:
|
||
627 .L61:
|
||
1214:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
628 .loc 1 1214 1 view .LVU162
|
||
629 .align 2
|
||
630 .L60:
|
||
631 0028 003C0240 .word 1073888256
|
||
632 .cfi_endproc
|
||
633 .LFE256:
|
||
635 .section .text.FLASH_OB_EnablePCROP,"ax",%progbits
|
||
636 .align 1
|
||
637 .syntax unified
|
||
638 .thumb
|
||
639 .thumb_func
|
||
641 FLASH_OB_EnablePCROP:
|
||
642 .LVL36:
|
||
643 .LFB253:
|
||
814:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
644 .loc 1 814 1 is_stmt 1 view -0
|
||
645 .cfi_startproc
|
||
646 @ args = 0, pretend = 0, frame = 0
|
||
647 @ frame_needed = 0, uses_anonymous_args = 0
|
||
814:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
648 .loc 1 814 1 is_stmt 0 view .LVU164
|
||
649 0000 70B5 push {r4, r5, r6, lr}
|
||
650 .LCFI4:
|
||
651 .cfi_def_cfa_offset 16
|
||
652 .cfi_offset 4, -16
|
||
653 .cfi_offset 5, -12
|
||
654 .cfi_offset 6, -8
|
||
655 .cfi_offset 14, -4
|
||
656 0002 0546 mov r5, r0
|
||
657 0004 0E46 mov r6, r1
|
||
658 0006 1446 mov r4, r2
|
||
ARM GAS /tmp/ccYzp9Nl.s page 37
|
||
|
||
|
||
815:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
659 .loc 1 815 3 is_stmt 1 view .LVU165
|
||
660 .LVL37:
|
||
817:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
661 .loc 1 817 3 view .LVU166
|
||
820:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
662 .loc 1 820 3 view .LVU167
|
||
820:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
663 .loc 1 820 12 is_stmt 0 view .LVU168
|
||
664 0008 4CF25030 movw r0, #50000
|
||
665 .LVL38:
|
||
820:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
666 .loc 1 820 12 view .LVU169
|
||
667 000c FFF7FEFF bl FLASH_WaitForLastOperation
|
||
668 .LVL39:
|
||
822:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
669 .loc 1 822 3 is_stmt 1 view .LVU170
|
||
822:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
670 .loc 1 822 6 is_stmt 0 view .LVU171
|
||
671 0010 90B9 cbnz r0, .L63
|
||
824:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
672 .loc 1 824 5 is_stmt 1 view .LVU172
|
||
824:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
673 .loc 1 824 8 is_stmt 0 view .LVU173
|
||
674 0012 012C cmp r4, #1
|
||
675 0014 08D0 beq .L64
|
||
824:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
676 .loc 1 824 33 discriminator 1 view .LVU174
|
||
677 0016 032C cmp r4, #3
|
||
678 0018 06D0 beq .L64
|
||
832:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Write protection done on sectors of BANK2*/
|
||
679 .loc 1 832 7 is_stmt 1 view .LVU175
|
||
834:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
680 .loc 1 834 7 view .LVU176
|
||
681 001a 0E4A ldr r2, .L69
|
||
682 001c 538B ldrh r3, [r2, #26]
|
||
683 001e 9BB2 uxth r3, r3
|
||
834:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
684 .loc 1 834 49 is_stmt 0 view .LVU177
|
||
685 0020 B1B2 uxth r1, r6
|
||
834:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
686 .loc 1 834 46 view .LVU178
|
||
687 0022 0B43 orrs r3, r3, r1
|
||
688 0024 5383 strh r3, [r2, #26] @ movhi
|
||
689 0026 05E0 b .L66
|
||
690 .L64:
|
||
826:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Write protection done on sectors of BANK1*/
|
||
691 .loc 1 826 7 is_stmt 1 view .LVU179
|
||
828:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
692 .loc 1 828 7 view .LVU180
|
||
693 0028 0A4A ldr r2, .L69
|
||
694 002a D38A ldrh r3, [r2, #22]
|
||
695 002c 9BB2 uxth r3, r3
|
||
828:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
696 .loc 1 828 48 is_stmt 0 view .LVU181
|
||
697 002e ADB2 uxth r5, r5
|
||
698 .LVL40:
|
||
ARM GAS /tmp/ccYzp9Nl.s page 38
|
||
|
||
|
||
828:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
699 .loc 1 828 45 view .LVU182
|
||
700 0030 2B43 orrs r3, r3, r5
|
||
701 0032 D382 strh r3, [r2, #22] @ movhi
|
||
702 .L66:
|
||
838:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
703 .loc 1 838 5 is_stmt 1 view .LVU183
|
||
838:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
704 .loc 1 838 8 is_stmt 0 view .LVU184
|
||
705 0034 032C cmp r4, #3
|
||
706 0036 00D0 beq .L68
|
||
707 .L63:
|
||
708 .LVL41:
|
||
853:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
709 .loc 1 853 3 is_stmt 1 view .LVU185
|
||
854:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
710 .loc 1 854 1 is_stmt 0 view .LVU186
|
||
711 0038 70BD pop {r4, r5, r6, pc}
|
||
712 .LVL42:
|
||
713 .L68:
|
||
840:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Wait for last operation to be completed */
|
||
714 .loc 1 840 7 is_stmt 1 view .LVU187
|
||
842:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
715 .loc 1 842 7 view .LVU188
|
||
842:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
716 .loc 1 842 16 is_stmt 0 view .LVU189
|
||
717 003a 4CF25030 movw r0, #50000
|
||
718 003e FFF7FEFF bl FLASH_WaitForLastOperation
|
||
719 .LVL43:
|
||
844:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
720 .loc 1 844 7 is_stmt 1 view .LVU190
|
||
844:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
721 .loc 1 844 10 is_stmt 0 view .LVU191
|
||
722 0042 0028 cmp r0, #0
|
||
723 0044 F8D1 bne .L63
|
||
847:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
724 .loc 1 847 9 is_stmt 1 view .LVU192
|
||
725 0046 034A ldr r2, .L69
|
||
726 0048 538B ldrh r3, [r2, #26]
|
||
727 004a 9BB2 uxth r3, r3
|
||
847:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
728 .loc 1 847 51 is_stmt 0 view .LVU193
|
||
729 004c B1B2 uxth r1, r6
|
||
847:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
730 .loc 1 847 48 view .LVU194
|
||
731 004e 0B43 orrs r3, r3, r1
|
||
732 0050 5383 strh r3, [r2, #26] @ movhi
|
||
733 0052 F1E7 b .L63
|
||
734 .L70:
|
||
735 .align 2
|
||
736 .L69:
|
||
737 0054 003C0240 .word 1073888256
|
||
738 .cfi_endproc
|
||
739 .LFE253:
|
||
741 .section .text.FLASH_OB_DisablePCROP,"ax",%progbits
|
||
742 .align 1
|
||
743 .syntax unified
|
||
ARM GAS /tmp/ccYzp9Nl.s page 39
|
||
|
||
|
||
744 .thumb
|
||
745 .thumb_func
|
||
747 FLASH_OB_DisablePCROP:
|
||
748 .LVL44:
|
||
749 .LFB254:
|
||
878:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
750 .loc 1 878 1 is_stmt 1 view -0
|
||
751 .cfi_startproc
|
||
752 @ args = 0, pretend = 0, frame = 0
|
||
753 @ frame_needed = 0, uses_anonymous_args = 0
|
||
878:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
754 .loc 1 878 1 is_stmt 0 view .LVU196
|
||
755 0000 70B5 push {r4, r5, r6, lr}
|
||
756 .LCFI5:
|
||
757 .cfi_def_cfa_offset 16
|
||
758 .cfi_offset 4, -16
|
||
759 .cfi_offset 5, -12
|
||
760 .cfi_offset 6, -8
|
||
761 .cfi_offset 14, -4
|
||
762 0002 0646 mov r6, r0
|
||
763 0004 0D46 mov r5, r1
|
||
764 0006 1446 mov r4, r2
|
||
879:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
765 .loc 1 879 3 is_stmt 1 view .LVU197
|
||
766 .LVL45:
|
||
882:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
767 .loc 1 882 3 view .LVU198
|
||
885:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
768 .loc 1 885 3 view .LVU199
|
||
885:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
769 .loc 1 885 12 is_stmt 0 view .LVU200
|
||
770 0008 4CF25030 movw r0, #50000
|
||
771 .LVL46:
|
||
885:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
772 .loc 1 885 12 view .LVU201
|
||
773 000c FFF7FEFF bl FLASH_WaitForLastOperation
|
||
774 .LVL47:
|
||
887:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
775 .loc 1 887 3 is_stmt 1 view .LVU202
|
||
887:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
776 .loc 1 887 6 is_stmt 0 view .LVU203
|
||
777 0010 90B9 cbnz r0, .L72
|
||
889:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
778 .loc 1 889 5 is_stmt 1 view .LVU204
|
||
889:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
779 .loc 1 889 8 is_stmt 0 view .LVU205
|
||
780 0012 012C cmp r4, #1
|
||
781 0014 08D0 beq .L73
|
||
889:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
782 .loc 1 889 33 discriminator 1 view .LVU206
|
||
783 0016 032C cmp r4, #3
|
||
784 0018 06D0 beq .L73
|
||
898:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint16_t *)OPTCR1_BYTE2_ADDRESS &= (~SectorBank2);
|
||
785 .loc 1 898 7 is_stmt 1 view .LVU207
|
||
899:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
786 .loc 1 899 7 view .LVU208
|
||
787 001a 0E4A ldr r2, .L78
|
||
ARM GAS /tmp/ccYzp9Nl.s page 40
|
||
|
||
|
||
788 001c 538B ldrh r3, [r2, #26]
|
||
789 001e 9BB2 uxth r3, r3
|
||
899:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
790 .loc 1 899 46 is_stmt 0 view .LVU209
|
||
791 0020 23EA0503 bic r3, r3, r5
|
||
792 0024 5383 strh r3, [r2, #26] @ movhi
|
||
793 0026 05E0 b .L75
|
||
794 .L73:
|
||
891:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /*Write protection done on sectors of BANK1*/
|
||
795 .loc 1 891 7 is_stmt 1 view .LVU210
|
||
893:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
796 .loc 1 893 7 view .LVU211
|
||
797 0028 0A4A ldr r2, .L78
|
||
798 002a D38A ldrh r3, [r2, #22]
|
||
799 002c 9BB2 uxth r3, r3
|
||
893:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
800 .loc 1 893 45 is_stmt 0 view .LVU212
|
||
801 002e 23EA0603 bic r3, r3, r6
|
||
802 0032 D382 strh r3, [r2, #22] @ movhi
|
||
803 .L75:
|
||
903:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
804 .loc 1 903 5 is_stmt 1 view .LVU213
|
||
903:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
805 .loc 1 903 8 is_stmt 0 view .LVU214
|
||
806 0034 032C cmp r4, #3
|
||
807 0036 00D0 beq .L77
|
||
808 .L72:
|
||
809 .LVL48:
|
||
918:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
810 .loc 1 918 3 is_stmt 1 view .LVU215
|
||
920:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
811 .loc 1 920 1 is_stmt 0 view .LVU216
|
||
812 0038 70BD pop {r4, r5, r6, pc}
|
||
813 .LVL49:
|
||
814 .L77:
|
||
905:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Wait for last operation to be completed */
|
||
815 .loc 1 905 7 is_stmt 1 view .LVU217
|
||
907:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
816 .loc 1 907 7 view .LVU218
|
||
907:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
817 .loc 1 907 16 is_stmt 0 view .LVU219
|
||
818 003a 4CF25030 movw r0, #50000
|
||
819 003e FFF7FEFF bl FLASH_WaitForLastOperation
|
||
820 .LVL50:
|
||
909:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
821 .loc 1 909 7 is_stmt 1 view .LVU220
|
||
909:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
822 .loc 1 909 10 is_stmt 0 view .LVU221
|
||
823 0042 0028 cmp r0, #0
|
||
824 0044 F8D1 bne .L72
|
||
912:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
825 .loc 1 912 9 is_stmt 1 view .LVU222
|
||
826 0046 034A ldr r2, .L78
|
||
827 0048 538B ldrh r3, [r2, #26]
|
||
828 004a 9BB2 uxth r3, r3
|
||
912:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
829 .loc 1 912 48 is_stmt 0 view .LVU223
|
||
ARM GAS /tmp/ccYzp9Nl.s page 41
|
||
|
||
|
||
830 004c 23EA0503 bic r3, r3, r5
|
||
831 0050 5383 strh r3, [r2, #26] @ movhi
|
||
832 0052 F1E7 b .L72
|
||
833 .L79:
|
||
834 .align 2
|
||
835 .L78:
|
||
836 0054 003C0240 .word 1073888256
|
||
837 .cfi_endproc
|
||
838 .LFE254:
|
||
840 .section .text.FLASH_OB_BootConfig,"ax",%progbits
|
||
841 .align 1
|
||
842 .syntax unified
|
||
843 .thumb
|
||
844 .thumb_func
|
||
846 FLASH_OB_BootConfig:
|
||
847 .LVL51:
|
||
848 .LFB252:
|
||
774:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
849 .loc 1 774 1 is_stmt 1 view -0
|
||
850 .cfi_startproc
|
||
851 @ args = 0, pretend = 0, frame = 0
|
||
852 @ frame_needed = 0, uses_anonymous_args = 0
|
||
774:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
853 .loc 1 774 1 is_stmt 0 view .LVU225
|
||
854 0000 10B5 push {r4, lr}
|
||
855 .LCFI6:
|
||
856 .cfi_def_cfa_offset 8
|
||
857 .cfi_offset 4, -8
|
||
858 .cfi_offset 14, -4
|
||
859 0002 0446 mov r4, r0
|
||
775:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
860 .loc 1 775 3 is_stmt 1 view .LVU226
|
||
861 .LVL52:
|
||
778:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
862 .loc 1 778 3 view .LVU227
|
||
781:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
863 .loc 1 781 3 view .LVU228
|
||
781:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
864 .loc 1 781 12 is_stmt 0 view .LVU229
|
||
865 0004 4CF25030 movw r0, #50000
|
||
866 .LVL53:
|
||
781:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
867 .loc 1 781 12 view .LVU230
|
||
868 0008 FFF7FEFF bl FLASH_WaitForLastOperation
|
||
869 .LVL54:
|
||
783:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
870 .loc 1 783 3 is_stmt 1 view .LVU231
|
||
783:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
871 .loc 1 783 6 is_stmt 0 view .LVU232
|
||
872 000c 38B9 cbnz r0, .L81
|
||
786:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS |= BootConfig;
|
||
873 .loc 1 786 5 is_stmt 1 view .LVU233
|
||
874 000e 044B ldr r3, .L83
|
||
875 0010 1A7D ldrb r2, [r3, #20] @ zero_extendqisi2
|
||
786:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS |= BootConfig;
|
||
876 .loc 1 786 42 is_stmt 0 view .LVU234
|
||
877 0012 02F0EF02 and r2, r2, #239
|
||
ARM GAS /tmp/ccYzp9Nl.s page 42
|
||
|
||
|
||
878 0016 1A75 strb r2, [r3, #20]
|
||
787:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
879 .loc 1 787 5 is_stmt 1 view .LVU235
|
||
880 0018 1A7D ldrb r2, [r3, #20] @ zero_extendqisi2
|
||
787:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
881 .loc 1 787 42 is_stmt 0 view .LVU236
|
||
882 001a 2243 orrs r2, r2, r4
|
||
883 001c 1A75 strb r2, [r3, #20]
|
||
884 .L81:
|
||
790:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
885 .loc 1 790 3 is_stmt 1 view .LVU237
|
||
791:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
886 .loc 1 791 1 is_stmt 0 view .LVU238
|
||
887 001e 10BD pop {r4, pc}
|
||
888 .LVL55:
|
||
889 .L84:
|
||
791:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
890 .loc 1 791 1 view .LVU239
|
||
891 .align 2
|
||
892 .L83:
|
||
893 0020 003C0240 .word 1073888256
|
||
894 .cfi_endproc
|
||
895 .LFE252:
|
||
897 .section .text.HAL_FLASHEx_OBProgram,"ax",%progbits
|
||
898 .align 1
|
||
899 .global HAL_FLASHEx_OBProgram
|
||
900 .syntax unified
|
||
901 .thumb
|
||
902 .thumb_func
|
||
904 HAL_FLASHEx_OBProgram:
|
||
905 .LVL56:
|
||
906 .LFB241:
|
||
282:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_ERROR;
|
||
907 .loc 1 282 1 is_stmt 1 view -0
|
||
908 .cfi_startproc
|
||
909 @ args = 0, pretend = 0, frame = 0
|
||
910 @ frame_needed = 0, uses_anonymous_args = 0
|
||
283:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
911 .loc 1 283 3 view .LVU241
|
||
286:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
912 .loc 1 286 3 view .LVU242
|
||
286:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
913 .loc 1 286 3 view .LVU243
|
||
914 0000 1F4B ldr r3, .L102
|
||
915 0002 1B7E ldrb r3, [r3, #24] @ zero_extendqisi2
|
||
916 0004 012B cmp r3, #1
|
||
917 0006 38D0 beq .L92
|
||
282:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_ERROR;
|
||
918 .loc 1 282 1 is_stmt 0 view .LVU244
|
||
919 0008 10B5 push {r4, lr}
|
||
920 .LCFI7:
|
||
921 .cfi_def_cfa_offset 8
|
||
922 .cfi_offset 4, -8
|
||
923 .cfi_offset 14, -4
|
||
924 000a 0446 mov r4, r0
|
||
286:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
925 .loc 1 286 3 is_stmt 1 discriminator 2 view .LVU245
|
||
ARM GAS /tmp/ccYzp9Nl.s page 43
|
||
|
||
|
||
926 000c 1C4B ldr r3, .L102
|
||
927 000e 0122 movs r2, #1
|
||
928 0010 1A76 strb r2, [r3, #24]
|
||
286:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
929 .loc 1 286 3 discriminator 2 view .LVU246
|
||
289:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
930 .loc 1 289 3 view .LVU247
|
||
292:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
931 .loc 1 292 3 view .LVU248
|
||
292:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
932 .loc 1 292 15 is_stmt 0 view .LVU249
|
||
933 0012 0368 ldr r3, [r0]
|
||
292:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
934 .loc 1 292 6 view .LVU250
|
||
935 0014 13F0010F tst r3, #1
|
||
936 0018 0CD0 beq .L93
|
||
294:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (pOBInit->WRPState == OB_WRPSTATE_ENABLE)
|
||
937 .loc 1 294 5 is_stmt 1 view .LVU251
|
||
295:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
938 .loc 1 295 5 view .LVU252
|
||
295:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
939 .loc 1 295 16 is_stmt 0 view .LVU253
|
||
940 001a 4368 ldr r3, [r0, #4]
|
||
295:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
941 .loc 1 295 8 view .LVU254
|
||
942 001c 9342 cmp r3, r2
|
||
943 001e 04D0 beq .L98
|
||
303:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
944 .loc 1 303 7 is_stmt 1 view .LVU255
|
||
303:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
945 .loc 1 303 16 is_stmt 0 view .LVU256
|
||
946 0020 C168 ldr r1, [r0, #12]
|
||
947 0022 8068 ldr r0, [r0, #8]
|
||
948 .LVL57:
|
||
303:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
949 .loc 1 303 16 view .LVU257
|
||
950 0024 FFF7FEFF bl FLASH_OB_DisableWRP
|
||
951 .LVL58:
|
||
303:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
952 .loc 1 303 16 view .LVU258
|
||
953 0028 05E0 b .L87
|
||
954 .LVL59:
|
||
955 .L98:
|
||
298:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
956 .loc 1 298 7 is_stmt 1 view .LVU259
|
||
298:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
957 .loc 1 298 16 is_stmt 0 view .LVU260
|
||
958 002a C168 ldr r1, [r0, #12]
|
||
959 002c 8068 ldr r0, [r0, #8]
|
||
960 .LVL60:
|
||
298:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
961 .loc 1 298 16 view .LVU261
|
||
962 002e FFF7FEFF bl FLASH_OB_EnableWRP
|
||
963 .LVL61:
|
||
298:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
964 .loc 1 298 16 view .LVU262
|
||
965 0032 00E0 b .L87
|
||
ARM GAS /tmp/ccYzp9Nl.s page 44
|
||
|
||
|
||
966 .LVL62:
|
||
967 .L93:
|
||
283:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
968 .loc 1 283 21 view .LVU263
|
||
969 0034 0120 movs r0, #1
|
||
970 .LVL63:
|
||
971 .L87:
|
||
308:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
972 .loc 1 308 3 is_stmt 1 view .LVU264
|
||
308:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
973 .loc 1 308 15 is_stmt 0 view .LVU265
|
||
974 0036 2368 ldr r3, [r4]
|
||
308:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
975 .loc 1 308 6 view .LVU266
|
||
976 0038 13F0020F tst r3, #2
|
||
977 003c 0BD1 bne .L99
|
||
978 .L89:
|
||
314:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
979 .loc 1 314 3 is_stmt 1 view .LVU267
|
||
314:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
980 .loc 1 314 15 is_stmt 0 view .LVU268
|
||
981 003e 2368 ldr r3, [r4]
|
||
314:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
982 .loc 1 314 6 view .LVU269
|
||
983 0040 13F0040F tst r3, #4
|
||
984 0044 0BD1 bne .L100
|
||
985 .L90:
|
||
322:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
986 .loc 1 322 3 is_stmt 1 view .LVU270
|
||
322:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
987 .loc 1 322 15 is_stmt 0 view .LVU271
|
||
988 0046 2368 ldr r3, [r4]
|
||
322:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
989 .loc 1 322 6 view .LVU272
|
||
990 0048 13F0080F tst r3, #8
|
||
991 004c 11D1 bne .L101
|
||
992 .L91:
|
||
328:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
993 .loc 1 328 3 is_stmt 1 view .LVU273
|
||
328:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
994 .loc 1 328 3 view .LVU274
|
||
995 004e 0C4B ldr r3, .L102
|
||
996 0050 0022 movs r2, #0
|
||
997 0052 1A76 strb r2, [r3, #24]
|
||
328:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
998 .loc 1 328 3 view .LVU275
|
||
330:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
999 .loc 1 330 3 view .LVU276
|
||
331:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1000 .loc 1 331 1 is_stmt 0 view .LVU277
|
||
1001 0054 10BD pop {r4, pc}
|
||
1002 .LVL64:
|
||
1003 .L99:
|
||
310:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1004 .loc 1 310 5 is_stmt 1 view .LVU278
|
||
310:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1005 .loc 1 310 14 is_stmt 0 view .LVU279
|
||
ARM GAS /tmp/ccYzp9Nl.s page 45
|
||
|
||
|
||
1006 0056 207C ldrb r0, [r4, #16] @ zero_extendqisi2
|
||
1007 .LVL65:
|
||
310:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1008 .loc 1 310 14 view .LVU280
|
||
1009 0058 FFF7FEFF bl FLASH_OB_RDP_LevelConfig
|
||
1010 .LVL66:
|
||
310:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1011 .loc 1 310 14 view .LVU281
|
||
1012 005c EFE7 b .L89
|
||
1013 .L100:
|
||
316:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pOBInit->USERConfig & OB_STOP_NO_RST,
|
||
1014 .loc 1 316 5 is_stmt 1 view .LVU282
|
||
316:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pOBInit->USERConfig & OB_STOP_NO_RST,
|
||
1015 .loc 1 316 41 is_stmt 0 view .LVU283
|
||
1016 005e 207E ldrb r0, [r4, #24] @ zero_extendqisi2
|
||
1017 .LVL67:
|
||
316:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pOBInit->USERConfig & OB_STOP_NO_RST,
|
||
1018 .loc 1 316 14 view .LVU284
|
||
1019 0060 00F08002 and r2, r0, #128
|
||
1020 0064 00F04001 and r1, r0, #64
|
||
1021 0068 00F02000 and r0, r0, #32
|
||
1022 006c FFF7FEFF bl FLASH_OB_UserConfig
|
||
1023 .LVL68:
|
||
316:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pOBInit->USERConfig & OB_STOP_NO_RST,
|
||
1024 .loc 1 316 14 view .LVU285
|
||
1025 0070 E9E7 b .L90
|
||
1026 .L101:
|
||
324:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1027 .loc 1 324 5 is_stmt 1 view .LVU286
|
||
324:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1028 .loc 1 324 14 is_stmt 0 view .LVU287
|
||
1029 0072 207D ldrb r0, [r4, #20] @ zero_extendqisi2
|
||
1030 .LVL69:
|
||
324:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1031 .loc 1 324 14 view .LVU288
|
||
1032 0074 FFF7FEFF bl FLASH_OB_BOR_LevelConfig
|
||
1033 .LVL70:
|
||
324:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1034 .loc 1 324 14 view .LVU289
|
||
1035 0078 E9E7 b .L91
|
||
1036 .LVL71:
|
||
1037 .L92:
|
||
1038 .LCFI8:
|
||
1039 .cfi_def_cfa_offset 0
|
||
1040 .cfi_restore 4
|
||
1041 .cfi_restore 14
|
||
286:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1042 .loc 1 286 3 discriminator 1 view .LVU290
|
||
1043 007a 0220 movs r0, #2
|
||
1044 .LVL72:
|
||
331:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1045 .loc 1 331 1 view .LVU291
|
||
1046 007c 7047 bx lr
|
||
1047 .L103:
|
||
1048 007e 00BF .align 2
|
||
1049 .L102:
|
||
1050 0080 00000000 .word pFlash
|
||
ARM GAS /tmp/ccYzp9Nl.s page 46
|
||
|
||
|
||
1051 .cfi_endproc
|
||
1052 .LFE241:
|
||
1054 .section .text.HAL_FLASHEx_OBGetConfig,"ax",%progbits
|
||
1055 .align 1
|
||
1056 .global HAL_FLASHEx_OBGetConfig
|
||
1057 .syntax unified
|
||
1058 .thumb
|
||
1059 .thumb_func
|
||
1061 HAL_FLASHEx_OBGetConfig:
|
||
1062 .LVL73:
|
||
1063 .LFB242:
|
||
341:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pOBInit->OptionType = OPTIONBYTE_WRP | OPTIONBYTE_RDP | OPTIONBYTE_USER | OPTIONBYTE_BOR;
|
||
1064 .loc 1 341 1 is_stmt 1 view -0
|
||
1065 .cfi_startproc
|
||
1066 @ args = 0, pretend = 0, frame = 0
|
||
1067 @ frame_needed = 0, uses_anonymous_args = 0
|
||
341:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pOBInit->OptionType = OPTIONBYTE_WRP | OPTIONBYTE_RDP | OPTIONBYTE_USER | OPTIONBYTE_BOR;
|
||
1068 .loc 1 341 1 is_stmt 0 view .LVU293
|
||
1069 0000 10B5 push {r4, lr}
|
||
1070 .LCFI9:
|
||
1071 .cfi_def_cfa_offset 8
|
||
1072 .cfi_offset 4, -8
|
||
1073 .cfi_offset 14, -4
|
||
1074 0002 0446 mov r4, r0
|
||
342:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1075 .loc 1 342 3 is_stmt 1 view .LVU294
|
||
342:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1076 .loc 1 342 23 is_stmt 0 view .LVU295
|
||
1077 0004 0F23 movs r3, #15
|
||
1078 0006 0360 str r3, [r0]
|
||
345:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1079 .loc 1 345 3 is_stmt 1 view .LVU296
|
||
345:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1080 .loc 1 345 34 is_stmt 0 view .LVU297
|
||
1081 0008 FFF7FEFF bl FLASH_OB_GetWRP
|
||
1082 .LVL74:
|
||
345:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1083 .loc 1 345 22 discriminator 1 view .LVU298
|
||
1084 000c A060 str r0, [r4, #8]
|
||
348:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1085 .loc 1 348 3 is_stmt 1 view .LVU299
|
||
348:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1086 .loc 1 348 33 is_stmt 0 view .LVU300
|
||
1087 000e FFF7FEFF bl FLASH_OB_GetRDP
|
||
1088 .LVL75:
|
||
348:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1089 .loc 1 348 21 discriminator 1 view .LVU301
|
||
1090 0012 2061 str r0, [r4, #16]
|
||
351:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1091 .loc 1 351 3 is_stmt 1 view .LVU302
|
||
351:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1092 .loc 1 351 34 is_stmt 0 view .LVU303
|
||
1093 0014 FFF7FEFF bl FLASH_OB_GetUser
|
||
1094 .LVL76:
|
||
351:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1095 .loc 1 351 23 discriminator 1 view .LVU304
|
||
1096 0018 2076 strb r0, [r4, #24]
|
||
ARM GAS /tmp/ccYzp9Nl.s page 47
|
||
|
||
|
||
354:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1097 .loc 1 354 3 is_stmt 1 view .LVU305
|
||
354:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1098 .loc 1 354 33 is_stmt 0 view .LVU306
|
||
1099 001a FFF7FEFF bl FLASH_OB_GetBOR
|
||
1100 .LVL77:
|
||
354:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1101 .loc 1 354 21 discriminator 1 view .LVU307
|
||
1102 001e 6061 str r0, [r4, #20]
|
||
355:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1103 .loc 1 355 1 view .LVU308
|
||
1104 0020 10BD pop {r4, pc}
|
||
355:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1105 .loc 1 355 1 view .LVU309
|
||
1106 .cfi_endproc
|
||
1107 .LFE242:
|
||
1109 .section .text.HAL_FLASHEx_AdvOBProgram,"ax",%progbits
|
||
1110 .align 1
|
||
1111 .global HAL_FLASHEx_AdvOBProgram
|
||
1112 .syntax unified
|
||
1113 .thumb
|
||
1114 .thumb_func
|
||
1116 HAL_FLASHEx_AdvOBProgram:
|
||
1117 .LVL78:
|
||
1118 .LFB243:
|
||
370:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_ERROR;
|
||
1119 .loc 1 370 1 is_stmt 1 view -0
|
||
1120 .cfi_startproc
|
||
1121 @ args = 0, pretend = 0, frame = 0
|
||
1122 @ frame_needed = 0, uses_anonymous_args = 0
|
||
370:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_ERROR;
|
||
1123 .loc 1 370 1 is_stmt 0 view .LVU311
|
||
1124 0000 10B5 push {r4, lr}
|
||
1125 .LCFI10:
|
||
1126 .cfi_def_cfa_offset 8
|
||
1127 .cfi_offset 4, -8
|
||
1128 .cfi_offset 14, -4
|
||
1129 0002 0446 mov r4, r0
|
||
371:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1130 .loc 1 371 3 is_stmt 1 view .LVU312
|
||
1131 .LVL79:
|
||
374:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1132 .loc 1 374 3 view .LVU313
|
||
377:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1133 .loc 1 377 3 view .LVU314
|
||
377:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1134 .loc 1 377 19 is_stmt 0 view .LVU315
|
||
1135 0004 0368 ldr r3, [r0]
|
||
377:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1136 .loc 1 377 6 view .LVU316
|
||
1137 0006 13F0010F tst r3, #1
|
||
1138 000a 0ED0 beq .L110
|
||
380:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if ((pAdvOBInit->PCROPState) == OB_PCROP_STATE_ENABLE)
|
||
1139 .loc 1 380 5 is_stmt 1 view .LVU317
|
||
381:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1140 .loc 1 381 5 view .LVU318
|
||
381:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
ARM GAS /tmp/ccYzp9Nl.s page 48
|
||
|
||
|
||
1141 .loc 1 381 20 is_stmt 0 view .LVU319
|
||
1142 000c 4368 ldr r3, [r0, #4]
|
||
381:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1143 .loc 1 381 8 view .LVU320
|
||
1144 000e 012B cmp r3, #1
|
||
1145 0010 05D0 beq .L112
|
||
401:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F401xC || STM32F401xE || STM32F410xx || STM32F411xE || STM32F446xx || STM32F412Zx ||
|
||
1146 .loc 1 401 7 is_stmt 1 view .LVU321
|
||
401:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F401xC || STM32F401xE || STM32F410xx || STM32F411xE || STM32F446xx || STM32F412Zx ||
|
||
1147 .loc 1 401 16 is_stmt 0 view .LVU322
|
||
1148 0012 8268 ldr r2, [r0, #8]
|
||
1149 0014 C189 ldrh r1, [r0, #14]
|
||
1150 0016 8089 ldrh r0, [r0, #12]
|
||
1151 .LVL80:
|
||
401:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F401xC || STM32F401xE || STM32F410xx || STM32F411xE || STM32F446xx || STM32F412Zx ||
|
||
1152 .loc 1 401 16 view .LVU323
|
||
1153 0018 FFF7FEFF bl FLASH_OB_DisablePCROP
|
||
1154 .LVL81:
|
||
401:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F401xC || STM32F401xE || STM32F410xx || STM32F411xE || STM32F446xx || STM32F412Zx ||
|
||
1155 .loc 1 401 16 view .LVU324
|
||
1156 001c 06E0 b .L107
|
||
1157 .LVL82:
|
||
1158 .L112:
|
||
389:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F401xC || STM32F401xE || STM32F410xx || STM32F411xE || STM32F446xx || STM32F412Zx ||
|
||
1159 .loc 1 389 7 is_stmt 1 view .LVU325
|
||
389:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F401xC || STM32F401xE || STM32F410xx || STM32F411xE || STM32F446xx || STM32F412Zx ||
|
||
1160 .loc 1 389 16 is_stmt 0 view .LVU326
|
||
1161 001e 8268 ldr r2, [r0, #8]
|
||
1162 0020 C189 ldrh r1, [r0, #14]
|
||
1163 0022 8089 ldrh r0, [r0, #12]
|
||
1164 .LVL83:
|
||
389:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F401xC || STM32F401xE || STM32F410xx || STM32F411xE || STM32F446xx || STM32F412Zx ||
|
||
1165 .loc 1 389 16 view .LVU327
|
||
1166 0024 FFF7FEFF bl FLASH_OB_EnablePCROP
|
||
1167 .LVL84:
|
||
389:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F401xC || STM32F401xE || STM32F410xx || STM32F411xE || STM32F446xx || STM32F412Zx ||
|
||
1168 .loc 1 389 16 view .LVU328
|
||
1169 0028 00E0 b .L107
|
||
1170 .LVL85:
|
||
1171 .L110:
|
||
371:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1172 .loc 1 371 21 view .LVU329
|
||
1173 002a 0120 movs r0, #1
|
||
1174 .LVL86:
|
||
1175 .L107:
|
||
409:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1176 .loc 1 409 3 is_stmt 1 view .LVU330
|
||
409:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1177 .loc 1 409 19 is_stmt 0 view .LVU331
|
||
1178 002c 2368 ldr r3, [r4]
|
||
409:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1179 .loc 1 409 6 view .LVU332
|
||
1180 002e 13F0020F tst r3, #2
|
||
1181 0032 00D1 bne .L113
|
||
1182 .L109:
|
||
415:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1183 .loc 1 415 3 is_stmt 1 view .LVU333
|
||
ARM GAS /tmp/ccYzp9Nl.s page 49
|
||
|
||
|
||
416:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1184 .loc 1 416 1 is_stmt 0 view .LVU334
|
||
1185 0034 10BD pop {r4, pc}
|
||
1186 .LVL87:
|
||
1187 .L113:
|
||
411:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1188 .loc 1 411 5 is_stmt 1 view .LVU335
|
||
411:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1189 .loc 1 411 14 is_stmt 0 view .LVU336
|
||
1190 0036 207C ldrb r0, [r4, #16] @ zero_extendqisi2
|
||
1191 .LVL88:
|
||
411:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1192 .loc 1 411 14 view .LVU337
|
||
1193 0038 FFF7FEFF bl FLASH_OB_BootConfig
|
||
1194 .LVL89:
|
||
411:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1195 .loc 1 411 14 view .LVU338
|
||
1196 003c FAE7 b .L109
|
||
1197 .cfi_endproc
|
||
1198 .LFE243:
|
||
1200 .section .text.HAL_FLASHEx_AdvOBGetConfig,"ax",%progbits
|
||
1201 .align 1
|
||
1202 .global HAL_FLASHEx_AdvOBGetConfig
|
||
1203 .syntax unified
|
||
1204 .thumb
|
||
1205 .thumb_func
|
||
1207 HAL_FLASHEx_AdvOBGetConfig:
|
||
1208 .LVL90:
|
||
1209 .LFB244:
|
||
426:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F410Tx) || defined(STM32F410Cx) ||
|
||
1210 .loc 1 426 1 is_stmt 1 view -0
|
||
1211 .cfi_startproc
|
||
1212 @ args = 0, pretend = 0, frame = 0
|
||
1213 @ frame_needed = 0, uses_anonymous_args = 0
|
||
1214 @ link register save eliminated.
|
||
434:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1215 .loc 1 434 3 view .LVU340
|
||
434:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1216 .loc 1 434 31 is_stmt 0 view .LVU341
|
||
1217 0000 034B ldr r3, .L115
|
||
1218 0002 DA8A ldrh r2, [r3, #22]
|
||
434:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1219 .loc 1 434 28 view .LVU342
|
||
1220 0004 8281 strh r2, [r0, #12] @ movhi
|
||
437:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1221 .loc 1 437 3 is_stmt 1 view .LVU343
|
||
437:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1222 .loc 1 437 31 is_stmt 0 view .LVU344
|
||
1223 0006 5A8B ldrh r2, [r3, #26]
|
||
437:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1224 .loc 1 437 28 view .LVU345
|
||
1225 0008 C281 strh r2, [r0, #14] @ movhi
|
||
440:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F401xC || STM32F401xE || STM32F410xx || STM32F411xE || STM32F446xx || STM32F412Zx ||
|
||
1226 .loc 1 440 3 is_stmt 1 view .LVU346
|
||
440:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F401xC || STM32F401xE || STM32F410xx || STM32F411xE || STM32F446xx || STM32F412Zx ||
|
||
1227 .loc 1 440 28 is_stmt 0 view .LVU347
|
||
1228 000a 1B7D ldrb r3, [r3, #20] @ zero_extendqisi2
|
||
ARM GAS /tmp/ccYzp9Nl.s page 50
|
||
|
||
|
||
440:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F401xC || STM32F401xE || STM32F410xx || STM32F411xE || STM32F446xx || STM32F412Zx ||
|
||
1229 .loc 1 440 26 view .LVU348
|
||
1230 000c 0374 strb r3, [r0, #16]
|
||
443:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1231 .loc 1 443 1 view .LVU349
|
||
1232 000e 7047 bx lr
|
||
1233 .L116:
|
||
1234 .align 2
|
||
1235 .L115:
|
||
1236 0010 003C0240 .word 1073888256
|
||
1237 .cfi_endproc
|
||
1238 .LFE244:
|
||
1240 .section .text.HAL_FLASHEx_OB_SelectPCROP,"ax",%progbits
|
||
1241 .align 1
|
||
1242 .global HAL_FLASHEx_OB_SelectPCROP
|
||
1243 .syntax unified
|
||
1244 .thumb
|
||
1245 .thumb_func
|
||
1247 HAL_FLASHEx_OB_SelectPCROP:
|
||
1248 .LFB245:
|
||
458:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** uint8_t optiontmp;
|
||
1249 .loc 1 458 1 is_stmt 1 view -0
|
||
1250 .cfi_startproc
|
||
1251 @ args = 0, pretend = 0, frame = 0
|
||
1252 @ frame_needed = 0, uses_anonymous_args = 0
|
||
1253 @ link register save eliminated.
|
||
459:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1254 .loc 1 459 3 view .LVU351
|
||
462:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1255 .loc 1 462 3 view .LVU352
|
||
462:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1256 .loc 1 462 64 is_stmt 0 view .LVU353
|
||
1257 0000 034A ldr r2, .L118
|
||
1258 0002 D37D ldrb r3, [r2, #23] @ zero_extendqisi2
|
||
1259 .LVL91:
|
||
465:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1260 .loc 1 465 3 is_stmt 1 view .LVU354
|
||
465:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1261 .loc 1 465 42 is_stmt 0 view .LVU355
|
||
1262 0004 43F08003 orr r3, r3, #128
|
||
1263 .LVL92:
|
||
465:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1264 .loc 1 465 40 view .LVU356
|
||
1265 0008 D375 strb r3, [r2, #23]
|
||
467:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1266 .loc 1 467 3 is_stmt 1 view .LVU357
|
||
468:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1267 .loc 1 468 1 is_stmt 0 view .LVU358
|
||
1268 000a 0020 movs r0, #0
|
||
1269 000c 7047 bx lr
|
||
1270 .L119:
|
||
1271 000e 00BF .align 2
|
||
1272 .L118:
|
||
1273 0010 003C0240 .word 1073888256
|
||
1274 .cfi_endproc
|
||
1275 .LFE245:
|
||
1277 .section .text.HAL_FLASHEx_OB_DeSelectPCROP,"ax",%progbits
|
||
ARM GAS /tmp/ccYzp9Nl.s page 51
|
||
|
||
|
||
1278 .align 1
|
||
1279 .global HAL_FLASHEx_OB_DeSelectPCROP
|
||
1280 .syntax unified
|
||
1281 .thumb
|
||
1282 .thumb_func
|
||
1284 HAL_FLASHEx_OB_DeSelectPCROP:
|
||
1285 .LFB246:
|
||
483:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** uint8_t optiontmp;
|
||
1286 .loc 1 483 1 is_stmt 1 view -0
|
||
1287 .cfi_startproc
|
||
1288 @ args = 0, pretend = 0, frame = 0
|
||
1289 @ frame_needed = 0, uses_anonymous_args = 0
|
||
1290 @ link register save eliminated.
|
||
484:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1291 .loc 1 484 3 view .LVU360
|
||
487:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1292 .loc 1 487 3 view .LVU361
|
||
487:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1293 .loc 1 487 64 is_stmt 0 view .LVU362
|
||
1294 0000 034A ldr r2, .L121
|
||
1295 0002 D37D ldrb r3, [r2, #23] @ zero_extendqisi2
|
||
487:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1296 .loc 1 487 13 view .LVU363
|
||
1297 0004 03F07F03 and r3, r3, #127
|
||
1298 .LVL93:
|
||
490:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1299 .loc 1 490 3 is_stmt 1 view .LVU364
|
||
490:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1300 .loc 1 490 40 is_stmt 0 view .LVU365
|
||
1301 0008 D375 strb r3, [r2, #23]
|
||
492:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1302 .loc 1 492 3 is_stmt 1 view .LVU366
|
||
493:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F401xC || STM32F401xE ||
|
||
1303 .loc 1 493 1 is_stmt 0 view .LVU367
|
||
1304 000a 0020 movs r0, #0
|
||
1305 000c 7047 bx lr
|
||
1306 .L122:
|
||
1307 000e 00BF .align 2
|
||
1308 .L121:
|
||
1309 0010 003C0240 .word 1073888256
|
||
1310 .cfi_endproc
|
||
1311 .LFE246:
|
||
1313 .section .text.HAL_FLASHEx_OB_GetBank2WRP,"ax",%progbits
|
||
1314 .align 1
|
||
1315 .global HAL_FLASHEx_OB_GetBank2WRP
|
||
1316 .syntax unified
|
||
1317 .thumb
|
||
1318 .thumb_func
|
||
1320 HAL_FLASHEx_OB_GetBank2WRP:
|
||
1321 .LFB247:
|
||
505:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Return the FLASH write protection Register value */
|
||
1322 .loc 1 505 1 is_stmt 1 view -0
|
||
1323 .cfi_startproc
|
||
1324 @ args = 0, pretend = 0, frame = 0
|
||
1325 @ frame_needed = 0, uses_anonymous_args = 0
|
||
1326 @ link register save eliminated.
|
||
507:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
ARM GAS /tmp/ccYzp9Nl.s page 52
|
||
|
||
|
||
1327 .loc 1 507 3 view .LVU369
|
||
507:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1328 .loc 1 507 11 is_stmt 0 view .LVU370
|
||
1329 0000 014B ldr r3, .L124
|
||
1330 0002 588B ldrh r0, [r3, #26]
|
||
508:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** #endif /* STM32F427xx || STM32F437xx || STM32F429xx || STM32F439xx || STM32F469xx || STM32F479xx */
|
||
1331 .loc 1 508 1 view .LVU371
|
||
1332 0004 80B2 uxth r0, r0
|
||
1333 0006 7047 bx lr
|
||
1334 .L125:
|
||
1335 .align 2
|
||
1336 .L124:
|
||
1337 0008 003C0240 .word 1073888256
|
||
1338 .cfi_endproc
|
||
1339 .LFE247:
|
||
1341 .section .text.FLASH_Erase_Sector,"ax",%progbits
|
||
1342 .align 1
|
||
1343 .global FLASH_Erase_Sector
|
||
1344 .syntax unified
|
||
1345 .thumb
|
||
1346 .thumb_func
|
||
1348 FLASH_Erase_Sector:
|
||
1349 .LVL94:
|
||
1350 .LFB249:
|
||
582:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** uint32_t tmp_psize = 0U;
|
||
1351 .loc 1 582 1 is_stmt 1 view -0
|
||
1352 .cfi_startproc
|
||
1353 @ args = 0, pretend = 0, frame = 0
|
||
1354 @ frame_needed = 0, uses_anonymous_args = 0
|
||
1355 @ link register save eliminated.
|
||
583:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1356 .loc 1 583 3 view .LVU373
|
||
586:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** assert_param(IS_VOLTAGERANGE(VoltageRange));
|
||
1357 .loc 1 586 3 view .LVU374
|
||
587:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1358 .loc 1 587 3 view .LVU375
|
||
589:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1359 .loc 1 589 3 view .LVU376
|
||
1360 0000 0129 cmp r1, #1
|
||
1361 0002 05D0 beq .L129
|
||
1362 0004 0229 cmp r1, #2
|
||
1363 0006 06D0 beq .L130
|
||
1364 0008 39B1 cbz r1, .L127
|
||
582:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** uint32_t tmp_psize = 0U;
|
||
1365 .loc 1 582 1 is_stmt 0 view .LVU377
|
||
1366 000a 4FF44071 mov r1, #768
|
||
1367 .LVL95:
|
||
582:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** uint32_t tmp_psize = 0U;
|
||
1368 .loc 1 582 1 view .LVU378
|
||
1369 000e 04E0 b .L127
|
||
1370 .LVL96:
|
||
1371 .L129:
|
||
582:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** uint32_t tmp_psize = 0U;
|
||
1372 .loc 1 582 1 view .LVU379
|
||
1373 0010 4FF48071 mov r1, #256
|
||
1374 .LVL97:
|
||
582:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** uint32_t tmp_psize = 0U;
|
||
ARM GAS /tmp/ccYzp9Nl.s page 53
|
||
|
||
|
||
1375 .loc 1 582 1 view .LVU380
|
||
1376 0014 01E0 b .L127
|
||
1377 .LVL98:
|
||
1378 .L130:
|
||
582:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** uint32_t tmp_psize = 0U;
|
||
1379 .loc 1 582 1 view .LVU381
|
||
1380 0016 4FF40071 mov r1, #512
|
||
1381 .LVL99:
|
||
1382 .L127:
|
||
607:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1383 .loc 1 607 3 is_stmt 1 view .LVU382
|
||
607:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1384 .loc 1 607 6 is_stmt 0 view .LVU383
|
||
1385 001a 0B28 cmp r0, #11
|
||
1386 001c 00D9 bls .L128
|
||
609:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1387 .loc 1 609 5 is_stmt 1 view .LVU384
|
||
609:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1388 .loc 1 609 12 is_stmt 0 view .LVU385
|
||
1389 001e 0430 adds r0, r0, #4
|
||
1390 .LVL100:
|
||
1391 .L128:
|
||
612:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH->CR |= tmp_psize;
|
||
1392 .loc 1 612 3 is_stmt 1 view .LVU386
|
||
1393 0020 0B4B ldr r3, .L132
|
||
1394 0022 1A69 ldr r2, [r3, #16]
|
||
1395 0024 22F44072 bic r2, r2, #768
|
||
1396 0028 1A61 str r2, [r3, #16]
|
||
613:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_SNB);
|
||
1397 .loc 1 613 3 view .LVU387
|
||
613:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_SNB);
|
||
1398 .loc 1 613 8 is_stmt 0 view .LVU388
|
||
1399 002a 1A69 ldr r2, [r3, #16]
|
||
613:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_SNB);
|
||
1400 .loc 1 613 13 view .LVU389
|
||
1401 002c 0A43 orrs r2, r2, r1
|
||
1402 002e 1A61 str r2, [r3, #16]
|
||
614:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH->CR |= FLASH_CR_SER | (Sector << FLASH_CR_SNB_Pos);
|
||
1403 .loc 1 614 3 is_stmt 1 view .LVU390
|
||
1404 0030 1A69 ldr r2, [r3, #16]
|
||
1405 0032 22F0F802 bic r2, r2, #248
|
||
1406 0036 1A61 str r2, [r3, #16]
|
||
615:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH->CR |= FLASH_CR_STRT;
|
||
1407 .loc 1 615 3 view .LVU391
|
||
615:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH->CR |= FLASH_CR_STRT;
|
||
1408 .loc 1 615 8 is_stmt 0 view .LVU392
|
||
1409 0038 1A69 ldr r2, [r3, #16]
|
||
615:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH->CR |= FLASH_CR_STRT;
|
||
1410 .loc 1 615 13 view .LVU393
|
||
1411 003a 42EAC002 orr r2, r2, r0, lsl #3
|
||
1412 003e 42F00202 orr r2, r2, #2
|
||
1413 0042 1A61 str r2, [r3, #16]
|
||
616:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1414 .loc 1 616 3 is_stmt 1 view .LVU394
|
||
616:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1415 .loc 1 616 8 is_stmt 0 view .LVU395
|
||
1416 0044 1A69 ldr r2, [r3, #16]
|
||
ARM GAS /tmp/ccYzp9Nl.s page 54
|
||
|
||
|
||
616:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1417 .loc 1 616 13 view .LVU396
|
||
1418 0046 42F48032 orr r2, r2, #65536
|
||
1419 004a 1A61 str r2, [r3, #16]
|
||
617:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1420 .loc 1 617 1 view .LVU397
|
||
1421 004c 7047 bx lr
|
||
1422 .L133:
|
||
1423 004e 00BF .align 2
|
||
1424 .L132:
|
||
1425 0050 003C0240 .word 1073888256
|
||
1426 .cfi_endproc
|
||
1427 .LFE249:
|
||
1429 .section .text.HAL_FLASHEx_Erase_IT,"ax",%progbits
|
||
1430 .align 1
|
||
1431 .global HAL_FLASHEx_Erase_IT
|
||
1432 .syntax unified
|
||
1433 .thumb
|
||
1434 .thumb_func
|
||
1436 HAL_FLASHEx_Erase_IT:
|
||
1437 .LVL101:
|
||
1438 .LFB240:
|
||
232:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
1439 .loc 1 232 1 is_stmt 1 view -0
|
||
1440 .cfi_startproc
|
||
1441 @ args = 0, pretend = 0, frame = 0
|
||
1442 @ frame_needed = 0, uses_anonymous_args = 0
|
||
232:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status = HAL_OK;
|
||
1443 .loc 1 232 1 is_stmt 0 view .LVU399
|
||
1444 0000 08B5 push {r3, lr}
|
||
1445 .LCFI11:
|
||
1446 .cfi_def_cfa_offset 8
|
||
1447 .cfi_offset 3, -8
|
||
1448 .cfi_offset 14, -4
|
||
233:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1449 .loc 1 233 3 is_stmt 1 view .LVU400
|
||
1450 .LVL102:
|
||
236:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1451 .loc 1 236 3 view .LVU401
|
||
239:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1452 .loc 1 239 3 view .LVU402
|
||
1453 0002 124B ldr r3, .L139
|
||
1454 0004 1A69 ldr r2, [r3, #16]
|
||
1455 0006 42F08072 orr r2, r2, #16777216
|
||
1456 000a 1A61 str r2, [r3, #16]
|
||
242:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1457 .loc 1 242 3 view .LVU403
|
||
1458 000c 1A69 ldr r2, [r3, #16]
|
||
1459 000e 42F00072 orr r2, r2, #33554432
|
||
1460 0012 1A61 str r2, [r3, #16]
|
||
245:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH_FLAG_PGAERR | FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR);
|
||
1461 .loc 1 245 3 view .LVU404
|
||
1462 0014 F322 movs r2, #243
|
||
1463 0016 DA60 str r2, [r3, #12]
|
||
248:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1464 .loc 1 248 3 view .LVU405
|
||
248:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
ARM GAS /tmp/ccYzp9Nl.s page 55
|
||
|
||
|
||
1465 .loc 1 248 17 is_stmt 0 view .LVU406
|
||
1466 0018 0368 ldr r3, [r0]
|
||
248:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1467 .loc 1 248 6 view .LVU407
|
||
1468 001a 012B cmp r3, #1
|
||
1469 001c 0DD0 beq .L138
|
||
260:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1470 .loc 1 260 5 is_stmt 1 view .LVU408
|
||
262:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pFlash.NbSectorsToErase = pEraseInit->NbSectors;
|
||
1471 .loc 1 262 5 view .LVU409
|
||
262:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pFlash.NbSectorsToErase = pEraseInit->NbSectors;
|
||
1472 .loc 1 262 29 is_stmt 0 view .LVU410
|
||
1473 001e 0C4B ldr r3, .L139+4
|
||
1474 0020 0122 movs r2, #1
|
||
1475 0022 1A70 strb r2, [r3]
|
||
263:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pFlash.Sector = pEraseInit->Sector;
|
||
1476 .loc 1 263 5 is_stmt 1 view .LVU411
|
||
263:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pFlash.Sector = pEraseInit->Sector;
|
||
1477 .loc 1 263 41 is_stmt 0 view .LVU412
|
||
1478 0024 C268 ldr r2, [r0, #12]
|
||
263:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pFlash.Sector = pEraseInit->Sector;
|
||
1479 .loc 1 263 29 view .LVU413
|
||
1480 0026 5A60 str r2, [r3, #4]
|
||
264:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pFlash.VoltageForErase = (uint8_t)pEraseInit->VoltageRange;
|
||
1481 .loc 1 264 5 is_stmt 1 view .LVU414
|
||
264:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pFlash.VoltageForErase = (uint8_t)pEraseInit->VoltageRange;
|
||
1482 .loc 1 264 31 is_stmt 0 view .LVU415
|
||
1483 0028 8268 ldr r2, [r0, #8]
|
||
264:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pFlash.VoltageForErase = (uint8_t)pEraseInit->VoltageRange;
|
||
1484 .loc 1 264 19 view .LVU416
|
||
1485 002a DA60 str r2, [r3, #12]
|
||
265:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1486 .loc 1 265 5 is_stmt 1 view .LVU417
|
||
265:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1487 .loc 1 265 30 is_stmt 0 view .LVU418
|
||
1488 002c 017C ldrb r1, [r0, #16] @ zero_extendqisi2
|
||
265:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1489 .loc 1 265 28 view .LVU419
|
||
1490 002e 1972 strb r1, [r3, #8]
|
||
268:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1491 .loc 1 268 5 is_stmt 1 view .LVU420
|
||
1492 0030 8068 ldr r0, [r0, #8]
|
||
1493 .LVL103:
|
||
268:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1494 .loc 1 268 5 is_stmt 0 view .LVU421
|
||
1495 0032 FFF7FEFF bl FLASH_Erase_Sector
|
||
1496 .LVL104:
|
||
1497 .L136:
|
||
271:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1498 .loc 1 271 3 is_stmt 1 view .LVU422
|
||
272:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1499 .loc 1 272 1 is_stmt 0 view .LVU423
|
||
1500 0036 0020 movs r0, #0
|
||
1501 0038 08BD pop {r3, pc}
|
||
1502 .LVL105:
|
||
1503 .L138:
|
||
251:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pFlash.Bank = pEraseInit->Banks;
|
||
ARM GAS /tmp/ccYzp9Nl.s page 56
|
||
|
||
|
||
1504 .loc 1 251 5 is_stmt 1 view .LVU424
|
||
251:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** pFlash.Bank = pEraseInit->Banks;
|
||
1505 .loc 1 251 29 is_stmt 0 view .LVU425
|
||
1506 003a 054B ldr r3, .L139+4
|
||
1507 003c 0222 movs r2, #2
|
||
1508 003e 1A70 strb r2, [r3]
|
||
252:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH_MassErase((uint8_t) pEraseInit->VoltageRange, pEraseInit->Banks);
|
||
1509 .loc 1 252 5 is_stmt 1 view .LVU426
|
||
252:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH_MassErase((uint8_t) pEraseInit->VoltageRange, pEraseInit->Banks);
|
||
1510 .loc 1 252 29 is_stmt 0 view .LVU427
|
||
1511 0040 4168 ldr r1, [r0, #4]
|
||
252:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** FLASH_MassErase((uint8_t) pEraseInit->VoltageRange, pEraseInit->Banks);
|
||
1512 .loc 1 252 17 view .LVU428
|
||
1513 0042 1961 str r1, [r3, #16]
|
||
253:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1514 .loc 1 253 5 is_stmt 1 view .LVU429
|
||
1515 0044 007C ldrb r0, [r0, #16] @ zero_extendqisi2
|
||
1516 .LVL106:
|
||
253:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1517 .loc 1 253 5 is_stmt 0 view .LVU430
|
||
1518 0046 FFF7FEFF bl FLASH_MassErase
|
||
1519 .LVL107:
|
||
1520 004a F4E7 b .L136
|
||
1521 .L140:
|
||
1522 .align 2
|
||
1523 .L139:
|
||
1524 004c 003C0240 .word 1073888256
|
||
1525 0050 00000000 .word pFlash
|
||
1526 .cfi_endproc
|
||
1527 .LFE240:
|
||
1529 .section .text.FLASH_FlushCaches,"ax",%progbits
|
||
1530 .align 1
|
||
1531 .global FLASH_FlushCaches
|
||
1532 .syntax unified
|
||
1533 .thumb
|
||
1534 .thumb_func
|
||
1536 FLASH_FlushCaches:
|
||
1537 .LFB262:
|
||
1301:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1302:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /**
|
||
1303:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @brief Flush the instruction and data caches
|
||
1304:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** * @retval None
|
||
1305:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** */
|
||
1306:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** void FLASH_FlushCaches(void)
|
||
1307:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1538 .loc 1 1307 1 is_stmt 1 view -0
|
||
1539 .cfi_startproc
|
||
1540 @ args = 0, pretend = 0, frame = 0
|
||
1541 @ frame_needed = 0, uses_anonymous_args = 0
|
||
1542 @ link register save eliminated.
|
||
1308:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Flush instruction cache */
|
||
1309:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (READ_BIT(FLASH->ACR, FLASH_ACR_ICEN) != RESET)
|
||
1543 .loc 1 1309 3 view .LVU432
|
||
1544 .loc 1 1309 7 is_stmt 0 view .LVU433
|
||
1545 0000 164B ldr r3, .L144
|
||
1546 0002 1B68 ldr r3, [r3]
|
||
1547 .loc 1 1309 6 view .LVU434
|
||
ARM GAS /tmp/ccYzp9Nl.s page 57
|
||
|
||
|
||
1548 0004 13F4007F tst r3, #512
|
||
1549 0008 10D0 beq .L142
|
||
1310:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1311:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Disable instruction cache */
|
||
1312:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** __HAL_FLASH_INSTRUCTION_CACHE_DISABLE();
|
||
1550 .loc 1 1312 5 is_stmt 1 view .LVU435
|
||
1551 000a 144B ldr r3, .L144
|
||
1552 000c 1A68 ldr r2, [r3]
|
||
1553 000e 22F40072 bic r2, r2, #512
|
||
1554 0012 1A60 str r2, [r3]
|
||
1313:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Reset instruction cache */
|
||
1314:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** __HAL_FLASH_INSTRUCTION_CACHE_RESET();
|
||
1555 .loc 1 1314 5 view .LVU436
|
||
1556 .loc 1 1314 5 view .LVU437
|
||
1557 0014 1A68 ldr r2, [r3]
|
||
1558 0016 42F40062 orr r2, r2, #2048
|
||
1559 001a 1A60 str r2, [r3]
|
||
1560 .loc 1 1314 5 view .LVU438
|
||
1561 001c 1A68 ldr r2, [r3]
|
||
1562 001e 22F40062 bic r2, r2, #2048
|
||
1563 0022 1A60 str r2, [r3]
|
||
1564 .loc 1 1314 5 view .LVU439
|
||
1315:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Enable instruction cache */
|
||
1316:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** __HAL_FLASH_INSTRUCTION_CACHE_ENABLE();
|
||
1565 .loc 1 1316 5 view .LVU440
|
||
1566 0024 1A68 ldr r2, [r3]
|
||
1567 0026 42F40072 orr r2, r2, #512
|
||
1568 002a 1A60 str r2, [r3]
|
||
1569 .L142:
|
||
1317:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1318:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1319:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Flush data cache */
|
||
1320:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** if (READ_BIT(FLASH->ACR, FLASH_ACR_DCEN) != RESET)
|
||
1570 .loc 1 1320 3 view .LVU441
|
||
1571 .loc 1 1320 7 is_stmt 0 view .LVU442
|
||
1572 002c 0B4B ldr r3, .L144
|
||
1573 002e 1B68 ldr r3, [r3]
|
||
1574 .loc 1 1320 6 view .LVU443
|
||
1575 0030 13F4806F tst r3, #1024
|
||
1576 0034 10D0 beq .L141
|
||
1321:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1322:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Disable data cache */
|
||
1323:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** __HAL_FLASH_DATA_CACHE_DISABLE();
|
||
1577 .loc 1 1323 5 is_stmt 1 view .LVU444
|
||
1578 0036 094B ldr r3, .L144
|
||
1579 0038 1A68 ldr r2, [r3]
|
||
1580 003a 22F48062 bic r2, r2, #1024
|
||
1581 003e 1A60 str r2, [r3]
|
||
1324:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Reset data cache */
|
||
1325:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** __HAL_FLASH_DATA_CACHE_RESET();
|
||
1582 .loc 1 1325 5 view .LVU445
|
||
1583 .loc 1 1325 5 view .LVU446
|
||
1584 0040 1A68 ldr r2, [r3]
|
||
1585 0042 42F48052 orr r2, r2, #4096
|
||
1586 0046 1A60 str r2, [r3]
|
||
1587 .loc 1 1325 5 view .LVU447
|
||
1588 0048 1A68 ldr r2, [r3]
|
||
ARM GAS /tmp/ccYzp9Nl.s page 58
|
||
|
||
|
||
1589 004a 22F48052 bic r2, r2, #4096
|
||
1590 004e 1A60 str r2, [r3]
|
||
1591 .loc 1 1325 5 view .LVU448
|
||
1326:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** /* Enable data cache */
|
||
1327:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** __HAL_FLASH_DATA_CACHE_ENABLE();
|
||
1592 .loc 1 1327 5 view .LVU449
|
||
1593 0050 1A68 ldr r2, [r3]
|
||
1594 0052 42F48062 orr r2, r2, #1024
|
||
1595 0056 1A60 str r2, [r3]
|
||
1596 .L141:
|
||
1328:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1329:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1597 .loc 1 1329 1 is_stmt 0 view .LVU450
|
||
1598 0058 7047 bx lr
|
||
1599 .L145:
|
||
1600 005a 00BF .align 2
|
||
1601 .L144:
|
||
1602 005c 003C0240 .word 1073888256
|
||
1603 .cfi_endproc
|
||
1604 .LFE262:
|
||
1606 .section .text.HAL_FLASHEx_Erase,"ax",%progbits
|
||
1607 .align 1
|
||
1608 .global HAL_FLASHEx_Erase
|
||
1609 .syntax unified
|
||
1610 .thumb
|
||
1611 .thumb_func
|
||
1613 HAL_FLASHEx_Erase:
|
||
1614 .LVL108:
|
||
1615 .LFB239:
|
||
161:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status;
|
||
1616 .loc 1 161 1 is_stmt 1 view -0
|
||
1617 .cfi_startproc
|
||
1618 @ args = 0, pretend = 0, frame = 0
|
||
1619 @ frame_needed = 0, uses_anonymous_args = 0
|
||
161:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** HAL_StatusTypeDef status;
|
||
1620 .loc 1 161 1 is_stmt 0 view .LVU452
|
||
1621 0000 F8B5 push {r3, r4, r5, r6, r7, lr}
|
||
1622 .LCFI12:
|
||
1623 .cfi_def_cfa_offset 24
|
||
1624 .cfi_offset 3, -24
|
||
1625 .cfi_offset 4, -20
|
||
1626 .cfi_offset 5, -16
|
||
1627 .cfi_offset 6, -12
|
||
1628 .cfi_offset 7, -8
|
||
1629 .cfi_offset 14, -4
|
||
162:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** uint32_t index = 0U;
|
||
1630 .loc 1 162 3 is_stmt 1 view .LVU453
|
||
163:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1631 .loc 1 163 3 view .LVU454
|
||
1632 .LVL109:
|
||
166:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1633 .loc 1 166 3 view .LVU455
|
||
166:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1634 .loc 1 166 3 view .LVU456
|
||
1635 0002 234B ldr r3, .L158
|
||
1636 0004 1B7E ldrb r3, [r3, #24] @ zero_extendqisi2
|
||
1637 0006 012B cmp r3, #1
|
||
ARM GAS /tmp/ccYzp9Nl.s page 59
|
||
|
||
|
||
1638 0008 40D0 beq .L154
|
||
1639 000a 0446 mov r4, r0
|
||
1640 000c 0E46 mov r6, r1
|
||
166:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1641 .loc 1 166 3 discriminator 2 view .LVU457
|
||
1642 000e 204B ldr r3, .L158
|
||
1643 0010 0122 movs r2, #1
|
||
1644 0012 1A76 strb r2, [r3, #24]
|
||
166:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1645 .loc 1 166 3 discriminator 2 view .LVU458
|
||
169:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1646 .loc 1 169 3 view .LVU459
|
||
172:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1647 .loc 1 172 3 view .LVU460
|
||
172:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1648 .loc 1 172 12 is_stmt 0 view .LVU461
|
||
1649 0014 4CF25030 movw r0, #50000
|
||
1650 .LVL110:
|
||
172:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1651 .loc 1 172 12 view .LVU462
|
||
1652 0018 FFF7FEFF bl FLASH_WaitForLastOperation
|
||
1653 .LVL111:
|
||
174:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1654 .loc 1 174 3 is_stmt 1 view .LVU463
|
||
174:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1655 .loc 1 174 6 is_stmt 0 view .LVU464
|
||
1656 001c 0746 mov r7, r0
|
||
1657 001e 80BB cbnz r0, .L148
|
||
177:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1658 .loc 1 177 5 is_stmt 1 view .LVU465
|
||
177:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1659 .loc 1 177 18 is_stmt 0 view .LVU466
|
||
1660 0020 4FF0FF33 mov r3, #-1
|
||
1661 0024 3360 str r3, [r6]
|
||
179:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1662 .loc 1 179 5 is_stmt 1 view .LVU467
|
||
179:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1663 .loc 1 179 19 is_stmt 0 view .LVU468
|
||
1664 0026 2368 ldr r3, [r4]
|
||
179:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1665 .loc 1 179 8 view .LVU469
|
||
1666 0028 012B cmp r3, #1
|
||
1667 002a 16D0 beq .L156
|
||
193:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1668 .loc 1 193 7 is_stmt 1 view .LVU470
|
||
196:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1669 .loc 1 196 7 view .LVU471
|
||
196:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1670 .loc 1 196 18 is_stmt 0 view .LVU472
|
||
1671 002c A568 ldr r5, [r4, #8]
|
||
1672 .LVL112:
|
||
1673 .L151:
|
||
196:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1674 .loc 1 196 46 is_stmt 1 discriminator 1 view .LVU473
|
||
196:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1675 .loc 1 196 59 is_stmt 0 discriminator 1 view .LVU474
|
||
1676 002e E368 ldr r3, [r4, #12]
|
||
ARM GAS /tmp/ccYzp9Nl.s page 60
|
||
|
||
|
||
196:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1677 .loc 1 196 83 discriminator 1 view .LVU475
|
||
1678 0030 A268 ldr r2, [r4, #8]
|
||
196:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1679 .loc 1 196 71 discriminator 1 view .LVU476
|
||
1680 0032 1344 add r3, r3, r2
|
||
196:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1681 .loc 1 196 46 discriminator 1 view .LVU477
|
||
1682 0034 AB42 cmp r3, r5
|
||
1683 0036 22D9 bls .L150
|
||
198:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1684 .loc 1 198 9 is_stmt 1 view .LVU478
|
||
1685 0038 217C ldrb r1, [r4, #16] @ zero_extendqisi2
|
||
1686 003a 2846 mov r0, r5
|
||
1687 003c FFF7FEFF bl FLASH_Erase_Sector
|
||
1688 .LVL113:
|
||
201:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1689 .loc 1 201 9 view .LVU479
|
||
201:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1690 .loc 1 201 18 is_stmt 0 view .LVU480
|
||
1691 0040 4CF25030 movw r0, #50000
|
||
1692 0044 FFF7FEFF bl FLASH_WaitForLastOperation
|
||
1693 .LVL114:
|
||
204:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1694 .loc 1 204 9 is_stmt 1 view .LVU481
|
||
1695 0048 124A ldr r2, .L158+4
|
||
1696 004a 1369 ldr r3, [r2, #16]
|
||
1697 004c 23F0FA03 bic r3, r3, #250
|
||
1698 0050 1361 str r3, [r2, #16]
|
||
206:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1699 .loc 1 206 9 view .LVU482
|
||
206:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1700 .loc 1 206 12 is_stmt 0 view .LVU483
|
||
1701 0052 0746 mov r7, r0
|
||
1702 0054 90B9 cbnz r0, .L157
|
||
196:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1703 .loc 1 196 99 is_stmt 1 discriminator 2 view .LVU484
|
||
1704 0056 0135 adds r5, r5, #1
|
||
1705 .LVL115:
|
||
196:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** {
|
||
1706 .loc 1 196 99 is_stmt 0 discriminator 2 view .LVU485
|
||
1707 0058 E9E7 b .L151
|
||
1708 .LVL116:
|
||
1709 .L156:
|
||
182:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1710 .loc 1 182 7 is_stmt 1 view .LVU486
|
||
1711 005a 6168 ldr r1, [r4, #4]
|
||
1712 005c 207C ldrb r0, [r4, #16] @ zero_extendqisi2
|
||
1713 .LVL117:
|
||
182:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1714 .loc 1 182 7 is_stmt 0 view .LVU487
|
||
1715 005e FFF7FEFF bl FLASH_MassErase
|
||
1716 .LVL118:
|
||
185:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1717 .loc 1 185 7 is_stmt 1 view .LVU488
|
||
185:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1718 .loc 1 185 16 is_stmt 0 view .LVU489
|
||
ARM GAS /tmp/ccYzp9Nl.s page 61
|
||
|
||
|
||
1719 0062 4CF25030 movw r0, #50000
|
||
1720 0066 FFF7FEFF bl FLASH_WaitForLastOperation
|
||
1721 .LVL119:
|
||
1722 006a 0746 mov r7, r0
|
||
1723 .LVL120:
|
||
188:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1724 .loc 1 188 7 is_stmt 1 view .LVU490
|
||
188:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1725 .loc 1 188 12 is_stmt 0 view .LVU491
|
||
1726 006c 094A ldr r2, .L158+4
|
||
1727 006e 1369 ldr r3, [r2, #16]
|
||
188:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1728 .loc 1 188 17 view .LVU492
|
||
1729 0070 23F40043 bic r3, r3, #32768
|
||
1730 0074 23F00403 bic r3, r3, #4
|
||
1731 0078 1361 str r3, [r2, #16]
|
||
1732 007a 00E0 b .L150
|
||
1733 .LVL121:
|
||
1734 .L157:
|
||
209:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** break;
|
||
1735 .loc 1 209 11 is_stmt 1 view .LVU493
|
||
209:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** break;
|
||
1736 .loc 1 209 24 is_stmt 0 view .LVU494
|
||
1737 007c 3560 str r5, [r6]
|
||
210:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1738 .loc 1 210 11 is_stmt 1 view .LVU495
|
||
1739 .LVL122:
|
||
1740 .L150:
|
||
215:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1741 .loc 1 215 5 view .LVU496
|
||
1742 007e FFF7FEFF bl FLASH_FlushCaches
|
||
1743 .LVL123:
|
||
1744 .L148:
|
||
219:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1745 .loc 1 219 3 view .LVU497
|
||
219:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1746 .loc 1 219 3 view .LVU498
|
||
1747 0082 034B ldr r3, .L158
|
||
1748 0084 0022 movs r2, #0
|
||
1749 0086 1A76 strb r2, [r3, #24]
|
||
219:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1750 .loc 1 219 3 view .LVU499
|
||
221:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c **** }
|
||
1751 .loc 1 221 3 view .LVU500
|
||
1752 .LVL124:
|
||
1753 .L147:
|
||
222:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1754 .loc 1 222 1 is_stmt 0 view .LVU501
|
||
1755 0088 3846 mov r0, r7
|
||
1756 008a F8BD pop {r3, r4, r5, r6, r7, pc}
|
||
1757 .LVL125:
|
||
1758 .L154:
|
||
166:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c ****
|
||
1759 .loc 1 166 3 discriminator 1 view .LVU502
|
||
1760 008c 0227 movs r7, #2
|
||
1761 008e FBE7 b .L147
|
||
1762 .L159:
|
||
ARM GAS /tmp/ccYzp9Nl.s page 62
|
||
|
||
|
||
1763 .align 2
|
||
1764 .L158:
|
||
1765 0090 00000000 .word pFlash
|
||
1766 0094 003C0240 .word 1073888256
|
||
1767 .cfi_endproc
|
||
1768 .LFE239:
|
||
1770 .text
|
||
1771 .Letext0:
|
||
1772 .file 2 "/usr/lib/gcc/arm-none-eabi/13.2.1/include/stdint.h"
|
||
1773 .file 3 "Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f429xx.h"
|
||
1774 .file 4 "Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h"
|
||
1775 .file 5 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h"
|
||
1776 .file 6 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h"
|
||
1777 .file 7 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h"
|
||
ARM GAS /tmp/ccYzp9Nl.s page 63
|
||
|
||
|
||
DEFINED SYMBOLS
|
||
*ABS*:00000000 stm32f4xx_hal_flash_ex.c
|
||
/tmp/ccYzp9Nl.s:21 .text.FLASH_MassErase:00000000 $t
|
||
/tmp/ccYzp9Nl.s:26 .text.FLASH_MassErase:00000000 FLASH_MassErase
|
||
/tmp/ccYzp9Nl.s:97 .text.FLASH_MassErase:00000048 $d
|
||
/tmp/ccYzp9Nl.s:102 .text.FLASH_OB_BOR_LevelConfig:00000000 $t
|
||
/tmp/ccYzp9Nl.s:107 .text.FLASH_OB_BOR_LevelConfig:00000000 FLASH_OB_BOR_LevelConfig
|
||
/tmp/ccYzp9Nl.s:136 .text.FLASH_OB_BOR_LevelConfig:00000014 $d
|
||
/tmp/ccYzp9Nl.s:141 .text.FLASH_OB_GetUser:00000000 $t
|
||
/tmp/ccYzp9Nl.s:146 .text.FLASH_OB_GetUser:00000000 FLASH_OB_GetUser
|
||
/tmp/ccYzp9Nl.s:163 .text.FLASH_OB_GetUser:0000000c $d
|
||
/tmp/ccYzp9Nl.s:168 .text.FLASH_OB_GetWRP:00000000 $t
|
||
/tmp/ccYzp9Nl.s:173 .text.FLASH_OB_GetWRP:00000000 FLASH_OB_GetWRP
|
||
/tmp/ccYzp9Nl.s:190 .text.FLASH_OB_GetWRP:00000008 $d
|
||
/tmp/ccYzp9Nl.s:195 .text.FLASH_OB_GetRDP:00000000 $t
|
||
/tmp/ccYzp9Nl.s:200 .text.FLASH_OB_GetRDP:00000000 FLASH_OB_GetRDP
|
||
/tmp/ccYzp9Nl.s:234 .text.FLASH_OB_GetRDP:00000018 $d
|
||
/tmp/ccYzp9Nl.s:239 .text.FLASH_OB_GetBOR:00000000 $t
|
||
/tmp/ccYzp9Nl.s:244 .text.FLASH_OB_GetBOR:00000000 FLASH_OB_GetBOR
|
||
/tmp/ccYzp9Nl.s:261 .text.FLASH_OB_GetBOR:0000000c $d
|
||
/tmp/ccYzp9Nl.s:266 .text.FLASH_OB_EnableWRP:00000000 $t
|
||
/tmp/ccYzp9Nl.s:271 .text.FLASH_OB_EnableWRP:00000000 FLASH_OB_EnableWRP
|
||
/tmp/ccYzp9Nl.s:380 .text.FLASH_OB_EnableWRP:00000074 $d
|
||
/tmp/ccYzp9Nl.s:386 .text.FLASH_OB_DisableWRP:00000000 $t
|
||
/tmp/ccYzp9Nl.s:391 .text.FLASH_OB_DisableWRP:00000000 FLASH_OB_DisableWRP
|
||
/tmp/ccYzp9Nl.s:509 .text.FLASH_OB_DisableWRP:00000078 $d
|
||
/tmp/ccYzp9Nl.s:515 .text.FLASH_OB_RDP_LevelConfig:00000000 $t
|
||
/tmp/ccYzp9Nl.s:520 .text.FLASH_OB_RDP_LevelConfig:00000000 FLASH_OB_RDP_LevelConfig
|
||
/tmp/ccYzp9Nl.s:560 .text.FLASH_OB_RDP_LevelConfig:00000014 $d
|
||
/tmp/ccYzp9Nl.s:565 .text.FLASH_OB_UserConfig:00000000 $t
|
||
/tmp/ccYzp9Nl.s:570 .text.FLASH_OB_UserConfig:00000000 FLASH_OB_UserConfig
|
||
/tmp/ccYzp9Nl.s:631 .text.FLASH_OB_UserConfig:00000028 $d
|
||
/tmp/ccYzp9Nl.s:636 .text.FLASH_OB_EnablePCROP:00000000 $t
|
||
/tmp/ccYzp9Nl.s:641 .text.FLASH_OB_EnablePCROP:00000000 FLASH_OB_EnablePCROP
|
||
/tmp/ccYzp9Nl.s:737 .text.FLASH_OB_EnablePCROP:00000054 $d
|
||
/tmp/ccYzp9Nl.s:742 .text.FLASH_OB_DisablePCROP:00000000 $t
|
||
/tmp/ccYzp9Nl.s:747 .text.FLASH_OB_DisablePCROP:00000000 FLASH_OB_DisablePCROP
|
||
/tmp/ccYzp9Nl.s:836 .text.FLASH_OB_DisablePCROP:00000054 $d
|
||
/tmp/ccYzp9Nl.s:841 .text.FLASH_OB_BootConfig:00000000 $t
|
||
/tmp/ccYzp9Nl.s:846 .text.FLASH_OB_BootConfig:00000000 FLASH_OB_BootConfig
|
||
/tmp/ccYzp9Nl.s:893 .text.FLASH_OB_BootConfig:00000020 $d
|
||
/tmp/ccYzp9Nl.s:898 .text.HAL_FLASHEx_OBProgram:00000000 $t
|
||
/tmp/ccYzp9Nl.s:904 .text.HAL_FLASHEx_OBProgram:00000000 HAL_FLASHEx_OBProgram
|
||
/tmp/ccYzp9Nl.s:1050 .text.HAL_FLASHEx_OBProgram:00000080 $d
|
||
/tmp/ccYzp9Nl.s:1055 .text.HAL_FLASHEx_OBGetConfig:00000000 $t
|
||
/tmp/ccYzp9Nl.s:1061 .text.HAL_FLASHEx_OBGetConfig:00000000 HAL_FLASHEx_OBGetConfig
|
||
/tmp/ccYzp9Nl.s:1110 .text.HAL_FLASHEx_AdvOBProgram:00000000 $t
|
||
/tmp/ccYzp9Nl.s:1116 .text.HAL_FLASHEx_AdvOBProgram:00000000 HAL_FLASHEx_AdvOBProgram
|
||
/tmp/ccYzp9Nl.s:1201 .text.HAL_FLASHEx_AdvOBGetConfig:00000000 $t
|
||
/tmp/ccYzp9Nl.s:1207 .text.HAL_FLASHEx_AdvOBGetConfig:00000000 HAL_FLASHEx_AdvOBGetConfig
|
||
/tmp/ccYzp9Nl.s:1236 .text.HAL_FLASHEx_AdvOBGetConfig:00000010 $d
|
||
/tmp/ccYzp9Nl.s:1241 .text.HAL_FLASHEx_OB_SelectPCROP:00000000 $t
|
||
/tmp/ccYzp9Nl.s:1247 .text.HAL_FLASHEx_OB_SelectPCROP:00000000 HAL_FLASHEx_OB_SelectPCROP
|
||
/tmp/ccYzp9Nl.s:1273 .text.HAL_FLASHEx_OB_SelectPCROP:00000010 $d
|
||
/tmp/ccYzp9Nl.s:1278 .text.HAL_FLASHEx_OB_DeSelectPCROP:00000000 $t
|
||
/tmp/ccYzp9Nl.s:1284 .text.HAL_FLASHEx_OB_DeSelectPCROP:00000000 HAL_FLASHEx_OB_DeSelectPCROP
|
||
/tmp/ccYzp9Nl.s:1309 .text.HAL_FLASHEx_OB_DeSelectPCROP:00000010 $d
|
||
ARM GAS /tmp/ccYzp9Nl.s page 64
|
||
|
||
|
||
/tmp/ccYzp9Nl.s:1314 .text.HAL_FLASHEx_OB_GetBank2WRP:00000000 $t
|
||
/tmp/ccYzp9Nl.s:1320 .text.HAL_FLASHEx_OB_GetBank2WRP:00000000 HAL_FLASHEx_OB_GetBank2WRP
|
||
/tmp/ccYzp9Nl.s:1337 .text.HAL_FLASHEx_OB_GetBank2WRP:00000008 $d
|
||
/tmp/ccYzp9Nl.s:1342 .text.FLASH_Erase_Sector:00000000 $t
|
||
/tmp/ccYzp9Nl.s:1348 .text.FLASH_Erase_Sector:00000000 FLASH_Erase_Sector
|
||
/tmp/ccYzp9Nl.s:1425 .text.FLASH_Erase_Sector:00000050 $d
|
||
/tmp/ccYzp9Nl.s:1430 .text.HAL_FLASHEx_Erase_IT:00000000 $t
|
||
/tmp/ccYzp9Nl.s:1436 .text.HAL_FLASHEx_Erase_IT:00000000 HAL_FLASHEx_Erase_IT
|
||
/tmp/ccYzp9Nl.s:1524 .text.HAL_FLASHEx_Erase_IT:0000004c $d
|
||
/tmp/ccYzp9Nl.s:1530 .text.FLASH_FlushCaches:00000000 $t
|
||
/tmp/ccYzp9Nl.s:1536 .text.FLASH_FlushCaches:00000000 FLASH_FlushCaches
|
||
/tmp/ccYzp9Nl.s:1602 .text.FLASH_FlushCaches:0000005c $d
|
||
/tmp/ccYzp9Nl.s:1607 .text.HAL_FLASHEx_Erase:00000000 $t
|
||
/tmp/ccYzp9Nl.s:1613 .text.HAL_FLASHEx_Erase:00000000 HAL_FLASHEx_Erase
|
||
/tmp/ccYzp9Nl.s:1765 .text.HAL_FLASHEx_Erase:00000090 $d
|
||
|
||
UNDEFINED SYMBOLS
|
||
FLASH_WaitForLastOperation
|
||
pFlash
|