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

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

?? dvflasher.cs

?? TI DM6446 EVM 串口下載程序 使用環境:windows dos環境或者linux 使用前需安裝mono
?? CS
?? 第 1 頁 / 共 5 頁
字號:
                MySP.Write(cmdParams.UARTUBLExecAddr.ToString("X4"));                                // 4 bytes of constant zeros = "0000"                MySP.Write("0000");                Console.WriteLine("ACK command sent. Waiting for BEGIN command... ");                // Wait for the BEGIN sequence                if (waitForSequence("  BEGIN\0", " BOOTME\0", MySP,true))                    Console.WriteLine("BEGIN commmand received. Sending CRC table...");                else                    goto BOOTMESEQ;                // Send the 1024 byte (256 word) CRC table                for (int i = 0; i < MyCRC.Length; i++)                {                    MySP.Write(MyCRC[i].ToString("x8"));                //    Console.WriteLine(MyCRC[i].ToString("x8"));                }                Console.WriteLine("CRC table sent.  Waiting for DONE...");                                // Wait for the first DONE sequence                if (waitForSequence("   DONE\0", " BOOTME\0", MySP))                    Console.WriteLine("DONE received.  Sending the UART UBL file...");                else                    goto BOOTMESEQ;                // Send the contents of the UBL file                 MySP.Write(UBLsb.ToString());                // Wait for the second DONE sequence                if (waitForSequence("   DONE\0", " BOOTME\0", MySP))                    Console.WriteLine("DONE received.  UART UBL file was accepted.");                else                    goto BOOTMESEQ;                Console.WriteLine("UART UBL Transmitted successfully.\n");            }            catch (ObjectDisposedException e)            {                Console.WriteLine(e.StackTrace);                throw e;            }        }        /// <summary>        /// Function to transmit the CMD and command over the UART (following BOOTPSP)        /// </summary>        private static Boolean TransmitCMDSuccessful()        {            try            {                // Clear input buffer so we can start looking for BOOTPSP                MySP.DiscardInBuffer();                Console.WriteLine("\nWaiting for UBL on DVEVM...");                                        // Wait for the UBL on the DVEVM to send the ^BOOTPSP\0 sequence                if (waitForSequence("BOOTPSP\0", "BOOTPSP\0", MySP))                    Console.WriteLine("UBL's BOOTPSP commmand received. Returning CMD and command...");                else                    return false;                // 8 bytes acknowledge sequence = "    CMD\0"                MySP.Write("    CMD\0");                // 8 bytes of magic number                MySP.Write(((UInt32)cmdParams.CMDMagicFlag).ToString("X8"));                                Console.WriteLine("CMD value sent.");            }            catch (ObjectDisposedException e)            {                Console.WriteLine(e.StackTrace);                throw e;            }            return true;        }        /// <summary>        /// Send command and wait for erase response. (NOR and NAND global erase)        /// </summary>        private static void TransmitErase()        {            try            {            BOOTPSPSEQ1:                // Send the UBL command                if (!TransmitCMDSuccessful())                    goto BOOTPSPSEQ1;                if (!waitForSequence("   DONE\0", "BOOTPSP\0", MySP, true))                    goto BOOTPSPSEQ1;            }            catch (ObjectDisposedException e)            {                Console.WriteLine(e.StackTrace);                throw e;            }        }                /// <summary>        /// Function to transmit the application code via the UBL, which is now         /// running on the DM644x.  This code is specific to the TI supplied UBL.        /// If the the TI supplied UBL is modified or a different boot loader is        /// used, this code will need to be modified.        /// </summary>        private static void TransmitAPP()        {            // Local Variables for reading APP file            Byte[] APPFileData;            APPFileData = GetFileData(cmdParams.APPFileName, cmdParams.APPLoadAddr, false);            try            {            BOOTPSPSEQ3:                // Send the UBL command                if (!TransmitCMDSuccessful())                    goto BOOTPSPSEQ3;                if (waitForSequence("SENDAPP\0", "BOOTPSP\0", MySP))                {                    Console.WriteLine("SENDAPP received. Returning ACK and header for application data...");                }                else                {                    goto BOOTPSPSEQ3;                }                // Output 36 Bytes for the ACK sequence and header                // 8 bytes acknowledge sequence = "    ACK\0"                MySP.Write("    ACK\0");                // 8 bytes of magic number (in this case flash the nor                MySP.Write(((UInt32)cmdParams.APPMagicFlag).ToString("X8"));                // 8 bytes of binary execution address = ASCII string of 8 hex characters                MySP.Write(String.Format("{0:X8}", cmdParams.APPEntryPoint));                // 8 bytes of data size = ASCII string of 8 hex characters                MySP.Write(((UInt32)APPFileData.Length).ToString("X8"));                // 4 bytes of constant zeros = "0000"                MySP.Write("0000");                Console.WriteLine("ACK command sent. Waiting for BEGIN command... ");                // Wait for the ^^BEGIN\0 sequence                if (waitForSequence("  BEGIN\0", "BOOTPSP\0", MySP))                    Console.WriteLine("UBL's BEGIN commmand received. Sending the application code...");                else                    goto BOOTPSPSEQ3;                // Send the application code (should be in S-record format)                MySP.Write(APPFileData, 0, APPFileData.Length);                Console.WriteLine("Application code sent.  Waiting for DONE...");                // Wait for ^^^DONE\0                if (waitForSequence("   DONE\0", "BOOTPSP\0", MySP))                    Console.WriteLine("DONE received.  All bytes of application code received...");                else                    goto BOOTPSPSEQ3;                // Wait for second ^^^DONE\0 to indicate the S-record decode worked                if (waitForSequence("   DONE\0", "BOOTPSP\0", MySP))                    Console.WriteLine("DONE received.  Application S-record decoded correctly.");                else                    goto BOOTPSPSEQ3;                                // Wait for third ^^^DONE that indicates booting                if (!waitForSequence("   DONE\0", "BOOTPSP\0", MySP, true))                    throw new Exception("Final DONE not returned.  Command failed on DM644x.");            }            catch (ObjectDisposedException e)            {                Console.WriteLine(e.StackTrace);                throw e;            }        }        /// <summary>        /// Function to transmit the second UBL if it is needed        /// </summary>        private static void TransmitFLASHUBLandAPP()        {                     Byte[] APPFileData;            Byte[] FLASHUBLData;            // Get Application image data            APPFileData = GetFileData(cmdParams.APPFileName, cmdParams.APPLoadAddr, false);            // Get Flash UBL data (either embedded or from file)            if (cmdParams.useEmbeddedUBL)                FLASHUBLData = bin2srec(GetEmbeddedUBLStream(), cmdParams.FLASHUBLLoadAddr, (cmdParams.UBLFlashType == FlashType.NAND));            else                FLASHUBLData = GetFileData(cmdParams.FLASHUBLFileName, cmdParams.FLASHUBLLoadAddr, (cmdParams.UBLFlashType == FlashType.NAND));                                                      try            {            BOOTPSPSEQ2:                                // Send the UBL command                if (!TransmitCMDSuccessful())                    goto BOOTPSPSEQ2;                if (waitForSequence("SENDUBL\0", "BOOTPSP\0", MySP))                    Console.WriteLine("SENDUBL received. Returning ACK and header for UBL data...");                else                    goto BOOTPSPSEQ2;                // Output 36 Bytes for the ACK sequence and header                // 8 bytes acknowledge sequence = "    ACK\0"                MySP.Write("    ACK\0");                // 8 bytes of magic number (in this case flash the nor                MySP.Write(((UInt32)cmdParams.FLASHUBLMagicFlag).ToString("X8"));                // 8 bytes of binary execution address = ASCII string of 8 hex characters                MySP.Write("8000");                MySP.Write(cmdParams.FLASHUBLExecAddr.ToString("X4"));                // 8 bytes of data size = ASCII string of 8 hex characters                MySP.Write(((UInt32)FLASHUBLData.Length).ToString("X8"));                // 4 bytes of constant zeros = "0000"                MySP.Write("0000");                Console.WriteLine("ACK command sent. Waiting for BEGIN command... ");                // Wait for the ^^BEGIN\0 sequence                if (waitForSequence("  BEGIN\0", "BOOTPSP\0", MySP))                    Console.WriteLine("UART UBL's BEGIN commmand received. Sending the Flash UBL code...");                else                    goto BOOTPSPSEQ2;                // Send the Flash UBL code (should be in S-record format)                MySP.Write(FLASHUBLData, 0, FLASHUBLData.Length);                Console.WriteLine("Flash UBL code sent.  Waiting for DONE...");                // Wait for ^^^DONE\0                if (waitForSequence("   DONE\0", "BOOTPSP\0", MySP))                    Console.WriteLine("DONE received.  All bytes of Flash UBL code received...");                else                    goto BOOTPSPSEQ2;                // Wait for second ^^^DONE\0 to indicate the S-record decode worked                if (waitForSequence("   DONE\0", "BOOTPSP\0", MySP))                    Console.WriteLine("DONE received.  Flash UBL S-record decoded correctly.");                else                    goto BOOTPSPSEQ2;                // Now Send the Application file that will be written to flash                if (waitForSequence("SENDAPP\0", "BOOTPSP\0", MySP,true))                    Console.WriteLine("SENDAPP received. Returning ACK and header for application data...");                else                    goto BOOTPSPSEQ2;                // Output 36 Bytes for the ACK sequence and header                // 8 bytes acknowledge sequence = "    ACK\0"                MySP.Write("    ACK\0");                // 8 bytes of magic number (in this case flash the nor                if ( (cmdParams.CMDMagicFlag == MagicFlags.UBL_MAGIC_NAND_BIN_BURN) ||                     (cmdParams.CMDMagicFlag == MagicFlags.UBL_MAGIC_NOR_BIN_BURN) )                    MySP.Write(((UInt32)MagicFlags.UBL_MAGIC_BIN_IMG).ToString("X8"));                else                     MySP.Write(((UInt32)MagicFlags.UBL_MAGIC_SAFE).ToString("X8"));                // 8 bytes of binary execution address = ASCII string of 8 hex characters                MySP.Write(String.Format("{0:X8}", cmdParams.APPEntryPoint));                // 8 bytes of data size = ASCII string of 8 hex characters                MySP.Write(((UInt32)APPFileData.Length).ToString("X8"));                // 4 bytes of constant zeros = "0000"                MySP.Write("0000");                Console.WriteLine("ACK command sent. Waiting for BEGIN command... ");                // Wait for the ^^BEGIN\0 sequence                if (waitForSequence("  BEGIN\0", "BOOTPSP\0", MySP))                    Console.WriteLine("UART UBL's BEGIN commmand received. Sending the Application code...");                else                    goto BOOTPSPSEQ2;                // Send the application code (should be in S-record format)                MySP.Write(APPFileData, 0, APPFileData.Length);                Console.WriteLine("Application code sent.  Waiting for DONE...");                // Wait for ^^^DONE\0                if (waitForSequence("   DONE\0", "BOOTPSP\0", MySP))                    Console.WriteLine("DONE received.  All bytes of Application code received...");                else                    goto BOOTPSPSEQ2;                // Wait for second ^^^DONE\0 to indicate the S-record decode worked                if (waitForSequence("   DONE\0", "BOOTPSP\0", MySP))                    Console.WriteLine("DONE received.  Application S-record decoded correctly.");                else                    goto BOOTPSPSEQ2;                // Wait for third ^^^DONE that indicates booting                waitForSequence("   DONE\0", "BOOTPSP\0", MySP,true);                                            }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区免费在线播放| 国产一区二区三区久久久| 男男成人高潮片免费网站| 91精品国产综合久久香蕉的特点 | 日韩免费福利电影在线观看| 国产精品三级视频| 日韩avvvv在线播放| 欧美在线三级电影| 国产精品乱人伦| 男女男精品网站| 欧美日韩精品三区| 亚洲精品免费在线观看| 成人自拍视频在线观看| 日韩精品一区在线| 美女网站一区二区| 欧美挠脚心视频网站| 亚洲精品国产视频| jlzzjlzz亚洲日本少妇| 国产欧美一区视频| 国产精品一二三四区| 精品欧美一区二区三区精品久久 | 国产精品久久夜| 国产成人免费视频网站| 久久看人人爽人人| 国产精品系列在线播放| 日韩精品中文字幕一区二区三区 | 91国偷自产一区二区使用方法| 国产亚洲短视频| 国产乱人伦精品一区二区在线观看| 91精品欧美福利在线观看| 亚洲综合色网站| 欧美日韩免费观看一区二区三区 | 中文字幕一区二区三区四区不卡| 国产伦精品一区二区三区免费| 精品少妇一区二区三区免费观看 | 亚洲精品在线免费播放| 美女网站色91| 精品久久人人做人人爱| 国产精品系列在线播放| 日本一区二区三区电影| 国产91综合网| 亚洲色图在线看| 欧美视频三区在线播放| 视频一区二区中文字幕| 日韩精品一区二区三区swag| 精品系列免费在线观看| 中文字幕乱码亚洲精品一区| 91蜜桃免费观看视频| 亚洲动漫第一页| 日韩免费电影一区| 成人手机电影网| 亚洲精品欧美激情| 欧美久久久久久蜜桃| 美女任你摸久久| 国产精品久久久一区麻豆最新章节| 91色.com| 六月丁香综合在线视频| 中文字幕成人网| 欧美日韩视频不卡| 激情综合色综合久久综合| 国产精品视频一二三区| 在线亚洲免费视频| 久久er精品视频| 亚洲欧美色图小说| 日韩欧美一区二区免费| 91麻豆精品国产91久久久使用方法 | 精品视频在线免费| 国内外成人在线| 亚洲黄色片在线观看| 日韩精品一区二区三区三区免费| 成人教育av在线| 性久久久久久久久| 国产亚洲自拍一区| 在线播放一区二区三区| 国产91精品一区二区麻豆亚洲| 国产精品第一页第二页第三页| 欧美精品 国产精品| av在线这里只有精品| 久久精品99国产国产精| 亚洲最新视频在线播放| 国产亚洲制服色| 欧美一区二区精品| 欧美最猛性xxxxx直播| 国产精品99久久久久| 污片在线观看一区二区| 亚洲视频一区二区在线| 26uuu久久综合| 欧美美女一区二区| 91九色最新地址| 成人av网址在线| 国产酒店精品激情| 日本中文字幕一区二区视频| 亚洲男人的天堂在线aⅴ视频| 久久久综合视频| 日韩一级二级三级精品视频| 欧美日韩综合在线免费观看| 99久久99久久精品免费看蜜桃 | 午夜精品免费在线| 日韩一区在线播放| 国产精品麻豆网站| 欧美激情一区二区三区蜜桃视频 | 国产精品久久久爽爽爽麻豆色哟哟| 日韩欧美中文字幕制服| 91免费版在线| 97精品超碰一区二区三区| 国产成人综合在线播放| 国产综合色在线| 看电视剧不卡顿的网站| 日本va欧美va瓶| 日av在线不卡| 毛片基地黄久久久久久天堂| 日韩激情一二三区| 三级精品在线观看| 奇米一区二区三区av| 性做久久久久久久久| 午夜久久久久久电影| 亚洲成人久久影院| 日本中文字幕一区| 麻豆精品新av中文字幕| 老司机免费视频一区二区| 美女一区二区视频| 麻豆国产91在线播放| 精品一区二区在线免费观看| 国产精品自拍网站| 成人白浆超碰人人人人| 一本色道a无线码一区v| 色久综合一二码| 欧美久久久久久久久久| 日韩免费性生活视频播放| 久久影院午夜论| 国产欧美日本一区视频| 日韩毛片高清在线播放| 亚洲最大的成人av| 日韩成人精品在线观看| 久久精品久久精品| 福利一区在线观看| 日本久久精品电影| 亚洲最大的成人av| 日本女人一区二区三区| 精品一区二区久久| 99热99精品| 日韩一区二区三区四区| 久久久精品免费观看| 亚洲精品欧美专区| 免费观看久久久4p| 成人三级伦理片| 欧美福利视频一区| 久久久蜜桃精品| 亚洲亚洲精品在线观看| 老司机精品视频一区二区三区| 成人激情免费电影网址| 欧美精品一卡两卡| 国产精品私人自拍| 男人的j进女人的j一区| eeuss鲁片一区二区三区| 欧美日韩激情一区二区三区| 国产色婷婷亚洲99精品小说| 亚洲国产精品一区二区www在线| 国产一区二区三区四| 欧美在线色视频| 久久久精品国产免大香伊| 亚洲午夜激情av| 成人av网站大全| 日韩免费电影网站| 亚洲一区二区精品久久av| 懂色av一区二区三区免费观看| 欧美日韩色综合| 国产精品激情偷乱一区二区∴| 免费人成在线不卡| 91老师片黄在线观看| 国产欧美视频一区二区| 男女激情视频一区| 欧美性大战xxxxx久久久| 国产精品美女久久久久av爽李琼| 蜜臀久久99精品久久久画质超高清 | 国产成人亚洲综合a∨猫咪| 欧美伊人精品成人久久综合97| 国产精品无遮挡| 国产成人综合在线| 精品国产青草久久久久福利| 日韩国产成人精品| 欧美性大战久久久久久久 | 亚洲午夜在线观看视频在线| 国产不卡在线播放| 精品国产乱码久久久久久影片| 丝袜国产日韩另类美女| 91黄视频在线观看| 国产精品视频yy9299一区| 国产在线不卡一区| 精品久久国产老人久久综合| 美洲天堂一区二卡三卡四卡视频 | 婷婷久久综合九色综合绿巨人| 色婷婷综合久久久中文一区二区 | 国产色综合一区| 国产成人午夜高潮毛片| 久久精品亚洲一区二区三区浴池| 另类小说欧美激情| 亚洲精品在线观看网站| 狠狠色丁香婷综合久久| 26uuu久久综合|