亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dvflasher.cs

?? TI DM6446 EVM 串口下載程序 使用環境:windows dos環境或者linux 使用前需安裝mono
?? CS
?? 第 1 頁 / 共 5 頁
字號:
/**************************************************************** *  TI DM644x Serial Boot/Flash Host Program                      *  (C) 2006,2007, Texas Instruments, Inc.                            *                                                               * Author:  Daniel Allred * History: 09/19/2006 - Version 0.1 - Initial Release           *          10/2/2006 - Added UART UBL as embedded resource *          10/19/2006 - Internal release *          1/22/2007 - v1.00 release *          2/01/2007 - v1.10 release *              Revised so that the UBL can be used in CCS flashing *              tool.  Required revising this code so that the first *              256 bytes of the UBL binary was trimmed for the NAND *              and UART UBLs. *                                                               ****************************************************************/using System;using System.Text;using System.IO;using System.IO.Ports;using System.Reflection;using System.Threading;using System.Globalization;namespace DVFlasher{    /// <summary>    /// Enumeration for Magic Flags that the UBL expects to see    /// </summary>    public enum MagicFlags : uint    {        MAGIC_NUMBER_VALID = 0xA1ACED00,        MAGIC_NUMBER_INVALID = 0xFFFFFFFF,        UBL_MAGIC_SAFE = 0xA1ACED00,        UBL_MAGIC_DMA = 0xA1ACED11,	                /* DMA boot mode */        UBL_MAGIC_IC = 0xA1ACED22,	                /* I Cache boot mode */        UBL_MAGIC_FAST = 0xA1ACED33,	            /* Fast EMIF boot mode */        UBL_MAGIC_DMA_IC = 0xA1ACED44,	            /* DMA + ICache boot mode */        UBL_MAGIC_DMA_IC_FAST = 0xA1ACED55,	        /* DMA + ICache + Fast EMIF boot mode */        UBL_MAGIC_BIN_IMG = 0xA1ACED66,             /* Describes the application image in Flash - indicates that it is binary*/        UBL_MAGIC_NOR_RESTORE = 0xA1ACED77,         /* Download via UART & Restore NOR with binary data */        UBL_MAGIC_NOR_SREC_BURN = 0xA1ACED88,       /* Download via UART & Burn NOR with UBL readable header and SREC data*/        UBL_MAGIC_NOR_BIN_BURN = 0xA1ACED99,        /* Download via UART & Burn NOR with UBL readable header and BIN data */        UBL_MAGIC_NOR_GLOBAL_ERASE = 0xA1ACEDAA,    /* Download via UART & Global erase the NOR Flash */        UBL_MAGIC_NAND_SREC_BURN = 0xA1ACEDBB,   /* Download via UART & Burn NAND - Image is S-record */        UBL_MAGIC_NAND_BIN_BURN = 0xA1ACEDCC,   /* Download via UART & Burn NAND - Image is binary */        UBL_MAGIC_NAND_GLOBAL_ERASE = 0xA1ACEDDD	/* Download via UART & Global erase the NAND Flash */    };        /// <summary>    /// Enumeration of flash types    /// </summary>    public enum FlashType : uint    {        NONE,        NOR,        NAND    };    /// <summary>    /// Structure to hold command parameters    /// </summary>    struct ProgramCmdParams    {        /// <summary>        /// Flag to indicate if command line is valid        /// </summary>        public Boolean Valid;        /// <summary>        /// Boolean to control the verbosity of output        /// </summary>        public Boolean Verbose;        /// <summary>        /// Name of serial port used for communications        /// </summary>        public String SerialPortName;        /// <summary>        /// MagicFlag which is the command to of what the UART UBL will do.        /// This should be transmitted alone in response to the BOOTPSP.        /// </summary>        public MagicFlags CMDMagicFlag;        /// <summary>        /// Flag to inidicate whether to use internal (TI) UBL or externally provided one        /// </summary>        public Boolean useEmbeddedUBL;        /// <summary>        /// Address at which UART UBL will begin execution (must be 0x100 or greater)        /// </summary>        public UInt32 UARTUBLExecAddr;        /// <summary>        /// Boolean to indicate whether or not to send UART UBL via RBL interfacing.        /// This is set by the -skipRBL command line option.        /// </summary>        public Boolean UARTUBLUsed;        /// <summary>        /// Type of flash that the application and UBL are targeted to use.  Selects        /// which embedded UBL to use.        /// </summary>        public FlashType UBLFlashType;        /// <summary>        /// Entry point addresses for the NAND and NOR UBL embedded binary images.        /// </summary>        public UInt32 NORUBLExecAddr;        public UInt32 NANDUBLExecAddr;        /// <summary>        /// Global varibale to hold the desired magic flag        /// </summary>        public MagicFlags FLASHUBLMagicFlag;        /// <summary>        /// String containing filename of FLASH UBL file (only needed for flashing)        /// </summary>        public String FLASHUBLFileName;        /// <summary>        /// Address where the flash ubl file should be decoded to and         /// run from (if appropriate).        /// </summary>        public UInt32 FLASHUBLLoadAddr;        /// <summary>        /// Address at which the Flash UBL will begin execution (must be 0x100 or greater)        /// This will either be the same as UARTUBLExecAddr (id embedded UBL is put into flash)        /// or provided on the command line in case a separate flash UBL is provided.        /// </summary>        public UInt32 FLASHUBLExecAddr;        /// <summary>        /// Magic Flag for the application data        /// </summary>        public MagicFlags APPMagicFlag;        /// <summary>        /// String containing filename of Application file        /// </summary>        public String APPFileName;        /// <summary>        /// Address where the app should be decoded to and         /// run from (if appropriate).        /// </summary>        public UInt32 APPLoadAddr;        /// <summary>        /// Address where the app begin execution         /// </summary>        public UInt32 APPEntryPoint;    }        /// <summary>    /// Main program Class    /// </summary>    class Program    {        //**********************************************************************************        #region Class variables and members        /// <summary>        /// Global main Serial Port Object        /// </summary>        public static SerialPort MySP;                        /// <summary>        /// The main thread used to actually execute everything        /// </summary>        public static Thread workerThread;        /// <summary>        /// Global boolean to indicate successful completion of workerThread        /// </summary>        public static Boolean workerThreadSucceeded = false;        /// <summary>        /// Public variable to hold needed command line and program parameters        /// </summary>        public static ProgramCmdParams cmdParams;        /// <summary>        /// String to hold the summary of operation program will attempt.        /// </summary>        public static String cmdString;        #endregion        //**********************************************************************************        //**********************************************************************************        #region Code for Main thread        /// <summary>        /// Help Display Function        /// </summary>        private static void DispHelp()        {            Console.Write("Usage:");            Console.Write("\n\tDVFlasher <Option>");            Console.Write("\n\t\t" + "<Option> can be the following:");            Console.Write("\n\t\t\t" + "-enor\tDo a global erase of the NOR flash.");            Console.Write("\n\t\t\t" + "-enand\tDo a global erase of the NAND flash.");            Console.WriteLine();            Console.Write("\n\tDVFlasher <Option> <Application File>");            Console.Write("\n\t\t" + "<Option> can be any of the following:");            Console.Write("\n\t\t\t" + "-b\tBoot and run application code from the DDR RAM (max 16MB)." );            Console.Write("\n\t\t\t" + "-r\tRestore NOR Flash with bootable application (typically u-boot).");            Console.WriteLine();            Console.Write("\n\tDVFlasher <Option> <Application File>");            Console.Write("\n\tDVFlasher <Option> -useMyUBL <Flash UBL File> <Application File>");            Console.Write("\n\t\t" + "<Option> can be any of the following:" +                          "\n\t\t\t" + "-fnorbin\tFlash the NOR Flash with bootable UBL and binary application image." +                          "\n\t\t\t" + "-fnorsrec\tFlash the NOR Flash with bootable UBL and S-record application image." +                          "\n\t\t\t" + "-fnandbin\tFlash the NAND Flash with bootable UBL and binary application image." +                          "\n\t\t\t" + "-fnandsrec\tFlash the NAND Flash with bootable UBL and S-record application image.\n");            Console.Write("\n\t\t"+"<Flash UBL File> is a maximum 14kB second stage bootloader that" +                          "\n\t\t" + "is specifically tailored to sit in the NAND or NOR flash and load" +                           "\n\t\t" + "the application image stored there.\n");            Console.Write("\n\t\t"+"<Application File> is an S-record or binary executable file that"+                          "\n\t\t"+"is run after boot or programmed into flash for execution there. Often"+                          "\n\t\t"+"this will be a third-stage bootloader like u-boot, which can be used to"+                          "\n\t\t"+"boot linux.\n");            Console.Write("\t" + "NOTE: Make sure switches and jumpers are set appropriately for Flash type.\n");            Console.Write("\n\t" + "Other Options" +                          "\n\t\t"+"-h                \tDisplay this help screen."+                          "\n\t\t"+"-v                \tDisplay more verbose output returned from the DVEVM."+                          "\n\t\t"+"-noRBL            \tUse when system is already running UBL, showing \"BOOTPSP\"." +                          "\n\t\t"+"-useMyUBL         \tUse your own provided Flash UBL file instead of the internal UBL." +                          "\n\t\t"+"                  \tExamples of this usage are shown above." +                          "\n\t\t"+"-p \"<PortName>\" \tUse <PortName> as the serial port (e.g. COM2, /dev/ttyS1)."+                          "\n\t\t"+"-s \"<StartAddr>\"\tUse <StartAddr>(hex) as the point of execution for the system");        }            /// <summary>        /// Parse the command line into the appropriate internal command structure        /// </summary>        /// <param name="args">The array of strings passed to the command line.</param>        public static ProgramCmdParams ParseCmdLine(String[] args)        {            ProgramCmdParams myCmdParams =  new ProgramCmdParams();            Boolean[] argsHandled = new Boolean[args.Length];            Int32 numFiles = -1;            UInt32 numUnhandledArgs,numHandledArgs=0;            String s;            if (args.Length == 0)            {                myCmdParams.Valid = false;                return myCmdParams;            }            // Initialize array of handled argument booleans to false            for (int i = 0; i < argsHandled.Length; i++ )                argsHandled[i] = false;            // Set Defualts for application            myCmdParams.UBLFlashType = FlashType.NONE;                        myCmdParams.CMDMagicFlag = MagicFlags.MAGIC_NUMBER_INVALID;            myCmdParams.Valid = true;            myCmdParams.Verbose = false;            myCmdParams.SerialPortName = null;            myCmdParams.useEmbeddedUBL = true;            myCmdParams.UARTUBLExecAddr = 0x0100;            myCmdParams.UARTUBLUsed = true;                        myCmdParams.NORUBLExecAddr = 0x2a30;            myCmdParams.NANDUBLExecAddr = 0x23ec;            myCmdParams.APPMagicFlag = MagicFlags.UBL_MAGIC_SAFE;            myCmdParams.APPFileName = null;            myCmdParams.APPLoadAddr = 0xFFFFFFFF;            myCmdParams.APPEntryPoint = 0xFFFFFFFF;            myCmdParams.FLASHUBLMagicFlag = MagicFlags.UBL_MAGIC_SAFE;            myCmdParams.FLASHUBLFileName = null;            myCmdParams.FLASHUBLLoadAddr = 0xFFFFFFFF;            myCmdParams.FLASHUBLExecAddr = 0x0100;                        // For loop for all dash options            for(int i = 0; i<args.Length; i++)            {                s = args[i];                if (s.StartsWith("-"))                {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久午夜国产精品| 欧美精品欧美精品系列| 91蝌蚪porny| 欧美va亚洲va| 一区二区三区欧美在线观看| 精品综合免费视频观看| 在线欧美一区二区| 久久久久久久精| 日韩精品成人一区二区在线| 91啪在线观看| 国产精品少妇自拍| 精品一区在线看| 91精品蜜臀在线一区尤物| 亚洲三级小视频| 成人激情综合网站| 久久蜜桃香蕉精品一区二区三区| 亚洲国产wwwccc36天堂| 99精品视频在线观看免费| 久久久久久影视| 黄色小说综合网站| 欧美mv日韩mv国产| 日本在线不卡一区| 欧美日韩国产综合一区二区| 国产精品丝袜久久久久久app| 国产乱一区二区| 精品久久久久久久人人人人传媒| 日本亚洲三级在线| 欧美高清你懂得| 午夜精品福利视频网站| 欧美日韩国产乱码电影| 亚洲成人免费视| 欧美日韩高清影院| 视频一区二区中文字幕| 在线播放欧美女士性生活| 三级成人在线视频| 91麻豆精品91久久久久同性| 日韩av网站免费在线| 91精品视频网| 极品少妇一区二区三区精品视频| 风间由美中文字幕在线看视频国产欧美| 成人黄色软件下载| 日韩欧美国产综合一区| 蜜臀va亚洲va欧美va天堂| 欧美日韩一本到| 日韩精品免费专区| 精品国产三级电影在线观看| 国产乱国产乱300精品| 国产午夜精品福利| gogo大胆日本视频一区| 亚洲免费观看高清完整版在线观看熊| 91一区二区三区在线播放| 亚洲激情自拍视频| 777午夜精品视频在线播放| 久久国产尿小便嘘嘘| 国产欧美日韩中文久久| 在线观看日韩国产| 奇米777欧美一区二区| 欧美成人女星排行榜| 午夜精品久久久久久久久久 | 亚洲国产裸拍裸体视频在线观看乱了| 色婷婷久久综合| 日韩和欧美的一区| 久久久www免费人成精品| 成人av电影在线| 亚洲亚洲人成综合网络| 欧美大片国产精品| 色呦呦国产精品| 日本麻豆一区二区三区视频| 亚洲国产精华液网站w| 欧美性色欧美a在线播放| 国产精品自在欧美一区| 亚洲尤物在线视频观看| 久久久久久久久久久99999| 色吊一区二区三区| 国产精品影音先锋| 亚洲国产日韩a在线播放| 国产午夜精品福利| 欧美一级黄色大片| 色综合久久综合中文综合网| 岛国一区二区三区| 精品99999| 99re这里只有精品视频首页| 丝袜亚洲精品中文字幕一区| 欧美高清一级片在线观看| 欧美午夜影院一区| 国产精品99久久久久| 亚洲一二三区不卡| 国产精品日产欧美久久久久| 欧美一区二区三区人| 一本色道久久综合亚洲aⅴ蜜桃| 久久精品国产亚洲aⅴ| 亚洲一区二区三区四区五区黄 | 成人午夜免费电影| 日日骚欧美日韩| 亚洲猫色日本管| 中文字幕va一区二区三区| 欧美最新大片在线看 | 精品电影一区二区| 欧美日韩激情在线| 色999日韩国产欧美一区二区| 国产一区二区毛片| 久久91精品国产91久久小草 | 国产精品理论片在线观看| 日韩欧美成人激情| 在线成人免费视频| 欧美视频三区在线播放| 一本大道综合伊人精品热热| 成人精品小蝌蚪| 成人免费观看av| 成人深夜视频在线观看| 国产成人在线观看| 国产一区二区免费看| 国产美女主播视频一区| 国产麻豆精品theporn| 韩国三级在线一区| 国产在线国偷精品免费看| 激情六月婷婷久久| 国产成人精品亚洲日本在线桃色| 激情综合色综合久久综合| 激情六月婷婷久久| 国产精选一区二区三区| 国产91精品在线观看| 成人在线一区二区三区| 99久久婷婷国产综合精品电影| 成人亚洲精品久久久久软件| av亚洲精华国产精华精华 | 欧美视频一区二区三区| 欧美日韩一区在线| 91精品在线观看入口| 日韩亚洲欧美高清| 久久久夜色精品亚洲| 国产女主播一区| 亚洲日本丝袜连裤袜办公室| 亚洲国产你懂的| 日韩黄色免费网站| 国产在线不卡一区| 成人av网站免费| 欧美亚洲高清一区| 日韩欧美国产一区二区三区| 国产亚洲欧洲997久久综合| 国产精品动漫网站| 午夜电影网亚洲视频| 精品一区二区在线观看| 成熟亚洲日本毛茸茸凸凹| 91国偷自产一区二区开放时间| 欧美亚洲综合另类| 亚洲精品一区二区三区影院| 综合在线观看色| 日韩高清不卡一区| 福利一区二区在线| 欧美色精品在线视频| 久久久夜色精品亚洲| 亚洲精品菠萝久久久久久久| 老司机午夜精品| 97成人超碰视| 欧美变态口味重另类| 亚洲欧美日韩国产另类专区| 老司机精品视频线观看86 | 99视频热这里只有精品免费| 91麻豆视频网站| 欧美电影免费观看高清完整版在| 国产精品人成在线观看免费 | 日本一区二区不卡视频| 亚洲第一综合色| 成人免费视频一区| 欧美一区二区三区思思人| 亚洲欧美激情插| 国产精品一二三| 91精品国产综合久久精品 | 国产成人av一区| 欧美精选在线播放| 亚洲视频网在线直播| 国产在线麻豆精品观看| 欧美人xxxx| 一区二区三区.www| 国产不卡高清在线观看视频| 日韩三级高清在线| 亚洲国产日韩av| 日本电影欧美片| 日韩一区在线看| 国产成人aaa| 久久亚洲精华国产精华液 | 一区二区三区美女视频| 国产成人aaaa| 久久噜噜亚洲综合| 久久www免费人成看片高清| 欧美另类久久久品| 亚洲一区二区三区美女| 色噜噜狠狠成人网p站| 国产精品毛片高清在线完整版| 国产剧情一区二区三区| 久久蜜桃av一区精品变态类天堂| 轻轻草成人在线| 在线观看91av| 蜜臀精品久久久久久蜜臀| 欧美一区二区二区| 日本中文字幕一区二区视频| 欧美一区二区三区白人 | 亚洲欧美综合网| 91碰在线视频|