Quantcast
Viewing all articles
Browse latest Browse all 63798

Forum Post: RE: MSP-Gang C# Example can not Build

Hi Kejian, The example code was developed under MS Visual C++ 2005, it's better to run with same version IDE. During the solution upgrade to 2015, there is possible some errors since the C# version too different. Here I made some code modification to make it pass the build but I still suggest you to use the same version C# as the example code used. public class DATA_BUFFERS { byte[] SourceCode = new byte [DatBufConst.DBUFFER_SIZE]; //source code from the file byte[] UsedCode = new byte [DatBufConst.DBUFFER_SIZE]; //combined data (source code, serialization etc) byte[] CommonTx = new byte [DatBufConst.DBUFFER_SIZE]; //data used to writing - the same data to all targets byte[,] GangTx = new byte [DatBufConst.DBUFFER_SIZE, GenericConstants.GANG_SIZE]; //selective data used to writing byte[,] GangRx = new byte [DatBufConst.DBUFFER_SIZE, GenericConstants.GANG_SIZE]; //data read from all targets byte[] Tmp = new byte [DatBufConst.DBUFFER_SIZE]; byte[,] JTAG_Passsword = new byte [2,DatBufConst.JTAG_PASSW_LEN]; byte[,] BSL_Passsword = new byte [2,DatBufConst.BSL_PASSW_LEN]; byte[] Flag_ScrCode = new byte [DatBufConst.DBUFFER_SIZE]; //0 - empty 1-Code1, 2-Code2, 4-Appended Code in SourceCode[x]; // #define CODE1_FLAG 1 // #define CODE2_FLAG 2 // #define APPEND_CODE_FLAG 4 byte[] Flag_UsedCode = new byte [DatBufConst.DBUFFER_SIZE]; //0 - empty 1-valid data in UsedCode[x]; byte[] Flag_WrEn = new byte [DatBufConst.DBUFFER_SIZE]; //0 - none 1-write/verify enable in FlashMem[x] byte[] Flag_EraseEn = new byte [DatBufConst.DBUFFER_SIZE]; //0 - none 1-erase enable in FlashMem[x] byte[] Flag_RdEn = new byte [DatBufConst.DBUFFER_SIZE]; //0 - none 1-read enable in FlashMem[x] byte[] Flag_Sp1 = new byte [DatBufConst.DBUFFER_SIZE]; //spare byte[] Flag_Sp2 = new byte [DatBufConst.DBUFFER_SIZE]; //spare byte[] Flag_Sp3 = new byte [DatBufConst.DBUFFER_SIZE]; // byte[,] Flag_JTAG_Passw = new byte [2, DatBufConst.JTAG_PASSW_LEN]; // [0][..]-password from code file; [1][..]-password from password file byte[,] Flag_BSL_Passw = new byte [2, DatBufConst.BSL_PASSW_LEN]; // [0][..]-password from code file; [1][..]-password from password file }

Viewing all articles
Browse latest Browse all 63798

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>