Forum > Embedded - AVR

Pascal bootloader for AVR

(1/3) > >>

ccrause:
I have started a serial bootloader project for AVR controllers: This project supports most of the STK500V1 protocol, mostly as required to function with the avrdude upload tool.

While this bootloader is (not yet) particularly small or fast, it is a demonstration of what can be done in FPC, and possibly identify areas which can be improved in the compiler.

d.ioannidis:
Hi,

  Very nice !

  I wanted to research freepascal avr bootloader topic for a long time ...

  ( there goes my weekend playing and testing with your code .... ;) )

regards,

MarkMLl:
That reminds me: https://osdn.net/projects/sfnet_avrub/releases/ is an AVR downloader that I came across from a little handheld oscilloscope, written using Delphi. Might be useful to somebody.

MarkMLl

ccrause:

--- Quote from: MarkMLl on April 29, 2023, 01:06:45 pm ---That reminds me: https://osdn.net/projects/sfnet_avrub/releases/ is an AVR downloader that I came across from a little handheld oscilloscope, written using Delphi. Might be useful to somebody.

MarkMLl

--- End quote ---
An interesting idea, it seems as if it has a GUI to configure bootloader settings, generate a header file and then compile a new bootloader using avr-gcc. Unfortunately I do not recognize the download protocol and it isn't described anywhere, so not that easy to re-use.

MarkMLl:

--- Quote from: ccrause on April 29, 2023, 06:02:57 pm ---An interesting idea, it seems as if it has a GUI to configure bootloader settings, generate a header file and then compile a new bootloader using avr-gcc. Unfortunately I do not recognize the download protocol and it isn't described anywhere, so not that easy to re-use.

--- End quote ---

I didn't go too deeply into it since my main interest was talking to the 'scope, but taking into account that it's apparently got code signing etc. it might even be an AVR chip protocol rather than a separate bootloader.

Slightly later: "The bootloader included with this application note..." http://ww1.microchip.com/downloads/en/AppNotes/00002462A.pdf hence apparently something like http://start.atmel.com/#example/Atmel:AVR231_AES_Bootloader:0.0.1::Application:AVR231_AES_Bootloader: although I've not yet worked out how to use that. The important thing is that it is an "official" protocol, even if it's been overshadowed by- in particular- Arduino conventions.

Even later: https://community.element14.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-46/Atmel_2D00_megaAVR_2D00_ATmega48A_2D00_Design-Elements_2D00_Application-Library_2D00_Atmel.Application_5F00_Library_5F00_23.zip

MarkMLl

Navigation

[0] Message Index

[#] Next page

Go to full version