Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Data transfer protocol bootloader

Status
Not open for further replies.

electronicsman

Full Member level 5
Joined
May 4, 2012
Messages
291
Helped
11
Reputation
22
Reaction score
12
Trophy points
1,298
Activity points
3,737
I am confused with data transfer of application hex file from host to target. Where shall i exactly add the checksum in the application hex file and which algorithm should i use? Please suggest.
 

Hi,

I'd say there are many different protocols.
You need to say which protocol you are using.
At least which microcontroller, and which bootloader you mean.

Klaus
 

I am using dspic 16 bit bootloader using uart. I am saying that in case application hex file is faulty how to recognize it? Should i first be storing all the uart hex file data and start flashing or block by block should i flash.
 

If we are talking about intel hex, then there is a specific format. There is a checksum in every line, so you must check line by line. Also you know how many bytes exist in each line because there is a corresponding byte that informs you about this. You can get the end of file (last hex line) from the record type byte. A google search will give you plenty of results.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top