Click here to Skip to main content
15,895,709 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I am trying to implement the Firmware Download from host(PC) to target device using RS232. I am using the natice C# serial port wrapper for the initial connection to the device. I am pretty much new to C# language. Start address, number of chunks in the file is all available in the binary file. I used the below approach to get the bytes from the file

FileData = System.IO.File.ReadAllBytes(file_path);

         nChunks  = BitConverter.ToUInt32(FileData, 8);
         nChunks = FileData.ElementAt(8);

         StartAddress= BitConverter.ToUInt32(FileData, 12);


But I am not sure of the way to write blocks of the firmware binary to the target device location starting from the address and start the device. Can some one help in this regard
Posted

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900