diff options
author | JanHenrik <janhenrik@janhenrik.org> | 2020-04-01 02:37:51 +0200 |
---|---|---|
committer | JanHenrik <janhenrik@janhenrik.org> | 2020-04-01 02:37:51 +0200 |
commit | 39e8d95245bb60f13147c15389ec4472f115f575 (patch) | |
tree | c8a1f841f40fdd6b9b9beee1341f92a9b30213fe /hid-dials/build/stm32f0xx_hal_flash.lst | |
parent | 1a26598a68f376eecc037d39d97c3d99434c7185 (diff) | |
download | minikbd-39e8d95245bb60f13147c15389ec4472f115f575.tar.gz minikbd-39e8d95245bb60f13147c15389ec4472f115f575.tar.bz2 minikbd-39e8d95245bb60f13147c15389ec4472f115f575.zip |
hid docu
Diffstat (limited to 'hid-dials/build/stm32f0xx_hal_flash.lst')
-rw-r--r-- | hid-dials/build/stm32f0xx_hal_flash.lst | 1966 |
1 files changed, 0 insertions, 1966 deletions
diff --git a/hid-dials/build/stm32f0xx_hal_flash.lst b/hid-dials/build/stm32f0xx_hal_flash.lst deleted file mode 100644 index 944a1f1..0000000 --- a/hid-dials/build/stm32f0xx_hal_flash.lst +++ /dev/null @@ -1,1966 +0,0 @@ -ARM GAS /tmp/ccbuSUal.s page 1 - - - 1 .cpu cortex-m0 - 2 .eabi_attribute 20, 1 - 3 .eabi_attribute 21, 1 - 4 .eabi_attribute 23, 3 - 5 .eabi_attribute 24, 1 - 6 .eabi_attribute 25, 1 - 7 .eabi_attribute 26, 1 - 8 .eabi_attribute 30, 1 - 9 .eabi_attribute 34, 0 - 10 .eabi_attribute 18, 4 - 11 .file "stm32f0xx_hal_flash.c" - 12 .text - 13 .Ltext0: - 14 .cfi_sections .debug_frame - 15 .section .text.FLASH_Program_HalfWord,"ax",%progbits - 16 .align 1 - 17 .syntax unified - 18 .code 16 - 19 .thumb_func - 20 .fpu softvfp - 22 FLASH_Program_HalfWord: - 23 .LFB51: - 24 .file 1 "Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c" - 1:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 2:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** ****************************************************************************** - 3:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @file stm32f0xx_hal_flash.c - 4:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @author MCD Application Team - 5:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief FLASH HAL module driver. - 6:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * This file provides firmware functions to manage the following - 7:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * functionalities of the internal FLASH memory: - 8:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * + Program operations functions - 9:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * + Memory Control functions - 10:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * + Peripheral State functions - 11:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 12:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** @verbatim - 13:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** ============================================================================== - 14:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** ##### FLASH peripheral features ##### - 15:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** ============================================================================== - 16:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** [..] The Flash memory interface manages CPU AHB I-Code and D-Code accesses - 17:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** to the Flash memory. It implements the erase and program Flash memory operations - 18:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** and the read and write protection mechanisms. - 19:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 20:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** [..] The Flash memory interface accelerates code execution with a system of instruction - 21:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** prefetch. - 22:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 23:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** [..] The FLASH main features are: - 24:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (+) Flash memory read operations - 25:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (+) Flash memory program/erase operations - 26:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (+) Read / write protections - 27:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (+) Prefetch on I-Code - 28:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (+) Option Bytes programming - 29:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 30:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 31:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** ##### How to use this driver ##### - 32:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** ============================================================================== - 33:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** [..] - 34:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** This driver provides functions and macros to configure and program the FLASH -ARM GAS /tmp/ccbuSUal.s page 2 - - - 35:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** memory of all STM32F0xx devices. - 36:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 37:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (#) FLASH Memory I/O Programming functions: this group includes all needed - 38:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** functions to erase and program the main memory: - 39:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Lock and Unlock the FLASH interface - 40:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Erase function: Erase page, erase all pages - 41:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Program functions: half word, word and doubleword - 42:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (#) FLASH Option Bytes Programming functions: this group includes all needed - 43:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** functions to manage the Option Bytes: - 44:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Lock and Unlock the Option Bytes - 45:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Set/Reset the write protection - 46:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Set the Read protection Level - 47:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Program the user Option Bytes - 48:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Launch the Option Bytes loader - 49:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Erase Option Bytes - 50:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Program the data Option Bytes - 51:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Get the Write protection. - 52:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Get the user option bytes. - 53:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 54:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (#) Interrupts and flags management functions : this group - 55:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** includes all needed functions to: - 56:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Handle FLASH interrupts - 57:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Wait for last FLASH operation according to its status - 58:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (++) Get error flag status - 59:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 60:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** [..] In addition to these function, this driver includes a set of macros allowing - 61:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** to handle the following operations: - 62:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 63:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (+) Set/Get the latency - 64:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (+) Enable/Disable the prefetch buffer - 65:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (+) Enable/Disable the FLASH interrupts - 66:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** (+) Monitor the FLASH flags status - 67:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 68:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** @endverbatim - 69:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** ****************************************************************************** - 70:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @attention - 71:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 72:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * <h2><center>© Copyright (c) 2016 STMicroelectronics. - 73:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * All rights reserved.</center></h2> - 74:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 75:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * This software component is licensed by ST under BSD 3-Clause license, - 76:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * the "License"; You may not use this file except in compliance with the - 77:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * License. You may obtain a copy of the License at: - 78:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * opensource.org/licenses/BSD-3-Clause - 79:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 80:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** ****************************************************************************** - 81:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 82:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 83:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Includes ------------------------------------------------------------------*/ - 84:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** #include "stm32f0xx_hal.h" - 85:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 86:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** @addtogroup STM32F0xx_HAL_Driver - 87:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @{ - 88:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 89:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 90:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** #ifdef HAL_FLASH_MODULE_ENABLED - 91:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** -ARM GAS /tmp/ccbuSUal.s page 3 - - - 92:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** @defgroup FLASH FLASH - 93:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief FLASH HAL module driver - 94:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @{ - 95:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 96:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 97:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Private typedef -----------------------------------------------------------*/ - 98:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Private define ------------------------------------------------------------*/ - 99:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** @defgroup FLASH_Private_Constants FLASH Private Constants - 100:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @{ - 101:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 102:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 103:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @} - 104:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 105:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 106:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Private macro ---------------------------- ---------------------------------*/ - 107:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** @defgroup FLASH_Private_Macros FLASH Private Macros - 108:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @{ - 109:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 110:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 111:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 112:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @} - 113:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 114:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 115:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Private variables ---------------------------------------------------------*/ - 116:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** @defgroup FLASH_Private_Variables FLASH Private Variables - 117:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @{ - 118:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 119:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Variables used for Erase pages under interruption*/ - 120:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** FLASH_ProcessTypeDef pFlash; - 121:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 122:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @} - 123:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 124:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 125:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Private function prototypes -----------------------------------------------*/ - 126:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** @defgroup FLASH_Private_Functions FLASH Private Functions - 127:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @{ - 128:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 129:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** static void FLASH_Program_HalfWord(uint32_t Address, uint16_t Data); - 130:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** static void FLASH_SetErrorCode(void); - 131:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** extern void FLASH_PageErase(uint32_t PageAddress); - 132:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 133:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @} - 134:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 135:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 136:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Exported functions ---------------------------------------------------------*/ - 137:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions FLASH Exported Functions - 138:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @{ - 139:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 140:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 141:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions_Group1 Programming operation functions - 142:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Programming operation functions - 143:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 144:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** @verbatim - 145:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** @endverbatim - 146:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @{ - 147:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 148:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** -ARM GAS /tmp/ccbuSUal.s page 4 - - - 149:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 150:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Program halfword, word or double word at a specified address - 151:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @note The function HAL_FLASH_Unlock() should be called before to unlock the FLASH interface - 152:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * The function HAL_FLASH_Lock() should be called after to lock the FLASH interface - 153:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 154:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @note If an erase and a program operations are requested simultaneously, - 155:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * the erase operation is performed before the program one. - 156:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 157:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @note FLASH should be previously erased before new programming (only exception to this - 158:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * is when 0x0000 is programmed) - 159:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 160:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @param TypeProgram Indicate the way to program at a specified address. - 161:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * This parameter can be a value of @ref FLASH_Type_Program - 162:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @param Address Specifie the address to be programmed. - 163:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @param Data Specifie the data to be programmed - 164:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 165:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval HAL_StatusTypeDef HAL Status - 166:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 167:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t Address, uint64_t Data) - 168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 169:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_ERROR; - 170:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** uint8_t index = 0U; - 171:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** uint8_t nbiterations = 0U; - 172:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 173:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Process Locked */ - 174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_LOCK(&pFlash); - 175:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 176:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Check the parameters */ - 177:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** assert_param(IS_FLASH_TYPEPROGRAM(TypeProgram)); - 178:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** assert_param(IS_FLASH_PROGRAM_ADDRESS(Address)); - 179:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 180:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Wait for last operation to be completed */ - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** status = FLASH_WaitForLastOperation(FLASH_TIMEOUT_VALUE); - 182:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(status == HAL_OK) - 184:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(TypeProgram == FLASH_TYPEPROGRAM_HALFWORD) - 186:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 187:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Program halfword (16-bit) at a specified address. */ - 188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** nbiterations = 1U; - 189:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** else if(TypeProgram == FLASH_TYPEPROGRAM_WORD) - 191:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 192:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Program word (32-bit = 2*16-bit) at a specified address. */ - 193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** nbiterations = 2U; - 194:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 195:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** else - 196:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 197:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Program double word (64-bit = 4*16-bit) at a specified address. */ - 198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** nbiterations = 4U; - 199:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 200:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** for (index = 0U; index < nbiterations; index++) - 202:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** FLASH_Program_HalfWord((Address + (2U*index)), (uint16_t)(Data >> (16U*index))); - 204:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 205:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Wait for last operation to be completed */ -ARM GAS /tmp/ccbuSUal.s page 5 - - - 206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** status = FLASH_WaitForLastOperation(FLASH_TIMEOUT_VALUE); - 207:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 208:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* If the program operation is completed, disable the PG Bit */ - 209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PG); - 210:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* In case of error, stop programming procedure */ - 211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if (status != HAL_OK) - 212:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 213:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** break; - 214:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 215:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 216:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 217:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 218:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Process Unlocked */ - 219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_UNLOCK(&pFlash); - 220:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 221:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return status; - 222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 223:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 224:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 225:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Program halfword, word or double word at a specified address with interrupt enabled. - 226:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @note The function HAL_FLASH_Unlock() should be called before to unlock the FLASH interface - 227:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * The function HAL_FLASH_Lock() should be called after to lock the FLASH interface - 228:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 229:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @note If an erase and a program operations are requested simultaneously, - 230:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * the erase operation is performed before the program one. - 231:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 232:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @param TypeProgram Indicate the way to program at a specified address. - 233:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * This parameter can be a value of @ref FLASH_Type_Program - 234:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @param Address Specifie the address to be programmed. - 235:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @param Data Specifie the data to be programmed - 236:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 237:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval HAL_StatusTypeDef HAL Status - 238:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 239:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_Program_IT(uint32_t TypeProgram, uint32_t Address, uint64_t Data) - 240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 241:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK; - 242:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 243:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Process Locked */ - 244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_LOCK(&pFlash); - 245:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 246:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Check the parameters */ - 247:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** assert_param(IS_FLASH_TYPEPROGRAM(TypeProgram)); - 248:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** assert_param(IS_FLASH_PROGRAM_ADDRESS(Address)); - 249:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 250:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Enable End of FLASH Operation and Error source interrupts */ - 251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_FLASH_ENABLE_IT(FLASH_IT_EOP | FLASH_IT_ERR); - 252:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.Address = Address; - 254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.Data = Data; - 255:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(TypeProgram == FLASH_TYPEPROGRAM_HALFWORD) - 257:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_PROGRAMHALFWORD; - 259:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Program halfword (16-bit) at a specified address. */ - 260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.DataRemaining = 1U; - 261:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** else if(TypeProgram == FLASH_TYPEPROGRAM_WORD) -ARM GAS /tmp/ccbuSUal.s page 6 - - - 263:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_PROGRAMWORD; - 265:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Program word (32-bit : 2*16-bit) at a specified address. */ - 266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.DataRemaining = 2U; - 267:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 268:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** else - 269:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_PROGRAMDOUBLEWORD; - 271:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Program double word (64-bit : 4*16-bit) at a specified address. */ - 272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.DataRemaining = 4U; - 273:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 274:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 275:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Program halfword (16-bit) at a specified address. */ - 276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** FLASH_Program_HalfWord(Address, (uint16_t)Data); - 277:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return status; - 279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 280:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 281:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 282:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief This function handles FLASH interrupt request. - 283:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval None - 284:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 285:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** void HAL_FLASH_IRQHandler(void) - 286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 287:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** uint32_t addresstmp = 0U; - 288:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 289:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Check FLASH operation error flags */ - 290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) ||__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR)) - 291:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 292:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Return the faulty address */ - 293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** addresstmp = pFlash.Address; - 294:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Reset address */ - 295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.Address = 0xFFFFFFFFU; - 296:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 297:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Save the Error code */ - 298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** FLASH_SetErrorCode(); - 299:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 300:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* FLASH error interrupt user callback */ - 301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_FLASH_OperationErrorCallback(addresstmp); - 302:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 303:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Stop the procedure ongoing */ - 304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE; - 305:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 306:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 307:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Check FLASH End of Operation flag */ - 308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP)) - 309:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 310:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Clear FLASH End of Operation pending bit */ - 311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP); - 312:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 313:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Process can continue only if no error detected */ - 314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(pFlash.ProcedureOnGoing != FLASH_PROC_NONE) - 315:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(pFlash.ProcedureOnGoing == FLASH_PROC_PAGEERASE) - 317:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 318:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Nb of pages to erased can be decreased */ - 319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.DataRemaining--; -ARM GAS /tmp/ccbuSUal.s page 7 - - - 320:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 321:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Check if there are still pages to erase */ - 322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(pFlash.DataRemaining != 0U) - 323:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** addresstmp = pFlash.Address; - 325:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /*Indicate user which sector has been erased */ - 326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(addresstmp); - 327:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 328:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /*Increment sector number*/ - 329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** addresstmp = pFlash.Address + FLASH_PAGE_SIZE; - 330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.Address = addresstmp; - 331:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 332:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* If the erase operation is completed, disable the PER Bit */ - 333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PER); - 334:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** FLASH_PageErase(addresstmp); - 336:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 337:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** else - 338:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 339:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* No more pages to Erase, user callback can be called. */ - 340:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Reset Sector and stop Erase pages procedure */ - 341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.Address = addresstmp = 0xFFFFFFFFU; - 342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE; - 343:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* FLASH EOP interrupt user callback */ - 344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(addresstmp); - 345:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 346:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** else if(pFlash.ProcedureOnGoing == FLASH_PROC_MASSERASE) - 348:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 349:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Operation is completed, disable the MER Bit */ - 350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_MER); - 351:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 352:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* MassErase ended. Return the selected bank */ - 353:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* FLASH EOP interrupt user callback */ - 354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(0); - 355:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 356:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Stop Mass Erase procedure*/ - 357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE; - 358:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 359:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** else - 360:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 361:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Nb of 16-bit data to program can be decreased */ - 362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.DataRemaining--; - 363:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 364:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Check if there are still 16-bit data to program */ - 365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(pFlash.DataRemaining != 0U) - 366:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 367:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Increment address to 16-bit */ - 368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.Address += 2; - 369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** addresstmp = pFlash.Address; - 370:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 371:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Shift to have next 16-bit data */ - 372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.Data = (pFlash.Data >> 16U); - 373:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 374:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Operation is completed, disable the PG Bit */ - 375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PG); - 376:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** -ARM GAS /tmp/ccbuSUal.s page 8 - - - 377:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /*Program halfword (16-bit) at a specified address.*/ - 378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** FLASH_Program_HalfWord(addresstmp, (uint16_t)pFlash.Data); - 379:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 380:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** else - 381:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 382:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Program ended. Return the selected address */ - 383:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* FLASH EOP interrupt user callback */ - 384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if (pFlash.ProcedureOnGoing == FLASH_PROC_PROGRAMHALFWORD) - 385:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address); - 387:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** else if (pFlash.ProcedureOnGoing == FLASH_PROC_PROGRAMWORD) - 389:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address - 2U); - 391:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 392:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** else - 393:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address - 6U); - 395:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 396:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 397:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Reset Address and stop Program procedure */ - 398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.Address = 0xFFFFFFFFU; - 399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE; - 400:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 401:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 402:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 403:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 404:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 405:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(pFlash.ProcedureOnGoing == FLASH_PROC_NONE) - 407:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 408:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Operation is completed, disable the PG, PER and MER Bits */ - 409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, (FLASH_CR_PG | FLASH_CR_PER | FLASH_CR_MER)); - 410:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 411:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Disable End of FLASH Operation and Error source interrupts */ - 412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_FLASH_DISABLE_IT(FLASH_IT_EOP | FLASH_IT_ERR); - 413:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 414:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Process Unlocked */ - 415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_UNLOCK(&pFlash); - 416:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 418:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 419:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 420:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief FLASH end of operation interrupt callback - 421:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @param ReturnValue The value saved in this parameter depends on the ongoing procedure - 422:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - Mass Erase: No return value expected - 423:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - Pages Erase: Address of the page which has been erased - 424:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * (if 0xFFFFFFFF, it means that all the selected pages have been erased) - 425:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - Program: Address which was selected for data program - 426:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval none - 427:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 428:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __weak void HAL_FLASH_EndOfOperationCallback(uint32_t ReturnValue) - 429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 430:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Prevent unused argument(s) compilation warning */ - 431:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** UNUSED(ReturnValue); - 432:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 433:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* NOTE : This function Should not be modified, when the callback is needed, -ARM GAS /tmp/ccbuSUal.s page 9 - - - 434:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** the HAL_FLASH_EndOfOperationCallback could be implemented in the user file - 435:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 437:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 438:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 439:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief FLASH operation error interrupt callback - 440:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @param ReturnValue The value saved in this parameter depends on the ongoing procedure - 441:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - Mass Erase: No return value expected - 442:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - Pages Erase: Address of the page which returned an error - 443:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - Program: Address which was selected for data program - 444:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval none - 445:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 446:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __weak void HAL_FLASH_OperationErrorCallback(uint32_t ReturnValue) - 447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 448:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Prevent unused argument(s) compilation warning */ - 449:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** UNUSED(ReturnValue); - 450:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 451:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* NOTE : This function Should not be modified, when the callback is needed, - 452:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** the HAL_FLASH_OperationErrorCallback could be implemented in the user file - 453:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 455:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 456:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 457:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @} - 458:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 459:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 460:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions_Group2 Peripheral Control functions - 461:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief management functions - 462:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 463:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** @verbatim - 464:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** =============================================================================== - 465:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** ##### Peripheral Control functions ##### - 466:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** =============================================================================== - 467:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** [..] - 468:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** This subsection provides a set of functions allowing to control the FLASH - 469:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** memory operations. - 470:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 471:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** @endverbatim - 472:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @{ - 473:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 474:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 475:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 476:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Unlock the FLASH control register access - 477:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval HAL Status - 478:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 479:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_Unlock(void) - 480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK; - 482:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET) - 484:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 485:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Authorize the FLASH Registers access */ - 486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** WRITE_REG(FLASH->KEYR, FLASH_KEY1); - 487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** WRITE_REG(FLASH->KEYR, FLASH_KEY2); - 488:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 489:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Verify Flash is unlocked */ - 490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET) -ARM GAS /tmp/ccbuSUal.s page 10 - - - 491:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** status = HAL_ERROR; - 493:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 494:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 495:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 496:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return status; - 497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 498:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 499:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 500:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Locks the FLASH control register access - 501:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval HAL Status - 502:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 503:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_Lock(void) - 504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 505:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Set the LOCK Bit to lock the FLASH Registers access */ - 506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** SET_BIT(FLASH->CR, FLASH_CR_LOCK); - 507:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 508:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return HAL_OK; - 509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 510:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 511:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 512:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Unlock the FLASH Option Control Registers access. - 513:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval HAL Status - 514:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 515:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_OB_Unlock(void) - 516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if (HAL_IS_BIT_CLR(FLASH->CR, FLASH_CR_OPTWRE)) - 518:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 519:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Authorizes the Option Byte register programming */ - 520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** WRITE_REG(FLASH->OPTKEYR, FLASH_OPTKEY1); - 521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** WRITE_REG(FLASH->OPTKEYR, FLASH_OPTKEY2); - 522:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 523:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** else - 524:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return HAL_ERROR; - 526:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 527:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return HAL_OK; - 529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 530:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 531:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 532:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Lock the FLASH Option Control Registers access. - 533:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval HAL Status - 534:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 535:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_OB_Lock(void) - 536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 537:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Clear the OPTWRE Bit to lock the FLASH Option Byte Registers access */ - 538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_OPTWRE); - 539:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 540:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return HAL_OK; - 541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 542:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 543:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 544:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Launch the option byte loading. - 545:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @note This function will reset automatically the MCU. - 546:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval HAL Status - 547:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ -ARM GAS /tmp/ccbuSUal.s page 11 - - - 548:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_OB_Launch(void) - 549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 550:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Set the OBL_Launch bit to launch the option byte loading */ - 551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** SET_BIT(FLASH->CR, FLASH_CR_OBL_LAUNCH); - 552:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 553:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Wait for last operation to be completed */ - 554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return(FLASH_WaitForLastOperation(FLASH_TIMEOUT_VALUE)); - 555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 556:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 557:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 558:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @} - 559:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 560:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 561:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions_Group3 Peripheral errors functions - 562:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Peripheral errors functions - 563:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * - 564:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** @verbatim - 565:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** =============================================================================== - 566:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** ##### Peripheral Errors functions ##### - 567:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** =============================================================================== - 568:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** [..] - 569:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** This subsection permit to get in run-time errors of the FLASH peripheral. - 570:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 571:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** @endverbatim - 572:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @{ - 573:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 574:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 575:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 576:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Get the specific FLASH error flag. - 577:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval FLASH_ErrorCode The returned value can be: - 578:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @ref FLASH_Error_Codes - 579:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 580:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** uint32_t HAL_FLASH_GetError(void) - 581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return pFlash.ErrorCode; - 583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 584:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 585:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 586:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @} - 587:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 588:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 589:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 590:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @} - 591:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 592:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 593:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** @addtogroup FLASH_Private_Functions - 594:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @{ - 595:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 596:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 597:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 598:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Program a half-word (16-bit) at a specified address. - 599:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @param Address specify the address to be programmed. - 600:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @param Data specify the data to be programmed. - 601:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval None - 602:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 603:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** static void FLASH_Program_HalfWord(uint32_t Address, uint16_t Data) - 604:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { -ARM GAS /tmp/ccbuSUal.s page 12 - - - 25 .loc 1 604 0 - 26 .cfi_startproc - 27 @ args = 0, pretend = 0, frame = 0 - 28 @ frame_needed = 0, uses_anonymous_args = 0 - 29 .LVL0: - 30 0000 10B5 push {r4, lr} - 31 .LCFI0: - 32 .cfi_def_cfa_offset 8 - 33 .cfi_offset 4, -8 - 34 .cfi_offset 14, -4 - 605:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Clean the error context */ - 606:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ErrorCode = HAL_FLASH_ERROR_NONE; - 35 .loc 1 606 0 - 36 0002 054B ldr r3, .L2 - 37 0004 0022 movs r2, #0 - 38 0006 DA61 str r2, [r3, #28] - 607:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 608:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Proceed to program the new data */ - 609:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** SET_BIT(FLASH->CR, FLASH_CR_PG); - 39 .loc 1 609 0 - 40 0008 044A ldr r2, .L2+4 - 41 000a 1369 ldr r3, [r2, #16] - 42 000c 0124 movs r4, #1 - 43 000e 2343 orrs r3, r4 - 44 0010 1361 str r3, [r2, #16] - 610:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 611:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Write data in the address */ - 612:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** *(__IO uint16_t*)Address = Data; - 45 .loc 1 612 0 - 46 0012 0180 strh r1, [r0] - 613:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 47 .loc 1 613 0 - 48 @ sp needed - 49 0014 10BD pop {r4, pc} - 50 .L3: - 51 0016 C046 .align 2 - 52 .L2: - 53 0018 00000000 .word pFlash - 54 001c 00200240 .word 1073881088 - 55 .cfi_endproc - 56 .LFE51: - 58 .section .text.FLASH_SetErrorCode,"ax",%progbits - 59 .align 1 - 60 .syntax unified - 61 .code 16 - 62 .thumb_func - 63 .fpu softvfp - 65 FLASH_SetErrorCode: - 66 .LFB53: - 614:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 615:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 616:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Wait for a FLASH operation to complete. - 617:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @param Timeout maximum flash operation timeout - 618:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval HAL Status - 619:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 620:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef FLASH_WaitForLastOperation(uint32_t Timeout) - 621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { -ARM GAS /tmp/ccbuSUal.s page 13 - - - 622:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Wait for the FLASH operation to complete by polling on BUSY flag to be reset. - 623:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** Even if the FLASH operation fails, the BUSY flag will be reset and an error - 624:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** flag will be set */ - 625:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** uint32_t tickstart = HAL_GetTick(); - 627:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY)) - 629:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if (Timeout != HAL_MAX_DELAY) - 631:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if((Timeout == 0U) || ((HAL_GetTick()-tickstart) > Timeout)) - 633:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return HAL_TIMEOUT; - 635:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 636:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 637:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 638:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 639:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Check FLASH End of Operation flag */ - 640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if (__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP)) - 641:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 642:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Clear FLASH End of Operation pending bit */ - 643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP); - 644:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 645:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) || - 647:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR)) - 648:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 649:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /*Save the error code*/ - 650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** FLASH_SetErrorCode(); - 651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return HAL_ERROR; - 652:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 653:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 654:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* There is no error flag set */ - 655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return HAL_OK; - 656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 657:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 658:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 659:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /** - 660:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @brief Set the specific FLASH error flag. - 661:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** * @retval None - 662:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** */ - 663:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** static void FLASH_SetErrorCode(void) - 664:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 67 .loc 1 664 0 - 68 .cfi_startproc - 69 @ args = 0, pretend = 0, frame = 0 - 70 @ frame_needed = 0, uses_anonymous_args = 0 - 71 @ link register save eliminated. - 72 .LVL1: - 665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** uint32_t flags = 0U; - 666:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 667:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR)) - 73 .loc 1 667 0 - 74 0000 0C4B ldr r3, .L8 - 75 0002 DB68 ldr r3, [r3, #12] - 76 0004 DB06 lsls r3, r3, #27 - 77 0006 13D5 bpl .L7 -ARM GAS /tmp/ccbuSUal.s page 14 - - - 668:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 669:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ErrorCode |= HAL_FLASH_ERROR_WRP; - 78 .loc 1 669 0 - 79 0008 0B4A ldr r2, .L8+4 - 80 000a D369 ldr r3, [r2, #28] - 81 000c 0221 movs r1, #2 - 82 000e 0B43 orrs r3, r1 - 83 0010 D361 str r3, [r2, #28] - 84 .LVL2: - 670:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** flags |= FLASH_FLAG_WRPERR; - 85 .loc 1 670 0 - 86 0012 1023 movs r3, #16 - 87 .LVL3: - 88 .L5: - 671:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 672:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR)) - 89 .loc 1 672 0 - 90 0014 074A ldr r2, .L8 - 91 0016 D268 ldr r2, [r2, #12] - 92 0018 5207 lsls r2, r2, #29 - 93 001a 06D5 bpl .L6 - 673:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 674:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ErrorCode |= HAL_FLASH_ERROR_PROG; - 94 .loc 1 674 0 - 95 001c 0649 ldr r1, .L8+4 - 96 001e CA69 ldr r2, [r1, #28] - 97 0020 0120 movs r0, #1 - 98 0022 0243 orrs r2, r0 - 99 0024 CA61 str r2, [r1, #28] - 675:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** flags |= FLASH_FLAG_PGERR; - 100 .loc 1 675 0 - 101 0026 0422 movs r2, #4 - 102 0028 1343 orrs r3, r2 - 103 .LVL4: - 104 .L6: - 676:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 677:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Clear FLASH error pending bits */ - 678:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(flags); - 105 .loc 1 678 0 - 106 002a 024A ldr r2, .L8 - 107 002c D360 str r3, [r2, #12] - 679:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 108 .loc 1 679 0 - 109 @ sp needed - 110 002e 7047 bx lr - 111 .LVL5: - 112 .L7: - 665:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 113 .loc 1 665 0 - 114 0030 0023 movs r3, #0 - 115 0032 EFE7 b .L5 - 116 .L9: - 117 .align 2 - 118 .L8: - 119 0034 00200240 .word 1073881088 - 120 0038 00000000 .word pFlash - 121 .cfi_endproc -ARM GAS /tmp/ccbuSUal.s page 15 - - - 122 .LFE53: - 124 .section .text.HAL_FLASH_Program_IT,"ax",%progbits - 125 .align 1 - 126 .global HAL_FLASH_Program_IT - 127 .syntax unified - 128 .code 16 - 129 .thumb_func - 130 .fpu softvfp - 132 HAL_FLASH_Program_IT: - 133 .LFB41: - 240:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK; - 134 .loc 1 240 0 - 135 .cfi_startproc - 136 @ args = 0, pretend = 0, frame = 0 - 137 @ frame_needed = 0, uses_anonymous_args = 0 - 138 .LVL6: - 139 0000 F8B5 push {r3, r4, r5, r6, r7, lr} - 140 .LCFI1: - 141 .cfi_def_cfa_offset 24 - 142 .cfi_offset 3, -24 - 143 .cfi_offset 4, -20 - 144 .cfi_offset 5, -16 - 145 .cfi_offset 6, -12 - 146 .cfi_offset 7, -8 - 147 .cfi_offset 14, -4 - 148 0002 0C00 movs r4, r1 - 149 .LVL7: - 244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 150 .loc 1 244 0 - 151 0004 1549 ldr r1, .L18 - 152 .LVL8: - 153 0006 097E ldrb r1, [r1, #24] - 154 0008 0129 cmp r1, #1 - 155 000a 25D0 beq .L15 - 244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 156 .loc 1 244 0 is_stmt 0 discriminator 2 - 157 000c 1349 ldr r1, .L18 - 158 000e 0125 movs r5, #1 - 159 0010 0D76 strb r5, [r1, #24] - 251:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 160 .loc 1 251 0 is_stmt 1 discriminator 2 - 161 0012 134E ldr r6, .L18+4 - 162 0014 3769 ldr r7, [r6, #16] - 163 0016 A025 movs r5, #160 - 164 0018 6D01 lsls r5, r5, #5 - 165 001a 3D43 orrs r5, r7 - 166 001c 3561 str r5, [r6, #16] - 253:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.Data = Data; - 167 .loc 1 253 0 discriminator 2 - 168 001e 8C60 str r4, [r1, #8] - 254:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 169 .loc 1 254 0 discriminator 2 - 170 0020 0A61 str r2, [r1, #16] - 171 0022 4B61 str r3, [r1, #20] - 256:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 172 .loc 1 256 0 discriminator 2 - 173 0024 0128 cmp r0, #1 -ARM GAS /tmp/ccbuSUal.s page 16 - - - 174 0026 0CD0 beq .L16 - 262:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 175 .loc 1 262 0 - 176 0028 0228 cmp r0, #2 - 177 002a 0FD0 beq .L17 - 270:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Program double word (64-bit : 4*16-bit) at a specified address. */ - 178 .loc 1 270 0 - 179 002c 0B49 ldr r1, .L18 - 180 002e 0520 movs r0, #5 - 181 .LVL9: - 182 0030 0870 strb r0, [r1] - 272:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 183 .loc 1 272 0 - 184 0032 0138 subs r0, r0, #1 - 185 0034 4860 str r0, [r1, #4] - 186 .L13: - 276:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 187 .loc 1 276 0 - 188 0036 91B2 uxth r1, r2 - 189 0038 2000 movs r0, r4 - 190 003a FFF7FEFF bl FLASH_Program_HalfWord - 191 .LVL10: - 278:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 192 .loc 1 278 0 - 193 003e 0020 movs r0, #0 - 194 .L11: - 279:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 195 .loc 1 279 0 - 196 @ sp needed - 197 .LVL11: - 198 0040 F8BD pop {r3, r4, r5, r6, r7, pc} - 199 .LVL12: - 200 .L16: - 258:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Program halfword (16-bit) at a specified address. */ - 201 .loc 1 258 0 - 202 0042 0230 adds r0, r0, #2 - 203 .LVL13: - 204 0044 0870 strb r0, [r1] - 260:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 205 .loc 1 260 0 - 206 0046 0238 subs r0, r0, #2 - 207 .LVL14: - 208 0048 4860 str r0, [r1, #4] - 209 004a F4E7 b .L13 - 210 .L17: - 264:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Program word (32-bit : 2*16-bit) at a specified address. */ - 211 .loc 1 264 0 - 212 004c 0349 ldr r1, .L18 - 213 004e 0230 adds r0, r0, #2 - 214 .LVL15: - 215 0050 0870 strb r0, [r1] - 266:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 216 .loc 1 266 0 - 217 0052 0238 subs r0, r0, #2 - 218 .LVL16: - 219 0054 4860 str r0, [r1, #4] - 220 0056 EEE7 b .L13 -ARM GAS /tmp/ccbuSUal.s page 17 - - - 221 .L15: - 244:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 222 .loc 1 244 0 - 223 0058 0220 movs r0, #2 - 224 .LVL17: - 225 005a F1E7 b .L11 - 226 .L19: - 227 .align 2 - 228 .L18: - 229 005c 00000000 .word pFlash - 230 0060 00200240 .word 1073881088 - 231 .cfi_endproc - 232 .LFE41: - 234 .section .text.HAL_FLASH_EndOfOperationCallback,"ax",%progbits - 235 .align 1 - 236 .weak HAL_FLASH_EndOfOperationCallback - 237 .syntax unified - 238 .code 16 - 239 .thumb_func - 240 .fpu softvfp - 242 HAL_FLASH_EndOfOperationCallback: - 243 .LFB43: - 429:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Prevent unused argument(s) compilation warning */ - 244 .loc 1 429 0 - 245 .cfi_startproc - 246 @ args = 0, pretend = 0, frame = 0 - 247 @ frame_needed = 0, uses_anonymous_args = 0 - 248 @ link register save eliminated. - 249 .LVL18: - 436:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 250 .loc 1 436 0 - 251 @ sp needed - 252 0000 7047 bx lr - 253 .cfi_endproc - 254 .LFE43: - 256 .section .text.HAL_FLASH_OperationErrorCallback,"ax",%progbits - 257 .align 1 - 258 .weak HAL_FLASH_OperationErrorCallback - 259 .syntax unified - 260 .code 16 - 261 .thumb_func - 262 .fpu softvfp - 264 HAL_FLASH_OperationErrorCallback: - 265 .LFB44: - 447:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Prevent unused argument(s) compilation warning */ - 266 .loc 1 447 0 - 267 .cfi_startproc - 268 @ args = 0, pretend = 0, frame = 0 - 269 @ frame_needed = 0, uses_anonymous_args = 0 - 270 @ link register save eliminated. - 271 .LVL19: - 454:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 272 .loc 1 454 0 - 273 @ sp needed - 274 0000 7047 bx lr - 275 .cfi_endproc - 276 .LFE44: -ARM GAS /tmp/ccbuSUal.s page 18 - - - 278 .section .text.HAL_FLASH_IRQHandler,"ax",%progbits - 279 .align 1 - 280 .global HAL_FLASH_IRQHandler - 281 .syntax unified - 282 .code 16 - 283 .thumb_func - 284 .fpu softvfp - 286 HAL_FLASH_IRQHandler: - 287 .LFB42: - 286:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** uint32_t addresstmp = 0U; - 288 .loc 1 286 0 - 289 .cfi_startproc - 290 @ args = 0, pretend = 0, frame = 0 - 291 @ frame_needed = 0, uses_anonymous_args = 0 - 292 0000 F8B5 push {r3, r4, r5, r6, r7, lr} - 293 .LCFI2: - 294 .cfi_def_cfa_offset 24 - 295 .cfi_offset 3, -24 - 296 .cfi_offset 4, -20 - 297 .cfi_offset 5, -16 - 298 .cfi_offset 6, -12 - 299 .cfi_offset 7, -8 - 300 .cfi_offset 14, -4 - 301 .LVL20: - 290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 302 .loc 1 290 0 - 303 0002 514B ldr r3, .L39 - 304 0004 DB68 ldr r3, [r3, #12] - 305 0006 DB06 lsls r3, r3, #27 - 306 0008 03D4 bmi .L23 - 290:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 307 .loc 1 290 0 is_stmt 0 discriminator 1 - 308 000a 4F4B ldr r3, .L39 - 309 000c DB68 ldr r3, [r3, #12] - 310 000e 5B07 lsls r3, r3, #29 - 311 0010 0BD5 bpl .L24 - 312 .L23: - 293:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Reset address */ - 313 .loc 1 293 0 is_stmt 1 - 314 0012 4E4C ldr r4, .L39+4 - 315 0014 A568 ldr r5, [r4, #8] - 316 .LVL21: - 295:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 317 .loc 1 295 0 - 318 0016 0123 movs r3, #1 - 319 0018 5B42 rsbs r3, r3, #0 - 320 001a A360 str r3, [r4, #8] - 298:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 321 .loc 1 298 0 - 322 001c FFF7FEFF bl FLASH_SetErrorCode - 323 .LVL22: - 301:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 324 .loc 1 301 0 - 325 0020 2800 movs r0, r5 - 326 0022 FFF7FEFF bl HAL_FLASH_OperationErrorCallback - 327 .LVL23: - 304:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } -ARM GAS /tmp/ccbuSUal.s page 19 - - - 328 .loc 1 304 0 - 329 0026 0023 movs r3, #0 - 330 0028 2370 strb r3, [r4] - 331 .LVL24: - 332 .L24: - 308:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 333 .loc 1 308 0 - 334 002a 474B ldr r3, .L39 - 335 002c DB68 ldr r3, [r3, #12] - 336 002e 9B06 lsls r3, r3, #26 - 337 0030 28D5 bpl .L25 - 311:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 338 .loc 1 311 0 - 339 0032 454B ldr r3, .L39 - 340 0034 2022 movs r2, #32 - 341 0036 DA60 str r2, [r3, #12] - 314:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 342 .loc 1 314 0 - 343 0038 444B ldr r3, .L39+4 - 344 003a 1B78 ldrb r3, [r3] - 345 003c 002B cmp r3, #0 - 346 003e 21D0 beq .L25 - 316:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 347 .loc 1 316 0 - 348 0040 424B ldr r3, .L39+4 - 349 0042 1B78 ldrb r3, [r3] - 350 0044 012B cmp r3, #1 - 351 0046 2ED0 beq .L34 - 347:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 352 .loc 1 347 0 - 353 0048 404B ldr r3, .L39+4 - 354 004a 1B78 ldrb r3, [r3] - 355 004c 022B cmp r3, #2 - 356 004e 4CD0 beq .L35 - 362:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 357 .loc 1 362 0 - 358 0050 3E4B ldr r3, .L39+4 - 359 0052 5A68 ldr r2, [r3, #4] - 360 0054 013A subs r2, r2, #1 - 361 0056 5A60 str r2, [r3, #4] - 365:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 362 .loc 1 365 0 - 363 0058 5B68 ldr r3, [r3, #4] - 364 005a 002B cmp r3, #0 - 365 005c 51D1 bne .L36 - 384:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 366 .loc 1 384 0 - 367 005e 3B4B ldr r3, .L39+4 - 368 0060 1B78 ldrb r3, [r3] - 369 0062 032B cmp r3, #3 - 370 0064 65D0 beq .L37 - 388:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 371 .loc 1 388 0 - 372 0066 394B ldr r3, .L39+4 - 373 0068 1B78 ldrb r3, [r3] - 374 006a 042B cmp r3, #4 - 375 006c 66D0 beq .L38 -ARM GAS /tmp/ccbuSUal.s page 20 - - - 394:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 376 .loc 1 394 0 - 377 006e 374B ldr r3, .L39+4 - 378 0070 9868 ldr r0, [r3, #8] - 379 0072 0638 subs r0, r0, #6 - 380 0074 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback - 381 .LVL25: - 382 .L31: - 398:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE; - 383 .loc 1 398 0 - 384 0078 344B ldr r3, .L39+4 - 385 007a 0122 movs r2, #1 - 386 007c 5242 rsbs r2, r2, #0 - 387 007e 9A60 str r2, [r3, #8] - 399:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 388 .loc 1 399 0 - 389 0080 0022 movs r2, #0 - 390 0082 1A70 strb r2, [r3] - 391 .L25: - 406:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 392 .loc 1 406 0 - 393 0084 314B ldr r3, .L39+4 - 394 0086 1B78 ldrb r3, [r3] - 395 0088 002B cmp r3, #0 - 396 008a 0BD1 bne .L22 - 409:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 397 .loc 1 409 0 - 398 008c 2E4B ldr r3, .L39 - 399 008e 1A69 ldr r2, [r3, #16] - 400 0090 0721 movs r1, #7 - 401 0092 8A43 bics r2, r1 - 402 0094 1A61 str r2, [r3, #16] - 412:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 403 .loc 1 412 0 - 404 0096 1A69 ldr r2, [r3, #16] - 405 0098 2D49 ldr r1, .L39+8 - 406 009a 0A40 ands r2, r1 - 407 009c 1A61 str r2, [r3, #16] - 415:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 408 .loc 1 415 0 - 409 009e 2B4B ldr r3, .L39+4 - 410 00a0 0022 movs r2, #0 - 411 00a2 1A76 strb r2, [r3, #24] - 412 .L22: - 417:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 413 .loc 1 417 0 - 414 @ sp needed - 415 00a4 F8BD pop {r3, r4, r5, r6, r7, pc} - 416 .L34: - 319:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 417 .loc 1 319 0 - 418 00a6 294B ldr r3, .L39+4 - 419 00a8 5A68 ldr r2, [r3, #4] - 420 00aa 013A subs r2, r2, #1 - 421 00ac 5A60 str r2, [r3, #4] - 322:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 422 .loc 1 322 0 -ARM GAS /tmp/ccbuSUal.s page 21 - - - 423 00ae 5B68 ldr r3, [r3, #4] - 424 00b0 002B cmp r3, #0 - 425 00b2 11D0 beq .L27 - 324:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /*Indicate user which sector has been erased */ - 426 .loc 1 324 0 - 427 00b4 254C ldr r4, .L39+4 - 428 00b6 A068 ldr r0, [r4, #8] - 429 .LVL26: - 326:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 430 .loc 1 326 0 - 431 00b8 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback - 432 .LVL27: - 329:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.Address = addresstmp; - 433 .loc 1 329 0 - 434 00bc A068 ldr r0, [r4, #8] - 435 00be 8023 movs r3, #128 - 436 00c0 1B01 lsls r3, r3, #4 - 437 00c2 9C46 mov ip, r3 - 438 00c4 6044 add r0, r0, ip - 439 .LVL28: - 330:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 440 .loc 1 330 0 - 441 00c6 A060 str r0, [r4, #8] - 333:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 442 .loc 1 333 0 - 443 00c8 1F4A ldr r2, .L39 - 444 00ca 1369 ldr r3, [r2, #16] - 445 00cc 0221 movs r1, #2 - 446 00ce 8B43 bics r3, r1 - 447 00d0 1361 str r3, [r2, #16] - 335:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 448 .loc 1 335 0 - 449 00d2 FFF7FEFF bl FLASH_PageErase - 450 .LVL29: - 451 00d6 D5E7 b .L25 - 452 .L27: - 453 .LVL30: - 341:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE; - 454 .loc 1 341 0 - 455 00d8 1C4B ldr r3, .L39+4 - 456 00da 0120 movs r0, #1 - 457 00dc 4042 rsbs r0, r0, #0 - 458 00de 9860 str r0, [r3, #8] - 342:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* FLASH EOP interrupt user callback */ - 459 .loc 1 342 0 - 460 00e0 0022 movs r2, #0 - 461 00e2 1A70 strb r2, [r3] - 344:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 462 .loc 1 344 0 - 463 00e4 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback - 464 .LVL31: - 465 00e8 CCE7 b .L25 - 466 .LVL32: - 467 .L35: - 350:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 468 .loc 1 350 0 - 469 00ea 174A ldr r2, .L39 -ARM GAS /tmp/ccbuSUal.s page 22 - - - 470 00ec 1369 ldr r3, [r2, #16] - 471 00ee 0421 movs r1, #4 - 472 00f0 8B43 bics r3, r1 - 473 00f2 1361 str r3, [r2, #16] - 354:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 474 .loc 1 354 0 - 475 00f4 0020 movs r0, #0 - 476 00f6 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback - 477 .LVL33: - 357:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 478 .loc 1 357 0 - 479 00fa 144B ldr r3, .L39+4 - 480 00fc 0022 movs r2, #0 - 481 00fe 1A70 strb r2, [r3] - 482 0100 C0E7 b .L25 - 483 .L36: - 368:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** addresstmp = pFlash.Address; - 484 .loc 1 368 0 - 485 0102 124B ldr r3, .L39+4 - 486 0104 9A68 ldr r2, [r3, #8] - 487 0106 0232 adds r2, r2, #2 - 488 0108 9A60 str r2, [r3, #8] - 369:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 489 .loc 1 369 0 - 490 010a 9868 ldr r0, [r3, #8] - 491 .LVL34: - 372:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 492 .loc 1 372 0 - 493 010c 1E69 ldr r6, [r3, #16] - 494 010e 5F69 ldr r7, [r3, #20] - 495 0110 3A04 lsls r2, r7, #16 - 496 0112 340C lsrs r4, r6, #16 - 497 0114 1443 orrs r4, r2 - 498 0116 3D0C lsrs r5, r7, #16 - 499 0118 1C61 str r4, [r3, #16] - 500 011a 5D61 str r5, [r3, #20] - 375:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 501 .loc 1 375 0 - 502 011c 0A49 ldr r1, .L39 - 503 011e 0A69 ldr r2, [r1, #16] - 504 0120 0124 movs r4, #1 - 505 0122 A243 bics r2, r4 - 506 0124 0A61 str r2, [r1, #16] - 378:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 507 .loc 1 378 0 - 508 0126 1A69 ldr r2, [r3, #16] - 509 0128 5B69 ldr r3, [r3, #20] - 510 012a 91B2 uxth r1, r2 - 511 012c FFF7FEFF bl FLASH_Program_HalfWord - 512 .LVL35: - 513 0130 A8E7 b .L25 - 514 .L37: - 386:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 515 .loc 1 386 0 - 516 0132 064B ldr r3, .L39+4 - 517 0134 9868 ldr r0, [r3, #8] - 518 0136 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback -ARM GAS /tmp/ccbuSUal.s page 23 - - - 519 .LVL36: - 520 013a 9DE7 b .L31 - 521 .L38: - 390:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 522 .loc 1 390 0 - 523 013c 034B ldr r3, .L39+4 - 524 013e 9868 ldr r0, [r3, #8] - 525 0140 0238 subs r0, r0, #2 - 526 0142 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback - 527 .LVL37: - 528 0146 97E7 b .L31 - 529 .L40: - 530 .align 2 - 531 .L39: - 532 0148 00200240 .word 1073881088 - 533 014c 00000000 .word pFlash - 534 0150 FFEBFFFF .word -5121 - 535 .cfi_endproc - 536 .LFE42: - 538 .section .text.HAL_FLASH_Unlock,"ax",%progbits - 539 .align 1 - 540 .global HAL_FLASH_Unlock - 541 .syntax unified - 542 .code 16 - 543 .thumb_func - 544 .fpu softvfp - 546 HAL_FLASH_Unlock: - 547 .LFB45: - 480:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK; - 548 .loc 1 480 0 - 549 .cfi_startproc - 550 @ args = 0, pretend = 0, frame = 0 - 551 @ frame_needed = 0, uses_anonymous_args = 0 - 552 @ link register save eliminated. - 553 .LVL38: - 483:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 554 .loc 1 483 0 - 555 0000 084B ldr r3, .L46 - 556 0002 1B69 ldr r3, [r3, #16] - 557 0004 1B06 lsls r3, r3, #24 - 558 0006 0BD5 bpl .L43 - 486:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** WRITE_REG(FLASH->KEYR, FLASH_KEY2); - 559 .loc 1 486 0 - 560 0008 064B ldr r3, .L46 - 561 000a 074A ldr r2, .L46+4 - 562 000c 5A60 str r2, [r3, #4] - 487:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 563 .loc 1 487 0 - 564 000e 074A ldr r2, .L46+8 - 565 0010 5A60 str r2, [r3, #4] - 490:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 566 .loc 1 490 0 - 567 0012 1B69 ldr r3, [r3, #16] - 568 0014 1B06 lsls r3, r3, #24 - 569 0016 01D5 bpl .L45 - 492:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 570 .loc 1 492 0 -ARM GAS /tmp/ccbuSUal.s page 24 - - - 571 0018 0120 movs r0, #1 - 572 001a 02E0 b .L42 - 573 .L45: - 481:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 574 .loc 1 481 0 - 575 001c 0020 movs r0, #0 - 576 001e 00E0 b .L42 - 577 .L43: - 578 0020 0020 movs r0, #0 - 579 .L42: - 580 .LVL39: - 497:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 581 .loc 1 497 0 - 582 @ sp needed - 583 0022 7047 bx lr - 584 .L47: - 585 .align 2 - 586 .L46: - 587 0024 00200240 .word 1073881088 - 588 0028 23016745 .word 1164378403 - 589 002c AB89EFCD .word -839939669 - 590 .cfi_endproc - 591 .LFE45: - 593 .section .text.HAL_FLASH_Lock,"ax",%progbits - 594 .align 1 - 595 .global HAL_FLASH_Lock - 596 .syntax unified - 597 .code 16 - 598 .thumb_func - 599 .fpu softvfp - 601 HAL_FLASH_Lock: - 602 .LFB46: - 504:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Set the LOCK Bit to lock the FLASH Registers access */ - 603 .loc 1 504 0 - 604 .cfi_startproc - 605 @ args = 0, pretend = 0, frame = 0 - 606 @ frame_needed = 0, uses_anonymous_args = 0 - 607 @ link register save eliminated. - 506:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 608 .loc 1 506 0 - 609 0000 034A ldr r2, .L49 - 610 0002 1369 ldr r3, [r2, #16] - 611 0004 8021 movs r1, #128 - 612 0006 0B43 orrs r3, r1 - 613 0008 1361 str r3, [r2, #16] - 509:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 614 .loc 1 509 0 - 615 000a 0020 movs r0, #0 - 616 @ sp needed - 617 000c 7047 bx lr - 618 .L50: - 619 000e C046 .align 2 - 620 .L49: - 621 0010 00200240 .word 1073881088 - 622 .cfi_endproc - 623 .LFE46: - 625 .section .text.HAL_FLASH_OB_Unlock,"ax",%progbits -ARM GAS /tmp/ccbuSUal.s page 25 - - - 626 .align 1 - 627 .global HAL_FLASH_OB_Unlock - 628 .syntax unified - 629 .code 16 - 630 .thumb_func - 631 .fpu softvfp - 633 HAL_FLASH_OB_Unlock: - 634 .LFB47: - 516:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** if (HAL_IS_BIT_CLR(FLASH->CR, FLASH_CR_OPTWRE)) - 635 .loc 1 516 0 - 636 .cfi_startproc - 637 @ args = 0, pretend = 0, frame = 0 - 638 @ frame_needed = 0, uses_anonymous_args = 0 - 639 @ link register save eliminated. - 517:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 640 .loc 1 517 0 - 641 0000 064B ldr r3, .L54 - 642 0002 1B69 ldr r3, [r3, #16] - 643 0004 9B05 lsls r3, r3, #22 - 644 0006 06D4 bmi .L53 - 520:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** WRITE_REG(FLASH->OPTKEYR, FLASH_OPTKEY2); - 645 .loc 1 520 0 - 646 0008 044B ldr r3, .L54 - 647 000a 054A ldr r2, .L54+4 - 648 000c 9A60 str r2, [r3, #8] - 521:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 649 .loc 1 521 0 - 650 000e 054A ldr r2, .L54+8 - 651 0010 9A60 str r2, [r3, #8] - 528:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 652 .loc 1 528 0 - 653 0012 0020 movs r0, #0 - 654 .L52: - 529:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 655 .loc 1 529 0 - 656 @ sp needed - 657 0014 7047 bx lr - 658 .L53: - 525:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 659 .loc 1 525 0 - 660 0016 0120 movs r0, #1 - 661 0018 FCE7 b .L52 - 662 .L55: - 663 001a C046 .align 2 - 664 .L54: - 665 001c 00200240 .word 1073881088 - 666 0020 23016745 .word 1164378403 - 667 0024 AB89EFCD .word -839939669 - 668 .cfi_endproc - 669 .LFE47: - 671 .section .text.HAL_FLASH_OB_Lock,"ax",%progbits - 672 .align 1 - 673 .global HAL_FLASH_OB_Lock - 674 .syntax unified - 675 .code 16 - 676 .thumb_func - 677 .fpu softvfp -ARM GAS /tmp/ccbuSUal.s page 26 - - - 679 HAL_FLASH_OB_Lock: - 680 .LFB48: - 536:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Clear the OPTWRE Bit to lock the FLASH Option Byte Registers access */ - 681 .loc 1 536 0 - 682 .cfi_startproc - 683 @ args = 0, pretend = 0, frame = 0 - 684 @ frame_needed = 0, uses_anonymous_args = 0 - 685 @ link register save eliminated. - 538:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 686 .loc 1 538 0 - 687 0000 034A ldr r2, .L57 - 688 0002 1369 ldr r3, [r2, #16] - 689 0004 0349 ldr r1, .L57+4 - 690 0006 0B40 ands r3, r1 - 691 0008 1361 str r3, [r2, #16] - 541:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 692 .loc 1 541 0 - 693 000a 0020 movs r0, #0 - 694 @ sp needed - 695 000c 7047 bx lr - 696 .L58: - 697 000e C046 .align 2 - 698 .L57: - 699 0010 00200240 .word 1073881088 - 700 0014 FFFDFFFF .word -513 - 701 .cfi_endproc - 702 .LFE48: - 704 .section .text.HAL_FLASH_GetError,"ax",%progbits - 705 .align 1 - 706 .global HAL_FLASH_GetError - 707 .syntax unified - 708 .code 16 - 709 .thumb_func - 710 .fpu softvfp - 712 HAL_FLASH_GetError: - 713 .LFB50: - 581:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return pFlash.ErrorCode; - 714 .loc 1 581 0 - 715 .cfi_startproc - 716 @ args = 0, pretend = 0, frame = 0 - 717 @ frame_needed = 0, uses_anonymous_args = 0 - 718 @ link register save eliminated. - 582:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 719 .loc 1 582 0 - 720 0000 014B ldr r3, .L60 - 721 0002 D869 ldr r0, [r3, #28] - 583:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 722 .loc 1 583 0 - 723 @ sp needed - 724 0004 7047 bx lr - 725 .L61: - 726 0006 C046 .align 2 - 727 .L60: - 728 0008 00000000 .word pFlash - 729 .cfi_endproc - 730 .LFE50: - 732 .section .text.FLASH_WaitForLastOperation,"ax",%progbits -ARM GAS /tmp/ccbuSUal.s page 27 - - - 733 .align 1 - 734 .global FLASH_WaitForLastOperation - 735 .syntax unified - 736 .code 16 - 737 .thumb_func - 738 .fpu softvfp - 740 FLASH_WaitForLastOperation: - 741 .LFB52: - 621:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Wait for the FLASH operation to complete by polling on BUSY flag to be reset. - 742 .loc 1 621 0 - 743 .cfi_startproc - 744 @ args = 0, pretend = 0, frame = 0 - 745 @ frame_needed = 0, uses_anonymous_args = 0 - 746 .LVL40: - 747 0000 70B5 push {r4, r5, r6, lr} - 748 .LCFI3: - 749 .cfi_def_cfa_offset 16 - 750 .cfi_offset 4, -16 - 751 .cfi_offset 5, -12 - 752 .cfi_offset 6, -8 - 753 .cfi_offset 14, -4 - 754 0002 0400 movs r4, r0 - 626:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 755 .loc 1 626 0 - 756 0004 FFF7FEFF bl HAL_GetTick - 757 .LVL41: - 758 0008 0500 movs r5, r0 - 759 .LVL42: - 760 .L64: - 628:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 761 .loc 1 628 0 - 762 000a 134B ldr r3, .L73 - 763 000c DB68 ldr r3, [r3, #12] - 764 000e DB07 lsls r3, r3, #31 - 765 0010 0AD5 bpl .L72 - 630:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 766 .loc 1 630 0 - 767 0012 631C adds r3, r4, #1 - 768 0014 F9D0 beq .L64 - 632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 769 .loc 1 632 0 - 770 0016 002C cmp r4, #0 - 771 0018 19D0 beq .L69 - 632:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 772 .loc 1 632 0 is_stmt 0 discriminator 1 - 773 001a FFF7FEFF bl HAL_GetTick - 774 .LVL43: - 775 001e 401B subs r0, r0, r5 - 776 0020 A042 cmp r0, r4 - 777 0022 F2D9 bls .L64 - 634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 778 .loc 1 634 0 is_stmt 1 - 779 0024 0320 movs r0, #3 - 780 0026 11E0 b .L65 - 781 .L72: - 640:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 782 .loc 1 640 0 -ARM GAS /tmp/ccbuSUal.s page 28 - - - 783 0028 0B4B ldr r3, .L73 - 784 002a DB68 ldr r3, [r3, #12] - 785 002c 9B06 lsls r3, r3, #26 - 786 002e 02D5 bpl .L67 - 643:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 787 .loc 1 643 0 - 788 0030 094B ldr r3, .L73 - 789 0032 2022 movs r2, #32 - 790 0034 DA60 str r2, [r3, #12] - 791 .L67: - 646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR)) - 792 .loc 1 646 0 - 793 0036 084B ldr r3, .L73 - 794 0038 DB68 ldr r3, [r3, #12] - 795 003a DB06 lsls r3, r3, #27 - 796 003c 03D4 bmi .L68 - 647:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 797 .loc 1 647 0 discriminator 1 - 798 003e 064B ldr r3, .L73 - 799 0040 DB68 ldr r3, [r3, #12] - 646:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** __HAL_FLASH_GET_FLAG(FLASH_FLAG_PGERR)) - 800 .loc 1 646 0 discriminator 1 - 801 0042 5B07 lsls r3, r3, #29 - 802 0044 05D5 bpl .L71 - 803 .L68: - 650:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** return HAL_ERROR; - 804 .loc 1 650 0 - 805 0046 FFF7FEFF bl FLASH_SetErrorCode - 806 .LVL44: - 651:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 807 .loc 1 651 0 - 808 004a 0120 movs r0, #1 - 809 .L65: - 656:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 810 .loc 1 656 0 - 811 @ sp needed - 812 .LVL45: - 813 .LVL46: - 814 004c 70BD pop {r4, r5, r6, pc} - 815 .LVL47: - 816 .L69: - 634:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 817 .loc 1 634 0 - 818 004e 0320 movs r0, #3 - 819 0050 FCE7 b .L65 - 820 .L71: - 655:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 821 .loc 1 655 0 - 822 0052 0020 movs r0, #0 - 823 0054 FAE7 b .L65 - 824 .L74: - 825 0056 C046 .align 2 - 826 .L73: - 827 0058 00200240 .word 1073881088 - 828 .cfi_endproc - 829 .LFE52: - 831 .section .text.HAL_FLASH_Program,"ax",%progbits -ARM GAS /tmp/ccbuSUal.s page 29 - - - 832 .align 1 - 833 .global HAL_FLASH_Program - 834 .syntax unified - 835 .code 16 - 836 .thumb_func - 837 .fpu softvfp - 839 HAL_FLASH_Program: - 840 .LFB40: - 168:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_ERROR; - 841 .loc 1 168 0 - 842 .cfi_startproc - 843 @ args = 0, pretend = 0, frame = 0 - 844 @ frame_needed = 0, uses_anonymous_args = 0 - 845 .LVL48: - 846 0000 F0B5 push {r4, r5, r6, r7, lr} - 847 .LCFI4: - 848 .cfi_def_cfa_offset 20 - 849 .cfi_offset 4, -20 - 850 .cfi_offset 5, -16 - 851 .cfi_offset 6, -12 - 852 .cfi_offset 7, -8 - 853 .cfi_offset 14, -4 - 854 0002 C646 mov lr, r8 - 855 0004 00B5 push {lr} - 856 .LCFI5: - 857 .cfi_def_cfa_offset 24 - 858 .cfi_offset 8, -24 - 859 0006 0400 movs r4, r0 - 860 0008 0D00 movs r5, r1 - 861 000a 9046 mov r8, r2 - 862 000c 1E00 movs r6, r3 - 863 .LVL49: - 174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 864 .loc 1 174 0 - 865 000e 214B ldr r3, .L87 - 866 0010 1B7E ldrb r3, [r3, #24] - 867 0012 012B cmp r3, #1 - 868 0014 3BD0 beq .L83 - 174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 869 .loc 1 174 0 is_stmt 0 discriminator 2 - 870 0016 1F4B ldr r3, .L87 - 871 0018 0122 movs r2, #1 - 872 .LVL50: - 873 001a 1A76 strb r2, [r3, #24] - 181:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 874 .loc 1 181 0 is_stmt 1 discriminator 2 - 875 001c 1E48 ldr r0, .L87+4 - 876 .LVL51: - 877 001e FFF7FEFF bl FLASH_WaitForLastOperation - 878 .LVL52: - 183:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 879 .loc 1 183 0 discriminator 2 - 880 0022 0028 cmp r0, #0 - 881 0024 2DD1 bne .L77 - 185:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 882 .loc 1 185 0 - 883 0026 012C cmp r4, #1 -ARM GAS /tmp/ccbuSUal.s page 30 - - - 884 0028 06D0 beq .L84 - 190:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 885 .loc 1 190 0 - 886 002a 022C cmp r4, #2 - 887 002c 02D0 beq .L86 - 198:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 888 .loc 1 198 0 - 889 002e 0427 movs r7, #4 - 890 .L78: - 891 .LVL53: - 201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 892 .loc 1 201 0 - 893 0030 0024 movs r4, #0 - 894 .LVL54: - 895 0032 1BE0 b .L79 - 896 .LVL55: - 897 .L86: - 193:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 898 .loc 1 193 0 - 899 0034 0227 movs r7, #2 - 900 0036 FBE7 b .L78 - 901 .L84: - 188:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 902 .loc 1 188 0 - 903 0038 0127 movs r7, #1 - 904 003a F9E7 b .L78 - 905 .LVL56: - 906 .L80: - 203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 907 .loc 1 203 0 - 908 003c 2022 movs r2, #32 - 909 003e D21A subs r2, r2, r3 - 910 0040 3100 movs r1, r6 - 911 0042 9140 lsls r1, r1, r2 - 912 0044 0A00 movs r2, r1 - 913 0046 4146 mov r1, r8 - 914 0048 D940 lsrs r1, r1, r3 - 915 004a 1143 orrs r1, r2 - 916 .L81: - 917 004c 89B2 uxth r1, r1 - 918 004e 4019 adds r0, r0, r5 - 919 0050 FFF7FEFF bl FLASH_Program_HalfWord - 920 .LVL57: - 206:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 921 .loc 1 206 0 - 922 0054 1048 ldr r0, .L87+4 - 923 0056 FFF7FEFF bl FLASH_WaitForLastOperation - 924 .LVL58: - 209:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* In case of error, stop programming procedure */ - 925 .loc 1 209 0 - 926 005a 104A ldr r2, .L87+8 - 927 005c 1369 ldr r3, [r2, #16] - 928 005e 0121 movs r1, #1 - 929 0060 8B43 bics r3, r1 - 930 0062 1361 str r3, [r2, #16] - 211:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 931 .loc 1 211 0 -ARM GAS /tmp/ccbuSUal.s page 31 - - - 932 0064 0028 cmp r0, #0 - 933 0066 0CD1 bne .L77 - 201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 934 .loc 1 201 0 discriminator 2 - 935 0068 0134 adds r4, r4, #1 - 936 .LVL59: - 937 006a E4B2 uxtb r4, r4 - 938 .LVL60: - 939 .L79: - 201:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** { - 940 .loc 1 201 0 is_stmt 0 discriminator 1 - 941 006c BC42 cmp r4, r7 - 942 006e 08D2 bcs .L77 - 203:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 943 .loc 1 203 0 is_stmt 1 - 944 0070 6000 lsls r0, r4, #1 - 945 .LVL61: - 946 0072 2301 lsls r3, r4, #4 - 947 0074 2022 movs r2, #32 - 948 0076 5242 rsbs r2, r2, #0 - 949 0078 9A18 adds r2, r3, r2 - 950 007a DFD4 bmi .L80 - 951 007c 3100 movs r1, r6 - 952 007e D140 lsrs r1, r1, r2 - 953 0080 E4E7 b .L81 - 954 .LVL62: - 955 .L77: - 219:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 956 .loc 1 219 0 - 957 0082 044B ldr r3, .L87 - 958 0084 0022 movs r2, #0 - 959 0086 1A76 strb r2, [r3, #24] - 960 .LVL63: - 961 .L76: - 222:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 962 .loc 1 222 0 - 963 @ sp needed - 964 .LVL64: - 965 0088 04BC pop {r2} - 966 008a 9046 mov r8, r2 - 967 008c F0BD pop {r4, r5, r6, r7, pc} - 968 .LVL65: - 969 .L83: - 174:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 970 .loc 1 174 0 - 971 008e 0220 movs r0, #2 - 972 .LVL66: - 973 0090 FAE7 b .L76 - 974 .L88: - 975 0092 C046 .align 2 - 976 .L87: - 977 0094 00000000 .word pFlash - 978 0098 50C30000 .word 50000 - 979 009c 00200240 .word 1073881088 - 980 .cfi_endproc - 981 .LFE40: - 983 .section .text.HAL_FLASH_OB_Launch,"ax",%progbits -ARM GAS /tmp/ccbuSUal.s page 32 - - - 984 .align 1 - 985 .global HAL_FLASH_OB_Launch - 986 .syntax unified - 987 .code 16 - 988 .thumb_func - 989 .fpu softvfp - 991 HAL_FLASH_OB_Launch: - 992 .LFB49: - 549:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** /* Set the OBL_Launch bit to launch the option byte loading */ - 993 .loc 1 549 0 - 994 .cfi_startproc - 995 @ args = 0, pretend = 0, frame = 0 - 996 @ frame_needed = 0, uses_anonymous_args = 0 - 997 0000 10B5 push {r4, lr} - 998 .LCFI6: - 999 .cfi_def_cfa_offset 8 - 1000 .cfi_offset 4, -8 - 1001 .cfi_offset 14, -4 - 551:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 1002 .loc 1 551 0 - 1003 0002 054A ldr r2, .L90 - 1004 0004 1169 ldr r1, [r2, #16] - 1005 0006 8023 movs r3, #128 - 1006 0008 9B01 lsls r3, r3, #6 - 1007 000a 0B43 orrs r3, r1 - 1008 000c 1361 str r3, [r2, #16] - 554:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** } - 1009 .loc 1 554 0 - 1010 000e 0348 ldr r0, .L90+4 - 1011 0010 FFF7FEFF bl FLASH_WaitForLastOperation - 1012 .LVL67: - 555:Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c **** - 1013 .loc 1 555 0 - 1014 @ sp needed - 1015 0014 10BD pop {r4, pc} - 1016 .L91: - 1017 0016 C046 .align 2 - 1018 .L90: - 1019 0018 00200240 .word 1073881088 - 1020 001c 50C30000 .word 50000 - 1021 .cfi_endproc - 1022 .LFE49: - 1024 .comm pFlash,32,8 - 1025 .text - 1026 .Letext0: - 1027 .file 2 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/machin - 1028 .file 3 "/home/janhenrik/programme/gcc-arm-none-eabi-7-2018-q2-update/arm-none-eabi/include/sys/_s - 1029 .file 4 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/system_stm32f0xx.h" - 1030 .file 5 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f072xb.h" - 1031 .file 6 "Drivers/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h" - 1032 .file 7 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_def.h" - 1033 .file 8 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash.h" - 1034 .file 9 "Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal.h" -ARM GAS /tmp/ccbuSUal.s page 33 - - -DEFINED SYMBOLS - *ABS*:0000000000000000 stm32f0xx_hal_flash.c - /tmp/ccbuSUal.s:16 .text.FLASH_Program_HalfWord:0000000000000000 $t - /tmp/ccbuSUal.s:22 .text.FLASH_Program_HalfWord:0000000000000000 FLASH_Program_HalfWord - /tmp/ccbuSUal.s:53 .text.FLASH_Program_HalfWord:0000000000000018 $d - *COM*:0000000000000020 pFlash - /tmp/ccbuSUal.s:59 .text.FLASH_SetErrorCode:0000000000000000 $t - /tmp/ccbuSUal.s:65 .text.FLASH_SetErrorCode:0000000000000000 FLASH_SetErrorCode - /tmp/ccbuSUal.s:119 .text.FLASH_SetErrorCode:0000000000000034 $d - /tmp/ccbuSUal.s:125 .text.HAL_FLASH_Program_IT:0000000000000000 $t - /tmp/ccbuSUal.s:132 .text.HAL_FLASH_Program_IT:0000000000000000 HAL_FLASH_Program_IT - /tmp/ccbuSUal.s:229 .text.HAL_FLASH_Program_IT:000000000000005c $d - /tmp/ccbuSUal.s:235 .text.HAL_FLASH_EndOfOperationCallback:0000000000000000 $t - /tmp/ccbuSUal.s:242 .text.HAL_FLASH_EndOfOperationCallback:0000000000000000 HAL_FLASH_EndOfOperationCallback - /tmp/ccbuSUal.s:257 .text.HAL_FLASH_OperationErrorCallback:0000000000000000 $t - /tmp/ccbuSUal.s:264 .text.HAL_FLASH_OperationErrorCallback:0000000000000000 HAL_FLASH_OperationErrorCallback - /tmp/ccbuSUal.s:279 .text.HAL_FLASH_IRQHandler:0000000000000000 $t - /tmp/ccbuSUal.s:286 .text.HAL_FLASH_IRQHandler:0000000000000000 HAL_FLASH_IRQHandler - /tmp/ccbuSUal.s:532 .text.HAL_FLASH_IRQHandler:0000000000000148 $d - /tmp/ccbuSUal.s:539 .text.HAL_FLASH_Unlock:0000000000000000 $t - /tmp/ccbuSUal.s:546 .text.HAL_FLASH_Unlock:0000000000000000 HAL_FLASH_Unlock - /tmp/ccbuSUal.s:587 .text.HAL_FLASH_Unlock:0000000000000024 $d - /tmp/ccbuSUal.s:594 .text.HAL_FLASH_Lock:0000000000000000 $t - /tmp/ccbuSUal.s:601 .text.HAL_FLASH_Lock:0000000000000000 HAL_FLASH_Lock - /tmp/ccbuSUal.s:621 .text.HAL_FLASH_Lock:0000000000000010 $d - /tmp/ccbuSUal.s:626 .text.HAL_FLASH_OB_Unlock:0000000000000000 $t - /tmp/ccbuSUal.s:633 .text.HAL_FLASH_OB_Unlock:0000000000000000 HAL_FLASH_OB_Unlock - /tmp/ccbuSUal.s:665 .text.HAL_FLASH_OB_Unlock:000000000000001c $d - /tmp/ccbuSUal.s:672 .text.HAL_FLASH_OB_Lock:0000000000000000 $t - /tmp/ccbuSUal.s:679 .text.HAL_FLASH_OB_Lock:0000000000000000 HAL_FLASH_OB_Lock - /tmp/ccbuSUal.s:699 .text.HAL_FLASH_OB_Lock:0000000000000010 $d - /tmp/ccbuSUal.s:705 .text.HAL_FLASH_GetError:0000000000000000 $t - /tmp/ccbuSUal.s:712 .text.HAL_FLASH_GetError:0000000000000000 HAL_FLASH_GetError - /tmp/ccbuSUal.s:728 .text.HAL_FLASH_GetError:0000000000000008 $d - /tmp/ccbuSUal.s:733 .text.FLASH_WaitForLastOperation:0000000000000000 $t - /tmp/ccbuSUal.s:740 .text.FLASH_WaitForLastOperation:0000000000000000 FLASH_WaitForLastOperation - /tmp/ccbuSUal.s:827 .text.FLASH_WaitForLastOperation:0000000000000058 $d - /tmp/ccbuSUal.s:832 .text.HAL_FLASH_Program:0000000000000000 $t - /tmp/ccbuSUal.s:839 .text.HAL_FLASH_Program:0000000000000000 HAL_FLASH_Program - /tmp/ccbuSUal.s:977 .text.HAL_FLASH_Program:0000000000000094 $d - /tmp/ccbuSUal.s:984 .text.HAL_FLASH_OB_Launch:0000000000000000 $t - /tmp/ccbuSUal.s:991 .text.HAL_FLASH_OB_Launch:0000000000000000 HAL_FLASH_OB_Launch - /tmp/ccbuSUal.s:1019 .text.HAL_FLASH_OB_Launch:0000000000000018 $d - -UNDEFINED SYMBOLS -FLASH_PageErase -HAL_GetTick |