您好,欢迎访问三七文档
当前位置:首页 > 临时分类 > FlashBootloader
恒润科技公司目录概述编程过程程序刷写流程实例3恒润科技公司FlashBootLoader应用研发生产售后4概述5恒润科技公司⏐Invalidate⏐ValidateFlashBootloaderTheBootloadercontainsbasicCANcommunication,aTransportProtocolandDiagnostics,bothcodeoptimizedtouseminimummemory.TheFlashToolisaneasytousePCtoolandcontrolsthedownloadofyourapplication(ashex-file).AdditionallyyouneedaCANcard,e.g.CANcardXorCANac2.TheFlashDriverprogramstheapplicationinconnectionwiththeFlashBootloader.系统架构6恒润科技公司最小化的CAN驱动,仅支持查询所有底层硬件相关部分提供到FlashDriver的接口概述FBL架构8恒润科技公司实现ISO15765-2传输层协议CANBus概述FBL架构9恒润科技公司KWP2000/UDS诊断层所有下载相关诊断服务的实现概述FBL架构10恒润科技公司采用的诊断服务11恒润科技公司目录概述编程过程程序刷写流程实例12恒润科技公司编程过程阶段#1编程前准备/STP1Pre-InitiallzationoftheCANlinkDiagnosticsessioncontrol(extendedDiagnosticsession)ControlDTCSetting(DTCSettingType=off)Communicationcontrol(disablenon-diagnosticcommunication)Post-InitiallzationoftheCANlinkReadserverIdentificationassigndynamicCANIdsPrepareserverforprogLinkcontrol(verifybaudrate)Linkcontrol(switchbaudrate)STP2ABCDEFG13恒润科技公司编程过程阶段#1编程14恒润科技公司(Checkroutine)Routinecontrol(Checkroutine)RequestDownloadTransferDataRequestTransferExitDownloadprog.-routineSTP2RoutineControl(Checkreprogrammingdependencies)Writeconfigurationdata-etc./GHIJKL阶段#1编程15恒润科技公司编程过程阶段#1编程后处理16恒润科技公司编程过程阶段#2编程前准备17恒润科技公司编程过程阶段#2编程18恒润科技公司编程过程阶段#2编程后处理19恒润科技公司目录概述编程过程程序刷写流程实例20恒润科技公司=CANIdentifier(hexadecimal)TestersendsonID0x440and0x703.ECUrespondswithID0x4E0.ID|Rx/Tx|DataBytes|Comments---------------------------------------------------------------------------------------440Rx023E800000000000703Rx0210030000000000//切到扩展诊断模式4E0Tx065003001403E800//P2=20ms,P2*=1000ms440Rx0285820000000000440Rx0328810100000000703Rx0210020000000000//切到编程模式4E0Tx065002001403E800703Rx0322F10000000000//读DID=0xF1004E0Tx037F227800000000//0x78否定响应码4E0Tx0762F10001000002//ECU返回0xF100的DID703Rx0227050000000000//安全反问,请求不同安全级别的种子4E0Tx100A6705082711F0//8字节的种子(多包第一帧数据)21恒润科技公司流控帧(继续发送,5个CF,连续发送)4E0Tx21082711F0000000703Rx062706FFFFFFFF00//KEY=0xFFFFFFFF4E0Tx037F277800000000//否定响应,系统忙4E0Tx0267060000000000//发送肯定响应,通过安全验证703Rx100D2EF15A00008B//写DID指纹,0xF15A代表10字节参数4E0Tx300000FFFFFFFFFF703Rx21051129010500004E0Tx036EF15AFFFFFFFF//肯定响应,写指纹成功703Rx100B3400440000D0//请求数据下载,起始地址0XD0004E0Tx300000FFFFFFFFFF703Rx2100000001000000//下载大小0x100=256字节4E0Tx04742003FEFFFFFF//0x34的肯定响应,块长度0x03FE=1022字节703Rx1102360111111111//0x36数据传输请求,0x01代表第1块数据4E0Tx300000FFFFFFFFFF703Rx2111111111111111703Rx221111111111111122恒润科技公司
本文标题:FlashBootloader
链接地址:https://www.777doc.com/doc-5466861 .html