Flash Downloader

Is Manual Correct?

  • 1
  • 2
  • Page 1 of 2
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1409
Registered: 03 / 2005
Subject:

Flash Downloader

 · 
Posted: 22.06.2017 - 18:13  ·  #1
I am trying to write my own Delphi program to download to an XMEGA using FlashDownLoader.

But it seems to me that there is an extra 2 byte parameter to the 'D' command that is not documented, and it appears to specify the number of bytes that are to follow.

Am I correct?

Also, can the user signature row be updated with this driver, and if so, how?
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: Flash Downloader

 · 
Posted: 25.06.2017 - 20:43  ·  #2
Hello Merlin,

yes, the UserRow is supported. For better understanding and for
help to build your own one I attach the complete Delphi sources.

rolf
Attachments
Filename: FlashLoader.zip
Filesize: 33.65 KB
Title:
Download counter: 55
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1409
Registered: 03 / 2005
Subject:

Re: Flash Downloader

 · 
Posted: 25.06.2017 - 21:48  ·  #3
Thanks Rolf
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1409
Registered: 03 / 2005
Subject:

Re: Flash Downloader

 · 
Posted: 26.06.2017 - 12:55  ·  #4
Thanks again Rolf. On reading the source it seems that the extra two bytes I was referring to only apply if the download refers to a CPU and the CPU type is PDI, which I guess includes XMEGAs.

Also sending the user row involves sending the command 'U' which the documentation states 'Host requests an upload of the content of the Loaders buffer'.

Perhaps 'DocuTools' FlashLoader Command list needs updating?

Similarly AVRCo Standard driver section 3.51.5.4 FlashDownloader Functions

Regards
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: Flash Downloader

 · 
Posted: 27.06.2017 - 15:38  ·  #5
Hello Merlin,

the docs are fixed now.

rolf
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1409
Registered: 03 / 2005
Subject:

Re: Flash Downloader

 · 
Posted: 10.07.2017 - 17:17  ·  #6
Hi Rolf.

On examining the code further, for XMEGAs at least U erases the User page, (which is the first part of the transfer), followed by D command then R command, which is correctly documented. There are no parameters for U and R commands.

Sorry to have misled you.

Also, Only DocuStdDriver.pdf updated, not DocuTools.pdf.

Regards
Lschreyer
Schreiberling
Avatar
Gender: n/a
Posts: 527
Registered: 02 / 2007
Subject:

Re: Flash Downloader

 · 
Posted: 01.04.2018 - 16:58  ·  #7
Ich wärme das kurz auf: Welche Delphi-Version benötigt man für die Compilierung des Programms?
rh
Administrator
Avatar
Gender:
Location: Germany
Age: 24
Homepage: e-lab.de
Posts: 5558
Registered: 03 / 2002
Subject:

Re: Flash Downloader

 · 
Posted: 01.04.2018 - 17:31  ·  #8
Hallo Louis,

ich arbeite aus div. Gründen mit D2007

rolf
  • 1
  • 2
  • Page 1 of 2
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 15 · Cache Hits: 15   137   152 · Page-Gen-Time: 0.025435s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI