Forum: ARM programming with GCC/GNU tools simple protocol

von Roman M. (romez777)

Rate this post
0 useful
not useful

I'm designing simple protocol for a bootloader, which is supposed to
transfer data from host computer to target (ARM7-based embedded system)
USB. It should not be very reliable, so a simple checksum algorithm can
used by now. I plan to transmit data in blocks, prepended with a header
ended with a control check sum.

So here is how I assume it may be:

|message type 1 byte|length 2 bytes|... data ...|checksum 4 bytes|

Message type might be 'start', 'stop', 'acknowledge', 'error'. Next is
the size of the data transmitted including header and checksum. It ends
up with the checksum.

I'm not sure to include checksum or not, as USB already supports
error-checking on a hardware level.

Please critisize such solution. Any advices and comments will be


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.