stm32f4xx_hal_flash.lst 123 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080
  1. ARM GAS /tmp/ccjBtVhA.s page 1
  2. 1 .cpu cortex-m4
  3. 2 .eabi_attribute 27, 1
  4. 3 .eabi_attribute 28, 1
  5. 4 .eabi_attribute 20, 1
  6. 5 .eabi_attribute 21, 1
  7. 6 .eabi_attribute 23, 3
  8. 7 .eabi_attribute 24, 1
  9. 8 .eabi_attribute 25, 1
  10. 9 .eabi_attribute 26, 1
  11. 10 .eabi_attribute 30, 1
  12. 11 .eabi_attribute 34, 1
  13. 12 .eabi_attribute 18, 4
  14. 13 .file "stm32f4xx_hal_flash.c"
  15. 14 .text
  16. 15 .Ltext0:
  17. 16 .cfi_sections .debug_frame
  18. 17 .section .text.FLASH_Program_DoubleWord,"ax",%progbits
  19. 18 .align 1
  20. 19 .syntax unified
  21. 20 .thumb
  22. 21 .thumb_func
  23. 22 .fpu fpv4-sp-d16
  24. 24 FLASH_Program_DoubleWord:
  25. 25 .LFB142:
  26. 26 .file 1 "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c"
  27. 1:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  28. 2:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ******************************************************************************
  29. 3:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @file stm32f4xx_hal_flash.c
  30. 4:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @author MCD Application Team
  31. 5:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief FLASH HAL module driver.
  32. 6:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * This file provides firmware functions to manage the following
  33. 7:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * functionalities of the internal FLASH memory:
  34. 8:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * + Program operations functions
  35. 9:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * + Memory Control functions
  36. 10:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * + Peripheral Errors functions
  37. 11:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  38. 12:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** @verbatim
  39. 13:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ==============================================================================
  40. 14:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ##### FLASH peripheral features #####
  41. 15:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ==============================================================================
  42. 16:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  43. 17:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** [..] The Flash memory interface manages CPU AHB I-Code and D-Code accesses
  44. 18:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** to the Flash memory. It implements the erase and program Flash memory operations
  45. 19:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** and the read and write protection mechanisms.
  46. 20:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  47. 21:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** [..] The Flash memory interface accelerates code execution with a system of instruction
  48. 22:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** prefetch and cache lines.
  49. 23:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  50. 24:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** [..] The FLASH main features are:
  51. 25:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) Flash memory read operations
  52. 26:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) Flash memory program/erase operations
  53. 27:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) Read / write protections
  54. 28:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) Prefetch on I-Code
  55. 29:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) 64 cache lines of 128 bits on I-Code
  56. 30:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) 8 cache lines of 128 bits on D-Code
  57. 31:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  58. 32:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  59. ARM GAS /tmp/ccjBtVhA.s page 2
  60. 33:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ##### How to use this driver #####
  61. 34:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ==============================================================================
  62. 35:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** [..]
  63. 36:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** This driver provides functions and macros to configure and program the FLASH
  64. 37:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** memory of all STM32F4xx devices.
  65. 38:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  66. 39:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (#) FLASH Memory IO Programming functions:
  67. 40:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (++) Lock and Unlock the FLASH interface using HAL_FLASH_Unlock() and
  68. 41:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_FLASH_Lock() functions
  69. 42:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (++) Program functions: byte, half word, word and double word
  70. 43:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (++) There Two modes of programming :
  71. 44:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+++) Polling mode using HAL_FLASH_Program() function
  72. 45:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+++) Interrupt mode using HAL_FLASH_Program_IT() function
  73. 46:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  74. 47:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (#) Interrupts and flags management functions :
  75. 48:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (++) Handle FLASH interrupts by calling HAL_FLASH_IRQHandler()
  76. 49:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (++) Wait for last FLASH operation according to its status
  77. 50:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (++) Get error flag status by calling HAL_SetErrorCode()
  78. 51:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  79. 52:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** [..]
  80. 53:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** In addition to these functions, this driver includes a set of macros allowing
  81. 54:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** to handle the following operations:
  82. 55:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) Set the latency
  83. 56:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) Enable/Disable the prefetch buffer
  84. 57:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) Enable/Disable the Instruction cache and the Data cache
  85. 58:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) Reset the Instruction cache and the Data cache
  86. 59:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) Enable/Disable the FLASH interrupts
  87. 60:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) Monitor the FLASH flags status
  88. 61:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  89. 62:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** @endverbatim
  90. 63:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ******************************************************************************
  91. 64:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @attention
  92. 65:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  93. 66:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
  94. 67:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * All rights reserved.</center></h2>
  95. 68:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  96. 69:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * This software component is licensed by ST under BSD 3-Clause license,
  97. 70:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * the "License"; You may not use this file except in compliance with the
  98. 71:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * License. You may obtain a copy of the License at:
  99. 72:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * opensource.org/licenses/BSD-3-Clause
  100. 73:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  101. 74:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ******************************************************************************
  102. 75:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  103. 76:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  104. 77:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Includes ------------------------------------------------------------------*/
  105. 78:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** #include "stm32f4xx_hal.h"
  106. 79:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  107. 80:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /** @addtogroup STM32F4xx_HAL_Driver
  108. 81:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @{
  109. 82:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  110. 83:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  111. 84:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /** @defgroup FLASH FLASH
  112. 85:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief FLASH HAL module driver
  113. 86:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @{
  114. 87:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  115. 88:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  116. 89:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** #ifdef HAL_FLASH_MODULE_ENABLED
  117. ARM GAS /tmp/ccjBtVhA.s page 3
  118. 90:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  119. 91:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Private typedef -----------------------------------------------------------*/
  120. 92:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Private define ------------------------------------------------------------*/
  121. 93:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /** @addtogroup FLASH_Private_Constants
  122. 94:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @{
  123. 95:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  124. 96:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** #define FLASH_TIMEOUT_VALUE 50000U /* 50 s */
  125. 97:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  126. 98:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @}
  127. 99:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  128. 100:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Private macro -------------------------------------------------------------*/
  129. 101:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Private variables ---------------------------------------------------------*/
  130. 102:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /** @addtogroup FLASH_Private_Variables
  131. 103:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @{
  132. 104:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  133. 105:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Variable used for Erase sectors under interruption */
  134. 106:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_ProcessTypeDef pFlash;
  135. 107:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  136. 108:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @}
  137. 109:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  138. 110:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  139. 111:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Private function prototypes -----------------------------------------------*/
  140. 112:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /** @addtogroup FLASH_Private_Functions
  141. 113:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @{
  142. 114:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  143. 115:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Program operations */
  144. 116:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** static void FLASH_Program_DoubleWord(uint32_t Address, uint64_t Data);
  145. 117:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** static void FLASH_Program_Word(uint32_t Address, uint32_t Data);
  146. 118:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** static void FLASH_Program_HalfWord(uint32_t Address, uint16_t Data);
  147. 119:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** static void FLASH_Program_Byte(uint32_t Address, uint8_t Data);
  148. 120:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** static void FLASH_SetErrorCode(void);
  149. 121:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  150. 122:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef FLASH_WaitForLastOperation(uint32_t Timeout);
  151. 123:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  152. 124:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @}
  153. 125:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  154. 126:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  155. 127:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Exported functions --------------------------------------------------------*/
  156. 128:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions FLASH Exported Functions
  157. 129:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @{
  158. 130:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  159. 131:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  160. 132:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions_Group1 Programming operation functions
  161. 133:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Programming operation functions
  162. 134:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  163. 135:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** @verbatim
  164. 136:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ===============================================================================
  165. 137:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ##### Programming operation functions #####
  166. 138:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ===============================================================================
  167. 139:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** [..]
  168. 140:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** This subsection provides a set of functions allowing to manage the FLASH
  169. 141:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** program operations.
  170. 142:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  171. 143:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** @endverbatim
  172. 144:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @{
  173. 145:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  174. 146:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  175. ARM GAS /tmp/ccjBtVhA.s page 4
  176. 147:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  177. 148:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Program byte, halfword, word or double word at a specified address
  178. 149:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param TypeProgram Indicate the way to program at a specified address.
  179. 150:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * This parameter can be a value of @ref FLASH_Type_Program
  180. 151:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Address specifies the address to be programmed.
  181. 152:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Data specifies the data to be programmed
  182. 153:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  183. 154:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval HAL_StatusTypeDef HAL Status
  184. 155:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  185. 156:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t Address, uint64_t Data)
  186. 157:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  187. 158:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_ERROR;
  188. 159:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  189. 160:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Process Locked */
  190. 161:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_LOCK(&pFlash);
  191. 162:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  192. 163:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Check the parameters */
  193. 164:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** assert_param(IS_FLASH_TYPEPROGRAM(TypeProgram));
  194. 165:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  195. 166:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Wait for last operation to be completed */
  196. 167:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
  197. 168:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  198. 169:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(status == HAL_OK)
  199. 170:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  200. 171:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(TypeProgram == FLASH_TYPEPROGRAM_BYTE)
  201. 172:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  202. 173:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Program byte (8-bit) at a specified address.*/
  203. 174:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_Program_Byte(Address, (uint8_t) Data);
  204. 175:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  205. 176:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else if(TypeProgram == FLASH_TYPEPROGRAM_HALFWORD)
  206. 177:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  207. 178:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Program halfword (16-bit) at a specified address.*/
  208. 179:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_Program_HalfWord(Address, (uint16_t) Data);
  209. 180:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  210. 181:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else if(TypeProgram == FLASH_TYPEPROGRAM_WORD)
  211. 182:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  212. 183:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Program word (32-bit) at a specified address.*/
  213. 184:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_Program_Word(Address, (uint32_t) Data);
  214. 185:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  215. 186:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else
  216. 187:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  217. 188:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Program double word (64-bit) at a specified address.*/
  218. 189:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_Program_DoubleWord(Address, Data);
  219. 190:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  220. 191:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  221. 192:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Wait for last operation to be completed */
  222. 193:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
  223. 194:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  224. 195:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* If the program operation is completed, disable the PG Bit */
  225. 196:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->CR &= (~FLASH_CR_PG);
  226. 197:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  227. 198:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  228. 199:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Process Unlocked */
  229. 200:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_UNLOCK(&pFlash);
  230. 201:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  231. 202:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return status;
  232. 203:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  233. ARM GAS /tmp/ccjBtVhA.s page 5
  234. 204:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  235. 205:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  236. 206:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Program byte, halfword, word or double word at a specified address with interrupt ena
  237. 207:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param TypeProgram Indicate the way to program at a specified address.
  238. 208:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * This parameter can be a value of @ref FLASH_Type_Program
  239. 209:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Address specifies the address to be programmed.
  240. 210:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Data specifies the data to be programmed
  241. 211:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  242. 212:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval HAL Status
  243. 213:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  244. 214:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_Program_IT(uint32_t TypeProgram, uint32_t Address, uint64_t Data)
  245. 215:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  246. 216:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK;
  247. 217:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  248. 218:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Process Locked */
  249. 219:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_LOCK(&pFlash);
  250. 220:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  251. 221:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Check the parameters */
  252. 222:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** assert_param(IS_FLASH_TYPEPROGRAM(TypeProgram));
  253. 223:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  254. 224:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Enable End of FLASH Operation interrupt */
  255. 225:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_ENABLE_IT(FLASH_IT_EOP);
  256. 226:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  257. 227:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Enable Error source interrupt */
  258. 228:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_ENABLE_IT(FLASH_IT_ERR);
  259. 229:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  260. 230:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_PROGRAM;
  261. 231:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.Address = Address;
  262. 232:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  263. 233:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(TypeProgram == FLASH_TYPEPROGRAM_BYTE)
  264. 234:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  265. 235:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Program byte (8-bit) at a specified address.*/
  266. 236:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_Program_Byte(Address, (uint8_t) Data);
  267. 237:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  268. 238:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else if(TypeProgram == FLASH_TYPEPROGRAM_HALFWORD)
  269. 239:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  270. 240:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Program halfword (16-bit) at a specified address.*/
  271. 241:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_Program_HalfWord(Address, (uint16_t) Data);
  272. 242:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  273. 243:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else if(TypeProgram == FLASH_TYPEPROGRAM_WORD)
  274. 244:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  275. 245:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Program word (32-bit) at a specified address.*/
  276. 246:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_Program_Word(Address, (uint32_t) Data);
  277. 247:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  278. 248:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else
  279. 249:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  280. 250:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Program double word (64-bit) at a specified address.*/
  281. 251:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_Program_DoubleWord(Address, Data);
  282. 252:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  283. 253:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  284. 254:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return status;
  285. 255:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  286. 256:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  287. 257:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  288. 258:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief This function handles FLASH interrupt request.
  289. 259:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval None
  290. 260:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  291. ARM GAS /tmp/ccjBtVhA.s page 6
  292. 261:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** void HAL_FLASH_IRQHandler(void)
  293. 262:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  294. 263:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** uint32_t addresstmp = 0U;
  295. 264:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  296. 265:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Check FLASH operation error flags */
  297. 266:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** #if defined(FLASH_SR_RDERR)
  298. 267:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG((FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | \
  299. 268:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR | FLASH_FLAG_RDERR)) != RESET)
  300. 269:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** #else
  301. 270:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG((FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | \
  302. 271:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR)) != RESET)
  303. 272:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** #endif /* FLASH_SR_RDERR */
  304. 273:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  305. 274:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(pFlash.ProcedureOnGoing == FLASH_PROC_SECTERASE)
  306. 275:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  307. 276:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*return the faulty sector*/
  308. 277:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** addresstmp = pFlash.Sector;
  309. 278:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.Sector = 0xFFFFFFFFU;
  310. 279:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  311. 280:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else if(pFlash.ProcedureOnGoing == FLASH_PROC_MASSERASE)
  312. 281:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  313. 282:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*return the faulty bank*/
  314. 283:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** addresstmp = pFlash.Bank;
  315. 284:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  316. 285:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else
  317. 286:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  318. 287:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*return the faulty address*/
  319. 288:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** addresstmp = pFlash.Address;
  320. 289:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  321. 290:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  322. 291:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Save the Error code*/
  323. 292:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_SetErrorCode();
  324. 293:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  325. 294:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* FLASH error interrupt user callback */
  326. 295:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_FLASH_OperationErrorCallback(addresstmp);
  327. 296:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  328. 297:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Stop the procedure ongoing*/
  329. 298:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE;
  330. 299:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  331. 300:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  332. 301:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Check FLASH End of Operation flag */
  333. 302:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP) != RESET)
  334. 303:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  335. 304:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Clear FLASH End of Operation pending bit */
  336. 305:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP);
  337. 306:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  338. 307:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(pFlash.ProcedureOnGoing == FLASH_PROC_SECTERASE)
  339. 308:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  340. 309:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Nb of sector to erased can be decreased*/
  341. 310:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.NbSectorsToErase--;
  342. 311:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  343. 312:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Check if there are still sectors to erase*/
  344. 313:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(pFlash.NbSectorsToErase != 0U)
  345. 314:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  346. 315:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** addresstmp = pFlash.Sector;
  347. 316:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Indicate user which sector has been erased*/
  348. 317:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(addresstmp);
  349. ARM GAS /tmp/ccjBtVhA.s page 7
  350. 318:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  351. 319:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Increment sector number*/
  352. 320:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.Sector++;
  353. 321:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** addresstmp = pFlash.Sector;
  354. 322:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_Erase_Sector(addresstmp, pFlash.VoltageForErase);
  355. 323:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  356. 324:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else
  357. 325:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  358. 326:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*No more sectors to Erase, user callback can be called.*/
  359. 327:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Reset Sector and stop Erase sectors procedure*/
  360. 328:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.Sector = addresstmp = 0xFFFFFFFFU;
  361. 329:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE;
  362. 330:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  363. 331:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Flush the caches to be sure of the data consistency */
  364. 332:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_FlushCaches() ;
  365. 333:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  366. 334:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* FLASH EOP interrupt user callback */
  367. 335:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(addresstmp);
  368. 336:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  369. 337:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  370. 338:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else
  371. 339:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  372. 340:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(pFlash.ProcedureOnGoing == FLASH_PROC_MASSERASE)
  373. 341:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  374. 342:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* MassErase ended. Return the selected bank */
  375. 343:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Flush the caches to be sure of the data consistency */
  376. 344:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_FlushCaches() ;
  377. 345:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  378. 346:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* FLASH EOP interrupt user callback */
  379. 347:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Bank);
  380. 348:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  381. 349:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else
  382. 350:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  383. 351:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Program ended. Return the selected address*/
  384. 352:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* FLASH EOP interrupt user callback */
  385. 353:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address);
  386. 354:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  387. 355:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE;
  388. 356:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  389. 357:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  390. 358:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  391. 359:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(pFlash.ProcedureOnGoing == FLASH_PROC_NONE)
  392. 360:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  393. 361:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Operation is completed, disable the PG, SER, SNB and MER Bits */
  394. 362:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, (FLASH_CR_PG | FLASH_CR_SER | FLASH_CR_SNB | FLASH_MER_BIT));
  395. 363:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  396. 364:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Disable End of FLASH Operation interrupt */
  397. 365:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_DISABLE_IT(FLASH_IT_EOP);
  398. 366:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  399. 367:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Disable Error source interrupt */
  400. 368:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_DISABLE_IT(FLASH_IT_ERR);
  401. 369:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  402. 370:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Process Unlocked */
  403. 371:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_UNLOCK(&pFlash);
  404. 372:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  405. 373:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  406. 374:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  407. ARM GAS /tmp/ccjBtVhA.s page 8
  408. 375:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  409. 376:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief FLASH end of operation interrupt callback
  410. 377:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param ReturnValue The value saved in this parameter depends on the ongoing procedure
  411. 378:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * Mass Erase: Bank number which has been requested to erase
  412. 379:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * Sectors Erase: Sector which has been erased
  413. 380:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * (if 0xFFFFFFFFU, it means that all the selected sectors have been erased)
  414. 381:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * Program: Address which was selected for data program
  415. 382:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval None
  416. 383:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  417. 384:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __weak void HAL_FLASH_EndOfOperationCallback(uint32_t ReturnValue)
  418. 385:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  419. 386:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Prevent unused argument(s) compilation warning */
  420. 387:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** UNUSED(ReturnValue);
  421. 388:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* NOTE : This function Should not be modified, when the callback is needed,
  422. 389:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** the HAL_FLASH_EndOfOperationCallback could be implemented in the user file
  423. 390:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  424. 391:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  425. 392:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  426. 393:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  427. 394:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief FLASH operation error interrupt callback
  428. 395:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param ReturnValue The value saved in this parameter depends on the ongoing procedure
  429. 396:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * Mass Erase: Bank number which has been requested to erase
  430. 397:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * Sectors Erase: Sector number which returned an error
  431. 398:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * Program: Address which was selected for data program
  432. 399:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval None
  433. 400:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  434. 401:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __weak void HAL_FLASH_OperationErrorCallback(uint32_t ReturnValue)
  435. 402:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  436. 403:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Prevent unused argument(s) compilation warning */
  437. 404:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** UNUSED(ReturnValue);
  438. 405:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* NOTE : This function Should not be modified, when the callback is needed,
  439. 406:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** the HAL_FLASH_OperationErrorCallback could be implemented in the user file
  440. 407:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  441. 408:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  442. 409:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  443. 410:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  444. 411:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @}
  445. 412:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  446. 413:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  447. 414:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions_Group2 Peripheral Control functions
  448. 415:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief management functions
  449. 416:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  450. 417:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** @verbatim
  451. 418:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ===============================================================================
  452. 419:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ##### Peripheral Control functions #####
  453. 420:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ===============================================================================
  454. 421:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** [..]
  455. 422:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** This subsection provides a set of functions allowing to control the FLASH
  456. 423:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** memory operations.
  457. 424:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  458. 425:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** @endverbatim
  459. 426:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @{
  460. 427:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  461. 428:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  462. 429:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  463. 430:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Unlock the FLASH control register access
  464. 431:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval HAL Status
  465. ARM GAS /tmp/ccjBtVhA.s page 9
  466. 432:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  467. 433:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_Unlock(void)
  468. 434:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  469. 435:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK;
  470. 436:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  471. 437:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET)
  472. 438:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  473. 439:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Authorize the FLASH Registers access */
  474. 440:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** WRITE_REG(FLASH->KEYR, FLASH_KEY1);
  475. 441:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** WRITE_REG(FLASH->KEYR, FLASH_KEY2);
  476. 442:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  477. 443:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Verify Flash is unlocked */
  478. 444:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET)
  479. 445:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  480. 446:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** status = HAL_ERROR;
  481. 447:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  482. 448:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  483. 449:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  484. 450:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return status;
  485. 451:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  486. 452:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  487. 453:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  488. 454:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Locks the FLASH control register access
  489. 455:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval HAL Status
  490. 456:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  491. 457:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_Lock(void)
  492. 458:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  493. 459:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Set the LOCK Bit to lock the FLASH Registers access */
  494. 460:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->CR |= FLASH_CR_LOCK;
  495. 461:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  496. 462:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return HAL_OK;
  497. 463:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  498. 464:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  499. 465:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  500. 466:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Unlock the FLASH Option Control Registers access.
  501. 467:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval HAL Status
  502. 468:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  503. 469:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_OB_Unlock(void)
  504. 470:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  505. 471:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if((FLASH->OPTCR & FLASH_OPTCR_OPTLOCK) != RESET)
  506. 472:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  507. 473:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Authorizes the Option Byte register programming */
  508. 474:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->OPTKEYR = FLASH_OPT_KEY1;
  509. 475:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->OPTKEYR = FLASH_OPT_KEY2;
  510. 476:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  511. 477:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else
  512. 478:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  513. 479:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return HAL_ERROR;
  514. 480:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  515. 481:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  516. 482:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return HAL_OK;
  517. 483:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  518. 484:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  519. 485:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  520. 486:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Lock the FLASH Option Control Registers access.
  521. 487:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval HAL Status
  522. 488:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  523. ARM GAS /tmp/ccjBtVhA.s page 10
  524. 489:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_OB_Lock(void)
  525. 490:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  526. 491:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Set the OPTLOCK Bit to lock the FLASH Option Byte Registers access */
  527. 492:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->OPTCR |= FLASH_OPTCR_OPTLOCK;
  528. 493:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  529. 494:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return HAL_OK;
  530. 495:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  531. 496:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  532. 497:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  533. 498:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Launch the option byte loading.
  534. 499:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval HAL Status
  535. 500:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  536. 501:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_OB_Launch(void)
  537. 502:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  538. 503:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Set the OPTSTRT bit in OPTCR register */
  539. 504:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS |= FLASH_OPTCR_OPTSTRT;
  540. 505:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  541. 506:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Wait for last operation to be completed */
  542. 507:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return(FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE));
  543. 508:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  544. 509:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  545. 510:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  546. 511:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @}
  547. 512:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  548. 513:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  549. 514:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions_Group3 Peripheral State and Errors functions
  550. 515:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Peripheral Errors functions
  551. 516:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  552. 517:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** @verbatim
  553. 518:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ===============================================================================
  554. 519:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ##### Peripheral Errors functions #####
  555. 520:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ===============================================================================
  556. 521:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** [..]
  557. 522:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** This subsection permits to get in run-time Errors of the FLASH peripheral.
  558. 523:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  559. 524:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** @endverbatim
  560. 525:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @{
  561. 526:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  562. 527:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  563. 528:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  564. 529:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Get the specific FLASH error flag.
  565. 530:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval FLASH_ErrorCode: The returned value can be a combination of:
  566. 531:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @arg HAL_FLASH_ERROR_RD: FLASH Read Protection error flag (PCROP)
  567. 532:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @arg HAL_FLASH_ERROR_PGS: FLASH Programming Sequence error flag
  568. 533:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @arg HAL_FLASH_ERROR_PGP: FLASH Programming Parallelism error flag
  569. 534:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @arg HAL_FLASH_ERROR_PGA: FLASH Programming Alignment error flag
  570. 535:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @arg HAL_FLASH_ERROR_WRP: FLASH Write protected error flag
  571. 536:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @arg HAL_FLASH_ERROR_OPERATION: FLASH operation Error flag
  572. 537:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  573. 538:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** uint32_t HAL_FLASH_GetError(void)
  574. 539:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  575. 540:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return pFlash.ErrorCode;
  576. 541:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  577. 542:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  578. 543:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  579. 544:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @}
  580. 545:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  581. ARM GAS /tmp/ccjBtVhA.s page 11
  582. 546:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  583. 547:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  584. 548:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Wait for a FLASH operation to complete.
  585. 549:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Timeout maximum flash operationtimeout
  586. 550:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval HAL Status
  587. 551:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  588. 552:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef FLASH_WaitForLastOperation(uint32_t Timeout)
  589. 553:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  590. 554:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** uint32_t tickstart = 0U;
  591. 555:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  592. 556:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Clear Error Code */
  593. 557:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.ErrorCode = HAL_FLASH_ERROR_NONE;
  594. 558:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  595. 559:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Wait for the FLASH operation to complete by polling on BUSY flag to be reset.
  596. 560:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** Even if the FLASH operation fails, the BUSY flag will be reset and an error
  597. 561:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** flag will be set */
  598. 562:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Get tick */
  599. 563:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** tickstart = HAL_GetTick();
  600. 564:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  601. 565:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY) != RESET)
  602. 566:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  603. 567:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(Timeout != HAL_MAX_DELAY)
  604. 568:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  605. 569:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if((Timeout == 0U)||((HAL_GetTick() - tickstart ) > Timeout))
  606. 570:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  607. 571:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return HAL_TIMEOUT;
  608. 572:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  609. 573:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  610. 574:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  611. 575:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  612. 576:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Check FLASH End of Operation flag */
  613. 577:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if (__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP) != RESET)
  614. 578:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  615. 579:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Clear FLASH End of Operation pending bit */
  616. 580:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP);
  617. 581:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  618. 582:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** #if defined(FLASH_SR_RDERR)
  619. 583:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG((FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | \
  620. 584:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR | FLASH_FLAG_RDERR)) != RESET)
  621. 585:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** #else
  622. 586:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG((FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | \
  623. 587:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR)) != RESET)
  624. 588:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** #endif /* FLASH_SR_RDERR */
  625. 589:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  626. 590:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Save the error code*/
  627. 591:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_SetErrorCode();
  628. 592:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return HAL_ERROR;
  629. 593:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  630. 594:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  631. 595:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* If there is no error flag set */
  632. 596:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return HAL_OK;
  633. 597:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  634. 598:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  635. 599:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  636. 600:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  637. 601:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Program a double word (64-bit) at a specified address.
  638. 602:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @note This function must be used when the device voltage range is from
  639. ARM GAS /tmp/ccjBtVhA.s page 12
  640. 603:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * 2.7V to 3.6V and Vpp in the range 7V to 9V.
  641. 604:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  642. 605:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @note If an erase and a program operations are requested simultaneously,
  643. 606:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * the erase operation is performed before the program one.
  644. 607:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  645. 608:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Address specifies the address to be programmed.
  646. 609:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Data specifies the data to be programmed.
  647. 610:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval None
  648. 611:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  649. 612:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** static void FLASH_Program_DoubleWord(uint32_t Address, uint64_t Data)
  650. 613:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  651. 27 .loc 1 613 0
  652. 28 .cfi_startproc
  653. 29 @ args = 0, pretend = 0, frame = 0
  654. 30 @ frame_needed = 0, uses_anonymous_args = 0
  655. 31 @ link register save eliminated.
  656. 32 .LVL0:
  657. 33 0000 10B4 push {r4}
  658. 34 .LCFI0:
  659. 35 .cfi_def_cfa_offset 4
  660. 36 .cfi_offset 4, -4
  661. 614:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Check the parameters */
  662. 615:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** assert_param(IS_FLASH_ADDRESS(Address));
  663. 616:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  664. 617:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* If the previous operation is completed, proceed to program the new data */
  665. 618:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE);
  666. 37 .loc 1 618 0
  667. 38 0002 0949 ldr r1, .L3
  668. 39 0004 0C69 ldr r4, [r1, #16]
  669. 40 0006 24F44074 bic r4, r4, #768
  670. 41 000a 0C61 str r4, [r1, #16]
  671. 619:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->CR |= FLASH_PSIZE_DOUBLE_WORD;
  672. 42 .loc 1 619 0
  673. 43 000c 0C69 ldr r4, [r1, #16]
  674. 44 000e 44F44074 orr r4, r4, #768
  675. 45 0012 0C61 str r4, [r1, #16]
  676. 620:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->CR |= FLASH_CR_PG;
  677. 46 .loc 1 620 0
  678. 47 0014 0C69 ldr r4, [r1, #16]
  679. 48 0016 44F00104 orr r4, r4, #1
  680. 49 001a 0C61 str r4, [r1, #16]
  681. 621:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  682. 622:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Program the double-word */
  683. 623:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *(__IO uint32_t*)Address = (uint32_t)Data;
  684. 50 .loc 1 623 0
  685. 51 001c 0260 str r2, [r0]
  686. 624:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *(__IO uint32_t*)(Address+4) = (uint32_t)(Data >> 32);
  687. 52 .loc 1 624 0
  688. 53 001e 4360 str r3, [r0, #4]
  689. 625:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  690. 54 .loc 1 625 0
  691. 55 0020 5DF8044B ldr r4, [sp], #4
  692. 56 .LCFI1:
  693. 57 .cfi_restore 4
  694. 58 .cfi_def_cfa_offset 0
  695. 59 0024 7047 bx lr
  696. 60 .L4:
  697. ARM GAS /tmp/ccjBtVhA.s page 13
  698. 61 0026 00BF .align 2
  699. 62 .L3:
  700. 63 0028 003C0240 .word 1073888256
  701. 64 .cfi_endproc
  702. 65 .LFE142:
  703. 67 .section .text.FLASH_Program_Word,"ax",%progbits
  704. 68 .align 1
  705. 69 .syntax unified
  706. 70 .thumb
  707. 71 .thumb_func
  708. 72 .fpu fpv4-sp-d16
  709. 74 FLASH_Program_Word:
  710. 75 .LFB143:
  711. 626:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  712. 627:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  713. 628:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  714. 629:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Program word (32-bit) at a specified address.
  715. 630:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @note This function must be used when the device voltage range is from
  716. 631:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * 2.7V to 3.6V.
  717. 632:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  718. 633:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @note If an erase and a program operations are requested simultaneously,
  719. 634:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * the erase operation is performed before the program one.
  720. 635:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  721. 636:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Address specifies the address to be programmed.
  722. 637:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Data specifies the data to be programmed.
  723. 638:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval None
  724. 639:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  725. 640:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** static void FLASH_Program_Word(uint32_t Address, uint32_t Data)
  726. 641:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  727. 76 .loc 1 641 0
  728. 77 .cfi_startproc
  729. 78 @ args = 0, pretend = 0, frame = 0
  730. 79 @ frame_needed = 0, uses_anonymous_args = 0
  731. 80 @ link register save eliminated.
  732. 81 .LVL1:
  733. 642:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Check the parameters */
  734. 643:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** assert_param(IS_FLASH_ADDRESS(Address));
  735. 644:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  736. 645:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* If the previous operation is completed, proceed to program the new data */
  737. 646:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE);
  738. 82 .loc 1 646 0
  739. 83 0000 074B ldr r3, .L6
  740. 84 0002 1A69 ldr r2, [r3, #16]
  741. 85 0004 22F44072 bic r2, r2, #768
  742. 86 0008 1A61 str r2, [r3, #16]
  743. 647:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->CR |= FLASH_PSIZE_WORD;
  744. 87 .loc 1 647 0
  745. 88 000a 1A69 ldr r2, [r3, #16]
  746. 89 000c 42F40072 orr r2, r2, #512
  747. 90 0010 1A61 str r2, [r3, #16]
  748. 648:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->CR |= FLASH_CR_PG;
  749. 91 .loc 1 648 0
  750. 92 0012 1A69 ldr r2, [r3, #16]
  751. 93 0014 42F00102 orr r2, r2, #1
  752. 94 0018 1A61 str r2, [r3, #16]
  753. 649:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  754. 650:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *(__IO uint32_t*)Address = Data;
  755. ARM GAS /tmp/ccjBtVhA.s page 14
  756. 95 .loc 1 650 0
  757. 96 001a 0160 str r1, [r0]
  758. 97 001c 7047 bx lr
  759. 98 .L7:
  760. 99 001e 00BF .align 2
  761. 100 .L6:
  762. 101 0020 003C0240 .word 1073888256
  763. 102 .cfi_endproc
  764. 103 .LFE143:
  765. 105 .section .text.FLASH_Program_HalfWord,"ax",%progbits
  766. 106 .align 1
  767. 107 .syntax unified
  768. 108 .thumb
  769. 109 .thumb_func
  770. 110 .fpu fpv4-sp-d16
  771. 112 FLASH_Program_HalfWord:
  772. 113 .LFB144:
  773. 651:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  774. 652:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  775. 653:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  776. 654:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Program a half-word (16-bit) at a specified address.
  777. 655:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @note This function must be used when the device voltage range is from
  778. 656:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * 2.1V to 3.6V.
  779. 657:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  780. 658:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @note If an erase and a program operations are requested simultaneously,
  781. 659:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * the erase operation is performed before the program one.
  782. 660:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  783. 661:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Address specifies the address to be programmed.
  784. 662:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Data specifies the data to be programmed.
  785. 663:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval None
  786. 664:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  787. 665:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** static void FLASH_Program_HalfWord(uint32_t Address, uint16_t Data)
  788. 666:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  789. 114 .loc 1 666 0
  790. 115 .cfi_startproc
  791. 116 @ args = 0, pretend = 0, frame = 0
  792. 117 @ frame_needed = 0, uses_anonymous_args = 0
  793. 118 @ link register save eliminated.
  794. 119 .LVL2:
  795. 667:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Check the parameters */
  796. 668:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** assert_param(IS_FLASH_ADDRESS(Address));
  797. 669:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  798. 670:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* If the previous operation is completed, proceed to program the new data */
  799. 671:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE);
  800. 120 .loc 1 671 0
  801. 121 0000 074B ldr r3, .L9
  802. 122 0002 1A69 ldr r2, [r3, #16]
  803. 123 0004 22F44072 bic r2, r2, #768
  804. 124 0008 1A61 str r2, [r3, #16]
  805. 672:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->CR |= FLASH_PSIZE_HALF_WORD;
  806. 125 .loc 1 672 0
  807. 126 000a 1A69 ldr r2, [r3, #16]
  808. 127 000c 42F48072 orr r2, r2, #256
  809. 128 0010 1A61 str r2, [r3, #16]
  810. 673:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->CR |= FLASH_CR_PG;
  811. 129 .loc 1 673 0
  812. 130 0012 1A69 ldr r2, [r3, #16]
  813. ARM GAS /tmp/ccjBtVhA.s page 15
  814. 131 0014 42F00102 orr r2, r2, #1
  815. 132 0018 1A61 str r2, [r3, #16]
  816. 674:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  817. 675:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *(__IO uint16_t*)Address = Data;
  818. 133 .loc 1 675 0
  819. 134 001a 0180 strh r1, [r0] @ movhi
  820. 135 001c 7047 bx lr
  821. 136 .L10:
  822. 137 001e 00BF .align 2
  823. 138 .L9:
  824. 139 0020 003C0240 .word 1073888256
  825. 140 .cfi_endproc
  826. 141 .LFE144:
  827. 143 .section .text.FLASH_Program_Byte,"ax",%progbits
  828. 144 .align 1
  829. 145 .syntax unified
  830. 146 .thumb
  831. 147 .thumb_func
  832. 148 .fpu fpv4-sp-d16
  833. 150 FLASH_Program_Byte:
  834. 151 .LFB145:
  835. 676:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  836. 677:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  837. 678:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  838. 679:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Program byte (8-bit) at a specified address.
  839. 680:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @note This function must be used when the device voltage range is from
  840. 681:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * 1.8V to 3.6V.
  841. 682:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  842. 683:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @note If an erase and a program operations are requested simultaneously,
  843. 684:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * the erase operation is performed before the program one.
  844. 685:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  845. 686:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Address specifies the address to be programmed.
  846. 687:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Data specifies the data to be programmed.
  847. 688:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval None
  848. 689:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  849. 690:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** static void FLASH_Program_Byte(uint32_t Address, uint8_t Data)
  850. 691:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  851. 152 .loc 1 691 0
  852. 153 .cfi_startproc
  853. 154 @ args = 0, pretend = 0, frame = 0
  854. 155 @ frame_needed = 0, uses_anonymous_args = 0
  855. 156 @ link register save eliminated.
  856. 157 .LVL3:
  857. 692:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Check the parameters */
  858. 693:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** assert_param(IS_FLASH_ADDRESS(Address));
  859. 694:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  860. 695:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* If the previous operation is completed, proceed to program the new data */
  861. 696:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE);
  862. 158 .loc 1 696 0
  863. 159 0000 064B ldr r3, .L12
  864. 160 0002 1A69 ldr r2, [r3, #16]
  865. 161 0004 22F44072 bic r2, r2, #768
  866. 162 0008 1A61 str r2, [r3, #16]
  867. 697:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->CR |= FLASH_PSIZE_BYTE;
  868. 163 .loc 1 697 0
  869. 164 000a 1A69 ldr r2, [r3, #16]
  870. 165 000c 1A61 str r2, [r3, #16]
  871. ARM GAS /tmp/ccjBtVhA.s page 16
  872. 698:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->CR |= FLASH_CR_PG;
  873. 166 .loc 1 698 0
  874. 167 000e 1A69 ldr r2, [r3, #16]
  875. 168 0010 42F00102 orr r2, r2, #1
  876. 169 0014 1A61 str r2, [r3, #16]
  877. 699:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  878. 700:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *(__IO uint8_t*)Address = Data;
  879. 170 .loc 1 700 0
  880. 171 0016 0170 strb r1, [r0]
  881. 172 0018 7047 bx lr
  882. 173 .L13:
  883. 174 001a 00BF .align 2
  884. 175 .L12:
  885. 176 001c 003C0240 .word 1073888256
  886. 177 .cfi_endproc
  887. 178 .LFE145:
  888. 180 .section .text.FLASH_SetErrorCode,"ax",%progbits
  889. 181 .align 1
  890. 182 .syntax unified
  891. 183 .thumb
  892. 184 .thumb_func
  893. 185 .fpu fpv4-sp-d16
  894. 187 FLASH_SetErrorCode:
  895. 188 .LFB146:
  896. 701:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  897. 702:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  898. 703:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  899. 704:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Set the specific FLASH error flag.
  900. 705:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval None
  901. 706:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  902. 707:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** static void FLASH_SetErrorCode(void)
  903. 708:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  904. 189 .loc 1 708 0
  905. 190 .cfi_startproc
  906. 191 @ args = 0, pretend = 0, frame = 0
  907. 192 @ frame_needed = 0, uses_anonymous_args = 0
  908. 193 @ link register save eliminated.
  909. 709:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) != RESET)
  910. 194 .loc 1 709 0
  911. 195 0000 204B ldr r3, .L20
  912. 196 0002 DB68 ldr r3, [r3, #12]
  913. 197 0004 13F0100F tst r3, #16
  914. 198 0008 07D0 beq .L15
  915. 710:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  916. 711:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.ErrorCode |= HAL_FLASH_ERROR_WRP;
  917. 199 .loc 1 711 0
  918. 200 000a 1F4A ldr r2, .L20+4
  919. 201 000c D369 ldr r3, [r2, #28]
  920. 202 000e 43F01003 orr r3, r3, #16
  921. 203 0012 D361 str r3, [r2, #28]
  922. 712:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  923. 713:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Clear FLASH write protection error pending bit */
  924. 714:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_WRPERR);
  925. 204 .loc 1 714 0
  926. 205 0014 1022 movs r2, #16
  927. 206 0016 1B4B ldr r3, .L20
  928. 207 0018 DA60 str r2, [r3, #12]
  929. ARM GAS /tmp/ccjBtVhA.s page 17
  930. 208 .L15:
  931. 715:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  932. 716:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  933. 717:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGAERR) != RESET)
  934. 209 .loc 1 717 0
  935. 210 001a 1A4B ldr r3, .L20
  936. 211 001c DB68 ldr r3, [r3, #12]
  937. 212 001e 13F0200F tst r3, #32
  938. 213 0022 07D0 beq .L16
  939. 718:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  940. 719:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.ErrorCode |= HAL_FLASH_ERROR_PGA;
  941. 214 .loc 1 719 0
  942. 215 0024 184A ldr r2, .L20+4
  943. 216 0026 D369 ldr r3, [r2, #28]
  944. 217 0028 43F00803 orr r3, r3, #8
  945. 218 002c D361 str r3, [r2, #28]
  946. 720:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  947. 721:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Clear FLASH Programming alignment error pending bit */
  948. 722:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_PGAERR);
  949. 219 .loc 1 722 0
  950. 220 002e 2022 movs r2, #32
  951. 221 0030 144B ldr r3, .L20
  952. 222 0032 DA60 str r2, [r3, #12]
  953. 223 .L16:
  954. 723:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  955. 724:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  956. 725:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGPERR) != RESET)
  957. 224 .loc 1 725 0
  958. 225 0034 134B ldr r3, .L20
  959. 226 0036 DB68 ldr r3, [r3, #12]
  960. 227 0038 13F0400F tst r3, #64
  961. 228 003c 07D0 beq .L17
  962. 726:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  963. 727:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.ErrorCode |= HAL_FLASH_ERROR_PGP;
  964. 229 .loc 1 727 0
  965. 230 003e 124A ldr r2, .L20+4
  966. 231 0040 D369 ldr r3, [r2, #28]
  967. 232 0042 43F00403 orr r3, r3, #4
  968. 233 0046 D361 str r3, [r2, #28]
  969. 728:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  970. 729:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Clear FLASH Programming parallelism error pending bit */
  971. 730:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_PGPERR);
  972. 234 .loc 1 730 0
  973. 235 0048 4022 movs r2, #64
  974. 236 004a 0E4B ldr r3, .L20
  975. 237 004c DA60 str r2, [r3, #12]
  976. 238 .L17:
  977. 731:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  978. 732:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  979. 733:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGSERR) != RESET)
  980. 239 .loc 1 733 0
  981. 240 004e 0D4B ldr r3, .L20
  982. 241 0050 DB68 ldr r3, [r3, #12]
  983. 242 0052 13F0800F tst r3, #128
  984. 243 0056 07D0 beq .L18
  985. 734:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  986. 735:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.ErrorCode |= HAL_FLASH_ERROR_PGS;
  987. ARM GAS /tmp/ccjBtVhA.s page 18
  988. 244 .loc 1 735 0
  989. 245 0058 0B4A ldr r2, .L20+4
  990. 246 005a D369 ldr r3, [r2, #28]
  991. 247 005c 43F00203 orr r3, r3, #2
  992. 248 0060 D361 str r3, [r2, #28]
  993. 736:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  994. 737:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Clear FLASH Programming sequence error pending bit */
  995. 738:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_PGSERR);
  996. 249 .loc 1 738 0
  997. 250 0062 8022 movs r2, #128
  998. 251 0064 074B ldr r3, .L20
  999. 252 0066 DA60 str r2, [r3, #12]
  1000. 253 .L18:
  1001. 739:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1002. 740:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** #if defined(FLASH_SR_RDERR)
  1003. 741:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_RDERR) != RESET)
  1004. 742:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1005. 743:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.ErrorCode |= HAL_FLASH_ERROR_RD;
  1006. 744:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1007. 745:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Clear FLASH Proprietary readout protection error pending bit */
  1008. 746:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_RDERR);
  1009. 747:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1010. 748:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** #endif /* FLASH_SR_RDERR */
  1011. 749:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_OPERR) != RESET)
  1012. 254 .loc 1 749 0
  1013. 255 0068 064B ldr r3, .L20
  1014. 256 006a DB68 ldr r3, [r3, #12]
  1015. 257 006c 13F0020F tst r3, #2
  1016. 258 0070 07D0 beq .L14
  1017. 750:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1018. 751:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.ErrorCode |= HAL_FLASH_ERROR_OPERATION;
  1019. 259 .loc 1 751 0
  1020. 260 0072 054A ldr r2, .L20+4
  1021. 261 0074 D369 ldr r3, [r2, #28]
  1022. 262 0076 43F02003 orr r3, r3, #32
  1023. 263 007a D361 str r3, [r2, #28]
  1024. 752:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1025. 753:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Clear FLASH Operation error pending bit */
  1026. 754:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_OPERR);
  1027. 264 .loc 1 754 0
  1028. 265 007c 0222 movs r2, #2
  1029. 266 007e 014B ldr r3, .L20
  1030. 267 0080 DA60 str r2, [r3, #12]
  1031. 268 .L14:
  1032. 269 0082 7047 bx lr
  1033. 270 .L21:
  1034. 271 .align 2
  1035. 272 .L20:
  1036. 273 0084 003C0240 .word 1073888256
  1037. 274 0088 00000000 .word pFlash
  1038. 275 .cfi_endproc
  1039. 276 .LFE146:
  1040. 278 .section .text.HAL_FLASH_Program_IT,"ax",%progbits
  1041. 279 .align 1
  1042. 280 .global HAL_FLASH_Program_IT
  1043. 281 .syntax unified
  1044. 282 .thumb
  1045. ARM GAS /tmp/ccjBtVhA.s page 19
  1046. 283 .thumb_func
  1047. 284 .fpu fpv4-sp-d16
  1048. 286 HAL_FLASH_Program_IT:
  1049. 287 .LFB131:
  1050. 215:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK;
  1051. 288 .loc 1 215 0
  1052. 289 .cfi_startproc
  1053. 290 @ args = 0, pretend = 0, frame = 0
  1054. 291 @ frame_needed = 0, uses_anonymous_args = 0
  1055. 292 .LVL4:
  1056. 293 0000 70B5 push {r4, r5, r6, lr}
  1057. 294 .LCFI2:
  1058. 295 .cfi_def_cfa_offset 16
  1059. 296 .cfi_offset 4, -16
  1060. 297 .cfi_offset 5, -12
  1061. 298 .cfi_offset 6, -8
  1062. 299 .cfi_offset 14, -4
  1063. 300 .LVL5:
  1064. 219:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1065. 301 .loc 1 219 0
  1066. 302 0002 194C ldr r4, .L32
  1067. 303 0004 247E ldrb r4, [r4, #24] @ zero_extendqisi2
  1068. 304 0006 012C cmp r4, #1
  1069. 305 0008 2CD0 beq .L27
  1070. 306 000a 0D46 mov r5, r1
  1071. 307 000c 0446 mov r4, r0
  1072. 219:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1073. 308 .loc 1 219 0 is_stmt 0 discriminator 2
  1074. 309 000e 1649 ldr r1, .L32
  1075. 310 .LVL6:
  1076. 311 0010 0120 movs r0, #1
  1077. 312 .LVL7:
  1078. 313 0012 0876 strb r0, [r1, #24]
  1079. 225:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1080. 314 .loc 1 225 0 is_stmt 1 discriminator 2
  1081. 315 0014 1548 ldr r0, .L32+4
  1082. 316 0016 0669 ldr r6, [r0, #16]
  1083. 317 0018 46F08076 orr r6, r6, #16777216
  1084. 318 001c 0661 str r6, [r0, #16]
  1085. 228:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1086. 319 .loc 1 228 0 discriminator 2
  1087. 320 001e 0669 ldr r6, [r0, #16]
  1088. 321 0020 46F00076 orr r6, r6, #33554432
  1089. 322 0024 0661 str r6, [r0, #16]
  1090. 230:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.Address = Address;
  1091. 323 .loc 1 230 0 discriminator 2
  1092. 324 0026 0320 movs r0, #3
  1093. 325 0028 0870 strb r0, [r1]
  1094. 231:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1095. 326 .loc 1 231 0 discriminator 2
  1096. 327 002a 4D61 str r5, [r1, #20]
  1097. 233:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1098. 328 .loc 1 233 0 discriminator 2
  1099. 329 002c 44B1 cbz r4, .L29
  1100. 238:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1101. 330 .loc 1 238 0
  1102. 331 002e 012C cmp r4, #1
  1103. ARM GAS /tmp/ccjBtVhA.s page 20
  1104. 332 0030 0CD0 beq .L30
  1105. 243:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1106. 333 .loc 1 243 0
  1107. 334 0032 022C cmp r4, #2
  1108. 335 0034 10D0 beq .L31
  1109. 251:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1110. 336 .loc 1 251 0
  1111. 337 0036 2846 mov r0, r5
  1112. 338 0038 FFF7FEFF bl FLASH_Program_DoubleWord
  1113. 339 .LVL8:
  1114. 254:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1115. 340 .loc 1 254 0
  1116. 341 003c 0020 movs r0, #0
  1117. 342 003e 70BD pop {r4, r5, r6, pc}
  1118. 343 .LVL9:
  1119. 344 .L29:
  1120. 236:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1121. 345 .loc 1 236 0
  1122. 346 0040 D1B2 uxtb r1, r2
  1123. 347 0042 2846 mov r0, r5
  1124. 348 0044 FFF7FEFF bl FLASH_Program_Byte
  1125. 349 .LVL10:
  1126. 254:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1127. 350 .loc 1 254 0
  1128. 351 0048 0020 movs r0, #0
  1129. 352 004a 70BD pop {r4, r5, r6, pc}
  1130. 353 .LVL11:
  1131. 354 .L30:
  1132. 241:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1133. 355 .loc 1 241 0
  1134. 356 004c 91B2 uxth r1, r2
  1135. 357 004e 2846 mov r0, r5
  1136. 358 0050 FFF7FEFF bl FLASH_Program_HalfWord
  1137. 359 .LVL12:
  1138. 254:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1139. 360 .loc 1 254 0
  1140. 361 0054 0020 movs r0, #0
  1141. 362 0056 70BD pop {r4, r5, r6, pc}
  1142. 363 .LVL13:
  1143. 364 .L31:
  1144. 246:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1145. 365 .loc 1 246 0
  1146. 366 0058 1146 mov r1, r2
  1147. 367 005a 2846 mov r0, r5
  1148. 368 005c FFF7FEFF bl FLASH_Program_Word
  1149. 369 .LVL14:
  1150. 254:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1151. 370 .loc 1 254 0
  1152. 371 0060 0020 movs r0, #0
  1153. 372 0062 70BD pop {r4, r5, r6, pc}
  1154. 373 .LVL15:
  1155. 374 .L27:
  1156. 219:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1157. 375 .loc 1 219 0
  1158. 376 0064 0220 movs r0, #2
  1159. 377 .LVL16:
  1160. 255:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1161. ARM GAS /tmp/ccjBtVhA.s page 21
  1162. 378 .loc 1 255 0
  1163. 379 0066 70BD pop {r4, r5, r6, pc}
  1164. 380 .L33:
  1165. 381 .align 2
  1166. 382 .L32:
  1167. 383 0068 00000000 .word pFlash
  1168. 384 006c 003C0240 .word 1073888256
  1169. 385 .cfi_endproc
  1170. 386 .LFE131:
  1171. 388 .section .text.HAL_FLASH_EndOfOperationCallback,"ax",%progbits
  1172. 389 .align 1
  1173. 390 .weak HAL_FLASH_EndOfOperationCallback
  1174. 391 .syntax unified
  1175. 392 .thumb
  1176. 393 .thumb_func
  1177. 394 .fpu fpv4-sp-d16
  1178. 396 HAL_FLASH_EndOfOperationCallback:
  1179. 397 .LFB133:
  1180. 385:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Prevent unused argument(s) compilation warning */
  1181. 398 .loc 1 385 0
  1182. 399 .cfi_startproc
  1183. 400 @ args = 0, pretend = 0, frame = 0
  1184. 401 @ frame_needed = 0, uses_anonymous_args = 0
  1185. 402 @ link register save eliminated.
  1186. 403 .LVL17:
  1187. 404 0000 7047 bx lr
  1188. 405 .cfi_endproc
  1189. 406 .LFE133:
  1190. 408 .section .text.HAL_FLASH_OperationErrorCallback,"ax",%progbits
  1191. 409 .align 1
  1192. 410 .weak HAL_FLASH_OperationErrorCallback
  1193. 411 .syntax unified
  1194. 412 .thumb
  1195. 413 .thumb_func
  1196. 414 .fpu fpv4-sp-d16
  1197. 416 HAL_FLASH_OperationErrorCallback:
  1198. 417 .LFB134:
  1199. 402:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Prevent unused argument(s) compilation warning */
  1200. 418 .loc 1 402 0
  1201. 419 .cfi_startproc
  1202. 420 @ args = 0, pretend = 0, frame = 0
  1203. 421 @ frame_needed = 0, uses_anonymous_args = 0
  1204. 422 @ link register save eliminated.
  1205. 423 .LVL18:
  1206. 424 0000 7047 bx lr
  1207. 425 .cfi_endproc
  1208. 426 .LFE134:
  1209. 428 .section .text.HAL_FLASH_IRQHandler,"ax",%progbits
  1210. 429 .align 1
  1211. 430 .global HAL_FLASH_IRQHandler
  1212. 431 .syntax unified
  1213. 432 .thumb
  1214. 433 .thumb_func
  1215. 434 .fpu fpv4-sp-d16
  1216. 436 HAL_FLASH_IRQHandler:
  1217. 437 .LFB132:
  1218. 262:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** uint32_t addresstmp = 0U;
  1219. ARM GAS /tmp/ccjBtVhA.s page 22
  1220. 438 .loc 1 262 0
  1221. 439 .cfi_startproc
  1222. 440 @ args = 0, pretend = 0, frame = 0
  1223. 441 @ frame_needed = 0, uses_anonymous_args = 0
  1224. 262:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** uint32_t addresstmp = 0U;
  1225. 442 .loc 1 262 0
  1226. 443 0000 10B5 push {r4, lr}
  1227. 444 .LCFI3:
  1228. 445 .cfi_def_cfa_offset 8
  1229. 446 .cfi_offset 4, -8
  1230. 447 .cfi_offset 14, -4
  1231. 448 .LVL19:
  1232. 270:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR)) != RESET)
  1233. 449 .loc 1 270 0
  1234. 450 0002 3A4B ldr r3, .L52
  1235. 451 0004 DB68 ldr r3, [r3, #12]
  1236. 452 0006 13F0F20F tst r3, #242
  1237. 453 000a 13D0 beq .L37
  1238. 274:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1239. 454 .loc 1 274 0
  1240. 455 000c 384B ldr r3, .L52+4
  1241. 456 000e 1B78 ldrb r3, [r3] @ zero_extendqisi2
  1242. 457 0010 DBB2 uxtb r3, r3
  1243. 458 0012 012B cmp r3, #1
  1244. 459 0014 3BD0 beq .L48
  1245. 280:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1246. 460 .loc 1 280 0
  1247. 461 0016 364B ldr r3, .L52+4
  1248. 462 0018 1B78 ldrb r3, [r3] @ zero_extendqisi2
  1249. 463 001a DBB2 uxtb r3, r3
  1250. 464 001c 022B cmp r3, #2
  1251. 465 001e 3CD0 beq .L49
  1252. 288:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1253. 466 .loc 1 288 0
  1254. 467 0020 334B ldr r3, .L52+4
  1255. 468 0022 5C69 ldr r4, [r3, #20]
  1256. 469 .LVL20:
  1257. 470 .L39:
  1258. 292:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1259. 471 .loc 1 292 0
  1260. 472 0024 FFF7FEFF bl FLASH_SetErrorCode
  1261. 473 .LVL21:
  1262. 295:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1263. 474 .loc 1 295 0
  1264. 475 0028 2046 mov r0, r4
  1265. 476 002a FFF7FEFF bl HAL_FLASH_OperationErrorCallback
  1266. 477 .LVL22:
  1267. 298:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1268. 478 .loc 1 298 0
  1269. 479 002e 0022 movs r2, #0
  1270. 480 0030 2F4B ldr r3, .L52+4
  1271. 481 0032 1A70 strb r2, [r3]
  1272. 482 .LVL23:
  1273. 483 .L37:
  1274. 302:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1275. 484 .loc 1 302 0
  1276. 485 0034 2D4B ldr r3, .L52
  1277. ARM GAS /tmp/ccjBtVhA.s page 23
  1278. 486 0036 DB68 ldr r3, [r3, #12]
  1279. 487 0038 13F0010F tst r3, #1
  1280. 488 003c 13D0 beq .L41
  1281. 305:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1282. 489 .loc 1 305 0
  1283. 490 003e 0122 movs r2, #1
  1284. 491 0040 2A4B ldr r3, .L52
  1285. 492 0042 DA60 str r2, [r3, #12]
  1286. 307:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1287. 493 .loc 1 307 0
  1288. 494 0044 2A4B ldr r3, .L52+4
  1289. 495 0046 1B78 ldrb r3, [r3] @ zero_extendqisi2
  1290. 496 0048 DBB2 uxtb r3, r3
  1291. 497 004a 9342 cmp r3, r2
  1292. 498 004c 28D0 beq .L50
  1293. 340:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1294. 499 .loc 1 340 0
  1295. 500 004e 284B ldr r3, .L52+4
  1296. 501 0050 1B78 ldrb r3, [r3] @ zero_extendqisi2
  1297. 502 0052 DBB2 uxtb r3, r3
  1298. 503 0054 022B cmp r3, #2
  1299. 504 0056 41D0 beq .L51
  1300. 353:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1301. 505 .loc 1 353 0
  1302. 506 0058 254B ldr r3, .L52+4
  1303. 507 005a 5869 ldr r0, [r3, #20]
  1304. 508 005c FFF7FEFF bl HAL_FLASH_EndOfOperationCallback
  1305. 509 .LVL24:
  1306. 510 .L45:
  1307. 355:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1308. 511 .loc 1 355 0
  1309. 512 0060 0022 movs r2, #0
  1310. 513 0062 234B ldr r3, .L52+4
  1311. 514 0064 1A70 strb r2, [r3]
  1312. 515 .L41:
  1313. 359:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1314. 516 .loc 1 359 0
  1315. 517 0066 224B ldr r3, .L52+4
  1316. 518 0068 1B78 ldrb r3, [r3] @ zero_extendqisi2
  1317. 519 006a 7BB9 cbnz r3, .L36
  1318. 362:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1319. 520 .loc 1 362 0
  1320. 521 006c 1F4B ldr r3, .L52
  1321. 522 006e 1A69 ldr r2, [r3, #16]
  1322. 523 0070 22F0FF02 bic r2, r2, #255
  1323. 524 0074 1A61 str r2, [r3, #16]
  1324. 365:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1325. 525 .loc 1 365 0
  1326. 526 0076 1A69 ldr r2, [r3, #16]
  1327. 527 0078 22F08072 bic r2, r2, #16777216
  1328. 528 007c 1A61 str r2, [r3, #16]
  1329. 368:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1330. 529 .loc 1 368 0
  1331. 530 007e 1A69 ldr r2, [r3, #16]
  1332. 531 0080 22F00072 bic r2, r2, #33554432
  1333. 532 0084 1A61 str r2, [r3, #16]
  1334. 371:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1335. ARM GAS /tmp/ccjBtVhA.s page 24
  1336. 533 .loc 1 371 0
  1337. 534 0086 0022 movs r2, #0
  1338. 535 0088 194B ldr r3, .L52+4
  1339. 536 008a 1A76 strb r2, [r3, #24]
  1340. 537 .L36:
  1341. 538 008c 10BD pop {r4, pc}
  1342. 539 .LVL25:
  1343. 540 .L48:
  1344. 277:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.Sector = 0xFFFFFFFFU;
  1345. 541 .loc 1 277 0
  1346. 542 008e 184B ldr r3, .L52+4
  1347. 543 0090 DC68 ldr r4, [r3, #12]
  1348. 544 .LVL26:
  1349. 278:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1350. 545 .loc 1 278 0
  1351. 546 0092 4FF0FF32 mov r2, #-1
  1352. 547 0096 DA60 str r2, [r3, #12]
  1353. 548 0098 C4E7 b .L39
  1354. 549 .LVL27:
  1355. 550 .L49:
  1356. 283:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1357. 551 .loc 1 283 0
  1358. 552 009a 154B ldr r3, .L52+4
  1359. 553 009c 1C69 ldr r4, [r3, #16]
  1360. 554 .LVL28:
  1361. 555 009e C1E7 b .L39
  1362. 556 .LVL29:
  1363. 557 .L50:
  1364. 310:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1365. 558 .loc 1 310 0
  1366. 559 00a0 134B ldr r3, .L52+4
  1367. 560 00a2 5A68 ldr r2, [r3, #4]
  1368. 561 00a4 013A subs r2, r2, #1
  1369. 562 00a6 5A60 str r2, [r3, #4]
  1370. 313:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1371. 563 .loc 1 313 0
  1372. 564 00a8 5B68 ldr r3, [r3, #4]
  1373. 565 00aa 5BB1 cbz r3, .L43
  1374. 315:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Indicate user which sector has been erased*/
  1375. 566 .loc 1 315 0
  1376. 567 00ac 104C ldr r4, .L52+4
  1377. 568 00ae E068 ldr r0, [r4, #12]
  1378. 569 .LVL30:
  1379. 317:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1380. 570 .loc 1 317 0
  1381. 571 00b0 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback
  1382. 572 .LVL31:
  1383. 320:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** addresstmp = pFlash.Sector;
  1384. 573 .loc 1 320 0
  1385. 574 00b4 E368 ldr r3, [r4, #12]
  1386. 575 00b6 0133 adds r3, r3, #1
  1387. 576 00b8 E360 str r3, [r4, #12]
  1388. 321:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_Erase_Sector(addresstmp, pFlash.VoltageForErase);
  1389. 577 .loc 1 321 0
  1390. 578 00ba E068 ldr r0, [r4, #12]
  1391. 579 .LVL32:
  1392. 322:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1393. ARM GAS /tmp/ccjBtVhA.s page 25
  1394. 580 .loc 1 322 0
  1395. 581 00bc 217A ldrb r1, [r4, #8] @ zero_extendqisi2
  1396. 582 00be FFF7FEFF bl FLASH_Erase_Sector
  1397. 583 .LVL33:
  1398. 584 00c2 D0E7 b .L41
  1399. 585 .L43:
  1400. 586 .LVL34:
  1401. 328:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE;
  1402. 587 .loc 1 328 0
  1403. 588 00c4 0A4B ldr r3, .L52+4
  1404. 589 00c6 4FF0FF34 mov r4, #-1
  1405. 590 00ca DC60 str r4, [r3, #12]
  1406. 329:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1407. 591 .loc 1 329 0
  1408. 592 00cc 0022 movs r2, #0
  1409. 593 00ce 1A70 strb r2, [r3]
  1410. 332:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1411. 594 .loc 1 332 0
  1412. 595 00d0 FFF7FEFF bl FLASH_FlushCaches
  1413. 596 .LVL35:
  1414. 335:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1415. 597 .loc 1 335 0
  1416. 598 00d4 2046 mov r0, r4
  1417. 599 00d6 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback
  1418. 600 .LVL36:
  1419. 601 00da C4E7 b .L41
  1420. 602 .LVL37:
  1421. 603 .L51:
  1422. 344:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1423. 604 .loc 1 344 0
  1424. 605 00dc FFF7FEFF bl FLASH_FlushCaches
  1425. 606 .LVL38:
  1426. 347:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1427. 607 .loc 1 347 0
  1428. 608 00e0 034B ldr r3, .L52+4
  1429. 609 00e2 1869 ldr r0, [r3, #16]
  1430. 610 00e4 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback
  1431. 611 .LVL39:
  1432. 612 00e8 BAE7 b .L45
  1433. 613 .L53:
  1434. 614 00ea 00BF .align 2
  1435. 615 .L52:
  1436. 616 00ec 003C0240 .word 1073888256
  1437. 617 00f0 00000000 .word pFlash
  1438. 618 .cfi_endproc
  1439. 619 .LFE132:
  1440. 621 .section .text.HAL_FLASH_Unlock,"ax",%progbits
  1441. 622 .align 1
  1442. 623 .global HAL_FLASH_Unlock
  1443. 624 .syntax unified
  1444. 625 .thumb
  1445. 626 .thumb_func
  1446. 627 .fpu fpv4-sp-d16
  1447. 629 HAL_FLASH_Unlock:
  1448. 630 .LFB135:
  1449. 434:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK;
  1450. 631 .loc 1 434 0
  1451. ARM GAS /tmp/ccjBtVhA.s page 26
  1452. 632 .cfi_startproc
  1453. 633 @ args = 0, pretend = 0, frame = 0
  1454. 634 @ frame_needed = 0, uses_anonymous_args = 0
  1455. 635 @ link register save eliminated.
  1456. 636 .LVL40:
  1457. 437:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1458. 637 .loc 1 437 0
  1459. 638 0000 094B ldr r3, .L59
  1460. 639 0002 1B69 ldr r3, [r3, #16]
  1461. 640 0004 002B cmp r3, #0
  1462. 641 0006 01DB blt .L58
  1463. 435:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1464. 642 .loc 1 435 0
  1465. 643 0008 0020 movs r0, #0
  1466. 644 000a 7047 bx lr
  1467. 645 .L58:
  1468. 440:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** WRITE_REG(FLASH->KEYR, FLASH_KEY2);
  1469. 646 .loc 1 440 0
  1470. 647 000c 064B ldr r3, .L59
  1471. 648 000e 074A ldr r2, .L59+4
  1472. 649 0010 5A60 str r2, [r3, #4]
  1473. 441:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1474. 650 .loc 1 441 0
  1475. 651 0012 02F18832 add r2, r2, #-2004318072
  1476. 652 0016 5A60 str r2, [r3, #4]
  1477. 444:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1478. 653 .loc 1 444 0
  1479. 654 0018 1B69 ldr r3, [r3, #16]
  1480. 655 001a 002B cmp r3, #0
  1481. 656 001c 01DB blt .L57
  1482. 435:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1483. 657 .loc 1 435 0
  1484. 658 001e 0020 movs r0, #0
  1485. 659 0020 7047 bx lr
  1486. 660 .L57:
  1487. 446:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1488. 661 .loc 1 446 0
  1489. 662 0022 0120 movs r0, #1
  1490. 663 .LVL41:
  1491. 451:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1492. 664 .loc 1 451 0
  1493. 665 0024 7047 bx lr
  1494. 666 .L60:
  1495. 667 0026 00BF .align 2
  1496. 668 .L59:
  1497. 669 0028 003C0240 .word 1073888256
  1498. 670 002c 23016745 .word 1164378403
  1499. 671 .cfi_endproc
  1500. 672 .LFE135:
  1501. 674 .section .text.HAL_FLASH_Lock,"ax",%progbits
  1502. 675 .align 1
  1503. 676 .global HAL_FLASH_Lock
  1504. 677 .syntax unified
  1505. 678 .thumb
  1506. 679 .thumb_func
  1507. 680 .fpu fpv4-sp-d16
  1508. 682 HAL_FLASH_Lock:
  1509. ARM GAS /tmp/ccjBtVhA.s page 27
  1510. 683 .LFB136:
  1511. 458:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Set the LOCK Bit to lock the FLASH Registers access */
  1512. 684 .loc 1 458 0
  1513. 685 .cfi_startproc
  1514. 686 @ args = 0, pretend = 0, frame = 0
  1515. 687 @ frame_needed = 0, uses_anonymous_args = 0
  1516. 688 @ link register save eliminated.
  1517. 460:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1518. 689 .loc 1 460 0
  1519. 690 0000 034A ldr r2, .L62
  1520. 691 0002 1369 ldr r3, [r2, #16]
  1521. 692 0004 43F00043 orr r3, r3, #-2147483648
  1522. 693 0008 1361 str r3, [r2, #16]
  1523. 463:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1524. 694 .loc 1 463 0
  1525. 695 000a 0020 movs r0, #0
  1526. 696 000c 7047 bx lr
  1527. 697 .L63:
  1528. 698 000e 00BF .align 2
  1529. 699 .L62:
  1530. 700 0010 003C0240 .word 1073888256
  1531. 701 .cfi_endproc
  1532. 702 .LFE136:
  1533. 704 .section .text.HAL_FLASH_OB_Unlock,"ax",%progbits
  1534. 705 .align 1
  1535. 706 .global HAL_FLASH_OB_Unlock
  1536. 707 .syntax unified
  1537. 708 .thumb
  1538. 709 .thumb_func
  1539. 710 .fpu fpv4-sp-d16
  1540. 712 HAL_FLASH_OB_Unlock:
  1541. 713 .LFB137:
  1542. 470:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if((FLASH->OPTCR & FLASH_OPTCR_OPTLOCK) != RESET)
  1543. 714 .loc 1 470 0
  1544. 715 .cfi_startproc
  1545. 716 @ args = 0, pretend = 0, frame = 0
  1546. 717 @ frame_needed = 0, uses_anonymous_args = 0
  1547. 718 @ link register save eliminated.
  1548. 471:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1549. 719 .loc 1 471 0
  1550. 720 0000 074B ldr r3, .L67
  1551. 721 0002 5B69 ldr r3, [r3, #20]
  1552. 722 0004 13F0010F tst r3, #1
  1553. 723 0008 07D0 beq .L66
  1554. 474:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->OPTKEYR = FLASH_OPT_KEY2;
  1555. 724 .loc 1 474 0
  1556. 725 000a 054B ldr r3, .L67
  1557. 726 000c 054A ldr r2, .L67+4
  1558. 727 000e 9A60 str r2, [r3, #8]
  1559. 475:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1560. 728 .loc 1 475 0
  1561. 729 0010 02F14432 add r2, r2, #1145324612
  1562. 730 0014 9A60 str r2, [r3, #8]
  1563. 482:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1564. 731 .loc 1 482 0
  1565. 732 0016 0020 movs r0, #0
  1566. 733 0018 7047 bx lr
  1567. ARM GAS /tmp/ccjBtVhA.s page 28
  1568. 734 .L66:
  1569. 479:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1570. 735 .loc 1 479 0
  1571. 736 001a 0120 movs r0, #1
  1572. 483:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1573. 737 .loc 1 483 0
  1574. 738 001c 7047 bx lr
  1575. 739 .L68:
  1576. 740 001e 00BF .align 2
  1577. 741 .L67:
  1578. 742 0020 003C0240 .word 1073888256
  1579. 743 0024 3B2A1908 .word 135866939
  1580. 744 .cfi_endproc
  1581. 745 .LFE137:
  1582. 747 .section .text.HAL_FLASH_OB_Lock,"ax",%progbits
  1583. 748 .align 1
  1584. 749 .global HAL_FLASH_OB_Lock
  1585. 750 .syntax unified
  1586. 751 .thumb
  1587. 752 .thumb_func
  1588. 753 .fpu fpv4-sp-d16
  1589. 755 HAL_FLASH_OB_Lock:
  1590. 756 .LFB138:
  1591. 490:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Set the OPTLOCK Bit to lock the FLASH Option Byte Registers access */
  1592. 757 .loc 1 490 0
  1593. 758 .cfi_startproc
  1594. 759 @ args = 0, pretend = 0, frame = 0
  1595. 760 @ frame_needed = 0, uses_anonymous_args = 0
  1596. 761 @ link register save eliminated.
  1597. 492:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1598. 762 .loc 1 492 0
  1599. 763 0000 034A ldr r2, .L70
  1600. 764 0002 5369 ldr r3, [r2, #20]
  1601. 765 0004 43F00103 orr r3, r3, #1
  1602. 766 0008 5361 str r3, [r2, #20]
  1603. 495:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1604. 767 .loc 1 495 0
  1605. 768 000a 0020 movs r0, #0
  1606. 769 000c 7047 bx lr
  1607. 770 .L71:
  1608. 771 000e 00BF .align 2
  1609. 772 .L70:
  1610. 773 0010 003C0240 .word 1073888256
  1611. 774 .cfi_endproc
  1612. 775 .LFE138:
  1613. 777 .section .text.HAL_FLASH_GetError,"ax",%progbits
  1614. 778 .align 1
  1615. 779 .global HAL_FLASH_GetError
  1616. 780 .syntax unified
  1617. 781 .thumb
  1618. 782 .thumb_func
  1619. 783 .fpu fpv4-sp-d16
  1620. 785 HAL_FLASH_GetError:
  1621. 786 .LFB140:
  1622. 539:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return pFlash.ErrorCode;
  1623. 787 .loc 1 539 0
  1624. 788 .cfi_startproc
  1625. ARM GAS /tmp/ccjBtVhA.s page 29
  1626. 789 @ args = 0, pretend = 0, frame = 0
  1627. 790 @ frame_needed = 0, uses_anonymous_args = 0
  1628. 791 @ link register save eliminated.
  1629. 540:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1630. 792 .loc 1 540 0
  1631. 793 0000 014B ldr r3, .L73
  1632. 794 0002 D869 ldr r0, [r3, #28]
  1633. 541:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1634. 795 .loc 1 541 0
  1635. 796 0004 7047 bx lr
  1636. 797 .L74:
  1637. 798 0006 00BF .align 2
  1638. 799 .L73:
  1639. 800 0008 00000000 .word pFlash
  1640. 801 .cfi_endproc
  1641. 802 .LFE140:
  1642. 804 .section .text.FLASH_WaitForLastOperation,"ax",%progbits
  1643. 805 .align 1
  1644. 806 .global FLASH_WaitForLastOperation
  1645. 807 .syntax unified
  1646. 808 .thumb
  1647. 809 .thumb_func
  1648. 810 .fpu fpv4-sp-d16
  1649. 812 FLASH_WaitForLastOperation:
  1650. 813 .LFB141:
  1651. 553:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** uint32_t tickstart = 0U;
  1652. 814 .loc 1 553 0
  1653. 815 .cfi_startproc
  1654. 816 @ args = 0, pretend = 0, frame = 0
  1655. 817 @ frame_needed = 0, uses_anonymous_args = 0
  1656. 818 .LVL42:
  1657. 819 0000 38B5 push {r3, r4, r5, lr}
  1658. 820 .LCFI4:
  1659. 821 .cfi_def_cfa_offset 16
  1660. 822 .cfi_offset 3, -16
  1661. 823 .cfi_offset 4, -12
  1662. 824 .cfi_offset 5, -8
  1663. 825 .cfi_offset 14, -4
  1664. 826 0002 0446 mov r4, r0
  1665. 827 .LVL43:
  1666. 557:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1667. 828 .loc 1 557 0
  1668. 829 0004 0022 movs r2, #0
  1669. 830 0006 154B ldr r3, .L87
  1670. 831 0008 DA61 str r2, [r3, #28]
  1671. 563:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1672. 832 .loc 1 563 0
  1673. 833 000a FFF7FEFF bl HAL_GetTick
  1674. 834 .LVL44:
  1675. 835 000e 0546 mov r5, r0
  1676. 836 .LVL45:
  1677. 837 .L77:
  1678. 565:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1679. 838 .loc 1 565 0
  1680. 839 0010 134B ldr r3, .L87+4
  1681. 840 0012 DB68 ldr r3, [r3, #12]
  1682. 841 0014 13F4803F tst r3, #65536
  1683. ARM GAS /tmp/ccjBtVhA.s page 30
  1684. 842 0018 0AD0 beq .L85
  1685. 567:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1686. 843 .loc 1 567 0
  1687. 844 001a B4F1FF3F cmp r4, #-1
  1688. 845 001e F7D0 beq .L77
  1689. 569:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1690. 846 .loc 1 569 0
  1691. 847 0020 CCB1 cbz r4, .L81
  1692. 569:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1693. 848 .loc 1 569 0 is_stmt 0 discriminator 1
  1694. 849 0022 FFF7FEFF bl HAL_GetTick
  1695. 850 .LVL46:
  1696. 851 0026 401B subs r0, r0, r5
  1697. 852 0028 8442 cmp r4, r0
  1698. 853 002a F1D2 bcs .L77
  1699. 571:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1700. 854 .loc 1 571 0 is_stmt 1
  1701. 855 002c 0320 movs r0, #3
  1702. 856 002e 38BD pop {r3, r4, r5, pc}
  1703. 857 .LVL47:
  1704. 858 .L85:
  1705. 577:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1706. 859 .loc 1 577 0
  1707. 860 0030 0B4B ldr r3, .L87+4
  1708. 861 0032 DB68 ldr r3, [r3, #12]
  1709. 862 0034 13F0010F tst r3, #1
  1710. 863 0038 02D0 beq .L80
  1711. 580:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1712. 864 .loc 1 580 0
  1713. 865 003a 0122 movs r2, #1
  1714. 866 003c 084B ldr r3, .L87+4
  1715. 867 003e DA60 str r2, [r3, #12]
  1716. 868 .L80:
  1717. 586:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR)) != RESET)
  1718. 869 .loc 1 586 0
  1719. 870 0040 074B ldr r3, .L87+4
  1720. 871 0042 DB68 ldr r3, [r3, #12]
  1721. 872 0044 13F0F20F tst r3, #242
  1722. 873 0048 01D1 bne .L86
  1723. 596:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1724. 874 .loc 1 596 0
  1725. 875 004a 0020 movs r0, #0
  1726. 598:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1727. 876 .loc 1 598 0
  1728. 877 004c 38BD pop {r3, r4, r5, pc}
  1729. 878 .LVL48:
  1730. 879 .L86:
  1731. 591:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return HAL_ERROR;
  1732. 880 .loc 1 591 0
  1733. 881 004e FFF7FEFF bl FLASH_SetErrorCode
  1734. 882 .LVL49:
  1735. 592:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1736. 883 .loc 1 592 0
  1737. 884 0052 0120 movs r0, #1
  1738. 885 0054 38BD pop {r3, r4, r5, pc}
  1739. 886 .LVL50:
  1740. 887 .L81:
  1741. ARM GAS /tmp/ccjBtVhA.s page 31
  1742. 571:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1743. 888 .loc 1 571 0
  1744. 889 0056 0320 movs r0, #3
  1745. 890 0058 38BD pop {r3, r4, r5, pc}
  1746. 891 .LVL51:
  1747. 892 .L88:
  1748. 893 005a 00BF .align 2
  1749. 894 .L87:
  1750. 895 005c 00000000 .word pFlash
  1751. 896 0060 003C0240 .word 1073888256
  1752. 897 .cfi_endproc
  1753. 898 .LFE141:
  1754. 900 .section .text.HAL_FLASH_Program,"ax",%progbits
  1755. 901 .align 1
  1756. 902 .global HAL_FLASH_Program
  1757. 903 .syntax unified
  1758. 904 .thumb
  1759. 905 .thumb_func
  1760. 906 .fpu fpv4-sp-d16
  1761. 908 HAL_FLASH_Program:
  1762. 909 .LFB130:
  1763. 157:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_ERROR;
  1764. 910 .loc 1 157 0
  1765. 911 .cfi_startproc
  1766. 912 @ args = 0, pretend = 0, frame = 0
  1767. 913 @ frame_needed = 0, uses_anonymous_args = 0
  1768. 914 .LVL52:
  1769. 915 0000 2DE9F041 push {r4, r5, r6, r7, r8, lr}
  1770. 916 .LCFI5:
  1771. 917 .cfi_def_cfa_offset 24
  1772. 918 .cfi_offset 4, -24
  1773. 919 .cfi_offset 5, -20
  1774. 920 .cfi_offset 6, -16
  1775. 921 .cfi_offset 7, -12
  1776. 922 .cfi_offset 8, -8
  1777. 923 .cfi_offset 14, -4
  1778. 924 .LVL53:
  1779. 161:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1780. 925 .loc 1 161 0
  1781. 926 0004 1D4C ldr r4, .L102
  1782. 927 0006 247E ldrb r4, [r4, #24] @ zero_extendqisi2
  1783. 928 0008 012C cmp r4, #1
  1784. 929 000a 03D1 bne .L98
  1785. 930 000c 0224 movs r4, #2
  1786. 931 .LVL54:
  1787. 932 .L90:
  1788. 203:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1789. 933 .loc 1 203 0
  1790. 934 000e 2046 mov r0, r4
  1791. 935 0010 BDE8F081 pop {r4, r5, r6, r7, r8, pc}
  1792. 936 .LVL55:
  1793. 937 .L98:
  1794. 938 0014 9846 mov r8, r3
  1795. 939 0016 1746 mov r7, r2
  1796. 940 0018 0E46 mov r6, r1
  1797. 941 001a 0546 mov r5, r0
  1798. 161:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1799. ARM GAS /tmp/ccjBtVhA.s page 32
  1800. 942 .loc 1 161 0 discriminator 2
  1801. 943 001c 0122 movs r2, #1
  1802. 944 .LVL56:
  1803. 945 001e 174B ldr r3, .L102
  1804. 946 0020 1A76 strb r2, [r3, #24]
  1805. 167:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1806. 947 .loc 1 167 0 discriminator 2
  1807. 948 0022 4CF25030 movw r0, #50000
  1808. 949 .LVL57:
  1809. 950 0026 FFF7FEFF bl FLASH_WaitForLastOperation
  1810. 951 .LVL58:
  1811. 169:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1812. 952 .loc 1 169 0 discriminator 2
  1813. 953 002a 0446 mov r4, r0
  1814. 954 002c 98B9 cbnz r0, .L91
  1815. 171:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1816. 955 .loc 1 171 0
  1817. 956 002e B5B1 cbz r5, .L99
  1818. 176:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1819. 957 .loc 1 176 0
  1820. 958 0030 012D cmp r5, #1
  1821. 959 0032 19D0 beq .L100
  1822. 181:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1823. 960 .loc 1 181 0
  1824. 961 0034 022D cmp r5, #2
  1825. 962 0036 1CD0 beq .L101
  1826. 189:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1827. 963 .loc 1 189 0
  1828. 964 0038 3A46 mov r2, r7
  1829. 965 003a 4346 mov r3, r8
  1830. 966 003c 3046 mov r0, r6
  1831. 967 .LVL59:
  1832. 968 003e FFF7FEFF bl FLASH_Program_DoubleWord
  1833. 969 .LVL60:
  1834. 970 .L93:
  1835. 193:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1836. 971 .loc 1 193 0
  1837. 972 0042 4CF25030 movw r0, #50000
  1838. 973 0046 FFF7FEFF bl FLASH_WaitForLastOperation
  1839. 974 .LVL61:
  1840. 975 004a 0446 mov r4, r0
  1841. 976 .LVL62:
  1842. 196:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1843. 977 .loc 1 196 0
  1844. 978 004c 0C4A ldr r2, .L102+4
  1845. 979 004e 1369 ldr r3, [r2, #16]
  1846. 980 0050 23F00103 bic r3, r3, #1
  1847. 981 0054 1361 str r3, [r2, #16]
  1848. 982 .LVL63:
  1849. 983 .L91:
  1850. 200:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1851. 984 .loc 1 200 0
  1852. 985 0056 0022 movs r2, #0
  1853. 986 0058 084B ldr r3, .L102
  1854. 987 005a 1A76 strb r2, [r3, #24]
  1855. 202:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1856. 988 .loc 1 202 0
  1857. ARM GAS /tmp/ccjBtVhA.s page 33
  1858. 989 005c D7E7 b .L90
  1859. 990 .LVL64:
  1860. 991 .L99:
  1861. 174:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1862. 992 .loc 1 174 0
  1863. 993 005e F9B2 uxtb r1, r7
  1864. 994 0060 3046 mov r0, r6
  1865. 995 .LVL65:
  1866. 996 0062 FFF7FEFF bl FLASH_Program_Byte
  1867. 997 .LVL66:
  1868. 998 0066 ECE7 b .L93
  1869. 999 .LVL67:
  1870. 1000 .L100:
  1871. 179:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1872. 1001 .loc 1 179 0
  1873. 1002 0068 B9B2 uxth r1, r7
  1874. 1003 006a 3046 mov r0, r6
  1875. 1004 .LVL68:
  1876. 1005 006c FFF7FEFF bl FLASH_Program_HalfWord
  1877. 1006 .LVL69:
  1878. 1007 0070 E7E7 b .L93
  1879. 1008 .LVL70:
  1880. 1009 .L101:
  1881. 184:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1882. 1010 .loc 1 184 0
  1883. 1011 0072 3946 mov r1, r7
  1884. 1012 0074 3046 mov r0, r6
  1885. 1013 .LVL71:
  1886. 1014 0076 FFF7FEFF bl FLASH_Program_Word
  1887. 1015 .LVL72:
  1888. 1016 007a E2E7 b .L93
  1889. 1017 .L103:
  1890. 1018 .align 2
  1891. 1019 .L102:
  1892. 1020 007c 00000000 .word pFlash
  1893. 1021 0080 003C0240 .word 1073888256
  1894. 1022 .cfi_endproc
  1895. 1023 .LFE130:
  1896. 1025 .section .text.HAL_FLASH_OB_Launch,"ax",%progbits
  1897. 1026 .align 1
  1898. 1027 .global HAL_FLASH_OB_Launch
  1899. 1028 .syntax unified
  1900. 1029 .thumb
  1901. 1030 .thumb_func
  1902. 1031 .fpu fpv4-sp-d16
  1903. 1033 HAL_FLASH_OB_Launch:
  1904. 1034 .LFB139:
  1905. 502:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Set the OPTSTRT bit in OPTCR register */
  1906. 1035 .loc 1 502 0
  1907. 1036 .cfi_startproc
  1908. 1037 @ args = 0, pretend = 0, frame = 0
  1909. 1038 @ frame_needed = 0, uses_anonymous_args = 0
  1910. 1039 0000 08B5 push {r3, lr}
  1911. 1040 .LCFI6:
  1912. 1041 .cfi_def_cfa_offset 8
  1913. 1042 .cfi_offset 3, -8
  1914. 1043 .cfi_offset 14, -4
  1915. ARM GAS /tmp/ccjBtVhA.s page 34
  1916. 504:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1917. 1044 .loc 1 504 0
  1918. 1045 0002 054A ldr r2, .L106
  1919. 1046 0004 1378 ldrb r3, [r2] @ zero_extendqisi2
  1920. 1047 0006 43F00203 orr r3, r3, #2
  1921. 1048 000a 1370 strb r3, [r2]
  1922. 507:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1923. 1049 .loc 1 507 0
  1924. 1050 000c 4CF25030 movw r0, #50000
  1925. 1051 0010 FFF7FEFF bl FLASH_WaitForLastOperation
  1926. 1052 .LVL73:
  1927. 508:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1928. 1053 .loc 1 508 0
  1929. 1054 0014 08BD pop {r3, pc}
  1930. 1055 .L107:
  1931. 1056 0016 00BF .align 2
  1932. 1057 .L106:
  1933. 1058 0018 143C0240 .word 1073888276
  1934. 1059 .cfi_endproc
  1935. 1060 .LFE139:
  1936. 1062 .comm pFlash,32,4
  1937. 1063 .text
  1938. 1064 .Letext0:
  1939. 1065 .file 2 "/usr/include/newlib/machine/_default_types.h"
  1940. 1066 .file 3 "/usr/include/newlib/sys/_stdint.h"
  1941. 1067 .file 4 "Drivers/CMSIS/Include/core_cm4.h"
  1942. 1068 .file 5 "Drivers/CMSIS/Device/ST/STM32F4xx/Include/system_stm32f4xx.h"
  1943. 1069 .file 6 "Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f407xx.h"
  1944. 1070 .file 7 "Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h"
  1945. 1071 .file 8 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h"
  1946. 1072 .file 9 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h"
  1947. 1073 .file 10 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h"
  1948. 1074 .file 11 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h"
  1949. ARM GAS /tmp/ccjBtVhA.s page 35
  1950. DEFINED SYMBOLS
  1951. *ABS*:0000000000000000 stm32f4xx_hal_flash.c
  1952. /tmp/ccjBtVhA.s:18 .text.FLASH_Program_DoubleWord:0000000000000000 $t
  1953. /tmp/ccjBtVhA.s:24 .text.FLASH_Program_DoubleWord:0000000000000000 FLASH_Program_DoubleWord
  1954. /tmp/ccjBtVhA.s:63 .text.FLASH_Program_DoubleWord:0000000000000028 $d
  1955. /tmp/ccjBtVhA.s:68 .text.FLASH_Program_Word:0000000000000000 $t
  1956. /tmp/ccjBtVhA.s:74 .text.FLASH_Program_Word:0000000000000000 FLASH_Program_Word
  1957. /tmp/ccjBtVhA.s:101 .text.FLASH_Program_Word:0000000000000020 $d
  1958. /tmp/ccjBtVhA.s:106 .text.FLASH_Program_HalfWord:0000000000000000 $t
  1959. /tmp/ccjBtVhA.s:112 .text.FLASH_Program_HalfWord:0000000000000000 FLASH_Program_HalfWord
  1960. /tmp/ccjBtVhA.s:139 .text.FLASH_Program_HalfWord:0000000000000020 $d
  1961. /tmp/ccjBtVhA.s:144 .text.FLASH_Program_Byte:0000000000000000 $t
  1962. /tmp/ccjBtVhA.s:150 .text.FLASH_Program_Byte:0000000000000000 FLASH_Program_Byte
  1963. /tmp/ccjBtVhA.s:176 .text.FLASH_Program_Byte:000000000000001c $d
  1964. /tmp/ccjBtVhA.s:181 .text.FLASH_SetErrorCode:0000000000000000 $t
  1965. /tmp/ccjBtVhA.s:187 .text.FLASH_SetErrorCode:0000000000000000 FLASH_SetErrorCode
  1966. /tmp/ccjBtVhA.s:273 .text.FLASH_SetErrorCode:0000000000000084 $d
  1967. *COM*:0000000000000020 pFlash
  1968. /tmp/ccjBtVhA.s:279 .text.HAL_FLASH_Program_IT:0000000000000000 $t
  1969. /tmp/ccjBtVhA.s:286 .text.HAL_FLASH_Program_IT:0000000000000000 HAL_FLASH_Program_IT
  1970. /tmp/ccjBtVhA.s:383 .text.HAL_FLASH_Program_IT:0000000000000068 $d
  1971. /tmp/ccjBtVhA.s:389 .text.HAL_FLASH_EndOfOperationCallback:0000000000000000 $t
  1972. /tmp/ccjBtVhA.s:396 .text.HAL_FLASH_EndOfOperationCallback:0000000000000000 HAL_FLASH_EndOfOperationCallback
  1973. /tmp/ccjBtVhA.s:409 .text.HAL_FLASH_OperationErrorCallback:0000000000000000 $t
  1974. /tmp/ccjBtVhA.s:416 .text.HAL_FLASH_OperationErrorCallback:0000000000000000 HAL_FLASH_OperationErrorCallback
  1975. /tmp/ccjBtVhA.s:429 .text.HAL_FLASH_IRQHandler:0000000000000000 $t
  1976. /tmp/ccjBtVhA.s:436 .text.HAL_FLASH_IRQHandler:0000000000000000 HAL_FLASH_IRQHandler
  1977. /tmp/ccjBtVhA.s:616 .text.HAL_FLASH_IRQHandler:00000000000000ec $d
  1978. /tmp/ccjBtVhA.s:622 .text.HAL_FLASH_Unlock:0000000000000000 $t
  1979. /tmp/ccjBtVhA.s:629 .text.HAL_FLASH_Unlock:0000000000000000 HAL_FLASH_Unlock
  1980. /tmp/ccjBtVhA.s:669 .text.HAL_FLASH_Unlock:0000000000000028 $d
  1981. /tmp/ccjBtVhA.s:675 .text.HAL_FLASH_Lock:0000000000000000 $t
  1982. /tmp/ccjBtVhA.s:682 .text.HAL_FLASH_Lock:0000000000000000 HAL_FLASH_Lock
  1983. /tmp/ccjBtVhA.s:700 .text.HAL_FLASH_Lock:0000000000000010 $d
  1984. /tmp/ccjBtVhA.s:705 .text.HAL_FLASH_OB_Unlock:0000000000000000 $t
  1985. /tmp/ccjBtVhA.s:712 .text.HAL_FLASH_OB_Unlock:0000000000000000 HAL_FLASH_OB_Unlock
  1986. /tmp/ccjBtVhA.s:742 .text.HAL_FLASH_OB_Unlock:0000000000000020 $d
  1987. /tmp/ccjBtVhA.s:748 .text.HAL_FLASH_OB_Lock:0000000000000000 $t
  1988. /tmp/ccjBtVhA.s:755 .text.HAL_FLASH_OB_Lock:0000000000000000 HAL_FLASH_OB_Lock
  1989. /tmp/ccjBtVhA.s:773 .text.HAL_FLASH_OB_Lock:0000000000000010 $d
  1990. /tmp/ccjBtVhA.s:778 .text.HAL_FLASH_GetError:0000000000000000 $t
  1991. /tmp/ccjBtVhA.s:785 .text.HAL_FLASH_GetError:0000000000000000 HAL_FLASH_GetError
  1992. /tmp/ccjBtVhA.s:800 .text.HAL_FLASH_GetError:0000000000000008 $d
  1993. /tmp/ccjBtVhA.s:805 .text.FLASH_WaitForLastOperation:0000000000000000 $t
  1994. /tmp/ccjBtVhA.s:812 .text.FLASH_WaitForLastOperation:0000000000000000 FLASH_WaitForLastOperation
  1995. /tmp/ccjBtVhA.s:895 .text.FLASH_WaitForLastOperation:000000000000005c $d
  1996. /tmp/ccjBtVhA.s:901 .text.HAL_FLASH_Program:0000000000000000 $t
  1997. /tmp/ccjBtVhA.s:908 .text.HAL_FLASH_Program:0000000000000000 HAL_FLASH_Program
  1998. /tmp/ccjBtVhA.s:1020 .text.HAL_FLASH_Program:000000000000007c $d
  1999. /tmp/ccjBtVhA.s:1026 .text.HAL_FLASH_OB_Launch:0000000000000000 $t
  2000. /tmp/ccjBtVhA.s:1033 .text.HAL_FLASH_OB_Launch:0000000000000000 HAL_FLASH_OB_Launch
  2001. /tmp/ccjBtVhA.s:1058 .text.HAL_FLASH_OB_Launch:0000000000000018 $d
  2002. .debug_frame:0000000000000010 $d
  2003. UNDEFINED SYMBOLS
  2004. FLASH_Erase_Sector
  2005. FLASH_FlushCaches
  2006. ARM GAS /tmp/ccjBtVhA.s page 36
  2007. HAL_GetTick