Process to send application code to bootloader

Go To Last Post
10 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

if i use bootloader code of avr109 self programming what are the option i have, in order to flash application code, i mean through which all means i can pass on the application code via uart communication?
 

Enoch Sam

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

awneil wrote:

Duplicate: http://www.avrfreaks.net/forum/p...

 

yup i posted by mistake in other fourm.... how to delete it?

 

Enoch Sam

Last Edited: Wed. Dec 20, 2017 - 12:05 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The protocol you use to packet up the bytes is completely up to you. Pick something that works for you that is easy to encode/decode and is foolproof. There have been a number of attempts at this AVR109, AVR910 (is it?), STK500, STK500v2 so either just implement one of those (in which case tools for the PC sending end already exist) or, like fboot for example, make up something completely new. (but then you need to write both encoder/sender and receiver/decoder)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:

The protocol you use to packet up the bytes is completely up to you. Pick something that works for you that is easy to encode/decode and is foolproof. There have been a number of attempts at this AVR109, AVR910 (is it?), STK500, STK500v2 so either just implement one of those (in which case tools for the PC sending end already exist) or, like fboot for example, make up something completely new. (but then you need to write both encoder/sender and receiver/decoder)

 

okkk clawson...............one more clarification needed, do avr109 bootloader code directly accept intel .Hex file?

Enoch Sam

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Your question makes no sense. AVR109 is simply the definition of a packet protocol. Your real question should be "does any software that passes data using the 109 protocol have the ability to read ihex". As it happens perhaps the most famous software that happens to implement AVR109, avrdude.exe, does have the ability to read ihex.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
Your question makes no sense. AVR109 is simply the definition of a packet protocol. Your real question should be "does any software that passes data using the 109 protocol have the ability to read ihex". As it happens perhaps the most famous software that happens to implement AVR109, avrdude.exe, does have the ability to read ihex.
Actually, the question does make sense.

The answer is no, but the question made sense.

Using a bootloader involves throwing bytes at a device and getting some others back.

OP was asking whether the thrown bytes could be in Intel hex format.

 

@OP:

Bootloaders are generally not very smart.

Most of the smarts is on the PC side where there is more room.

Nomad could not have been running on an 2017 AVR.

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

skeeve wrote:

OP was asking whether the thrown bytes could be in Intel hex format.

exactly this is wat i asked..... thanks for the answer....

Enoch Sam

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

If that was the question do NOT consider putting an ihex decoder into a boot loader. For one it can be more complex than you expect, for another a boot loader is the only bit of the software that MUST be 100% error free on day one and that means keeping it as simple as possible. The reason AVR109 is very popular is that it is a binary protocol and simple to implement. Do your ihex to bin conversion on the PC using standard (usually libbfd based) tools.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:

Do your ihex to bin conversion on the PC using standard (usually libbfd based) tools.

okk clawson.... will try the conversion.... thank u....

Enoch Sam