566OZ13CNEl170213MPC5634MBootloader`21.2.【】,CANECU。MPC5634MBootloader,、lFash、EePROM、,Bootloader。[】oBolloaderlFashTheBootloaderDesignandImPlementBaseonPowePC5634MXiYingze`YuJiannanZxureng`1.DongeFngl,torCo.eTehniealeCnetr2.DogneFngCommecriall,torCo.eTehniealeCnterAbstract:Accordingrorherapidlydevelopmenrofauromobileelecrronicrechnology,ECUsoftwaredownloadrechnologywhichbasedonCANbusbecomesessenrialparrofauromobileECUdevelopmenrThispaperinrroducesrheapplicarionanddevelopmenrofBootloaderbasedontheFreescaleMPC5634MmicrocontrollerItincludesDiagnosticmoduledesign,FlashPartition,Flashdriverdevelopment,EepROMsimulationtechnology,conifgurationmethodofFlashtool,targethexiflemakingmethodandtheapplicationofrhisBoorloaderinProjectKeywords:BootloaderSoftwaredownloadFlashdriverDiagnosticunitVectorredirection1BootloaderECu,ECu:ECuMCUJATG。JATGDIE,ECu。ECUBoolloaderECu,。ECU,ECU,ECU,,JATG,。JTAGBoolloade:Ecu,,ECu,。oBolloade:l。2BootloaderEcuoBolloade:。oBolloaderECU,ECu。ECUoBolloaderBoorloaderBoorloader,。Boorloader2。EepROM}Flash}}NVWarp{(GPI。,lCl4,CAN·…))!!!!!!!!}}}BootloaderrrEEECUUU2Bootloader2.1,15014229,,l。1566OZ13CNlE712013MPC5364MBootlaoder`21.2.【】,CANECU。MPC5634MBootloader,、lFash、EePROM、,Bootloader。[】oBolloaderlFashTheBootloaderDesignandImPlementBaseonPowePC5634MXiYingze`YuJiannanZxureng`1.DongeFngl,torCo.eTehniealeCnetr2.DogneFngCommecriall,torCo.eTehniealeCnterAbstract:Accordingrorherapidlydevelopmenrofauromobileelecrronicrechnology,ECUsoftwaredownloadrechnologywhichbasedonCANbusbecomesessenrialparrofauromobileECUdevelopmenrThispaperinrroducesrheapplicarionanddevelopmenrofBootloaderbasedontheFreescaleMPC5634MmicrocontrollerItincludesDiagnosticmoduledesign,FlashPartition,Flashdriverdevelopment,EepROMsimulationtechnology,conifgurationmethodofFlashtool,targethexiflemakingmethodandtheapplicationofrhisBoorloaderinProjectKeywords:BootloaderSoftwaredownloadFlashdriverDiagnosticunitVectorredirection1BootloaderECu,ECu:ECuMCUJATG。JATGDIE,ECu。ECUBoolloaderECu,。ECU,ECU,ECU,,JATG,。JTAGBoolloade:Ecu,,ECu,。oBolloade:l。2BootloaderEcuoBolloade:。oBolloaderECU,ECu。ECUoBolloaderBoorloaderBoorloader,。Boorloader2。EepROM}Flash}}NVWarp{(GPI。,lCl4,CAN·…))!!!!!!!!}}}BootloaderrrEEECUUU2Bootloader2.1,15014229,,l。1586OZ13CNlE712013EepROMOEepROMIOXOZ000OXFFFF71FlashOX4O000000OX4910000616·16·Bootloader0x0OxlFFFFBootloader6EePROMID(2)Faslh(FF/00),(EePROM),lFash,“”。“”7。11MA:x25612ììì5MAP#rPagmasecitonall_lypes”APPVLECT””APPLVECT”/*、/—declspec(section”AppLVECT)/、、/constVuint32AppllntjmpTable[]{APPLvEcT_FROM_B00T,RESET_ENTRY_POINT};//,oBolloader#Pragmaforce_acriveoffMPC5634M,oBolloader,,MCU,APPVECT,_Stalr。oBolloader:#deifneAPPL、ECTFROMBOOTOx00020000UL2.2.2EePR()MlFashlFash,lFashlBk。MPC5634Mbl、k16K,16K、oBolloader、,lFashlB、k,“”,lFash,,,eEpROM。eEpROMlFash16KeEpROM,RAM,eEpROM。,,DI,,6。}EEP~}}OFFSE·l7RECIDDI,EEPDATA4,CRCEEPDAAT,LENEEPDATA。OFFSET,OFFSETREcID。RECID,RECDIEEPDATAlB、k。2.3NVWraPNVWrapRAM,NVWrapAPIRECIDRAM。RAM,EEPDATA。eEpROMlFash,eEpROMNVWrapRAMlFasheEpROM。eEpROMNVWarp。2.4FlashMPC5634MBoorloade:,Flash16RAM,lFash,CodewariorrlFash/Hex,“0xl821060E”,,8。lFash、,lFash。oBolloader、CAN、GPIO,ECUoBolloade:。,ECu