View previous topic :: View next topic |
Author |
Message |
pinkfloyd11
Joined: 02 Jul 2007 Posts: 247
|
Posted: Tue Apr 06, 2010 11:56 am Post subject: |
|
|
Dear Frankeman
I have found a source code project in vb.2005 that do XModem transmission and another OCX in VB6 but for now I'm not able to use correctly.
If I send this resouce to you, could you test on your hardware system?
OR
Could you transform your PC side Bootloader in .NET/OCX components?
Thanks |
|
Back to top |
|
|
Frankeman
Joined: 11 Aug 2004 Posts: 948 Location: the Netherlands
|
Posted: Tue Apr 06, 2010 9:33 pm Post subject: |
|
|
Hi,
I do not use VB or OCX controls, so with that i can't help you.
In the bootloader i use Async32 from TMS software, a commercial product.
They offer a trial for that component, download it and i will make a simple example bootloader for you.
Frank.
PS
TMS Async32 cost 50 euro, i think it is not to much. |
|
Back to top |
|
|
pinkfloyd11
Joined: 02 Jul 2007 Posts: 247
|
Posted: Mon Apr 12, 2010 8:16 am Post subject: |
|
|
Hi Frankeman
I would ask you if is possible at least have compiled version of your bootloader (pc side) little bit modified.
The modification should be only this:
com port, baud rate and name file passed by argument.
Example:
bootloader.exe com1 38400 myfile.bin
So me and other could call it from our application like a standalone module
What do you think?
Thanks |
|
Back to top |
|
|
Frankeman
Joined: 11 Aug 2004 Posts: 948 Location: the Netherlands
|
Posted: Mon Apr 12, 2010 6:04 pm Post subject: |
|
|
Sure that is possible.
I will change the code for you (and others). |
|
Back to top |
|
|
pinkfloyd11
Joined: 02 Jul 2007 Posts: 247
|
Posted: Thu Apr 15, 2010 12:04 pm Post subject: |
|
|
Dear Frankeman
I'm very happy that you have accept my request but...I have forgot to talk you about last parameter.....
If is possible, could be usefull pass by argument also the special character used for start bootloader procedure: chr(123)
In this manner we could compile different bootloader: one that start with chr(123), another that start with chr(125) ecc.
Now we could update firmware in different microprocessor put on the same serial line.
What do you think?
My personal email is gpezzella@yahoo.com
Please contact me soon
Thanks |
|
Back to top |
|
|
Frankeman
Joined: 11 Aug 2004 Posts: 948 Location: the Netherlands
|
Posted: Thu Apr 15, 2010 8:54 pm Post subject: |
|
|
good suggestion, i will investigate if it is possible. |
|
Back to top |
|
|
BurkhardVenus
Joined: 28 Jan 2010 Posts: 7
|
Posted: Tue Jun 01, 2010 8:33 pm Post subject: |
|
|
Frankeman wrote: | Hi,
The PC side bootloader is not very difficult.
...
Frank. |
Hi Frankman!
That is what I thought
I'm using an ATMega 328 with my flightsim und want to update the firmware via plugin. The comunication semms to work fine, the file is completly send an everytime I got a ack. But the bytes in the Flash are not the same. I use the folowing sheme:
// init com
send 123
get 123
send 00
loop until all blocks send:
send 01
send blocknumber
send ~blockblocknumber //MCS take everything
send 128 bytes from hexfile
send checksum
get ack
// loop end
send 04
get ack.
Did I miss something?
Greetings from the border (Leer/ Ostfriesland)
Burkhard |
|
Back to top |
|
|
kenned
Joined: 05 Jun 2006 Posts: 4 Location: Scotland
|
Posted: Sun Dec 26, 2010 12:07 pm Post subject: Bootloader - in Delphi |
|
|
I'm looking to add the ability to program a Mega328p via RS232 from an application that is written in Delphi 7. A search on the forum found this thread - it struck me that Frankeman has already 'been here and done that'.
Frank, might you be able to send me the the .exe for your loader (or better still the Delphi source)? I already use Async Pro for serial comms in my app).
Cheers,
Derek. |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Sun Dec 26, 2010 6:30 pm Post subject: |
|
|
There is already a boot loader you can download from mcs web.
It is free for private use. For commercial usage you can contact sales. _________________ Mark |
|
Back to top |
|
|
|