stm32f4xx_hal_flash.lst 195 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292
  1. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 1
  2. 1 .cpu cortex-m4
  3. 2 .arch armv7e-m
  4. 3 .fpu fpv4-sp-d16
  5. 4 .eabi_attribute 27, 1
  6. 5 .eabi_attribute 28, 1
  7. 6 .eabi_attribute 20, 1
  8. 7 .eabi_attribute 21, 1
  9. 8 .eabi_attribute 23, 3
  10. 9 .eabi_attribute 24, 1
  11. 10 .eabi_attribute 25, 1
  12. 11 .eabi_attribute 26, 1
  13. 12 .eabi_attribute 30, 6
  14. 13 .eabi_attribute 34, 1
  15. 14 .eabi_attribute 18, 4
  16. 15 .file "stm32f4xx_hal_flash.c"
  17. 16 .text
  18. 17 .Ltext0:
  19. 18 .cfi_sections .debug_frame
  20. 19 .global pFlash
  21. 20 .section .bss.pFlash,"aw",%nobits
  22. 21 .align 2
  23. 24 pFlash:
  24. 25 0000 00000000 .space 32
  25. 25 00000000
  26. 25 00000000
  27. 25 00000000
  28. 25 00000000
  29. 26 .section .text.HAL_FLASH_Program,"ax",%progbits
  30. 27 .align 1
  31. 28 .global HAL_FLASH_Program
  32. 29 .syntax unified
  33. 30 .thumb
  34. 31 .thumb_func
  35. 33 HAL_FLASH_Program:
  36. 34 .LFB235:
  37. 35 .file 1 "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c"
  38. 1:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  39. 2:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ******************************************************************************
  40. 3:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @file stm32f4xx_hal_flash.c
  41. 4:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @author MCD Application Team
  42. 5:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief FLASH HAL module driver.
  43. 6:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * This file provides firmware functions to manage the following
  44. 7:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * functionalities of the internal FLASH memory:
  45. 8:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * + Program operations functions
  46. 9:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * + Memory Control functions
  47. 10:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * + Peripheral Errors functions
  48. 11:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  49. 12:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** @verbatim
  50. 13:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ==============================================================================
  51. 14:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ##### FLASH peripheral features #####
  52. 15:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ==============================================================================
  53. 16:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  54. 17:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** [..] The Flash memory interface manages CPU AHB I-Code and D-Code accesses
  55. 18:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** to the Flash memory. It implements the erase and program Flash memory operations
  56. 19:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** and the read and write protection mechanisms.
  57. 20:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  58. 21:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** [..] The Flash memory interface accelerates code execution with a system of instruction
  59. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 2
  60. 22:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** prefetch and cache lines.
  61. 23:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  62. 24:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** [..] The FLASH main features are:
  63. 25:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) Flash memory read operations
  64. 26:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) Flash memory program/erase operations
  65. 27:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) Read / write protections
  66. 28:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) Prefetch on I-Code
  67. 29:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) 64 cache lines of 128 bits on I-Code
  68. 30:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) 8 cache lines of 128 bits on D-Code
  69. 31:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  70. 32:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  71. 33:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ##### How to use this driver #####
  72. 34:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ==============================================================================
  73. 35:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** [..]
  74. 36:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** This driver provides functions and macros to configure and program the FLASH
  75. 37:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** memory of all STM32F4xx devices.
  76. 38:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  77. 39:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (#) FLASH Memory IO Programming functions:
  78. 40:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (++) Lock and Unlock the FLASH interface using HAL_FLASH_Unlock() and
  79. 41:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_FLASH_Lock() functions
  80. 42:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (++) Program functions: byte, half word, word and double word
  81. 43:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (++) There Two modes of programming :
  82. 44:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+++) Polling mode using HAL_FLASH_Program() function
  83. 45:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+++) Interrupt mode using HAL_FLASH_Program_IT() function
  84. 46:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  85. 47:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (#) Interrupts and flags management functions :
  86. 48:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (++) Handle FLASH interrupts by calling HAL_FLASH_IRQHandler()
  87. 49:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (++) Wait for last FLASH operation according to its status
  88. 50:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (++) Get error flag status by calling HAL_SetErrorCode()
  89. 51:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  90. 52:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** [..]
  91. 53:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** In addition to these functions, this driver includes a set of macros allowing
  92. 54:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** to handle the following operations:
  93. 55:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) Set the latency
  94. 56:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) Enable/Disable the prefetch buffer
  95. 57:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) Enable/Disable the Instruction cache and the Data cache
  96. 58:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) Reset the Instruction cache and the Data cache
  97. 59:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) Enable/Disable the FLASH interrupts
  98. 60:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (+) Monitor the FLASH flags status
  99. 61:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  100. 62:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** @endverbatim
  101. 63:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ******************************************************************************
  102. 64:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @attention
  103. 65:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  104. 66:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * Copyright (c) 2017 STMicroelectronics.
  105. 67:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * All rights reserved.
  106. 68:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  107. 69:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * This software is licensed under terms that can be found in the LICENSE file in
  108. 70:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * the root directory of this software component.
  109. 71:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * If no LICENSE file comes with this software, it is provided AS-IS.
  110. 72:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ******************************************************************************
  111. 73:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  112. 74:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  113. 75:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Includes ------------------------------------------------------------------*/
  114. 76:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** #include "stm32f4xx_hal.h"
  115. 77:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  116. 78:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /** @addtogroup STM32F4xx_HAL_Driver
  117. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 3
  118. 79:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @{
  119. 80:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  120. 81:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  121. 82:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /** @defgroup FLASH FLASH
  122. 83:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief FLASH HAL module driver
  123. 84:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @{
  124. 85:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  125. 86:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  126. 87:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** #ifdef HAL_FLASH_MODULE_ENABLED
  127. 88:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  128. 89:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Private typedef -----------------------------------------------------------*/
  129. 90:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Private define ------------------------------------------------------------*/
  130. 91:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /** @addtogroup FLASH_Private_Constants
  131. 92:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @{
  132. 93:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  133. 94:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** #define FLASH_TIMEOUT_VALUE 50000U /* 50 s */
  134. 95:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  135. 96:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @}
  136. 97:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  137. 98:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Private macro -------------------------------------------------------------*/
  138. 99:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Private variables ---------------------------------------------------------*/
  139. 100:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /** @addtogroup FLASH_Private_Variables
  140. 101:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @{
  141. 102:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  142. 103:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Variable used for Erase sectors under interruption */
  143. 104:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_ProcessTypeDef pFlash;
  144. 105:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  145. 106:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @}
  146. 107:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  147. 108:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  148. 109:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Private function prototypes -----------------------------------------------*/
  149. 110:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /** @addtogroup FLASH_Private_Functions
  150. 111:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @{
  151. 112:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  152. 113:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Program operations */
  153. 114:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** static void FLASH_Program_DoubleWord(uint32_t Address, uint64_t Data);
  154. 115:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** static void FLASH_Program_Word(uint32_t Address, uint32_t Data);
  155. 116:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** static void FLASH_Program_HalfWord(uint32_t Address, uint16_t Data);
  156. 117:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** static void FLASH_Program_Byte(uint32_t Address, uint8_t Data);
  157. 118:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** static void FLASH_SetErrorCode(void);
  158. 119:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  159. 120:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef FLASH_WaitForLastOperation(uint32_t Timeout);
  160. 121:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  161. 122:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @}
  162. 123:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  163. 124:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  164. 125:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Exported functions --------------------------------------------------------*/
  165. 126:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions FLASH Exported Functions
  166. 127:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @{
  167. 128:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  168. 129:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  169. 130:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions_Group1 Programming operation functions
  170. 131:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Programming operation functions
  171. 132:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  172. 133:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** @verbatim
  173. 134:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ===============================================================================
  174. 135:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ##### Programming operation functions #####
  175. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 4
  176. 136:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ===============================================================================
  177. 137:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** [..]
  178. 138:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** This subsection provides a set of functions allowing to manage the FLASH
  179. 139:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** program operations.
  180. 140:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  181. 141:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** @endverbatim
  182. 142:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @{
  183. 143:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  184. 144:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  185. 145:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  186. 146:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Program byte, halfword, word or double word at a specified address
  187. 147:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param TypeProgram Indicate the way to program at a specified address.
  188. 148:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * This parameter can be a value of @ref FLASH_Type_Program
  189. 149:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Address specifies the address to be programmed.
  190. 150:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Data specifies the data to be programmed
  191. 151:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  192. 152:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval HAL_StatusTypeDef HAL Status
  193. 153:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  194. 154:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_Program(uint32_t TypeProgram, uint32_t Address, uint64_t Data)
  195. 155:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  196. 36 .loc 1 155 1
  197. 37 .cfi_startproc
  198. 38 @ args = 0, pretend = 0, frame = 24
  199. 39 @ frame_needed = 1, uses_anonymous_args = 0
  200. 40 0000 80B5 push {r7, lr}
  201. 41 .LCFI0:
  202. 42 .cfi_def_cfa_offset 8
  203. 43 .cfi_offset 7, -8
  204. 44 .cfi_offset 14, -4
  205. 45 0002 86B0 sub sp, sp, #24
  206. 46 .LCFI1:
  207. 47 .cfi_def_cfa_offset 32
  208. 48 0004 00AF add r7, sp, #0
  209. 49 .LCFI2:
  210. 50 .cfi_def_cfa_register 7
  211. 51 0006 F860 str r0, [r7, #12]
  212. 52 0008 B960 str r1, [r7, #8]
  213. 53 000a C7E90023 strd r2, [r7]
  214. 156:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_ERROR;
  215. 54 .loc 1 156 21
  216. 55 000e 0123 movs r3, #1
  217. 56 0010 FB75 strb r3, [r7, #23]
  218. 157:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  219. 158:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Process Locked */
  220. 159:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_LOCK(&pFlash);
  221. 57 .loc 1 159 3
  222. 58 0012 234B ldr r3, .L9
  223. 59 0014 1B7E ldrb r3, [r3, #24] @ zero_extendqisi2
  224. 60 0016 012B cmp r3, #1
  225. 61 0018 01D1 bne .L2
  226. 62 .loc 1 159 3 is_stmt 0 discriminator 1
  227. 63 001a 0223 movs r3, #2
  228. 64 001c 3BE0 b .L3
  229. 65 .L2:
  230. 66 .loc 1 159 3 discriminator 2
  231. 67 001e 204B ldr r3, .L9
  232. 68 0020 0122 movs r2, #1
  233. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 5
  234. 69 0022 1A76 strb r2, [r3, #24]
  235. 160:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  236. 161:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Check the parameters */
  237. 162:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** assert_param(IS_FLASH_TYPEPROGRAM(TypeProgram));
  238. 163:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  239. 164:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Wait for last operation to be completed */
  240. 165:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
  241. 70 .loc 1 165 12 is_stmt 1 discriminator 2
  242. 71 0024 4CF25030 movw r0, #50000
  243. 72 0028 FFF7FEFF bl FLASH_WaitForLastOperation
  244. 73 002c 0346 mov r3, r0
  245. 74 002e FB75 strb r3, [r7, #23]
  246. 166:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  247. 167:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(status == HAL_OK)
  248. 75 .loc 1 167 5 discriminator 2
  249. 76 0030 FB7D ldrb r3, [r7, #23] @ zero_extendqisi2
  250. 77 0032 002B cmp r3, #0
  251. 78 0034 2BD1 bne .L4
  252. 168:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  253. 169:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(TypeProgram == FLASH_TYPEPROGRAM_BYTE)
  254. 79 .loc 1 169 7
  255. 80 0036 FB68 ldr r3, [r7, #12]
  256. 81 0038 002B cmp r3, #0
  257. 82 003a 05D1 bne .L5
  258. 170:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  259. 171:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Program byte (8-bit) at a specified address.*/
  260. 172:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_Program_Byte(Address, (uint8_t) Data);
  261. 83 .loc 1 172 7
  262. 84 003c 3B78 ldrb r3, [r7] @ zero_extendqisi2
  263. 85 003e 1946 mov r1, r3
  264. 86 0040 B868 ldr r0, [r7, #8]
  265. 87 0042 FFF7FEFF bl FLASH_Program_Byte
  266. 88 0046 16E0 b .L6
  267. 89 .L5:
  268. 173:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  269. 174:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else if(TypeProgram == FLASH_TYPEPROGRAM_HALFWORD)
  270. 90 .loc 1 174 12
  271. 91 0048 FB68 ldr r3, [r7, #12]
  272. 92 004a 012B cmp r3, #1
  273. 93 004c 05D1 bne .L7
  274. 175:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  275. 176:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Program halfword (16-bit) at a specified address.*/
  276. 177:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_Program_HalfWord(Address, (uint16_t) Data);
  277. 94 .loc 1 177 7
  278. 95 004e 3B88 ldrh r3, [r7]
  279. 96 0050 1946 mov r1, r3
  280. 97 0052 B868 ldr r0, [r7, #8]
  281. 98 0054 FFF7FEFF bl FLASH_Program_HalfWord
  282. 99 0058 0DE0 b .L6
  283. 100 .L7:
  284. 178:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  285. 179:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else if(TypeProgram == FLASH_TYPEPROGRAM_WORD)
  286. 101 .loc 1 179 12
  287. 102 005a FB68 ldr r3, [r7, #12]
  288. 103 005c 022B cmp r3, #2
  289. 104 005e 05D1 bne .L8
  290. 180:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  291. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 6
  292. 181:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Program word (32-bit) at a specified address.*/
  293. 182:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_Program_Word(Address, (uint32_t) Data);
  294. 105 .loc 1 182 7
  295. 106 0060 3B68 ldr r3, [r7]
  296. 107 0062 1946 mov r1, r3
  297. 108 0064 B868 ldr r0, [r7, #8]
  298. 109 0066 FFF7FEFF bl FLASH_Program_Word
  299. 110 006a 04E0 b .L6
  300. 111 .L8:
  301. 183:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  302. 184:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else
  303. 185:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  304. 186:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Program double word (64-bit) at a specified address.*/
  305. 187:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_Program_DoubleWord(Address, Data);
  306. 112 .loc 1 187 7
  307. 113 006c D7E90023 ldrd r2, [r7]
  308. 114 0070 B868 ldr r0, [r7, #8]
  309. 115 0072 FFF7FEFF bl FLASH_Program_DoubleWord
  310. 116 .L6:
  311. 188:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  312. 189:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  313. 190:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Wait for last operation to be completed */
  314. 191:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** status = FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE);
  315. 117 .loc 1 191 14
  316. 118 0076 4CF25030 movw r0, #50000
  317. 119 007a FFF7FEFF bl FLASH_WaitForLastOperation
  318. 120 007e 0346 mov r3, r0
  319. 121 0080 FB75 strb r3, [r7, #23]
  320. 192:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  321. 193:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* If the program operation is completed, disable the PG Bit */
  322. 194:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->CR &= (~FLASH_CR_PG);
  323. 122 .loc 1 194 15
  324. 123 0082 084B ldr r3, .L9+4
  325. 124 0084 1B69 ldr r3, [r3, #16]
  326. 125 0086 074A ldr r2, .L9+4
  327. 126 0088 23F00103 bic r3, r3, #1
  328. 127 008c 1361 str r3, [r2, #16]
  329. 128 .L4:
  330. 195:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  331. 196:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  332. 197:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Process Unlocked */
  333. 198:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_UNLOCK(&pFlash);
  334. 129 .loc 1 198 3
  335. 130 008e 044B ldr r3, .L9
  336. 131 0090 0022 movs r2, #0
  337. 132 0092 1A76 strb r2, [r3, #24]
  338. 199:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  339. 200:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return status;
  340. 133 .loc 1 200 10
  341. 134 0094 FB7D ldrb r3, [r7, #23] @ zero_extendqisi2
  342. 135 .L3:
  343. 201:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  344. 136 .loc 1 201 1
  345. 137 0096 1846 mov r0, r3
  346. 138 0098 1837 adds r7, r7, #24
  347. 139 .LCFI3:
  348. 140 .cfi_def_cfa_offset 8
  349. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 7
  350. 141 009a BD46 mov sp, r7
  351. 142 .LCFI4:
  352. 143 .cfi_def_cfa_register 13
  353. 144 @ sp needed
  354. 145 009c 80BD pop {r7, pc}
  355. 146 .L10:
  356. 147 009e 00BF .align 2
  357. 148 .L9:
  358. 149 00a0 00000000 .word pFlash
  359. 150 00a4 003C0240 .word 1073888256
  360. 151 .cfi_endproc
  361. 152 .LFE235:
  362. 154 .section .text.HAL_FLASH_Program_IT,"ax",%progbits
  363. 155 .align 1
  364. 156 .global HAL_FLASH_Program_IT
  365. 157 .syntax unified
  366. 158 .thumb
  367. 159 .thumb_func
  368. 161 HAL_FLASH_Program_IT:
  369. 162 .LFB236:
  370. 202:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  371. 203:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  372. 204:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Program byte, halfword, word or double word at a specified address with interrupt ena
  373. 205:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param TypeProgram Indicate the way to program at a specified address.
  374. 206:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * This parameter can be a value of @ref FLASH_Type_Program
  375. 207:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Address specifies the address to be programmed.
  376. 208:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Data specifies the data to be programmed
  377. 209:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  378. 210:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval HAL Status
  379. 211:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  380. 212:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_Program_IT(uint32_t TypeProgram, uint32_t Address, uint64_t Data)
  381. 213:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  382. 163 .loc 1 213 1
  383. 164 .cfi_startproc
  384. 165 @ args = 0, pretend = 0, frame = 24
  385. 166 @ frame_needed = 1, uses_anonymous_args = 0
  386. 167 0000 80B5 push {r7, lr}
  387. 168 .LCFI5:
  388. 169 .cfi_def_cfa_offset 8
  389. 170 .cfi_offset 7, -8
  390. 171 .cfi_offset 14, -4
  391. 172 0002 86B0 sub sp, sp, #24
  392. 173 .LCFI6:
  393. 174 .cfi_def_cfa_offset 32
  394. 175 0004 00AF add r7, sp, #0
  395. 176 .LCFI7:
  396. 177 .cfi_def_cfa_register 7
  397. 178 0006 F860 str r0, [r7, #12]
  398. 179 0008 B960 str r1, [r7, #8]
  399. 180 000a C7E90023 strd r2, [r7]
  400. 214:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK;
  401. 181 .loc 1 214 21
  402. 182 000e 0023 movs r3, #0
  403. 183 0010 FB75 strb r3, [r7, #23]
  404. 215:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  405. 216:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Process Locked */
  406. 217:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_LOCK(&pFlash);
  407. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 8
  408. 184 .loc 1 217 3
  409. 185 0012 204B ldr r3, .L18
  410. 186 0014 1B7E ldrb r3, [r3, #24] @ zero_extendqisi2
  411. 187 0016 012B cmp r3, #1
  412. 188 0018 01D1 bne .L12
  413. 189 .loc 1 217 3 is_stmt 0 discriminator 1
  414. 190 001a 0223 movs r3, #2
  415. 191 001c 35E0 b .L13
  416. 192 .L12:
  417. 193 .loc 1 217 3 discriminator 2
  418. 194 001e 1D4B ldr r3, .L18
  419. 195 0020 0122 movs r2, #1
  420. 196 0022 1A76 strb r2, [r3, #24]
  421. 218:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  422. 219:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Check the parameters */
  423. 220:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** assert_param(IS_FLASH_TYPEPROGRAM(TypeProgram));
  424. 221:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  425. 222:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Enable End of FLASH Operation interrupt */
  426. 223:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_ENABLE_IT(FLASH_IT_EOP);
  427. 197 .loc 1 223 3 is_stmt 1 discriminator 2
  428. 198 0024 1C4B ldr r3, .L18+4
  429. 199 0026 1B69 ldr r3, [r3, #16]
  430. 200 0028 1B4A ldr r2, .L18+4
  431. 201 002a 43F08073 orr r3, r3, #16777216
  432. 202 002e 1361 str r3, [r2, #16]
  433. 224:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  434. 225:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Enable Error source interrupt */
  435. 226:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_ENABLE_IT(FLASH_IT_ERR);
  436. 203 .loc 1 226 3 discriminator 2
  437. 204 0030 194B ldr r3, .L18+4
  438. 205 0032 1B69 ldr r3, [r3, #16]
  439. 206 0034 184A ldr r2, .L18+4
  440. 207 0036 43F00073 orr r3, r3, #33554432
  441. 208 003a 1361 str r3, [r2, #16]
  442. 227:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  443. 228:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_PROGRAM;
  444. 209 .loc 1 228 27 discriminator 2
  445. 210 003c 154B ldr r3, .L18
  446. 211 003e 0322 movs r2, #3
  447. 212 0040 1A70 strb r2, [r3]
  448. 229:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.Address = Address;
  449. 213 .loc 1 229 18 discriminator 2
  450. 214 0042 144A ldr r2, .L18
  451. 215 0044 BB68 ldr r3, [r7, #8]
  452. 216 0046 5361 str r3, [r2, #20]
  453. 230:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  454. 231:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(TypeProgram == FLASH_TYPEPROGRAM_BYTE)
  455. 217 .loc 1 231 5 discriminator 2
  456. 218 0048 FB68 ldr r3, [r7, #12]
  457. 219 004a 002B cmp r3, #0
  458. 220 004c 05D1 bne .L14
  459. 232:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  460. 233:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Program byte (8-bit) at a specified address.*/
  461. 234:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_Program_Byte(Address, (uint8_t) Data);
  462. 221 .loc 1 234 7
  463. 222 004e 3B78 ldrb r3, [r7] @ zero_extendqisi2
  464. 223 0050 1946 mov r1, r3
  465. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 9
  466. 224 0052 B868 ldr r0, [r7, #8]
  467. 225 0054 FFF7FEFF bl FLASH_Program_Byte
  468. 226 0058 16E0 b .L15
  469. 227 .L14:
  470. 235:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  471. 236:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else if(TypeProgram == FLASH_TYPEPROGRAM_HALFWORD)
  472. 228 .loc 1 236 10
  473. 229 005a FB68 ldr r3, [r7, #12]
  474. 230 005c 012B cmp r3, #1
  475. 231 005e 05D1 bne .L16
  476. 237:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  477. 238:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Program halfword (16-bit) at a specified address.*/
  478. 239:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_Program_HalfWord(Address, (uint16_t) Data);
  479. 232 .loc 1 239 5
  480. 233 0060 3B88 ldrh r3, [r7]
  481. 234 0062 1946 mov r1, r3
  482. 235 0064 B868 ldr r0, [r7, #8]
  483. 236 0066 FFF7FEFF bl FLASH_Program_HalfWord
  484. 237 006a 0DE0 b .L15
  485. 238 .L16:
  486. 240:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  487. 241:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else if(TypeProgram == FLASH_TYPEPROGRAM_WORD)
  488. 239 .loc 1 241 10
  489. 240 006c FB68 ldr r3, [r7, #12]
  490. 241 006e 022B cmp r3, #2
  491. 242 0070 05D1 bne .L17
  492. 242:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  493. 243:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Program word (32-bit) at a specified address.*/
  494. 244:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_Program_Word(Address, (uint32_t) Data);
  495. 243 .loc 1 244 5
  496. 244 0072 3B68 ldr r3, [r7]
  497. 245 0074 1946 mov r1, r3
  498. 246 0076 B868 ldr r0, [r7, #8]
  499. 247 0078 FFF7FEFF bl FLASH_Program_Word
  500. 248 007c 04E0 b .L15
  501. 249 .L17:
  502. 245:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  503. 246:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else
  504. 247:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  505. 248:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Program double word (64-bit) at a specified address.*/
  506. 249:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_Program_DoubleWord(Address, Data);
  507. 250 .loc 1 249 5
  508. 251 007e D7E90023 ldrd r2, [r7]
  509. 252 0082 B868 ldr r0, [r7, #8]
  510. 253 0084 FFF7FEFF bl FLASH_Program_DoubleWord
  511. 254 .L15:
  512. 250:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  513. 251:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  514. 252:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return status;
  515. 255 .loc 1 252 10
  516. 256 0088 FB7D ldrb r3, [r7, #23] @ zero_extendqisi2
  517. 257 .L13:
  518. 253:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  519. 258 .loc 1 253 1
  520. 259 008a 1846 mov r0, r3
  521. 260 008c 1837 adds r7, r7, #24
  522. 261 .LCFI8:
  523. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 10
  524. 262 .cfi_def_cfa_offset 8
  525. 263 008e BD46 mov sp, r7
  526. 264 .LCFI9:
  527. 265 .cfi_def_cfa_register 13
  528. 266 @ sp needed
  529. 267 0090 80BD pop {r7, pc}
  530. 268 .L19:
  531. 269 0092 00BF .align 2
  532. 270 .L18:
  533. 271 0094 00000000 .word pFlash
  534. 272 0098 003C0240 .word 1073888256
  535. 273 .cfi_endproc
  536. 274 .LFE236:
  537. 276 .section .text.HAL_FLASH_IRQHandler,"ax",%progbits
  538. 277 .align 1
  539. 278 .global HAL_FLASH_IRQHandler
  540. 279 .syntax unified
  541. 280 .thumb
  542. 281 .thumb_func
  543. 283 HAL_FLASH_IRQHandler:
  544. 284 .LFB237:
  545. 254:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  546. 255:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  547. 256:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief This function handles FLASH interrupt request.
  548. 257:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval None
  549. 258:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  550. 259:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** void HAL_FLASH_IRQHandler(void)
  551. 260:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  552. 285 .loc 1 260 1
  553. 286 .cfi_startproc
  554. 287 @ args = 0, pretend = 0, frame = 8
  555. 288 @ frame_needed = 1, uses_anonymous_args = 0
  556. 289 0000 80B5 push {r7, lr}
  557. 290 .LCFI10:
  558. 291 .cfi_def_cfa_offset 8
  559. 292 .cfi_offset 7, -8
  560. 293 .cfi_offset 14, -4
  561. 294 0002 82B0 sub sp, sp, #8
  562. 295 .LCFI11:
  563. 296 .cfi_def_cfa_offset 16
  564. 297 0004 00AF add r7, sp, #0
  565. 298 .LCFI12:
  566. 299 .cfi_def_cfa_register 7
  567. 261:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** uint32_t addresstmp = 0U;
  568. 300 .loc 1 261 12
  569. 301 0006 0023 movs r3, #0
  570. 302 0008 7B60 str r3, [r7, #4]
  571. 262:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  572. 263:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Check FLASH operation error flags */
  573. 264:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** #if defined(FLASH_SR_RDERR)
  574. 265:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG((FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | \
  575. 266:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR | FLASH_FLAG_RDERR)) != RESET)
  576. 267:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** #else
  577. 268:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG((FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | \
  578. 303 .loc 1 268 6
  579. 304 000a 4B4B ldr r3, .L32
  580. 305 000c DB68 ldr r3, [r3, #12]
  581. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 11
  582. 306 000e 03F0F203 and r3, r3, #242
  583. 307 .loc 1 268 5
  584. 308 0012 002B cmp r3, #0
  585. 309 0014 20D0 beq .L21
  586. 269:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR)) != RESET)
  587. 270:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** #endif /* FLASH_SR_RDERR */
  588. 271:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  589. 272:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(pFlash.ProcedureOnGoing == FLASH_PROC_SECTERASE)
  590. 310 .loc 1 272 14
  591. 311 0016 494B ldr r3, .L32+4
  592. 312 0018 1B78 ldrb r3, [r3]
  593. 313 001a DBB2 uxtb r3, r3
  594. 314 .loc 1 272 7
  595. 315 001c 012B cmp r3, #1
  596. 316 001e 07D1 bne .L22
  597. 273:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  598. 274:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*return the faulty sector*/
  599. 275:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** addresstmp = pFlash.Sector;
  600. 317 .loc 1 275 18
  601. 318 0020 464B ldr r3, .L32+4
  602. 319 0022 DB68 ldr r3, [r3, #12]
  603. 320 0024 7B60 str r3, [r7, #4]
  604. 276:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.Sector = 0xFFFFFFFFU;
  605. 321 .loc 1 276 21
  606. 322 0026 454B ldr r3, .L32+4
  607. 323 0028 4FF0FF32 mov r2, #-1
  608. 324 002c DA60 str r2, [r3, #12]
  609. 325 002e 0BE0 b .L23
  610. 326 .L22:
  611. 277:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  612. 278:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else if(pFlash.ProcedureOnGoing == FLASH_PROC_MASSERASE)
  613. 327 .loc 1 278 19
  614. 328 0030 424B ldr r3, .L32+4
  615. 329 0032 1B78 ldrb r3, [r3]
  616. 330 0034 DBB2 uxtb r3, r3
  617. 331 .loc 1 278 12
  618. 332 0036 022B cmp r3, #2
  619. 333 0038 03D1 bne .L24
  620. 279:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  621. 280:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*return the faulty bank*/
  622. 281:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** addresstmp = pFlash.Bank;
  623. 334 .loc 1 281 18
  624. 335 003a 404B ldr r3, .L32+4
  625. 336 003c 1B69 ldr r3, [r3, #16]
  626. 337 003e 7B60 str r3, [r7, #4]
  627. 338 0040 02E0 b .L23
  628. 339 .L24:
  629. 282:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  630. 283:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else
  631. 284:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  632. 285:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*return the faulty address*/
  633. 286:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** addresstmp = pFlash.Address;
  634. 340 .loc 1 286 18
  635. 341 0042 3E4B ldr r3, .L32+4
  636. 342 0044 5B69 ldr r3, [r3, #20]
  637. 343 0046 7B60 str r3, [r7, #4]
  638. 344 .L23:
  639. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 12
  640. 287:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  641. 288:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  642. 289:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Save the Error code*/
  643. 290:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_SetErrorCode();
  644. 345 .loc 1 290 5
  645. 346 0048 FFF7FEFF bl FLASH_SetErrorCode
  646. 291:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  647. 292:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* FLASH error interrupt user callback */
  648. 293:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_FLASH_OperationErrorCallback(addresstmp);
  649. 347 .loc 1 293 5
  650. 348 004c 7868 ldr r0, [r7, #4]
  651. 349 004e FFF7FEFF bl HAL_FLASH_OperationErrorCallback
  652. 294:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  653. 295:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Stop the procedure ongoing*/
  654. 296:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE;
  655. 350 .loc 1 296 29
  656. 351 0052 3A4B ldr r3, .L32+4
  657. 352 0054 0022 movs r2, #0
  658. 353 0056 1A70 strb r2, [r3]
  659. 354 .L21:
  660. 297:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  661. 298:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  662. 299:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Check FLASH End of Operation flag */
  663. 300:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP) != RESET)
  664. 355 .loc 1 300 6
  665. 356 0058 374B ldr r3, .L32
  666. 357 005a DB68 ldr r3, [r3, #12]
  667. 358 005c 03F00103 and r3, r3, #1
  668. 359 .loc 1 300 5
  669. 360 0060 002B cmp r3, #0
  670. 361 0062 4AD0 beq .L25
  671. 301:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  672. 302:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Clear FLASH End of Operation pending bit */
  673. 303:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP);
  674. 362 .loc 1 303 5
  675. 363 0064 344B ldr r3, .L32
  676. 364 0066 0122 movs r2, #1
  677. 365 0068 DA60 str r2, [r3, #12]
  678. 304:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  679. 305:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(pFlash.ProcedureOnGoing == FLASH_PROC_SECTERASE)
  680. 366 .loc 1 305 14
  681. 367 006a 344B ldr r3, .L32+4
  682. 368 006c 1B78 ldrb r3, [r3]
  683. 369 006e DBB2 uxtb r3, r3
  684. 370 .loc 1 305 7
  685. 371 0070 012B cmp r3, #1
  686. 372 0072 2DD1 bne .L26
  687. 306:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  688. 307:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Nb of sector to erased can be decreased*/
  689. 308:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.NbSectorsToErase--;
  690. 373 .loc 1 308 13
  691. 374 0074 314B ldr r3, .L32+4
  692. 375 0076 5B68 ldr r3, [r3, #4]
  693. 376 .loc 1 308 30
  694. 377 0078 013B subs r3, r3, #1
  695. 378 007a 304A ldr r2, .L32+4
  696. 379 007c 5360 str r3, [r2, #4]
  697. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 13
  698. 309:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  699. 310:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Check if there are still sectors to erase*/
  700. 311:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(pFlash.NbSectorsToErase != 0U)
  701. 380 .loc 1 311 16
  702. 381 007e 2F4B ldr r3, .L32+4
  703. 382 0080 5B68 ldr r3, [r3, #4]
  704. 383 .loc 1 311 9
  705. 384 0082 002B cmp r3, #0
  706. 385 0084 15D0 beq .L27
  707. 312:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  708. 313:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** addresstmp = pFlash.Sector;
  709. 386 .loc 1 313 20
  710. 387 0086 2D4B ldr r3, .L32+4
  711. 388 0088 DB68 ldr r3, [r3, #12]
  712. 389 008a 7B60 str r3, [r7, #4]
  713. 314:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Indicate user which sector has been erased*/
  714. 315:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(addresstmp);
  715. 390 .loc 1 315 9
  716. 391 008c 7868 ldr r0, [r7, #4]
  717. 392 008e FFF7FEFF bl HAL_FLASH_EndOfOperationCallback
  718. 316:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  719. 317:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Increment sector number*/
  720. 318:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.Sector++;
  721. 393 .loc 1 318 15
  722. 394 0092 2A4B ldr r3, .L32+4
  723. 395 0094 DB68 ldr r3, [r3, #12]
  724. 396 .loc 1 318 22
  725. 397 0096 0133 adds r3, r3, #1
  726. 398 0098 284A ldr r2, .L32+4
  727. 399 009a D360 str r3, [r2, #12]
  728. 319:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** addresstmp = pFlash.Sector;
  729. 400 .loc 1 319 20
  730. 401 009c 274B ldr r3, .L32+4
  731. 402 009e DB68 ldr r3, [r3, #12]
  732. 403 00a0 7B60 str r3, [r7, #4]
  733. 320:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_Erase_Sector(addresstmp, pFlash.VoltageForErase);
  734. 404 .loc 1 320 9
  735. 405 00a2 264B ldr r3, .L32+4
  736. 406 00a4 1B7A ldrb r3, [r3, #8]
  737. 407 00a6 DBB2 uxtb r3, r3
  738. 408 00a8 1946 mov r1, r3
  739. 409 00aa 7868 ldr r0, [r7, #4]
  740. 410 00ac FFF7FEFF bl FLASH_Erase_Sector
  741. 411 00b0 23E0 b .L25
  742. 412 .L27:
  743. 321:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  744. 322:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else
  745. 323:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  746. 324:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*No more sectors to Erase, user callback can be called.*/
  747. 325:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Reset Sector and stop Erase sectors procedure*/
  748. 326:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.Sector = addresstmp = 0xFFFFFFFFU;
  749. 413 .loc 1 326 36
  750. 414 00b2 4FF0FF33 mov r3, #-1
  751. 415 00b6 7B60 str r3, [r7, #4]
  752. 416 .loc 1 326 23
  753. 417 00b8 204A ldr r2, .L32+4
  754. 418 00ba 7B68 ldr r3, [r7, #4]
  755. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 14
  756. 419 00bc D360 str r3, [r2, #12]
  757. 327:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE;
  758. 420 .loc 1 327 33
  759. 421 00be 1F4B ldr r3, .L32+4
  760. 422 00c0 0022 movs r2, #0
  761. 423 00c2 1A70 strb r2, [r3]
  762. 328:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  763. 329:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Flush the caches to be sure of the data consistency */
  764. 330:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_FlushCaches() ;
  765. 424 .loc 1 330 9
  766. 425 00c4 FFF7FEFF bl FLASH_FlushCaches
  767. 331:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  768. 332:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* FLASH EOP interrupt user callback */
  769. 333:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(addresstmp);
  770. 426 .loc 1 333 9
  771. 427 00c8 7868 ldr r0, [r7, #4]
  772. 428 00ca FFF7FEFF bl HAL_FLASH_EndOfOperationCallback
  773. 429 00ce 14E0 b .L25
  774. 430 .L26:
  775. 334:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  776. 335:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  777. 336:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else
  778. 337:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  779. 338:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(pFlash.ProcedureOnGoing == FLASH_PROC_MASSERASE)
  780. 431 .loc 1 338 16
  781. 432 00d0 1A4B ldr r3, .L32+4
  782. 433 00d2 1B78 ldrb r3, [r3]
  783. 434 00d4 DBB2 uxtb r3, r3
  784. 435 .loc 1 338 9
  785. 436 00d6 022B cmp r3, #2
  786. 437 00d8 07D1 bne .L28
  787. 339:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  788. 340:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* MassErase ended. Return the selected bank */
  789. 341:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Flush the caches to be sure of the data consistency */
  790. 342:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_FlushCaches() ;
  791. 438 .loc 1 342 9
  792. 439 00da FFF7FEFF bl FLASH_FlushCaches
  793. 343:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  794. 344:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* FLASH EOP interrupt user callback */
  795. 345:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Bank);
  796. 440 .loc 1 345 9
  797. 441 00de 174B ldr r3, .L32+4
  798. 442 00e0 1B69 ldr r3, [r3, #16]
  799. 443 00e2 1846 mov r0, r3
  800. 444 00e4 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback
  801. 445 00e8 04E0 b .L29
  802. 446 .L28:
  803. 346:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  804. 347:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else
  805. 348:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  806. 349:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Program ended. Return the selected address*/
  807. 350:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* FLASH EOP interrupt user callback */
  808. 351:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_FLASH_EndOfOperationCallback(pFlash.Address);
  809. 447 .loc 1 351 9
  810. 448 00ea 144B ldr r3, .L32+4
  811. 449 00ec 5B69 ldr r3, [r3, #20]
  812. 450 00ee 1846 mov r0, r3
  813. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 15
  814. 451 00f0 FFF7FEFF bl HAL_FLASH_EndOfOperationCallback
  815. 452 .L29:
  816. 352:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  817. 353:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.ProcedureOnGoing = FLASH_PROC_NONE;
  818. 453 .loc 1 353 31
  819. 454 00f4 114B ldr r3, .L32+4
  820. 455 00f6 0022 movs r2, #0
  821. 456 00f8 1A70 strb r2, [r3]
  822. 457 .L25:
  823. 354:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  824. 355:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  825. 356:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  826. 357:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(pFlash.ProcedureOnGoing == FLASH_PROC_NONE)
  827. 458 .loc 1 357 12
  828. 459 00fa 104B ldr r3, .L32+4
  829. 460 00fc 1B78 ldrb r3, [r3]
  830. 461 00fe DBB2 uxtb r3, r3
  831. 462 .loc 1 357 5
  832. 463 0100 002B cmp r3, #0
  833. 464 0102 14D1 bne .L31
  834. 358:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  835. 359:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Operation is completed, disable the PG, SER, SNB and MER Bits */
  836. 360: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));
  837. 465 .loc 1 360 5
  838. 466 0104 0C4B ldr r3, .L32
  839. 467 0106 1B69 ldr r3, [r3, #16]
  840. 468 0108 0B4A ldr r2, .L32
  841. 469 010a 23F0FF03 bic r3, r3, #255
  842. 470 010e 1361 str r3, [r2, #16]
  843. 361:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  844. 362:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Disable End of FLASH Operation interrupt */
  845. 363:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_DISABLE_IT(FLASH_IT_EOP);
  846. 471 .loc 1 363 5
  847. 472 0110 094B ldr r3, .L32
  848. 473 0112 1B69 ldr r3, [r3, #16]
  849. 474 0114 084A ldr r2, .L32
  850. 475 0116 23F08073 bic r3, r3, #16777216
  851. 476 011a 1361 str r3, [r2, #16]
  852. 364:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  853. 365:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Disable Error source interrupt */
  854. 366:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_DISABLE_IT(FLASH_IT_ERR);
  855. 477 .loc 1 366 5
  856. 478 011c 064B ldr r3, .L32
  857. 479 011e 1B69 ldr r3, [r3, #16]
  858. 480 0120 054A ldr r2, .L32
  859. 481 0122 23F00073 bic r3, r3, #33554432
  860. 482 0126 1361 str r3, [r2, #16]
  861. 367:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  862. 368:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Process Unlocked */
  863. 369:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_UNLOCK(&pFlash);
  864. 483 .loc 1 369 5
  865. 484 0128 044B ldr r3, .L32+4
  866. 485 012a 0022 movs r2, #0
  867. 486 012c 1A76 strb r2, [r3, #24]
  868. 487 .L31:
  869. 370:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  870. 371:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  871. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 16
  872. 488 .loc 1 371 1
  873. 489 012e 00BF nop
  874. 490 0130 0837 adds r7, r7, #8
  875. 491 .LCFI13:
  876. 492 .cfi_def_cfa_offset 8
  877. 493 0132 BD46 mov sp, r7
  878. 494 .LCFI14:
  879. 495 .cfi_def_cfa_register 13
  880. 496 @ sp needed
  881. 497 0134 80BD pop {r7, pc}
  882. 498 .L33:
  883. 499 0136 00BF .align 2
  884. 500 .L32:
  885. 501 0138 003C0240 .word 1073888256
  886. 502 013c 00000000 .word pFlash
  887. 503 .cfi_endproc
  888. 504 .LFE237:
  889. 506 .section .text.HAL_FLASH_EndOfOperationCallback,"ax",%progbits
  890. 507 .align 1
  891. 508 .weak HAL_FLASH_EndOfOperationCallback
  892. 509 .syntax unified
  893. 510 .thumb
  894. 511 .thumb_func
  895. 513 HAL_FLASH_EndOfOperationCallback:
  896. 514 .LFB238:
  897. 372:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  898. 373:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  899. 374:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief FLASH end of operation interrupt callback
  900. 375:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param ReturnValue The value saved in this parameter depends on the ongoing procedure
  901. 376:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * Mass Erase: Bank number which has been requested to erase
  902. 377:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * Sectors Erase: Sector which has been erased
  903. 378:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * (if 0xFFFFFFFFU, it means that all the selected sectors have been erased)
  904. 379:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * Program: Address which was selected for data program
  905. 380:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval None
  906. 381:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  907. 382:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __weak void HAL_FLASH_EndOfOperationCallback(uint32_t ReturnValue)
  908. 383:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  909. 515 .loc 1 383 1
  910. 516 .cfi_startproc
  911. 517 @ args = 0, pretend = 0, frame = 8
  912. 518 @ frame_needed = 1, uses_anonymous_args = 0
  913. 519 @ link register save eliminated.
  914. 520 0000 80B4 push {r7}
  915. 521 .LCFI15:
  916. 522 .cfi_def_cfa_offset 4
  917. 523 .cfi_offset 7, -4
  918. 524 0002 83B0 sub sp, sp, #12
  919. 525 .LCFI16:
  920. 526 .cfi_def_cfa_offset 16
  921. 527 0004 00AF add r7, sp, #0
  922. 528 .LCFI17:
  923. 529 .cfi_def_cfa_register 7
  924. 530 0006 7860 str r0, [r7, #4]
  925. 384:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Prevent unused argument(s) compilation warning */
  926. 385:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** UNUSED(ReturnValue);
  927. 386:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* NOTE : This function Should not be modified, when the callback is needed,
  928. 387:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** the HAL_FLASH_EndOfOperationCallback could be implemented in the user file
  929. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 17
  930. 388:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  931. 389:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  932. 531 .loc 1 389 1
  933. 532 0008 00BF nop
  934. 533 000a 0C37 adds r7, r7, #12
  935. 534 .LCFI18:
  936. 535 .cfi_def_cfa_offset 4
  937. 536 000c BD46 mov sp, r7
  938. 537 .LCFI19:
  939. 538 .cfi_def_cfa_register 13
  940. 539 @ sp needed
  941. 540 000e 5DF8047B ldr r7, [sp], #4
  942. 541 .LCFI20:
  943. 542 .cfi_restore 7
  944. 543 .cfi_def_cfa_offset 0
  945. 544 0012 7047 bx lr
  946. 545 .cfi_endproc
  947. 546 .LFE238:
  948. 548 .section .text.HAL_FLASH_OperationErrorCallback,"ax",%progbits
  949. 549 .align 1
  950. 550 .weak HAL_FLASH_OperationErrorCallback
  951. 551 .syntax unified
  952. 552 .thumb
  953. 553 .thumb_func
  954. 555 HAL_FLASH_OperationErrorCallback:
  955. 556 .LFB239:
  956. 390:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  957. 391:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  958. 392:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief FLASH operation error interrupt callback
  959. 393:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param ReturnValue The value saved in this parameter depends on the ongoing procedure
  960. 394:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * Mass Erase: Bank number which has been requested to erase
  961. 395:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * Sectors Erase: Sector number which returned an error
  962. 396:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * Program: Address which was selected for data program
  963. 397:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval None
  964. 398:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  965. 399:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __weak void HAL_FLASH_OperationErrorCallback(uint32_t ReturnValue)
  966. 400:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  967. 557 .loc 1 400 1
  968. 558 .cfi_startproc
  969. 559 @ args = 0, pretend = 0, frame = 8
  970. 560 @ frame_needed = 1, uses_anonymous_args = 0
  971. 561 @ link register save eliminated.
  972. 562 0000 80B4 push {r7}
  973. 563 .LCFI21:
  974. 564 .cfi_def_cfa_offset 4
  975. 565 .cfi_offset 7, -4
  976. 566 0002 83B0 sub sp, sp, #12
  977. 567 .LCFI22:
  978. 568 .cfi_def_cfa_offset 16
  979. 569 0004 00AF add r7, sp, #0
  980. 570 .LCFI23:
  981. 571 .cfi_def_cfa_register 7
  982. 572 0006 7860 str r0, [r7, #4]
  983. 401:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Prevent unused argument(s) compilation warning */
  984. 402:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** UNUSED(ReturnValue);
  985. 403:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* NOTE : This function Should not be modified, when the callback is needed,
  986. 404:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** the HAL_FLASH_OperationErrorCallback could be implemented in the user file
  987. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 18
  988. 405:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  989. 406:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  990. 573 .loc 1 406 1
  991. 574 0008 00BF nop
  992. 575 000a 0C37 adds r7, r7, #12
  993. 576 .LCFI24:
  994. 577 .cfi_def_cfa_offset 4
  995. 578 000c BD46 mov sp, r7
  996. 579 .LCFI25:
  997. 580 .cfi_def_cfa_register 13
  998. 581 @ sp needed
  999. 582 000e 5DF8047B ldr r7, [sp], #4
  1000. 583 .LCFI26:
  1001. 584 .cfi_restore 7
  1002. 585 .cfi_def_cfa_offset 0
  1003. 586 0012 7047 bx lr
  1004. 587 .cfi_endproc
  1005. 588 .LFE239:
  1006. 590 .section .text.HAL_FLASH_Unlock,"ax",%progbits
  1007. 591 .align 1
  1008. 592 .global HAL_FLASH_Unlock
  1009. 593 .syntax unified
  1010. 594 .thumb
  1011. 595 .thumb_func
  1012. 597 HAL_FLASH_Unlock:
  1013. 598 .LFB240:
  1014. 407:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1015. 408:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  1016. 409:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @}
  1017. 410:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  1018. 411:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1019. 412:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions_Group2 Peripheral Control functions
  1020. 413:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief management functions
  1021. 414:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  1022. 415:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** @verbatim
  1023. 416:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ===============================================================================
  1024. 417:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ##### Peripheral Control functions #####
  1025. 418:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ===============================================================================
  1026. 419:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** [..]
  1027. 420:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** This subsection provides a set of functions allowing to control the FLASH
  1028. 421:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** memory operations.
  1029. 422:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1030. 423:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** @endverbatim
  1031. 424:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @{
  1032. 425:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  1033. 426:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1034. 427:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  1035. 428:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Unlock the FLASH control register access
  1036. 429:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval HAL Status
  1037. 430:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  1038. 431:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_Unlock(void)
  1039. 432:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1040. 599 .loc 1 432 1
  1041. 600 .cfi_startproc
  1042. 601 @ args = 0, pretend = 0, frame = 8
  1043. 602 @ frame_needed = 1, uses_anonymous_args = 0
  1044. 603 @ link register save eliminated.
  1045. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 19
  1046. 604 0000 80B4 push {r7}
  1047. 605 .LCFI27:
  1048. 606 .cfi_def_cfa_offset 4
  1049. 607 .cfi_offset 7, -4
  1050. 608 0002 83B0 sub sp, sp, #12
  1051. 609 .LCFI28:
  1052. 610 .cfi_def_cfa_offset 16
  1053. 611 0004 00AF add r7, sp, #0
  1054. 612 .LCFI29:
  1055. 613 .cfi_def_cfa_register 7
  1056. 433:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef status = HAL_OK;
  1057. 614 .loc 1 433 21
  1058. 615 0006 0023 movs r3, #0
  1059. 616 0008 FB71 strb r3, [r7, #7]
  1060. 434:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1061. 435:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET)
  1062. 617 .loc 1 435 6
  1063. 618 000a 0B4B ldr r3, .L39
  1064. 619 000c 1B69 ldr r3, [r3, #16]
  1065. 620 .loc 1 435 5
  1066. 621 000e 002B cmp r3, #0
  1067. 622 0010 0BDA bge .L37
  1068. 436:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1069. 437:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Authorize the FLASH Registers access */
  1070. 438:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** WRITE_REG(FLASH->KEYR, FLASH_KEY1);
  1071. 623 .loc 1 438 5
  1072. 624 0012 094B ldr r3, .L39
  1073. 625 0014 094A ldr r2, .L39+4
  1074. 626 0016 5A60 str r2, [r3, #4]
  1075. 439:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** WRITE_REG(FLASH->KEYR, FLASH_KEY2);
  1076. 627 .loc 1 439 5
  1077. 628 0018 074B ldr r3, .L39
  1078. 629 001a 094A ldr r2, .L39+8
  1079. 630 001c 5A60 str r2, [r3, #4]
  1080. 440:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1081. 441:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Verify Flash is unlocked */
  1082. 442:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(READ_BIT(FLASH->CR, FLASH_CR_LOCK) != RESET)
  1083. 631 .loc 1 442 8
  1084. 632 001e 064B ldr r3, .L39
  1085. 633 0020 1B69 ldr r3, [r3, #16]
  1086. 634 .loc 1 442 7
  1087. 635 0022 002B cmp r3, #0
  1088. 636 0024 01DA bge .L37
  1089. 443:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1090. 444:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** status = HAL_ERROR;
  1091. 637 .loc 1 444 14
  1092. 638 0026 0123 movs r3, #1
  1093. 639 0028 FB71 strb r3, [r7, #7]
  1094. 640 .L37:
  1095. 445:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1096. 446:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1097. 447:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1098. 448:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return status;
  1099. 641 .loc 1 448 10
  1100. 642 002a FB79 ldrb r3, [r7, #7] @ zero_extendqisi2
  1101. 449:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1102. 643 .loc 1 449 1
  1103. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 20
  1104. 644 002c 1846 mov r0, r3
  1105. 645 002e 0C37 adds r7, r7, #12
  1106. 646 .LCFI30:
  1107. 647 .cfi_def_cfa_offset 4
  1108. 648 0030 BD46 mov sp, r7
  1109. 649 .LCFI31:
  1110. 650 .cfi_def_cfa_register 13
  1111. 651 @ sp needed
  1112. 652 0032 5DF8047B ldr r7, [sp], #4
  1113. 653 .LCFI32:
  1114. 654 .cfi_restore 7
  1115. 655 .cfi_def_cfa_offset 0
  1116. 656 0036 7047 bx lr
  1117. 657 .L40:
  1118. 658 .align 2
  1119. 659 .L39:
  1120. 660 0038 003C0240 .word 1073888256
  1121. 661 003c 23016745 .word 1164378403
  1122. 662 0040 AB89EFCD .word -839939669
  1123. 663 .cfi_endproc
  1124. 664 .LFE240:
  1125. 666 .section .text.HAL_FLASH_Lock,"ax",%progbits
  1126. 667 .align 1
  1127. 668 .global HAL_FLASH_Lock
  1128. 669 .syntax unified
  1129. 670 .thumb
  1130. 671 .thumb_func
  1131. 673 HAL_FLASH_Lock:
  1132. 674 .LFB241:
  1133. 450:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1134. 451:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  1135. 452:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Locks the FLASH control register access
  1136. 453:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval HAL Status
  1137. 454:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  1138. 455:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_Lock(void)
  1139. 456:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1140. 675 .loc 1 456 1
  1141. 676 .cfi_startproc
  1142. 677 @ args = 0, pretend = 0, frame = 0
  1143. 678 @ frame_needed = 1, uses_anonymous_args = 0
  1144. 679 @ link register save eliminated.
  1145. 680 0000 80B4 push {r7}
  1146. 681 .LCFI33:
  1147. 682 .cfi_def_cfa_offset 4
  1148. 683 .cfi_offset 7, -4
  1149. 684 0002 00AF add r7, sp, #0
  1150. 685 .LCFI34:
  1151. 686 .cfi_def_cfa_register 7
  1152. 457:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Set the LOCK Bit to lock the FLASH Registers access */
  1153. 458:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->CR |= FLASH_CR_LOCK;
  1154. 687 .loc 1 458 13
  1155. 688 0004 054B ldr r3, .L43
  1156. 689 0006 1B69 ldr r3, [r3, #16]
  1157. 690 0008 044A ldr r2, .L43
  1158. 691 000a 43F00043 orr r3, r3, #-2147483648
  1159. 692 000e 1361 str r3, [r2, #16]
  1160. 459:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1161. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 21
  1162. 460:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return HAL_OK;
  1163. 693 .loc 1 460 10
  1164. 694 0010 0023 movs r3, #0
  1165. 461:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1166. 695 .loc 1 461 1
  1167. 696 0012 1846 mov r0, r3
  1168. 697 0014 BD46 mov sp, r7
  1169. 698 .LCFI35:
  1170. 699 .cfi_def_cfa_register 13
  1171. 700 @ sp needed
  1172. 701 0016 5DF8047B ldr r7, [sp], #4
  1173. 702 .LCFI36:
  1174. 703 .cfi_restore 7
  1175. 704 .cfi_def_cfa_offset 0
  1176. 705 001a 7047 bx lr
  1177. 706 .L44:
  1178. 707 .align 2
  1179. 708 .L43:
  1180. 709 001c 003C0240 .word 1073888256
  1181. 710 .cfi_endproc
  1182. 711 .LFE241:
  1183. 713 .section .text.HAL_FLASH_OB_Unlock,"ax",%progbits
  1184. 714 .align 1
  1185. 715 .global HAL_FLASH_OB_Unlock
  1186. 716 .syntax unified
  1187. 717 .thumb
  1188. 718 .thumb_func
  1189. 720 HAL_FLASH_OB_Unlock:
  1190. 721 .LFB242:
  1191. 462:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1192. 463:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  1193. 464:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Unlock the FLASH Option Control Registers access.
  1194. 465:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval HAL Status
  1195. 466:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  1196. 467:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_OB_Unlock(void)
  1197. 468:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1198. 722 .loc 1 468 1
  1199. 723 .cfi_startproc
  1200. 724 @ args = 0, pretend = 0, frame = 0
  1201. 725 @ frame_needed = 1, uses_anonymous_args = 0
  1202. 726 @ link register save eliminated.
  1203. 727 0000 80B4 push {r7}
  1204. 728 .LCFI37:
  1205. 729 .cfi_def_cfa_offset 4
  1206. 730 .cfi_offset 7, -4
  1207. 731 0002 00AF add r7, sp, #0
  1208. 732 .LCFI38:
  1209. 733 .cfi_def_cfa_register 7
  1210. 469:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if((FLASH->OPTCR & FLASH_OPTCR_OPTLOCK) != RESET)
  1211. 734 .loc 1 469 12
  1212. 735 0004 094B ldr r3, .L49
  1213. 736 0006 5B69 ldr r3, [r3, #20]
  1214. 737 .loc 1 469 20
  1215. 738 0008 03F00103 and r3, r3, #1
  1216. 739 .loc 1 469 5
  1217. 740 000c 002B cmp r3, #0
  1218. 741 000e 07D0 beq .L46
  1219. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 22
  1220. 470:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1221. 471:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Authorizes the Option Byte register programming */
  1222. 472:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->OPTKEYR = FLASH_OPT_KEY1;
  1223. 742 .loc 1 472 10
  1224. 743 0010 064B ldr r3, .L49
  1225. 744 .loc 1 472 20
  1226. 745 0012 074A ldr r2, .L49+4
  1227. 746 0014 9A60 str r2, [r3, #8]
  1228. 473:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->OPTKEYR = FLASH_OPT_KEY2;
  1229. 747 .loc 1 473 10
  1230. 748 0016 054B ldr r3, .L49
  1231. 749 .loc 1 473 20
  1232. 750 0018 064A ldr r2, .L49+8
  1233. 751 001a 9A60 str r2, [r3, #8]
  1234. 474:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1235. 475:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** else
  1236. 476:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1237. 477:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return HAL_ERROR;
  1238. 478:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1239. 479:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1240. 480:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return HAL_OK;
  1241. 752 .loc 1 480 10
  1242. 753 001c 0023 movs r3, #0
  1243. 754 001e 00E0 b .L48
  1244. 755 .L46:
  1245. 477:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1246. 756 .loc 1 477 12
  1247. 757 0020 0123 movs r3, #1
  1248. 758 .L48:
  1249. 481:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1250. 759 .loc 1 481 1
  1251. 760 0022 1846 mov r0, r3
  1252. 761 0024 BD46 mov sp, r7
  1253. 762 .LCFI39:
  1254. 763 .cfi_def_cfa_register 13
  1255. 764 @ sp needed
  1256. 765 0026 5DF8047B ldr r7, [sp], #4
  1257. 766 .LCFI40:
  1258. 767 .cfi_restore 7
  1259. 768 .cfi_def_cfa_offset 0
  1260. 769 002a 7047 bx lr
  1261. 770 .L50:
  1262. 771 .align 2
  1263. 772 .L49:
  1264. 773 002c 003C0240 .word 1073888256
  1265. 774 0030 3B2A1908 .word 135866939
  1266. 775 0034 7F6E5D4C .word 1281191551
  1267. 776 .cfi_endproc
  1268. 777 .LFE242:
  1269. 779 .section .text.HAL_FLASH_OB_Lock,"ax",%progbits
  1270. 780 .align 1
  1271. 781 .global HAL_FLASH_OB_Lock
  1272. 782 .syntax unified
  1273. 783 .thumb
  1274. 784 .thumb_func
  1275. 786 HAL_FLASH_OB_Lock:
  1276. 787 .LFB243:
  1277. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 23
  1278. 482:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1279. 483:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  1280. 484:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Lock the FLASH Option Control Registers access.
  1281. 485:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval HAL Status
  1282. 486:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  1283. 487:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_OB_Lock(void)
  1284. 488:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1285. 788 .loc 1 488 1
  1286. 789 .cfi_startproc
  1287. 790 @ args = 0, pretend = 0, frame = 0
  1288. 791 @ frame_needed = 1, uses_anonymous_args = 0
  1289. 792 @ link register save eliminated.
  1290. 793 0000 80B4 push {r7}
  1291. 794 .LCFI41:
  1292. 795 .cfi_def_cfa_offset 4
  1293. 796 .cfi_offset 7, -4
  1294. 797 0002 00AF add r7, sp, #0
  1295. 798 .LCFI42:
  1296. 799 .cfi_def_cfa_register 7
  1297. 489:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Set the OPTLOCK Bit to lock the FLASH Option Byte Registers access */
  1298. 490:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->OPTCR |= FLASH_OPTCR_OPTLOCK;
  1299. 800 .loc 1 490 16
  1300. 801 0004 054B ldr r3, .L53
  1301. 802 0006 5B69 ldr r3, [r3, #20]
  1302. 803 0008 044A ldr r2, .L53
  1303. 804 000a 43F00103 orr r3, r3, #1
  1304. 805 000e 5361 str r3, [r2, #20]
  1305. 491:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1306. 492:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return HAL_OK;
  1307. 806 .loc 1 492 10
  1308. 807 0010 0023 movs r3, #0
  1309. 493:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1310. 808 .loc 1 493 1
  1311. 809 0012 1846 mov r0, r3
  1312. 810 0014 BD46 mov sp, r7
  1313. 811 .LCFI43:
  1314. 812 .cfi_def_cfa_register 13
  1315. 813 @ sp needed
  1316. 814 0016 5DF8047B ldr r7, [sp], #4
  1317. 815 .LCFI44:
  1318. 816 .cfi_restore 7
  1319. 817 .cfi_def_cfa_offset 0
  1320. 818 001a 7047 bx lr
  1321. 819 .L54:
  1322. 820 .align 2
  1323. 821 .L53:
  1324. 822 001c 003C0240 .word 1073888256
  1325. 823 .cfi_endproc
  1326. 824 .LFE243:
  1327. 826 .section .text.HAL_FLASH_OB_Launch,"ax",%progbits
  1328. 827 .align 1
  1329. 828 .global HAL_FLASH_OB_Launch
  1330. 829 .syntax unified
  1331. 830 .thumb
  1332. 831 .thumb_func
  1333. 833 HAL_FLASH_OB_Launch:
  1334. 834 .LFB244:
  1335. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 24
  1336. 494:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1337. 495:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  1338. 496:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Launch the option byte loading.
  1339. 497:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval HAL Status
  1340. 498:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  1341. 499:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef HAL_FLASH_OB_Launch(void)
  1342. 500:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1343. 835 .loc 1 500 1
  1344. 836 .cfi_startproc
  1345. 837 @ args = 0, pretend = 0, frame = 0
  1346. 838 @ frame_needed = 1, uses_anonymous_args = 0
  1347. 839 0000 80B5 push {r7, lr}
  1348. 840 .LCFI45:
  1349. 841 .cfi_def_cfa_offset 8
  1350. 842 .cfi_offset 7, -8
  1351. 843 .cfi_offset 14, -4
  1352. 844 0002 00AF add r7, sp, #0
  1353. 845 .LCFI46:
  1354. 846 .cfi_def_cfa_register 7
  1355. 501:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Set the OPTSTRT bit in OPTCR register */
  1356. 502:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *(__IO uint8_t *)OPTCR_BYTE0_ADDRESS |= FLASH_OPTCR_OPTSTRT;
  1357. 847 .loc 1 502 40
  1358. 848 0004 074B ldr r3, .L57
  1359. 849 0006 1B78 ldrb r3, [r3]
  1360. 850 0008 DBB2 uxtb r3, r3
  1361. 851 000a 064A ldr r2, .L57
  1362. 852 000c 43F00203 orr r3, r3, #2
  1363. 853 0010 DBB2 uxtb r3, r3
  1364. 854 0012 1370 strb r3, [r2]
  1365. 503:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1366. 504:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Wait for last operation to be completed */
  1367. 505:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return(FLASH_WaitForLastOperation((uint32_t)FLASH_TIMEOUT_VALUE));
  1368. 855 .loc 1 505 10
  1369. 856 0014 4CF25030 movw r0, #50000
  1370. 857 0018 FFF7FEFF bl FLASH_WaitForLastOperation
  1371. 858 001c 0346 mov r3, r0
  1372. 506:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1373. 859 .loc 1 506 1
  1374. 860 001e 1846 mov r0, r3
  1375. 861 0020 80BD pop {r7, pc}
  1376. 862 .L58:
  1377. 863 0022 00BF .align 2
  1378. 864 .L57:
  1379. 865 0024 143C0240 .word 1073888276
  1380. 866 .cfi_endproc
  1381. 867 .LFE244:
  1382. 869 .section .text.HAL_FLASH_GetError,"ax",%progbits
  1383. 870 .align 1
  1384. 871 .global HAL_FLASH_GetError
  1385. 872 .syntax unified
  1386. 873 .thumb
  1387. 874 .thumb_func
  1388. 876 HAL_FLASH_GetError:
  1389. 877 .LFB245:
  1390. 507:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1391. 508:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  1392. 509:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @}
  1393. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 25
  1394. 510:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  1395. 511:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1396. 512:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /** @defgroup FLASH_Exported_Functions_Group3 Peripheral State and Errors functions
  1397. 513:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Peripheral Errors functions
  1398. 514:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  1399. 515:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** @verbatim
  1400. 516:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ===============================================================================
  1401. 517:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ##### Peripheral Errors functions #####
  1402. 518:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** ===============================================================================
  1403. 519:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** [..]
  1404. 520:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** This subsection permits to get in run-time Errors of the FLASH peripheral.
  1405. 521:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1406. 522:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** @endverbatim
  1407. 523:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @{
  1408. 524:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  1409. 525:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1410. 526:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  1411. 527:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Get the specific FLASH error flag.
  1412. 528:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval FLASH_ErrorCode: The returned value can be a combination of:
  1413. 529:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @arg HAL_FLASH_ERROR_RD: FLASH Read Protection error flag (PCROP)
  1414. 530:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @arg HAL_FLASH_ERROR_PGS: FLASH Programming Sequence error flag
  1415. 531:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @arg HAL_FLASH_ERROR_PGP: FLASH Programming Parallelism error flag
  1416. 532:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @arg HAL_FLASH_ERROR_PGA: FLASH Programming Alignment error flag
  1417. 533:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @arg HAL_FLASH_ERROR_WRP: FLASH Write protected error flag
  1418. 534:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @arg HAL_FLASH_ERROR_OPERATION: FLASH operation Error flag
  1419. 535:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  1420. 536:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** uint32_t HAL_FLASH_GetError(void)
  1421. 537:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1422. 878 .loc 1 537 1
  1423. 879 .cfi_startproc
  1424. 880 @ args = 0, pretend = 0, frame = 0
  1425. 881 @ frame_needed = 1, uses_anonymous_args = 0
  1426. 882 @ link register save eliminated.
  1427. 883 0000 80B4 push {r7}
  1428. 884 .LCFI47:
  1429. 885 .cfi_def_cfa_offset 4
  1430. 886 .cfi_offset 7, -4
  1431. 887 0002 00AF add r7, sp, #0
  1432. 888 .LCFI48:
  1433. 889 .cfi_def_cfa_register 7
  1434. 538:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return pFlash.ErrorCode;
  1435. 890 .loc 1 538 17
  1436. 891 0004 034B ldr r3, .L61
  1437. 892 0006 DB69 ldr r3, [r3, #28]
  1438. 539:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1439. 893 .loc 1 539 1
  1440. 894 0008 1846 mov r0, r3
  1441. 895 000a BD46 mov sp, r7
  1442. 896 .LCFI49:
  1443. 897 .cfi_def_cfa_register 13
  1444. 898 @ sp needed
  1445. 899 000c 5DF8047B ldr r7, [sp], #4
  1446. 900 .LCFI50:
  1447. 901 .cfi_restore 7
  1448. 902 .cfi_def_cfa_offset 0
  1449. 903 0010 7047 bx lr
  1450. 904 .L62:
  1451. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 26
  1452. 905 0012 00BF .align 2
  1453. 906 .L61:
  1454. 907 0014 00000000 .word pFlash
  1455. 908 .cfi_endproc
  1456. 909 .LFE245:
  1457. 911 .section .text.FLASH_WaitForLastOperation,"ax",%progbits
  1458. 912 .align 1
  1459. 913 .global FLASH_WaitForLastOperation
  1460. 914 .syntax unified
  1461. 915 .thumb
  1462. 916 .thumb_func
  1463. 918 FLASH_WaitForLastOperation:
  1464. 919 .LFB246:
  1465. 540:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1466. 541:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  1467. 542:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @}
  1468. 543:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  1469. 544:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1470. 545:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  1471. 546:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Wait for a FLASH operation to complete.
  1472. 547:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Timeout maximum flash operationtimeout
  1473. 548:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval HAL Status
  1474. 549:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  1475. 550:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** HAL_StatusTypeDef FLASH_WaitForLastOperation(uint32_t Timeout)
  1476. 551:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1477. 920 .loc 1 551 1
  1478. 921 .cfi_startproc
  1479. 922 @ args = 0, pretend = 0, frame = 16
  1480. 923 @ frame_needed = 1, uses_anonymous_args = 0
  1481. 924 0000 80B5 push {r7, lr}
  1482. 925 .LCFI51:
  1483. 926 .cfi_def_cfa_offset 8
  1484. 927 .cfi_offset 7, -8
  1485. 928 .cfi_offset 14, -4
  1486. 929 0002 84B0 sub sp, sp, #16
  1487. 930 .LCFI52:
  1488. 931 .cfi_def_cfa_offset 24
  1489. 932 0004 00AF add r7, sp, #0
  1490. 933 .LCFI53:
  1491. 934 .cfi_def_cfa_register 7
  1492. 935 0006 7860 str r0, [r7, #4]
  1493. 552:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** uint32_t tickstart = 0U;
  1494. 936 .loc 1 552 12
  1495. 937 0008 0023 movs r3, #0
  1496. 938 000a FB60 str r3, [r7, #12]
  1497. 553:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1498. 554:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Clear Error Code */
  1499. 555:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.ErrorCode = HAL_FLASH_ERROR_NONE;
  1500. 939 .loc 1 555 20
  1501. 940 000c 1A4B ldr r3, .L70
  1502. 941 000e 0022 movs r2, #0
  1503. 942 0010 DA61 str r2, [r3, #28]
  1504. 556:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1505. 557:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Wait for the FLASH operation to complete by polling on BUSY flag to be reset.
  1506. 558:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** Even if the FLASH operation fails, the BUSY flag will be reset and an error
  1507. 559:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** flag will be set */
  1508. 560:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Get tick */
  1509. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 27
  1510. 561:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** tickstart = HAL_GetTick();
  1511. 943 .loc 1 561 15
  1512. 944 0012 FFF7FEFF bl HAL_GetTick
  1513. 945 0016 F860 str r0, [r7, #12]
  1514. 562:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1515. 563:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY) != RESET)
  1516. 946 .loc 1 563 8
  1517. 947 0018 10E0 b .L64
  1518. 948 .L67:
  1519. 564:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1520. 565:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(Timeout != HAL_MAX_DELAY)
  1521. 949 .loc 1 565 7
  1522. 950 001a 7B68 ldr r3, [r7, #4]
  1523. 951 001c B3F1FF3F cmp r3, #-1
  1524. 952 0020 0CD0 beq .L64
  1525. 566:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1526. 567:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if((Timeout == 0U)||((HAL_GetTick() - tickstart ) > Timeout))
  1527. 953 .loc 1 567 9
  1528. 954 0022 7B68 ldr r3, [r7, #4]
  1529. 955 0024 002B cmp r3, #0
  1530. 956 0026 07D0 beq .L65
  1531. 957 .loc 1 567 29 discriminator 1
  1532. 958 0028 FFF7FEFF bl HAL_GetTick
  1533. 959 002c 0246 mov r2, r0
  1534. 960 .loc 1 567 43 discriminator 1
  1535. 961 002e FB68 ldr r3, [r7, #12]
  1536. 962 0030 D31A subs r3, r2, r3
  1537. 963 .loc 1 567 25 discriminator 1
  1538. 964 0032 7A68 ldr r2, [r7, #4]
  1539. 965 0034 9A42 cmp r2, r3
  1540. 966 0036 01D2 bcs .L64
  1541. 967 .L65:
  1542. 568:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1543. 569:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return HAL_TIMEOUT;
  1544. 968 .loc 1 569 16
  1545. 969 0038 0323 movs r3, #3
  1546. 970 003a 19E0 b .L66
  1547. 971 .L64:
  1548. 563:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1549. 972 .loc 1 563 9
  1550. 973 003c 0F4B ldr r3, .L70+4
  1551. 974 003e DB68 ldr r3, [r3, #12]
  1552. 975 0040 03F48033 and r3, r3, #65536
  1553. 563:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1554. 976 .loc 1 563 8
  1555. 977 0044 002B cmp r3, #0
  1556. 978 0046 E8D1 bne .L67
  1557. 570:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1558. 571:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1559. 572:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1560. 573:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1561. 574:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Check FLASH End of Operation flag */
  1562. 575:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if (__HAL_FLASH_GET_FLAG(FLASH_FLAG_EOP) != RESET)
  1563. 979 .loc 1 575 7
  1564. 980 0048 0C4B ldr r3, .L70+4
  1565. 981 004a DB68 ldr r3, [r3, #12]
  1566. 982 004c 03F00103 and r3, r3, #1
  1567. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 28
  1568. 983 .loc 1 575 6
  1569. 984 0050 002B cmp r3, #0
  1570. 985 0052 02D0 beq .L68
  1571. 576:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1572. 577:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Clear FLASH End of Operation pending bit */
  1573. 578:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_EOP);
  1574. 986 .loc 1 578 5
  1575. 987 0054 094B ldr r3, .L70+4
  1576. 988 0056 0122 movs r2, #1
  1577. 989 0058 DA60 str r2, [r3, #12]
  1578. 990 .L68:
  1579. 579:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1580. 580:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** #if defined(FLASH_SR_RDERR)
  1581. 581:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG((FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | \
  1582. 582:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR | FLASH_FLAG_RDERR)) != RESET)
  1583. 583:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** #else
  1584. 584:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG((FLASH_FLAG_OPERR | FLASH_FLAG_WRPERR | FLASH_FLAG_PGAERR | \
  1585. 991 .loc 1 584 6
  1586. 992 005a 084B ldr r3, .L70+4
  1587. 993 005c DB68 ldr r3, [r3, #12]
  1588. 994 005e 03F0F203 and r3, r3, #242
  1589. 995 .loc 1 584 5
  1590. 996 0062 002B cmp r3, #0
  1591. 997 0064 03D0 beq .L69
  1592. 585:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_FLAG_PGPERR | FLASH_FLAG_PGSERR)) != RESET)
  1593. 586:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** #endif /* FLASH_SR_RDERR */
  1594. 587:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1595. 588:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /*Save the error code*/
  1596. 589:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH_SetErrorCode();
  1597. 998 .loc 1 589 5
  1598. 999 0066 FFF7FEFF bl FLASH_SetErrorCode
  1599. 590:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return HAL_ERROR;
  1600. 1000 .loc 1 590 12
  1601. 1001 006a 0123 movs r3, #1
  1602. 1002 006c 00E0 b .L66
  1603. 1003 .L69:
  1604. 591:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1605. 592:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1606. 593:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* If there is no error flag set */
  1607. 594:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** return HAL_OK;
  1608. 1004 .loc 1 594 10
  1609. 1005 006e 0023 movs r3, #0
  1610. 1006 .L66:
  1611. 595:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1612. 596:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  1613. 1007 .loc 1 596 1
  1614. 1008 0070 1846 mov r0, r3
  1615. 1009 0072 1037 adds r7, r7, #16
  1616. 1010 .LCFI54:
  1617. 1011 .cfi_def_cfa_offset 8
  1618. 1012 0074 BD46 mov sp, r7
  1619. 1013 .LCFI55:
  1620. 1014 .cfi_def_cfa_register 13
  1621. 1015 @ sp needed
  1622. 1016 0076 80BD pop {r7, pc}
  1623. 1017 .L71:
  1624. 1018 .align 2
  1625. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 29
  1626. 1019 .L70:
  1627. 1020 0078 00000000 .word pFlash
  1628. 1021 007c 003C0240 .word 1073888256
  1629. 1022 .cfi_endproc
  1630. 1023 .LFE246:
  1631. 1025 .section .text.FLASH_Program_DoubleWord,"ax",%progbits
  1632. 1026 .align 1
  1633. 1027 .syntax unified
  1634. 1028 .thumb
  1635. 1029 .thumb_func
  1636. 1031 FLASH_Program_DoubleWord:
  1637. 1032 .LFB247:
  1638. 597:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1639. 598:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  1640. 599:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Program a double word (64-bit) at a specified address.
  1641. 600:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @note This function must be used when the device voltage range is from
  1642. 601:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * 2.7V to 3.6V and Vpp in the range 7V to 9V.
  1643. 602:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  1644. 603:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @note If an erase and a program operations are requested simultaneously,
  1645. 604:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * the erase operation is performed before the program one.
  1646. 605:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  1647. 606:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Address specifies the address to be programmed.
  1648. 607:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Data specifies the data to be programmed.
  1649. 608:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval None
  1650. 609:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  1651. 610:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** static void FLASH_Program_DoubleWord(uint32_t Address, uint64_t Data)
  1652. 611:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  1653. 1033 .loc 1 611 1
  1654. 1034 .cfi_startproc
  1655. 1035 @ args = 0, pretend = 0, frame = 16
  1656. 1036 @ frame_needed = 1, uses_anonymous_args = 0
  1657. 1037 @ link register save eliminated.
  1658. 1038 0000 80B4 push {r7}
  1659. 1039 .LCFI56:
  1660. 1040 .cfi_def_cfa_offset 4
  1661. 1041 .cfi_offset 7, -4
  1662. 1042 0002 85B0 sub sp, sp, #20
  1663. 1043 .LCFI57:
  1664. 1044 .cfi_def_cfa_offset 24
  1665. 1045 0004 00AF add r7, sp, #0
  1666. 1046 .LCFI58:
  1667. 1047 .cfi_def_cfa_register 7
  1668. 1048 0006 F860 str r0, [r7, #12]
  1669. 1049 0008 C7E90023 strd r2, [r7]
  1670. 612:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Check the parameters */
  1671. 613:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** assert_param(IS_FLASH_ADDRESS(Address));
  1672. 614:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1673. 615:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* If the previous operation is completed, proceed to program the new data */
  1674. 616:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE);
  1675. 1050 .loc 1 616 3
  1676. 1051 000c 144B ldr r3, .L73
  1677. 1052 000e 1B69 ldr r3, [r3, #16]
  1678. 1053 0010 134A ldr r2, .L73
  1679. 1054 0012 23F44073 bic r3, r3, #768
  1680. 1055 0016 1361 str r3, [r2, #16]
  1681. 617:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->CR |= FLASH_PSIZE_DOUBLE_WORD;
  1682. 1056 .loc 1 617 13
  1683. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 30
  1684. 1057 0018 114B ldr r3, .L73
  1685. 1058 001a 1B69 ldr r3, [r3, #16]
  1686. 1059 001c 104A ldr r2, .L73
  1687. 1060 001e 43F44073 orr r3, r3, #768
  1688. 1061 0022 1361 str r3, [r2, #16]
  1689. 618:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->CR |= FLASH_CR_PG;
  1690. 1062 .loc 1 618 13
  1691. 1063 0024 0E4B ldr r3, .L73
  1692. 1064 0026 1B69 ldr r3, [r3, #16]
  1693. 1065 0028 0D4A ldr r2, .L73
  1694. 1066 002a 43F00103 orr r3, r3, #1
  1695. 1067 002e 1361 str r3, [r2, #16]
  1696. 619:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  1697. 620:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Program first word */
  1698. 621:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *(__IO uint32_t*)Address = (uint32_t)Data;
  1699. 1068 .loc 1 621 4
  1700. 1069 0030 FB68 ldr r3, [r7, #12]
  1701. 1070 .loc 1 621 30
  1702. 1071 0032 3A68 ldr r2, [r7]
  1703. 1072 .loc 1 621 28
  1704. 1073 0034 1A60 str r2, [r3]
  1705. 1074 .LBB4:
  1706. 1075 .LBB5:
  1707. 1076 .file 2 "Drivers/CMSIS/Include/cmsis_gcc.h"
  1708. 1:Drivers/CMSIS/Include/cmsis_gcc.h **** /**************************************************************************//**
  1709. 2:Drivers/CMSIS/Include/cmsis_gcc.h **** * @file cmsis_gcc.h
  1710. 3:Drivers/CMSIS/Include/cmsis_gcc.h **** * @brief CMSIS compiler GCC header file
  1711. 4:Drivers/CMSIS/Include/cmsis_gcc.h **** * @version V5.0.4
  1712. 5:Drivers/CMSIS/Include/cmsis_gcc.h **** * @date 09. April 2018
  1713. 6:Drivers/CMSIS/Include/cmsis_gcc.h **** ******************************************************************************/
  1714. 7:Drivers/CMSIS/Include/cmsis_gcc.h **** /*
  1715. 8:Drivers/CMSIS/Include/cmsis_gcc.h **** * Copyright (c) 2009-2018 Arm Limited. All rights reserved.
  1716. 9:Drivers/CMSIS/Include/cmsis_gcc.h **** *
  1717. 10:Drivers/CMSIS/Include/cmsis_gcc.h **** * SPDX-License-Identifier: Apache-2.0
  1718. 11:Drivers/CMSIS/Include/cmsis_gcc.h **** *
  1719. 12:Drivers/CMSIS/Include/cmsis_gcc.h **** * Licensed under the Apache License, Version 2.0 (the License); you may
  1720. 13:Drivers/CMSIS/Include/cmsis_gcc.h **** * not use this file except in compliance with the License.
  1721. 14:Drivers/CMSIS/Include/cmsis_gcc.h **** * You may obtain a copy of the License at
  1722. 15:Drivers/CMSIS/Include/cmsis_gcc.h **** *
  1723. 16:Drivers/CMSIS/Include/cmsis_gcc.h **** * www.apache.org/licenses/LICENSE-2.0
  1724. 17:Drivers/CMSIS/Include/cmsis_gcc.h **** *
  1725. 18:Drivers/CMSIS/Include/cmsis_gcc.h **** * Unless required by applicable law or agreed to in writing, software
  1726. 19:Drivers/CMSIS/Include/cmsis_gcc.h **** * distributed under the License is distributed on an AS IS BASIS, WITHOUT
  1727. 20:Drivers/CMSIS/Include/cmsis_gcc.h **** * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  1728. 21:Drivers/CMSIS/Include/cmsis_gcc.h **** * See the License for the specific language governing permissions and
  1729. 22:Drivers/CMSIS/Include/cmsis_gcc.h **** * limitations under the License.
  1730. 23:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1731. 24:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1732. 25:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __CMSIS_GCC_H
  1733. 26:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_H
  1734. 27:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1735. 28:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ignore some GCC warnings */
  1736. 29:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
  1737. 30:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wsign-conversion"
  1738. 31:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wconversion"
  1739. 32:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wunused-parameter"
  1740. 33:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1741. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 31
  1742. 34:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Fallback for __has_builtin */
  1743. 35:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __has_builtin
  1744. 36:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __has_builtin(x) (0)
  1745. 37:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1746. 38:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1747. 39:Drivers/CMSIS/Include/cmsis_gcc.h **** /* CMSIS compiler specific defines */
  1748. 40:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __ASM
  1749. 41:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __ASM __asm
  1750. 42:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1751. 43:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __INLINE
  1752. 44:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __INLINE inline
  1753. 45:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1754. 46:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __STATIC_INLINE
  1755. 47:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __STATIC_INLINE static inline
  1756. 48:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1757. 49:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __STATIC_FORCEINLINE
  1758. 50:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __STATIC_FORCEINLINE __attribute__((always_inline)) static inline
  1759. 51:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1760. 52:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __NO_RETURN
  1761. 53:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __NO_RETURN __attribute__((__noreturn__))
  1762. 54:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1763. 55:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __USED
  1764. 56:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __USED __attribute__((used))
  1765. 57:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1766. 58:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __WEAK
  1767. 59:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __WEAK __attribute__((weak))
  1768. 60:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1769. 61:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __PACKED
  1770. 62:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __PACKED __attribute__((packed, aligned(1)))
  1771. 63:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1772. 64:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __PACKED_STRUCT
  1773. 65:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __PACKED_STRUCT struct __attribute__((packed, aligned(1)))
  1774. 66:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1775. 67:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __PACKED_UNION
  1776. 68:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __PACKED_UNION union __attribute__((packed, aligned(1)))
  1777. 69:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1778. 70:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT32 /* deprecated */
  1779. 71:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
  1780. 72:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked"
  1781. 73:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes"
  1782. 74:Drivers/CMSIS/Include/cmsis_gcc.h **** struct __attribute__((packed)) T_UINT32 { uint32_t v; };
  1783. 75:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop
  1784. 76:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT32(x) (((struct T_UINT32 *)(x))->v)
  1785. 77:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1786. 78:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT16_WRITE
  1787. 79:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
  1788. 80:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked"
  1789. 81:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes"
  1790. 82:Drivers/CMSIS/Include/cmsis_gcc.h **** __PACKED_STRUCT T_UINT16_WRITE { uint16_t v; };
  1791. 83:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop
  1792. 84:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))-
  1793. 85:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1794. 86:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT16_READ
  1795. 87:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
  1796. 88:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked"
  1797. 89:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes"
  1798. 90:Drivers/CMSIS/Include/cmsis_gcc.h **** __PACKED_STRUCT T_UINT16_READ { uint16_t v; };
  1799. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 32
  1800. 91:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop
  1801. 92:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(add
  1802. 93:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1803. 94:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT32_WRITE
  1804. 95:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
  1805. 96:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked"
  1806. 97:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes"
  1807. 98:Drivers/CMSIS/Include/cmsis_gcc.h **** __PACKED_STRUCT T_UINT32_WRITE { uint32_t v; };
  1808. 99:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop
  1809. 100:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))-
  1810. 101:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1811. 102:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __UNALIGNED_UINT32_READ
  1812. 103:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic push
  1813. 104:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wpacked"
  1814. 105:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic ignored "-Wattributes"
  1815. 106:Drivers/CMSIS/Include/cmsis_gcc.h **** __PACKED_STRUCT T_UINT32_READ { uint32_t v; };
  1816. 107:Drivers/CMSIS/Include/cmsis_gcc.h **** #pragma GCC diagnostic pop
  1817. 108:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(add
  1818. 109:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1819. 110:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __ALIGNED
  1820. 111:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __ALIGNED(x) __attribute__((aligned(x)))
  1821. 112:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1822. 113:Drivers/CMSIS/Include/cmsis_gcc.h **** #ifndef __RESTRICT
  1823. 114:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __RESTRICT __restrict
  1824. 115:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1825. 116:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1826. 117:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1827. 118:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ########################### Core Function Access ########################### */
  1828. 119:Drivers/CMSIS/Include/cmsis_gcc.h **** /** \ingroup CMSIS_Core_FunctionInterface
  1829. 120:Drivers/CMSIS/Include/cmsis_gcc.h **** \defgroup CMSIS_Core_RegAccFunctions CMSIS Core Register Access Functions
  1830. 121:Drivers/CMSIS/Include/cmsis_gcc.h **** @{
  1831. 122:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1832. 123:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1833. 124:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1834. 125:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Enable IRQ Interrupts
  1835. 126:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Enables IRQ interrupts by clearing the I-bit in the CPSR.
  1836. 127:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes.
  1837. 128:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1838. 129:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __enable_irq(void)
  1839. 130:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1840. 131:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsie i" : : : "memory");
  1841. 132:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1842. 133:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1843. 134:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1844. 135:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1845. 136:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Disable IRQ Interrupts
  1846. 137:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Disables IRQ interrupts by setting the I-bit in the CPSR.
  1847. 138:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes.
  1848. 139:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1849. 140:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __disable_irq(void)
  1850. 141:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1851. 142:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsid i" : : : "memory");
  1852. 143:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1853. 144:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1854. 145:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1855. 146:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1856. 147:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Control Register
  1857. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 33
  1858. 148:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the Control Register.
  1859. 149:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Control Register value
  1860. 150:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1861. 151:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_CONTROL(void)
  1862. 152:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1863. 153:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1864. 154:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1865. 155:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, control" : "=r" (result) );
  1866. 156:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1867. 157:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1868. 158:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1869. 159:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1870. 160:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1871. 161:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1872. 162:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Control Register (non-secure)
  1873. 163:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the non-secure Control Register when in secure mode.
  1874. 164:Drivers/CMSIS/Include/cmsis_gcc.h **** \return non-secure Control Register value
  1875. 165:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1876. 166:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_CONTROL_NS(void)
  1877. 167:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1878. 168:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1879. 169:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1880. 170:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, control_ns" : "=r" (result) );
  1881. 171:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1882. 172:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1883. 173:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1884. 174:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1885. 175:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1886. 176:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1887. 177:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Control Register
  1888. 178:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Writes the given value to the Control Register.
  1889. 179:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] control Control Register value to set
  1890. 180:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1891. 181:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_CONTROL(uint32_t control)
  1892. 182:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1893. 183:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR control, %0" : : "r" (control) : "memory");
  1894. 184:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1895. 185:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1896. 186:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1897. 187:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1898. 188:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1899. 189:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Control Register (non-secure)
  1900. 190:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Writes the given value to the non-secure Control Register when in secure state.
  1901. 191:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] control Control Register value to set
  1902. 192:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1903. 193:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_CONTROL_NS(uint32_t control)
  1904. 194:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1905. 195:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR control_ns, %0" : : "r" (control) : "memory");
  1906. 196:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1907. 197:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1908. 198:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1909. 199:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1910. 200:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1911. 201:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get IPSR Register
  1912. 202:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the IPSR Register.
  1913. 203:Drivers/CMSIS/Include/cmsis_gcc.h **** \return IPSR Register value
  1914. 204:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1915. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 34
  1916. 205:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_IPSR(void)
  1917. 206:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1918. 207:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1919. 208:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1920. 209:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, ipsr" : "=r" (result) );
  1921. 210:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1922. 211:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1923. 212:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1924. 213:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1925. 214:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1926. 215:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get APSR Register
  1927. 216:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the APSR Register.
  1928. 217:Drivers/CMSIS/Include/cmsis_gcc.h **** \return APSR Register value
  1929. 218:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1930. 219:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_APSR(void)
  1931. 220:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1932. 221:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1933. 222:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1934. 223:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, apsr" : "=r" (result) );
  1935. 224:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1936. 225:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1937. 226:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1938. 227:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1939. 228:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1940. 229:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get xPSR Register
  1941. 230:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the content of the xPSR Register.
  1942. 231:Drivers/CMSIS/Include/cmsis_gcc.h **** \return xPSR Register value
  1943. 232:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1944. 233:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_xPSR(void)
  1945. 234:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1946. 235:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1947. 236:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1948. 237:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, xpsr" : "=r" (result) );
  1949. 238:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1950. 239:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1951. 240:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1952. 241:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1953. 242:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1954. 243:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Process Stack Pointer
  1955. 244:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Process Stack Pointer (PSP).
  1956. 245:Drivers/CMSIS/Include/cmsis_gcc.h **** \return PSP Register value
  1957. 246:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1958. 247:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_PSP(void)
  1959. 248:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1960. 249:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1961. 250:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1962. 251:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, psp" : "=r" (result) );
  1963. 252:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1964. 253:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1965. 254:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1966. 255:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1967. 256:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1968. 257:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1969. 258:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Process Stack Pointer (non-secure)
  1970. 259:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Process Stack Pointer (PSP) when in secure s
  1971. 260:Drivers/CMSIS/Include/cmsis_gcc.h **** \return PSP Register value
  1972. 261:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1973. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 35
  1974. 262:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_PSP_NS(void)
  1975. 263:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1976. 264:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  1977. 265:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1978. 266:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, psp_ns" : "=r" (result) );
  1979. 267:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  1980. 268:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1981. 269:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  1982. 270:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1983. 271:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1984. 272:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1985. 273:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Process Stack Pointer
  1986. 274:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Process Stack Pointer (PSP).
  1987. 275:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfProcStack Process Stack Pointer value to set
  1988. 276:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  1989. 277:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_PSP(uint32_t topOfProcStack)
  1990. 278:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  1991. 279:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR psp, %0" : : "r" (topOfProcStack) : );
  1992. 280:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  1993. 281:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1994. 282:Drivers/CMSIS/Include/cmsis_gcc.h ****
  1995. 283:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  1996. 284:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  1997. 285:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Process Stack Pointer (non-secure)
  1998. 286:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Process Stack Pointer (PSP) when in secure sta
  1999. 287:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfProcStack Process Stack Pointer value to set
  2000. 288:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2001. 289:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_PSP_NS(uint32_t topOfProcStack)
  2002. 290:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2003. 291:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR psp_ns, %0" : : "r" (topOfProcStack) : );
  2004. 292:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2005. 293:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2006. 294:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2007. 295:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2008. 296:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2009. 297:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Main Stack Pointer
  2010. 298:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Main Stack Pointer (MSP).
  2011. 299:Drivers/CMSIS/Include/cmsis_gcc.h **** \return MSP Register value
  2012. 300:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2013. 301:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_MSP(void)
  2014. 302:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2015. 303:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2016. 304:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2017. 305:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, msp" : "=r" (result) );
  2018. 306:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  2019. 307:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2020. 308:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2021. 309:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2022. 310:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  2023. 311:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2024. 312:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Main Stack Pointer (non-secure)
  2025. 313:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Main Stack Pointer (MSP) when in secure stat
  2026. 314:Drivers/CMSIS/Include/cmsis_gcc.h **** \return MSP Register value
  2027. 315:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2028. 316:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_MSP_NS(void)
  2029. 317:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2030. 318:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2031. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 36
  2032. 319:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2033. 320:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, msp_ns" : "=r" (result) );
  2034. 321:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  2035. 322:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2036. 323:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2037. 324:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2038. 325:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2039. 326:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2040. 327:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Main Stack Pointer
  2041. 328:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Main Stack Pointer (MSP).
  2042. 329:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfMainStack Main Stack Pointer value to set
  2043. 330:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2044. 331:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_MSP(uint32_t topOfMainStack)
  2045. 332:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2046. 333:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR msp, %0" : : "r" (topOfMainStack) : );
  2047. 334:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2048. 335:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2049. 336:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2050. 337:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  2051. 338:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2052. 339:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Main Stack Pointer (non-secure)
  2053. 340:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Main Stack Pointer (MSP) when in secure state.
  2054. 341:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfMainStack Main Stack Pointer value to set
  2055. 342:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2056. 343:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_MSP_NS(uint32_t topOfMainStack)
  2057. 344:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2058. 345:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR msp_ns, %0" : : "r" (topOfMainStack) : );
  2059. 346:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2060. 347:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2061. 348:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2062. 349:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2063. 350:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  2064. 351:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2065. 352:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Stack Pointer (non-secure)
  2066. 353:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Stack Pointer (SP) when in secure state.
  2067. 354:Drivers/CMSIS/Include/cmsis_gcc.h **** \return SP Register value
  2068. 355:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2069. 356:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_SP_NS(void)
  2070. 357:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2071. 358:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2072. 359:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2073. 360:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, sp_ns" : "=r" (result) );
  2074. 361:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  2075. 362:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2076. 363:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2077. 364:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2078. 365:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2079. 366:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Stack Pointer (non-secure)
  2080. 367:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Stack Pointer (SP) when in secure state.
  2081. 368:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] topOfStack Stack Pointer value to set
  2082. 369:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2083. 370:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_SP_NS(uint32_t topOfStack)
  2084. 371:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2085. 372:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR sp_ns, %0" : : "r" (topOfStack) : );
  2086. 373:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2087. 374:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2088. 375:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2089. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 37
  2090. 376:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2091. 377:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2092. 378:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Priority Mask
  2093. 379:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current state of the priority mask bit from the Priority Mask Register.
  2094. 380:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Priority Mask value
  2095. 381:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2096. 382:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_PRIMASK(void)
  2097. 383:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2098. 384:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2099. 385:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2100. 386:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, primask" : "=r" (result) :: "memory");
  2101. 387:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  2102. 388:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2103. 389:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2104. 390:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2105. 391:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  2106. 392:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2107. 393:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Priority Mask (non-secure)
  2108. 394:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current state of the non-secure priority mask bit from the Priority Mask Reg
  2109. 395:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Priority Mask value
  2110. 396:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2111. 397:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_PRIMASK_NS(void)
  2112. 398:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2113. 399:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2114. 400:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2115. 401:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, primask_ns" : "=r" (result) :: "memory");
  2116. 402:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  2117. 403:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2118. 404:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2119. 405:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2120. 406:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2121. 407:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2122. 408:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Priority Mask
  2123. 409:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Priority Mask Register.
  2124. 410:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] priMask Priority Mask
  2125. 411:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2126. 412:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_PRIMASK(uint32_t priMask)
  2127. 413:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2128. 414:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory");
  2129. 415:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2130. 416:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2131. 417:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2132. 418:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  2133. 419:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2134. 420:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Priority Mask (non-secure)
  2135. 421:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Priority Mask Register when in secure state.
  2136. 422:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] priMask Priority Mask
  2137. 423:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2138. 424:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_PRIMASK_NS(uint32_t priMask)
  2139. 425:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2140. 426:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR primask_ns, %0" : : "r" (priMask) : "memory");
  2141. 427:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2142. 428:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2143. 429:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2144. 430:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2145. 431:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
  2146. 432:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
  2147. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 38
  2148. 433:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) )
  2149. 434:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2150. 435:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Enable FIQ
  2151. 436:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Enables FIQ interrupts by clearing the F-bit in the CPSR.
  2152. 437:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes.
  2153. 438:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2154. 439:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __enable_fault_irq(void)
  2155. 440:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2156. 441:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsie f" : : : "memory");
  2157. 442:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2158. 443:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2159. 444:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2160. 445:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2161. 446:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Disable FIQ
  2162. 447:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Disables FIQ interrupts by setting the F-bit in the CPSR.
  2163. 448:Drivers/CMSIS/Include/cmsis_gcc.h **** Can only be executed in Privileged modes.
  2164. 449:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2165. 450:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __disable_fault_irq(void)
  2166. 451:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2167. 452:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("cpsid f" : : : "memory");
  2168. 453:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2169. 454:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2170. 455:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2171. 456:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2172. 457:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Base Priority
  2173. 458:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Base Priority register.
  2174. 459:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Base Priority register value
  2175. 460:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2176. 461:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_BASEPRI(void)
  2177. 462:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2178. 463:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2179. 464:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2180. 465:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, basepri" : "=r" (result) );
  2181. 466:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  2182. 467:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2183. 468:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2184. 469:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2185. 470:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  2186. 471:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2187. 472:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Base Priority (non-secure)
  2188. 473:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Base Priority register when in secure state.
  2189. 474:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Base Priority register value
  2190. 475:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2191. 476:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_BASEPRI_NS(void)
  2192. 477:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2193. 478:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2194. 479:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2195. 480:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, basepri_ns" : "=r" (result) );
  2196. 481:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  2197. 482:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2198. 483:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2199. 484:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2200. 485:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2201. 486:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2202. 487:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Base Priority
  2203. 488:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Base Priority register.
  2204. 489:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] basePri Base Priority value to set
  2205. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 39
  2206. 490:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2207. 491:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_BASEPRI(uint32_t basePri)
  2208. 492:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2209. 493:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR basepri, %0" : : "r" (basePri) : "memory");
  2210. 494:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2211. 495:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2212. 496:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2213. 497:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  2214. 498:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2215. 499:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Base Priority (non-secure)
  2216. 500:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Base Priority register when in secure state.
  2217. 501:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] basePri Base Priority value to set
  2218. 502:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2219. 503:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_BASEPRI_NS(uint32_t basePri)
  2220. 504:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2221. 505:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR basepri_ns, %0" : : "r" (basePri) : "memory");
  2222. 506:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2223. 507:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2224. 508:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2225. 509:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2226. 510:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2227. 511:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Base Priority with condition
  2228. 512:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Base Priority register only if BASEPRI masking is disable
  2229. 513:Drivers/CMSIS/Include/cmsis_gcc.h **** or the new value increases the BASEPRI priority level.
  2230. 514:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] basePri Base Priority value to set
  2231. 515:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2232. 516:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_BASEPRI_MAX(uint32_t basePri)
  2233. 517:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2234. 518:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR basepri_max, %0" : : "r" (basePri) : "memory");
  2235. 519:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2236. 520:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2237. 521:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2238. 522:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2239. 523:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Fault Mask
  2240. 524:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Fault Mask register.
  2241. 525:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Fault Mask register value
  2242. 526:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2243. 527:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_FAULTMASK(void)
  2244. 528:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2245. 529:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2246. 530:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2247. 531:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, faultmask" : "=r" (result) );
  2248. 532:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  2249. 533:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2250. 534:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2251. 535:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2252. 536:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  2253. 537:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2254. 538:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Fault Mask (non-secure)
  2255. 539:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Fault Mask register when in secure state.
  2256. 540:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Fault Mask register value
  2257. 541:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2258. 542:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_FAULTMASK_NS(void)
  2259. 543:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2260. 544:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2261. 545:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2262. 546:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, faultmask_ns" : "=r" (result) );
  2263. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 40
  2264. 547:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  2265. 548:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2266. 549:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2267. 550:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2268. 551:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2269. 552:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2270. 553:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Fault Mask
  2271. 554:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Fault Mask register.
  2272. 555:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] faultMask Fault Mask value to set
  2273. 556:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2274. 557:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_FAULTMASK(uint32_t faultMask)
  2275. 558:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2276. 559:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) : "memory");
  2277. 560:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2278. 561:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2279. 562:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2280. 563:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  2281. 564:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2282. 565:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Fault Mask (non-secure)
  2283. 566:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Fault Mask register when in secure state.
  2284. 567:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] faultMask Fault Mask value to set
  2285. 568:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2286. 569:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_FAULTMASK_NS(uint32_t faultMask)
  2287. 570:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2288. 571:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR faultmask_ns, %0" : : "r" (faultMask) : "memory");
  2289. 572:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2290. 573:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2291. 574:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2292. 575:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif /* ((defined (__ARM_ARCH_7M__ ) && (__ARM_ARCH_7M__ == 1)) || \
  2293. 576:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_7EM__ ) && (__ARM_ARCH_7EM__ == 1)) || \
  2294. 577:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) ) */
  2295. 578:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2296. 579:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2297. 580:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \
  2298. 581:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) )
  2299. 582:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2300. 583:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2301. 584:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Process Stack Pointer Limit
  2302. 585:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  2303. 586:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence zero is returned always in non-secure
  2304. 587:Drivers/CMSIS/Include/cmsis_gcc.h **** mode.
  2305. 588:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2306. 589:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Process Stack Pointer Limit (PSPLIM).
  2307. 590:Drivers/CMSIS/Include/cmsis_gcc.h **** \return PSPLIM Register value
  2308. 591:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2309. 592:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_PSPLIM(void)
  2310. 593:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2311. 594:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \
  2312. 595:Drivers/CMSIS/Include/cmsis_gcc.h **** (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3)))
  2313. 596:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure PSPLIM is RAZ/WI
  2314. 597:Drivers/CMSIS/Include/cmsis_gcc.h **** return 0U;
  2315. 598:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2316. 599:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2317. 600:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, psplim" : "=r" (result) );
  2318. 601:Drivers/CMSIS/Include/cmsis_gcc.h **** return result;
  2319. 602:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2320. 603:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2321. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 41
  2322. 604:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2323. 605:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3))
  2324. 606:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2325. 607:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Process Stack Pointer Limit (non-secure)
  2326. 608:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  2327. 609:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence zero is returned always.
  2328. 610:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2329. 611:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Process Stack Pointer Limit (PSPLIM) when in
  2330. 612:Drivers/CMSIS/Include/cmsis_gcc.h **** \return PSPLIM Register value
  2331. 613:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2332. 614:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_PSPLIM_NS(void)
  2333. 615:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2334. 616:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)))
  2335. 617:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure PSPLIM is RAZ/WI
  2336. 618:Drivers/CMSIS/Include/cmsis_gcc.h **** return 0U;
  2337. 619:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2338. 620:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2339. 621:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, psplim_ns" : "=r" (result) );
  2340. 622:Drivers/CMSIS/Include/cmsis_gcc.h **** return result;
  2341. 623:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2342. 624:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2343. 625:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2344. 626:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2345. 627:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2346. 628:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2347. 629:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Process Stack Pointer Limit
  2348. 630:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  2349. 631:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence the write is silently ignored in non-secure
  2350. 632:Drivers/CMSIS/Include/cmsis_gcc.h **** mode.
  2351. 633:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2352. 634:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Process Stack Pointer Limit (PSPLIM).
  2353. 635:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ProcStackPtrLimit Process Stack Pointer Limit value to set
  2354. 636:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2355. 637:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_PSPLIM(uint32_t ProcStackPtrLimit)
  2356. 638:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2357. 639:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \
  2358. 640:Drivers/CMSIS/Include/cmsis_gcc.h **** (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3)))
  2359. 641:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure PSPLIM is RAZ/WI
  2360. 642:Drivers/CMSIS/Include/cmsis_gcc.h **** (void)ProcStackPtrLimit;
  2361. 643:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2362. 644:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR psplim, %0" : : "r" (ProcStackPtrLimit));
  2363. 645:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2364. 646:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2365. 647:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2366. 648:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2367. 649:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  2368. 650:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2369. 651:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Process Stack Pointer (non-secure)
  2370. 652:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  2371. 653:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence the write is silently ignored.
  2372. 654:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2373. 655:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Process Stack Pointer Limit (PSPLIM) when in s
  2374. 656:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] ProcStackPtrLimit Process Stack Pointer Limit value to set
  2375. 657:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2376. 658:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_PSPLIM_NS(uint32_t ProcStackPtrLimit)
  2377. 659:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2378. 660:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)))
  2379. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 42
  2380. 661:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure PSPLIM is RAZ/WI
  2381. 662:Drivers/CMSIS/Include/cmsis_gcc.h **** (void)ProcStackPtrLimit;
  2382. 663:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2383. 664:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR psplim_ns, %0\n" : : "r" (ProcStackPtrLimit));
  2384. 665:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2385. 666:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2386. 667:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2387. 668:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2388. 669:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2389. 670:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2390. 671:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Main Stack Pointer Limit
  2391. 672:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  2392. 673:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence zero is returned always in non-secure
  2393. 674:Drivers/CMSIS/Include/cmsis_gcc.h **** mode.
  2394. 675:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2395. 676:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Main Stack Pointer Limit (MSPLIM).
  2396. 677:Drivers/CMSIS/Include/cmsis_gcc.h **** \return MSPLIM Register value
  2397. 678:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2398. 679:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_MSPLIM(void)
  2399. 680:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2400. 681:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \
  2401. 682:Drivers/CMSIS/Include/cmsis_gcc.h **** (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3)))
  2402. 683:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure MSPLIM is RAZ/WI
  2403. 684:Drivers/CMSIS/Include/cmsis_gcc.h **** return 0U;
  2404. 685:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2405. 686:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2406. 687:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, msplim" : "=r" (result) );
  2407. 688:Drivers/CMSIS/Include/cmsis_gcc.h **** return result;
  2408. 689:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2409. 690:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2410. 691:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2411. 692:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2412. 693:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  2413. 694:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2414. 695:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get Main Stack Pointer Limit (non-secure)
  2415. 696:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  2416. 697:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence zero is returned always.
  2417. 698:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2418. 699:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the non-secure Main Stack Pointer Limit(MSPLIM) when in sec
  2419. 700:Drivers/CMSIS/Include/cmsis_gcc.h **** \return MSPLIM Register value
  2420. 701:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2421. 702:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __TZ_get_MSPLIM_NS(void)
  2422. 703:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2423. 704:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)))
  2424. 705:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure MSPLIM is RAZ/WI
  2425. 706:Drivers/CMSIS/Include/cmsis_gcc.h **** return 0U;
  2426. 707:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2427. 708:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2428. 709:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MRS %0, msplim_ns" : "=r" (result) );
  2429. 710:Drivers/CMSIS/Include/cmsis_gcc.h **** return result;
  2430. 711:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2431. 712:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2432. 713:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2433. 714:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2434. 715:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2435. 716:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2436. 717:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Main Stack Pointer Limit
  2437. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 43
  2438. 718:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  2439. 719:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence the write is silently ignored in non-secure
  2440. 720:Drivers/CMSIS/Include/cmsis_gcc.h **** mode.
  2441. 721:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2442. 722:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Main Stack Pointer Limit (MSPLIM).
  2443. 723:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] MainStackPtrLimit Main Stack Pointer Limit value to set
  2444. 724:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2445. 725:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_MSPLIM(uint32_t MainStackPtrLimit)
  2446. 726:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2447. 727:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) && \
  2448. 728:Drivers/CMSIS/Include/cmsis_gcc.h **** (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3)))
  2449. 729:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure MSPLIM is RAZ/WI
  2450. 730:Drivers/CMSIS/Include/cmsis_gcc.h **** (void)MainStackPtrLimit;
  2451. 731:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2452. 732:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR msplim, %0" : : "r" (MainStackPtrLimit));
  2453. 733:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2454. 734:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2455. 735:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2456. 736:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2457. 737:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (defined (__ARM_FEATURE_CMSE ) && (__ARM_FEATURE_CMSE == 3))
  2458. 738:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2459. 739:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set Main Stack Pointer Limit (non-secure)
  2460. 740:Drivers/CMSIS/Include/cmsis_gcc.h **** Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
  2461. 741:Drivers/CMSIS/Include/cmsis_gcc.h **** Stack Pointer Limit register hence the write is silently ignored.
  2462. 742:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2463. 743:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the non-secure Main Stack Pointer Limit (MSPLIM) when in secu
  2464. 744:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] MainStackPtrLimit Main Stack Pointer value to set
  2465. 745:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2466. 746:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __TZ_set_MSPLIM_NS(uint32_t MainStackPtrLimit)
  2467. 747:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2468. 748:Drivers/CMSIS/Include/cmsis_gcc.h **** #if (!(defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)))
  2469. 749:Drivers/CMSIS/Include/cmsis_gcc.h **** // without main extensions, the non-secure MSPLIM is RAZ/WI
  2470. 750:Drivers/CMSIS/Include/cmsis_gcc.h **** (void)MainStackPtrLimit;
  2471. 751:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2472. 752:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("MSR msplim_ns, %0" : : "r" (MainStackPtrLimit));
  2473. 753:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2474. 754:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2475. 755:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2476. 756:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2477. 757:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif /* ((defined (__ARM_ARCH_8M_MAIN__ ) && (__ARM_ARCH_8M_MAIN__ == 1)) || \
  2478. 758:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__ARM_ARCH_8M_BASE__ ) && (__ARM_ARCH_8M_BASE__ == 1)) ) */
  2479. 759:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2480. 760:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2481. 761:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2482. 762:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Get FPSCR
  2483. 763:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Returns the current value of the Floating Point Status/Control register.
  2484. 764:Drivers/CMSIS/Include/cmsis_gcc.h **** \return Floating Point Status/Control register value
  2485. 765:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2486. 766:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE uint32_t __get_FPSCR(void)
  2487. 767:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2488. 768:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \
  2489. 769:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__FPU_USED ) && (__FPU_USED == 1U)) )
  2490. 770:Drivers/CMSIS/Include/cmsis_gcc.h **** #if __has_builtin(__builtin_arm_get_fpscr)
  2491. 771:Drivers/CMSIS/Include/cmsis_gcc.h **** // Re-enable using built-in when GCC has been fixed
  2492. 772:Drivers/CMSIS/Include/cmsis_gcc.h **** // || (__GNUC__ > 7) || (__GNUC__ == 7 && __GNUC_MINOR__ >= 2)
  2493. 773:Drivers/CMSIS/Include/cmsis_gcc.h **** /* see https://gcc.gnu.org/ml/gcc-patches/2017-04/msg00443.html */
  2494. 774:Drivers/CMSIS/Include/cmsis_gcc.h **** return __builtin_arm_get_fpscr();
  2495. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 44
  2496. 775:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2497. 776:Drivers/CMSIS/Include/cmsis_gcc.h **** uint32_t result;
  2498. 777:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2499. 778:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("VMRS %0, fpscr" : "=r" (result) );
  2500. 779:Drivers/CMSIS/Include/cmsis_gcc.h **** return(result);
  2501. 780:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2502. 781:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2503. 782:Drivers/CMSIS/Include/cmsis_gcc.h **** return(0U);
  2504. 783:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2505. 784:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2506. 785:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2507. 786:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2508. 787:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2509. 788:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Set FPSCR
  2510. 789:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Assigns the given value to the Floating Point Status/Control register.
  2511. 790:Drivers/CMSIS/Include/cmsis_gcc.h **** \param [in] fpscr Floating Point Status/Control value to set
  2512. 791:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2513. 792:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __set_FPSCR(uint32_t fpscr)
  2514. 793:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2515. 794:Drivers/CMSIS/Include/cmsis_gcc.h **** #if ((defined (__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \
  2516. 795:Drivers/CMSIS/Include/cmsis_gcc.h **** (defined (__FPU_USED ) && (__FPU_USED == 1U)) )
  2517. 796:Drivers/CMSIS/Include/cmsis_gcc.h **** #if __has_builtin(__builtin_arm_set_fpscr)
  2518. 797:Drivers/CMSIS/Include/cmsis_gcc.h **** // Re-enable using built-in when GCC has been fixed
  2519. 798:Drivers/CMSIS/Include/cmsis_gcc.h **** // || (__GNUC__ > 7) || (__GNUC__ == 7 && __GNUC_MINOR__ >= 2)
  2520. 799:Drivers/CMSIS/Include/cmsis_gcc.h **** /* see https://gcc.gnu.org/ml/gcc-patches/2017-04/msg00443.html */
  2521. 800:Drivers/CMSIS/Include/cmsis_gcc.h **** __builtin_arm_set_fpscr(fpscr);
  2522. 801:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2523. 802:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) : "vfpcc", "memory");
  2524. 803:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2525. 804:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2526. 805:Drivers/CMSIS/Include/cmsis_gcc.h **** (void)fpscr;
  2527. 806:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2528. 807:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2529. 808:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2530. 809:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2531. 810:Drivers/CMSIS/Include/cmsis_gcc.h **** /*@} end of CMSIS_Core_RegAccFunctions */
  2532. 811:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2533. 812:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2534. 813:Drivers/CMSIS/Include/cmsis_gcc.h **** /* ########################## Core Instruction Access ######################### */
  2535. 814:Drivers/CMSIS/Include/cmsis_gcc.h **** /** \defgroup CMSIS_Core_InstructionInterface CMSIS Core Instruction Interface
  2536. 815:Drivers/CMSIS/Include/cmsis_gcc.h **** Access to dedicated instructions
  2537. 816:Drivers/CMSIS/Include/cmsis_gcc.h **** @{
  2538. 817:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2539. 818:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2540. 819:Drivers/CMSIS/Include/cmsis_gcc.h **** /* Define macros for porting to both thumb1 and thumb2.
  2541. 820:Drivers/CMSIS/Include/cmsis_gcc.h **** * For thumb1, use low register (r0-r7), specified by constraint "l"
  2542. 821:Drivers/CMSIS/Include/cmsis_gcc.h **** * Otherwise, use general registers, specified by constraint "r" */
  2543. 822:Drivers/CMSIS/Include/cmsis_gcc.h **** #if defined (__thumb__) && !defined (__thumb2__)
  2544. 823:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_OUT_REG(r) "=l" (r)
  2545. 824:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_RW_REG(r) "+l" (r)
  2546. 825:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_USE_REG(r) "l" (r)
  2547. 826:Drivers/CMSIS/Include/cmsis_gcc.h **** #else
  2548. 827:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_OUT_REG(r) "=r" (r)
  2549. 828:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_RW_REG(r) "+r" (r)
  2550. 829:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __CMSIS_GCC_USE_REG(r) "r" (r)
  2551. 830:Drivers/CMSIS/Include/cmsis_gcc.h **** #endif
  2552. 831:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2553. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 45
  2554. 832:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2555. 833:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief No Operation
  2556. 834:Drivers/CMSIS/Include/cmsis_gcc.h **** \details No Operation does nothing. This instruction can be used for code alignment purposes.
  2557. 835:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2558. 836:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __NOP() __ASM volatile ("nop")
  2559. 837:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2560. 838:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2561. 839:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Wait For Interrupt
  2562. 840:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Wait For Interrupt is a hint instruction that suspends execution until one of a number o
  2563. 841:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2564. 842:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __WFI() __ASM volatile ("wfi")
  2565. 843:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2566. 844:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2567. 845:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2568. 846:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Wait For Event
  2569. 847:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Wait For Event is a hint instruction that permits the processor to enter
  2570. 848:Drivers/CMSIS/Include/cmsis_gcc.h **** a low-power state until one of a number of events occurs.
  2571. 849:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2572. 850:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __WFE() __ASM volatile ("wfe")
  2573. 851:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2574. 852:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2575. 853:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2576. 854:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Send Event
  2577. 855:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Send Event is a hint instruction. It causes an event to be signaled to the CPU.
  2578. 856:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2579. 857:Drivers/CMSIS/Include/cmsis_gcc.h **** #define __SEV() __ASM volatile ("sev")
  2580. 858:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2581. 859:Drivers/CMSIS/Include/cmsis_gcc.h ****
  2582. 860:Drivers/CMSIS/Include/cmsis_gcc.h **** /**
  2583. 861:Drivers/CMSIS/Include/cmsis_gcc.h **** \brief Instruction Synchronization Barrier
  2584. 862:Drivers/CMSIS/Include/cmsis_gcc.h **** \details Instruction Synchronization Barrier flushes the pipeline in the processor,
  2585. 863:Drivers/CMSIS/Include/cmsis_gcc.h **** so that all instructions following the ISB are fetched from cache or memory,
  2586. 864:Drivers/CMSIS/Include/cmsis_gcc.h **** after the instruction has been completed.
  2587. 865:Drivers/CMSIS/Include/cmsis_gcc.h **** */
  2588. 866:Drivers/CMSIS/Include/cmsis_gcc.h **** __STATIC_FORCEINLINE void __ISB(void)
  2589. 867:Drivers/CMSIS/Include/cmsis_gcc.h **** {
  2590. 868:Drivers/CMSIS/Include/cmsis_gcc.h **** __ASM volatile ("isb 0xF":::"memory");
  2591. 1077 .loc 2 868 3
  2592. 1078 .syntax unified
  2593. 1079 @ 868 "Drivers/CMSIS/Include/cmsis_gcc.h" 1
  2594. 1080 0036 BFF36F8F isb 0xF
  2595. 1081 @ 0 "" 2
  2596. 869:Drivers/CMSIS/Include/cmsis_gcc.h **** }
  2597. 1082 .loc 2 869 1
  2598. 1083 .thumb
  2599. 1084 .syntax unified
  2600. 1085 003a 00BF nop
  2601. 1086 .LBE5:
  2602. 1087 .LBE4:
  2603. 622:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  2604. 623:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Barrier to ensure programming is performed in 2 steps, in right order
  2605. 624:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** (independently of compiler optimization behavior) */
  2606. 625:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __ISB();
  2607. 626:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  2608. 627:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Program second word */
  2609. 628:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *(__IO uint32_t*)(Address+4) = (uint32_t)(Data >> 32);
  2610. 1088 .loc 1 628 50
  2611. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 46
  2612. 1089 003c D7E90001 ldrd r0, [r7]
  2613. 1090 0040 4FF00002 mov r2, #0
  2614. 1091 0044 4FF00003 mov r3, #0
  2615. 1092 0048 0A00 movs r2, r1
  2616. 1093 004a 0023 movs r3, #0
  2617. 1094 .loc 1 628 28
  2618. 1095 004c F968 ldr r1, [r7, #12]
  2619. 1096 004e 0431 adds r1, r1, #4
  2620. 1097 .loc 1 628 34
  2621. 1098 0050 1346 mov r3, r2
  2622. 1099 .loc 1 628 32
  2623. 1100 0052 0B60 str r3, [r1]
  2624. 629:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  2625. 1101 .loc 1 629 1
  2626. 1102 0054 00BF nop
  2627. 1103 0056 1437 adds r7, r7, #20
  2628. 1104 .LCFI59:
  2629. 1105 .cfi_def_cfa_offset 4
  2630. 1106 0058 BD46 mov sp, r7
  2631. 1107 .LCFI60:
  2632. 1108 .cfi_def_cfa_register 13
  2633. 1109 @ sp needed
  2634. 1110 005a 5DF8047B ldr r7, [sp], #4
  2635. 1111 .LCFI61:
  2636. 1112 .cfi_restore 7
  2637. 1113 .cfi_def_cfa_offset 0
  2638. 1114 005e 7047 bx lr
  2639. 1115 .L74:
  2640. 1116 .align 2
  2641. 1117 .L73:
  2642. 1118 0060 003C0240 .word 1073888256
  2643. 1119 .cfi_endproc
  2644. 1120 .LFE247:
  2645. 1122 .section .text.FLASH_Program_Word,"ax",%progbits
  2646. 1123 .align 1
  2647. 1124 .syntax unified
  2648. 1125 .thumb
  2649. 1126 .thumb_func
  2650. 1128 FLASH_Program_Word:
  2651. 1129 .LFB248:
  2652. 630:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  2653. 631:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  2654. 632:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  2655. 633:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Program word (32-bit) at a specified address.
  2656. 634:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @note This function must be used when the device voltage range is from
  2657. 635:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * 2.7V to 3.6V.
  2658. 636:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  2659. 637:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @note If an erase and a program operations are requested simultaneously,
  2660. 638:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * the erase operation is performed before the program one.
  2661. 639:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  2662. 640:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Address specifies the address to be programmed.
  2663. 641:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Data specifies the data to be programmed.
  2664. 642:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval None
  2665. 643:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  2666. 644:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** static void FLASH_Program_Word(uint32_t Address, uint32_t Data)
  2667. 645:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  2668. 1130 .loc 1 645 1
  2669. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 47
  2670. 1131 .cfi_startproc
  2671. 1132 @ args = 0, pretend = 0, frame = 8
  2672. 1133 @ frame_needed = 1, uses_anonymous_args = 0
  2673. 1134 @ link register save eliminated.
  2674. 1135 0000 80B4 push {r7}
  2675. 1136 .LCFI62:
  2676. 1137 .cfi_def_cfa_offset 4
  2677. 1138 .cfi_offset 7, -4
  2678. 1139 0002 83B0 sub sp, sp, #12
  2679. 1140 .LCFI63:
  2680. 1141 .cfi_def_cfa_offset 16
  2681. 1142 0004 00AF add r7, sp, #0
  2682. 1143 .LCFI64:
  2683. 1144 .cfi_def_cfa_register 7
  2684. 1145 0006 7860 str r0, [r7, #4]
  2685. 1146 0008 3960 str r1, [r7]
  2686. 646:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Check the parameters */
  2687. 647:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** assert_param(IS_FLASH_ADDRESS(Address));
  2688. 648:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  2689. 649:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* If the previous operation is completed, proceed to program the new data */
  2690. 650:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE);
  2691. 1147 .loc 1 650 3
  2692. 1148 000a 0D4B ldr r3, .L76
  2693. 1149 000c 1B69 ldr r3, [r3, #16]
  2694. 1150 000e 0C4A ldr r2, .L76
  2695. 1151 0010 23F44073 bic r3, r3, #768
  2696. 1152 0014 1361 str r3, [r2, #16]
  2697. 651:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->CR |= FLASH_PSIZE_WORD;
  2698. 1153 .loc 1 651 13
  2699. 1154 0016 0A4B ldr r3, .L76
  2700. 1155 0018 1B69 ldr r3, [r3, #16]
  2701. 1156 001a 094A ldr r2, .L76
  2702. 1157 001c 43F40073 orr r3, r3, #512
  2703. 1158 0020 1361 str r3, [r2, #16]
  2704. 652:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->CR |= FLASH_CR_PG;
  2705. 1159 .loc 1 652 13
  2706. 1160 0022 074B ldr r3, .L76
  2707. 1161 0024 1B69 ldr r3, [r3, #16]
  2708. 1162 0026 064A ldr r2, .L76
  2709. 1163 0028 43F00103 orr r3, r3, #1
  2710. 1164 002c 1361 str r3, [r2, #16]
  2711. 653:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  2712. 654:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *(__IO uint32_t*)Address = Data;
  2713. 1165 .loc 1 654 4
  2714. 1166 002e 7B68 ldr r3, [r7, #4]
  2715. 1167 .loc 1 654 28
  2716. 1168 0030 3A68 ldr r2, [r7]
  2717. 1169 0032 1A60 str r2, [r3]
  2718. 655:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  2719. 1170 .loc 1 655 1
  2720. 1171 0034 00BF nop
  2721. 1172 0036 0C37 adds r7, r7, #12
  2722. 1173 .LCFI65:
  2723. 1174 .cfi_def_cfa_offset 4
  2724. 1175 0038 BD46 mov sp, r7
  2725. 1176 .LCFI66:
  2726. 1177 .cfi_def_cfa_register 13
  2727. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 48
  2728. 1178 @ sp needed
  2729. 1179 003a 5DF8047B ldr r7, [sp], #4
  2730. 1180 .LCFI67:
  2731. 1181 .cfi_restore 7
  2732. 1182 .cfi_def_cfa_offset 0
  2733. 1183 003e 7047 bx lr
  2734. 1184 .L77:
  2735. 1185 .align 2
  2736. 1186 .L76:
  2737. 1187 0040 003C0240 .word 1073888256
  2738. 1188 .cfi_endproc
  2739. 1189 .LFE248:
  2740. 1191 .section .text.FLASH_Program_HalfWord,"ax",%progbits
  2741. 1192 .align 1
  2742. 1193 .syntax unified
  2743. 1194 .thumb
  2744. 1195 .thumb_func
  2745. 1197 FLASH_Program_HalfWord:
  2746. 1198 .LFB249:
  2747. 656:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  2748. 657:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  2749. 658:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Program a half-word (16-bit) at a specified address.
  2750. 659:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @note This function must be used when the device voltage range is from
  2751. 660:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * 2.1V to 3.6V.
  2752. 661:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  2753. 662:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @note If an erase and a program operations are requested simultaneously,
  2754. 663:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * the erase operation is performed before the program one.
  2755. 664:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  2756. 665:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Address specifies the address to be programmed.
  2757. 666:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Data specifies the data to be programmed.
  2758. 667:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval None
  2759. 668:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  2760. 669:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** static void FLASH_Program_HalfWord(uint32_t Address, uint16_t Data)
  2761. 670:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  2762. 1199 .loc 1 670 1
  2763. 1200 .cfi_startproc
  2764. 1201 @ args = 0, pretend = 0, frame = 8
  2765. 1202 @ frame_needed = 1, uses_anonymous_args = 0
  2766. 1203 @ link register save eliminated.
  2767. 1204 0000 80B4 push {r7}
  2768. 1205 .LCFI68:
  2769. 1206 .cfi_def_cfa_offset 4
  2770. 1207 .cfi_offset 7, -4
  2771. 1208 0002 83B0 sub sp, sp, #12
  2772. 1209 .LCFI69:
  2773. 1210 .cfi_def_cfa_offset 16
  2774. 1211 0004 00AF add r7, sp, #0
  2775. 1212 .LCFI70:
  2776. 1213 .cfi_def_cfa_register 7
  2777. 1214 0006 7860 str r0, [r7, #4]
  2778. 1215 0008 0B46 mov r3, r1
  2779. 1216 000a 7B80 strh r3, [r7, #2] @ movhi
  2780. 671:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Check the parameters */
  2781. 672:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** assert_param(IS_FLASH_ADDRESS(Address));
  2782. 673:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  2783. 674:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* If the previous operation is completed, proceed to program the new data */
  2784. 675:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE);
  2785. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 49
  2786. 1217 .loc 1 675 3
  2787. 1218 000c 0D4B ldr r3, .L79
  2788. 1219 000e 1B69 ldr r3, [r3, #16]
  2789. 1220 0010 0C4A ldr r2, .L79
  2790. 1221 0012 23F44073 bic r3, r3, #768
  2791. 1222 0016 1361 str r3, [r2, #16]
  2792. 676:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->CR |= FLASH_PSIZE_HALF_WORD;
  2793. 1223 .loc 1 676 13
  2794. 1224 0018 0A4B ldr r3, .L79
  2795. 1225 001a 1B69 ldr r3, [r3, #16]
  2796. 1226 001c 094A ldr r2, .L79
  2797. 1227 001e 43F48073 orr r3, r3, #256
  2798. 1228 0022 1361 str r3, [r2, #16]
  2799. 677:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->CR |= FLASH_CR_PG;
  2800. 1229 .loc 1 677 13
  2801. 1230 0024 074B ldr r3, .L79
  2802. 1231 0026 1B69 ldr r3, [r3, #16]
  2803. 1232 0028 064A ldr r2, .L79
  2804. 1233 002a 43F00103 orr r3, r3, #1
  2805. 1234 002e 1361 str r3, [r2, #16]
  2806. 678:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  2807. 679:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *(__IO uint16_t*)Address = Data;
  2808. 1235 .loc 1 679 4
  2809. 1236 0030 7B68 ldr r3, [r7, #4]
  2810. 1237 .loc 1 679 28
  2811. 1238 0032 7A88 ldrh r2, [r7, #2] @ movhi
  2812. 1239 0034 1A80 strh r2, [r3] @ movhi
  2813. 680:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  2814. 1240 .loc 1 680 1
  2815. 1241 0036 00BF nop
  2816. 1242 0038 0C37 adds r7, r7, #12
  2817. 1243 .LCFI71:
  2818. 1244 .cfi_def_cfa_offset 4
  2819. 1245 003a BD46 mov sp, r7
  2820. 1246 .LCFI72:
  2821. 1247 .cfi_def_cfa_register 13
  2822. 1248 @ sp needed
  2823. 1249 003c 5DF8047B ldr r7, [sp], #4
  2824. 1250 .LCFI73:
  2825. 1251 .cfi_restore 7
  2826. 1252 .cfi_def_cfa_offset 0
  2827. 1253 0040 7047 bx lr
  2828. 1254 .L80:
  2829. 1255 0042 00BF .align 2
  2830. 1256 .L79:
  2831. 1257 0044 003C0240 .word 1073888256
  2832. 1258 .cfi_endproc
  2833. 1259 .LFE249:
  2834. 1261 .section .text.FLASH_Program_Byte,"ax",%progbits
  2835. 1262 .align 1
  2836. 1263 .syntax unified
  2837. 1264 .thumb
  2838. 1265 .thumb_func
  2839. 1267 FLASH_Program_Byte:
  2840. 1268 .LFB250:
  2841. 681:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  2842. 682:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  2843. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 50
  2844. 683:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Program byte (8-bit) at a specified address.
  2845. 684:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @note This function must be used when the device voltage range is from
  2846. 685:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * 1.8V to 3.6V.
  2847. 686:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  2848. 687:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @note If an erase and a program operations are requested simultaneously,
  2849. 688:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * the erase operation is performed before the program one.
  2850. 689:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *
  2851. 690:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Address specifies the address to be programmed.
  2852. 691:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @param Data specifies the data to be programmed.
  2853. 692:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval None
  2854. 693:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  2855. 694:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** static void FLASH_Program_Byte(uint32_t Address, uint8_t Data)
  2856. 695:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  2857. 1269 .loc 1 695 1
  2858. 1270 .cfi_startproc
  2859. 1271 @ args = 0, pretend = 0, frame = 8
  2860. 1272 @ frame_needed = 1, uses_anonymous_args = 0
  2861. 1273 @ link register save eliminated.
  2862. 1274 0000 80B4 push {r7}
  2863. 1275 .LCFI74:
  2864. 1276 .cfi_def_cfa_offset 4
  2865. 1277 .cfi_offset 7, -4
  2866. 1278 0002 83B0 sub sp, sp, #12
  2867. 1279 .LCFI75:
  2868. 1280 .cfi_def_cfa_offset 16
  2869. 1281 0004 00AF add r7, sp, #0
  2870. 1282 .LCFI76:
  2871. 1283 .cfi_def_cfa_register 7
  2872. 1284 0006 7860 str r0, [r7, #4]
  2873. 1285 0008 0B46 mov r3, r1
  2874. 1286 000a FB70 strb r3, [r7, #3]
  2875. 696:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Check the parameters */
  2876. 697:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** assert_param(IS_FLASH_ADDRESS(Address));
  2877. 698:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  2878. 699:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* If the previous operation is completed, proceed to program the new data */
  2879. 700:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** CLEAR_BIT(FLASH->CR, FLASH_CR_PSIZE);
  2880. 1287 .loc 1 700 3
  2881. 1288 000c 0C4B ldr r3, .L82
  2882. 1289 000e 1B69 ldr r3, [r3, #16]
  2883. 1290 0010 0B4A ldr r2, .L82
  2884. 1291 0012 23F44073 bic r3, r3, #768
  2885. 1292 0016 1361 str r3, [r2, #16]
  2886. 701:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->CR |= FLASH_PSIZE_BYTE;
  2887. 1293 .loc 1 701 13
  2888. 1294 0018 094B ldr r3, .L82
  2889. 1295 001a 094A ldr r2, .L82
  2890. 1296 001c 1B69 ldr r3, [r3, #16]
  2891. 1297 001e 1361 str r3, [r2, #16]
  2892. 702:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** FLASH->CR |= FLASH_CR_PG;
  2893. 1298 .loc 1 702 13
  2894. 1299 0020 074B ldr r3, .L82
  2895. 1300 0022 1B69 ldr r3, [r3, #16]
  2896. 1301 0024 064A ldr r2, .L82
  2897. 1302 0026 43F00103 orr r3, r3, #1
  2898. 1303 002a 1361 str r3, [r2, #16]
  2899. 703:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  2900. 704:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** *(__IO uint8_t*)Address = Data;
  2901. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 51
  2902. 1304 .loc 1 704 4
  2903. 1305 002c 7B68 ldr r3, [r7, #4]
  2904. 1306 .loc 1 704 27
  2905. 1307 002e FA78 ldrb r2, [r7, #3]
  2906. 1308 0030 1A70 strb r2, [r3]
  2907. 705:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  2908. 1309 .loc 1 705 1
  2909. 1310 0032 00BF nop
  2910. 1311 0034 0C37 adds r7, r7, #12
  2911. 1312 .LCFI77:
  2912. 1313 .cfi_def_cfa_offset 4
  2913. 1314 0036 BD46 mov sp, r7
  2914. 1315 .LCFI78:
  2915. 1316 .cfi_def_cfa_register 13
  2916. 1317 @ sp needed
  2917. 1318 0038 5DF8047B ldr r7, [sp], #4
  2918. 1319 .LCFI79:
  2919. 1320 .cfi_restore 7
  2920. 1321 .cfi_def_cfa_offset 0
  2921. 1322 003c 7047 bx lr
  2922. 1323 .L83:
  2923. 1324 003e 00BF .align 2
  2924. 1325 .L82:
  2925. 1326 0040 003C0240 .word 1073888256
  2926. 1327 .cfi_endproc
  2927. 1328 .LFE250:
  2928. 1330 .section .text.FLASH_SetErrorCode,"ax",%progbits
  2929. 1331 .align 1
  2930. 1332 .syntax unified
  2931. 1333 .thumb
  2932. 1334 .thumb_func
  2933. 1336 FLASH_SetErrorCode:
  2934. 1337 .LFB251:
  2935. 706:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  2936. 707:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /**
  2937. 708:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @brief Set the specific FLASH error flag.
  2938. 709:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** * @retval None
  2939. 710:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** */
  2940. 711:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** static void FLASH_SetErrorCode(void)
  2941. 712:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  2942. 1338 .loc 1 712 1
  2943. 1339 .cfi_startproc
  2944. 1340 @ args = 0, pretend = 0, frame = 0
  2945. 1341 @ frame_needed = 1, uses_anonymous_args = 0
  2946. 1342 @ link register save eliminated.
  2947. 1343 0000 80B4 push {r7}
  2948. 1344 .LCFI80:
  2949. 1345 .cfi_def_cfa_offset 4
  2950. 1346 .cfi_offset 7, -4
  2951. 1347 0002 00AF add r7, sp, #0
  2952. 1348 .LCFI81:
  2953. 1349 .cfi_def_cfa_register 7
  2954. 713:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_WRPERR) != RESET)
  2955. 1350 .loc 1 713 6
  2956. 1351 0004 274B ldr r3, .L91
  2957. 1352 0006 DB68 ldr r3, [r3, #12]
  2958. 1353 0008 03F01003 and r3, r3, #16
  2959. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 52
  2960. 1354 .loc 1 713 5
  2961. 1355 000c 002B cmp r3, #0
  2962. 1356 000e 08D0 beq .L85
  2963. 714:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  2964. 715:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.ErrorCode |= HAL_FLASH_ERROR_WRP;
  2965. 1357 .loc 1 715 21
  2966. 1358 0010 254B ldr r3, .L91+4
  2967. 1359 0012 DB69 ldr r3, [r3, #28]
  2968. 1360 0014 43F01003 orr r3, r3, #16
  2969. 1361 0018 234A ldr r2, .L91+4
  2970. 1362 001a D361 str r3, [r2, #28]
  2971. 716:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  2972. 717:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Clear FLASH write protection error pending bit */
  2973. 718:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_WRPERR);
  2974. 1363 .loc 1 718 4
  2975. 1364 001c 214B ldr r3, .L91
  2976. 1365 001e 1022 movs r2, #16
  2977. 1366 0020 DA60 str r2, [r3, #12]
  2978. 1367 .L85:
  2979. 719:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  2980. 720:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  2981. 721:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGAERR) != RESET)
  2982. 1368 .loc 1 721 6
  2983. 1369 0022 204B ldr r3, .L91
  2984. 1370 0024 DB68 ldr r3, [r3, #12]
  2985. 1371 0026 03F02003 and r3, r3, #32
  2986. 1372 .loc 1 721 5
  2987. 1373 002a 002B cmp r3, #0
  2988. 1374 002c 08D0 beq .L86
  2989. 722:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  2990. 723:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.ErrorCode |= HAL_FLASH_ERROR_PGA;
  2991. 1375 .loc 1 723 21
  2992. 1376 002e 1E4B ldr r3, .L91+4
  2993. 1377 0030 DB69 ldr r3, [r3, #28]
  2994. 1378 0032 43F00803 orr r3, r3, #8
  2995. 1379 0036 1C4A ldr r2, .L91+4
  2996. 1380 0038 D361 str r3, [r2, #28]
  2997. 724:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  2998. 725:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Clear FLASH Programming alignment error pending bit */
  2999. 726:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_PGAERR);
  3000. 1381 .loc 1 726 4
  3001. 1382 003a 1A4B ldr r3, .L91
  3002. 1383 003c 2022 movs r2, #32
  3003. 1384 003e DA60 str r2, [r3, #12]
  3004. 1385 .L86:
  3005. 727:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  3006. 728:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  3007. 729:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGPERR) != RESET)
  3008. 1386 .loc 1 729 6
  3009. 1387 0040 184B ldr r3, .L91
  3010. 1388 0042 DB68 ldr r3, [r3, #12]
  3011. 1389 0044 03F04003 and r3, r3, #64
  3012. 1390 .loc 1 729 5
  3013. 1391 0048 002B cmp r3, #0
  3014. 1392 004a 08D0 beq .L87
  3015. 730:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  3016. 731:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.ErrorCode |= HAL_FLASH_ERROR_PGP;
  3017. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 53
  3018. 1393 .loc 1 731 22
  3019. 1394 004c 164B ldr r3, .L91+4
  3020. 1395 004e DB69 ldr r3, [r3, #28]
  3021. 1396 0050 43F00403 orr r3, r3, #4
  3022. 1397 0054 144A ldr r2, .L91+4
  3023. 1398 0056 D361 str r3, [r2, #28]
  3024. 732:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  3025. 733:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Clear FLASH Programming parallelism error pending bit */
  3026. 734:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_PGPERR);
  3027. 1399 .loc 1 734 5
  3028. 1400 0058 124B ldr r3, .L91
  3029. 1401 005a 4022 movs r2, #64
  3030. 1402 005c DA60 str r2, [r3, #12]
  3031. 1403 .L87:
  3032. 735:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  3033. 736:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  3034. 737:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_PGSERR) != RESET)
  3035. 1404 .loc 1 737 6
  3036. 1405 005e 114B ldr r3, .L91
  3037. 1406 0060 DB68 ldr r3, [r3, #12]
  3038. 1407 0062 03F08003 and r3, r3, #128
  3039. 1408 .loc 1 737 5
  3040. 1409 0066 002B cmp r3, #0
  3041. 1410 0068 08D0 beq .L88
  3042. 738:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  3043. 739:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.ErrorCode |= HAL_FLASH_ERROR_PGS;
  3044. 1411 .loc 1 739 22
  3045. 1412 006a 0F4B ldr r3, .L91+4
  3046. 1413 006c DB69 ldr r3, [r3, #28]
  3047. 1414 006e 43F00203 orr r3, r3, #2
  3048. 1415 0072 0D4A ldr r2, .L91+4
  3049. 1416 0074 D361 str r3, [r2, #28]
  3050. 740:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  3051. 741:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Clear FLASH Programming sequence error pending bit */
  3052. 742:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_PGSERR);
  3053. 1417 .loc 1 742 5
  3054. 1418 0076 0B4B ldr r3, .L91
  3055. 1419 0078 8022 movs r2, #128
  3056. 1420 007a DA60 str r2, [r3, #12]
  3057. 1421 .L88:
  3058. 743:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  3059. 744:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** #if defined(FLASH_SR_RDERR)
  3060. 745:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_RDERR) != RESET)
  3061. 746:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  3062. 747:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.ErrorCode |= HAL_FLASH_ERROR_RD;
  3063. 748:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  3064. 749:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Clear FLASH Proprietary readout protection error pending bit */
  3065. 750:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_RDERR);
  3066. 751:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  3067. 752:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** #endif /* FLASH_SR_RDERR */
  3068. 753:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** if(__HAL_FLASH_GET_FLAG(FLASH_FLAG_OPERR) != RESET)
  3069. 1422 .loc 1 753 6
  3070. 1423 007c 094B ldr r3, .L91
  3071. 1424 007e DB68 ldr r3, [r3, #12]
  3072. 1425 0080 03F00203 and r3, r3, #2
  3073. 1426 .loc 1 753 5
  3074. 1427 0084 002B cmp r3, #0
  3075. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 54
  3076. 1428 0086 08D0 beq .L90
  3077. 754:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** {
  3078. 755:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** pFlash.ErrorCode |= HAL_FLASH_ERROR_OPERATION;
  3079. 1429 .loc 1 755 22
  3080. 1430 0088 074B ldr r3, .L91+4
  3081. 1431 008a DB69 ldr r3, [r3, #28]
  3082. 1432 008c 43F02003 orr r3, r3, #32
  3083. 1433 0090 054A ldr r2, .L91+4
  3084. 1434 0092 D361 str r3, [r2, #28]
  3085. 756:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c ****
  3086. 757:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** /* Clear FLASH Operation error pending bit */
  3087. 758:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_OPERR);
  3088. 1435 .loc 1 758 5
  3089. 1436 0094 034B ldr r3, .L91
  3090. 1437 0096 0222 movs r2, #2
  3091. 1438 0098 DA60 str r2, [r3, #12]
  3092. 1439 .L90:
  3093. 759:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  3094. 760:Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c **** }
  3095. 1440 .loc 1 760 1
  3096. 1441 009a 00BF nop
  3097. 1442 009c BD46 mov sp, r7
  3098. 1443 .LCFI82:
  3099. 1444 .cfi_def_cfa_register 13
  3100. 1445 @ sp needed
  3101. 1446 009e 5DF8047B ldr r7, [sp], #4
  3102. 1447 .LCFI83:
  3103. 1448 .cfi_restore 7
  3104. 1449 .cfi_def_cfa_offset 0
  3105. 1450 00a2 7047 bx lr
  3106. 1451 .L92:
  3107. 1452 .align 2
  3108. 1453 .L91:
  3109. 1454 00a4 003C0240 .word 1073888256
  3110. 1455 00a8 00000000 .word pFlash
  3111. 1456 .cfi_endproc
  3112. 1457 .LFE251:
  3113. 1459 .text
  3114. 1460 .Letext0:
  3115. 1461 .file 3 "d:\\arm-gcc\\arm-none-eabi\\include\\machine\\_default_types.h"
  3116. 1462 .file 4 "d:\\arm-gcc\\arm-none-eabi\\include\\sys\\_stdint.h"
  3117. 1463 .file 5 "Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f405xx.h"
  3118. 1464 .file 6 "Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h"
  3119. 1465 .file 7 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h"
  3120. 1466 .file 8 "Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h"
  3121. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 55
  3122. DEFINED SYMBOLS
  3123. *ABS*:00000000 stm32f4xx_hal_flash.c
  3124. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:24 .bss.pFlash:00000000 pFlash
  3125. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:21 .bss.pFlash:00000000 $d
  3126. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:27 .text.HAL_FLASH_Program:00000000 $t
  3127. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:33 .text.HAL_FLASH_Program:00000000 HAL_FLASH_Program
  3128. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:918 .text.FLASH_WaitForLastOperation:00000000 FLASH_WaitForLastOperation
  3129. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:1267 .text.FLASH_Program_Byte:00000000 FLASH_Program_Byte
  3130. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:1197 .text.FLASH_Program_HalfWord:00000000 FLASH_Program_HalfWord
  3131. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:1128 .text.FLASH_Program_Word:00000000 FLASH_Program_Word
  3132. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:1031 .text.FLASH_Program_DoubleWord:00000000 FLASH_Program_DoubleWord
  3133. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:149 .text.HAL_FLASH_Program:000000a0 $d
  3134. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:155 .text.HAL_FLASH_Program_IT:00000000 $t
  3135. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:161 .text.HAL_FLASH_Program_IT:00000000 HAL_FLASH_Program_IT
  3136. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:271 .text.HAL_FLASH_Program_IT:00000094 $d
  3137. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:277 .text.HAL_FLASH_IRQHandler:00000000 $t
  3138. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:283 .text.HAL_FLASH_IRQHandler:00000000 HAL_FLASH_IRQHandler
  3139. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:1336 .text.FLASH_SetErrorCode:00000000 FLASH_SetErrorCode
  3140. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:555 .text.HAL_FLASH_OperationErrorCallback:00000000 HAL_FLASH_OperationErrorCallback
  3141. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:513 .text.HAL_FLASH_EndOfOperationCallback:00000000 HAL_FLASH_EndOfOperationCallback
  3142. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:501 .text.HAL_FLASH_IRQHandler:00000138 $d
  3143. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:507 .text.HAL_FLASH_EndOfOperationCallback:00000000 $t
  3144. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:549 .text.HAL_FLASH_OperationErrorCallback:00000000 $t
  3145. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:591 .text.HAL_FLASH_Unlock:00000000 $t
  3146. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:597 .text.HAL_FLASH_Unlock:00000000 HAL_FLASH_Unlock
  3147. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:660 .text.HAL_FLASH_Unlock:00000038 $d
  3148. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:667 .text.HAL_FLASH_Lock:00000000 $t
  3149. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:673 .text.HAL_FLASH_Lock:00000000 HAL_FLASH_Lock
  3150. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:709 .text.HAL_FLASH_Lock:0000001c $d
  3151. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:714 .text.HAL_FLASH_OB_Unlock:00000000 $t
  3152. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:720 .text.HAL_FLASH_OB_Unlock:00000000 HAL_FLASH_OB_Unlock
  3153. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:773 .text.HAL_FLASH_OB_Unlock:0000002c $d
  3154. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:780 .text.HAL_FLASH_OB_Lock:00000000 $t
  3155. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:786 .text.HAL_FLASH_OB_Lock:00000000 HAL_FLASH_OB_Lock
  3156. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:822 .text.HAL_FLASH_OB_Lock:0000001c $d
  3157. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:827 .text.HAL_FLASH_OB_Launch:00000000 $t
  3158. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:833 .text.HAL_FLASH_OB_Launch:00000000 HAL_FLASH_OB_Launch
  3159. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:865 .text.HAL_FLASH_OB_Launch:00000024 $d
  3160. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:870 .text.HAL_FLASH_GetError:00000000 $t
  3161. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:876 .text.HAL_FLASH_GetError:00000000 HAL_FLASH_GetError
  3162. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:907 .text.HAL_FLASH_GetError:00000014 $d
  3163. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:912 .text.FLASH_WaitForLastOperation:00000000 $t
  3164. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:1020 .text.FLASH_WaitForLastOperation:00000078 $d
  3165. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:1026 .text.FLASH_Program_DoubleWord:00000000 $t
  3166. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:1118 .text.FLASH_Program_DoubleWord:00000060 $d
  3167. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:1123 .text.FLASH_Program_Word:00000000 $t
  3168. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:1187 .text.FLASH_Program_Word:00000040 $d
  3169. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:1192 .text.FLASH_Program_HalfWord:00000000 $t
  3170. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:1257 .text.FLASH_Program_HalfWord:00000044 $d
  3171. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:1262 .text.FLASH_Program_Byte:00000000 $t
  3172. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:1326 .text.FLASH_Program_Byte:00000040 $d
  3173. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:1331 .text.FLASH_SetErrorCode:00000000 $t
  3174. C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s:1454 .text.FLASH_SetErrorCode:000000a4 $d
  3175. UNDEFINED SYMBOLS
  3176. FLASH_Erase_Sector
  3177. FLASH_FlushCaches
  3178. ARM GAS C:\Users\10728\AppData\Local\Temp\cc8cvT6F.s page 56
  3179. HAL_GetTick