欢迎来到天天文库
浏览记录
ID:33923916
大小:676.52 KB
页数:25页
时间:2019-02-28
《Avoiding_Pitfalls_with_Bootloaders.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、AvoidingPitfallsinBootloaders–ESC2011AvoidingPitfallswithBootloadersAvoidingPitfallsinBootloaders–ESC2011Agenda•WhatisaBootloader?•Definition•FreeandCommercialBootloaders•BenefitsofusingaBootloader•Upgradability•Fastproductionprogramming•SettingupabootloaderintheEmbeddedWorkbench•Debuggingbootloader
2、s•Safeandsecurebootloaders•ExampleofabootloaderAvoidingPitfallsinBootloaders–ESC2011Whatisabootloader?•AbootloaderisapieceofcodethatallowsyoutoupdatethefirmwareofyourMCU•Althoughthebootloaderupdatestheapplicationfirmware,itisdifficulttoupdatethebootloaderitselfinthefield,soitisimportanttogetitrightt
3、hefirsttime•ItcaneithercheckfornewfirmwareeverytimetheMCUresetsorwhentheMCUresetsandacertainbuttononthephysicaldeviceispressed•Youcanwriteyourownbootloaderoryoucanpurchaseoneofseveralcommerciallyavailablebootloaders•Commerciallyavailablebootloaderscantakethehassleoutofwritinganddebuggingyourownbootl
4、oaderAvoidingPitfallsinBootloaders–ESC2011BenefitsofusingaBootloader•AsfirmwareforMCUsbecomesmorecomplexandhasaddedfunctionality,thepotentialfordefectstoexistinthecodeexponentiates–itisthereforewisetohaveamechanismtoupdatethefirmwareasdefectsarefound•Itgivesyoutheflexibilitytodoaincrementalrolloutof
5、functionalityofyourproduct•Intheolddays,codehadtobeperfect(orascloseaspossible)beforeyoubeganproduction•Nowcustomershavecometoacceptfirmwareupdatesoftheirdevicesaspartoftheprocess•DueinparttotheproliferationofFlashmemorydevices•Itcanbeusedasamass-programmingtoolontheproductionline•Itcansaveyouthehea
6、dacheofaproductrecall!AvoidingPitfallsinBootloaders–ESC2011Typicalbootloaderstartup•DeviceReset•Checkconditional•Iftrue,executeselfprogramming•Iffalse,executemainprogramAvoidingPitfallsinBootloaders–ESC2011ExampleBootloadermemorymap•Bootloaderandappsitsidebysideinflasharray•Bootloaderexecutesat0x800
7、00000andwillcontinuetoexecutedependingonpinconfiguration•OtherwisetheBootloaderjumpstoapplication@0x80002000AvoidingPitfallsinBootloaders–ESC2011SettingupabootloaderintheEW•Thepragmaticsofdoingabootlo
此文档下载收益归作者所有
点击更多查看相关文章~~