资源描述:
《STM32F10 xxx Flash memory microcontrollers.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、PM0075ProgrammingmanualSTM32F10xxxFlashmemorymicrocontrollersIntroductionThisprogrammingmanualdescribeshowtoprogramtheFlashmemoryofSTM32F101xx,STM32F102xx,STM32F103xx,STM32F105xxandSTM32F107xxmicrocontrollers.Forconvenience,thesewillbereferredtoasSTM32F10xxx
2、intherestofthisdocumentunlessotherwisespecified.TheSTM32F10xxxembeddedFlashmemorycanbeprogrammedusingin-circuitprogrammingorin-applicationprogramming.Thein-circuitprogramming(ICP)methodisusedtoupdatetheentirecontentsoftheFlashmemory,usingtheJTAG,SWDprotocolo
3、rthebootloadertoloadtheuserapplicationintothemicrocontroller.ICPoffersquickandefficientdesigniterationsandeliminatesunnecessarypackagehandlingorsocketingofdevices.IncontrasttotheICPmethod,in-applicationprogramming(IAP)canuseanycommunicationinterfacesupported
4、bythemicrocontroller(I/Os,USB,CAN,UART,I2C,SPI,etc.)todownloadprogrammingdataintomemory.IAPallowstheusertore-programtheFlashmemorywhiletheapplicationisrunning.Nevertheless,partoftheapplicationhastohavebeenpreviouslyprogrammedintheFlashmemoryusingICP.TheFlash
5、interfaceimplementsinstructionaccessanddataaccessbasedontheAHBprotocol.ItimplementsaprefetchbufferthatspeedsupCPUcodeexecution.ItalsoimplementsthelogicnecessarytocarryoutFlashmemoryoperations(Program/Erase).Program/Eraseoperationscanbeperformedoverthewholepr
6、oductvoltagerange.Read/Writeprotectionsandoptionbytesarealsoimplemented.Table1liststhemicrocontrollersandevaluationtoolconcernedbythisprogrammingmanual.Table1.ApplicableproductsTypeApplicableproductsSTM32F101xx,STM32F102xx,STM32F103xx,STM32F105xxandMicrocont
7、rollersSTM32F107xxmicrocontrollersEvaluationtoolSTM3210C-EVALevaluationboardAugust2012DocID17863Rev21/31www.st.comContentsPM0075Contents1Overview..................................................61.1Features...................................................
8、61.2Flashmoduleorganization.....................................62Reading/programmingtheembeddedFlashmemory.............112.1Introduction...............................................112.2Reado