View previous topic :: View next topic |
Author |
Message |
AdrianJ
Joined: 16 Jan 2006 Posts: 2483 Location: Queensland
|
Posted: Thu May 25, 2006 3:32 am Post subject: Update Program from Card |
|
|
If I use AVR-DOS to mount a formatted card, is it then possible to transfer control to a boot sector in AVR-Flash, and so update the AVR-Flash from an image on the card ?
So one could then do program upgrades on an AVR system just by writing a new file to the flash card with a PC and installing it in the AVR system. _________________ Adrian Jansen
Computer language is a framework for creativity |
|
Back to top |
|
|
oe9vfj
Joined: 17 Jun 2004 Posts: 269 Location: Austria, Hard
|
Posted: Fri May 26, 2006 12:18 pm Post subject: |
|
|
Hi Adrian,
it is possible to flash a M128 or M64 from cd CF or MMC/SD card.
I attache a bootloader, which will load either a BIN or a HEX file to the Flash from a CF or MMC/SD card.
Please check the description in the header of the BAS-File.
Can you please inform me, how it works for you. _________________ regards Josef
DOS - File System for BASCOM-AVR on http://members.aon.at/voegel |
|
Back to top |
|
|
AdrianJ
Joined: 16 Jan 2006 Posts: 2483 Location: Queensland
|
Posted: Sat May 27, 2006 4:39 am Post subject: |
|
|
Hi Josef,
Wow, I didnt expect to have all the work done for me ! I will try it out, but it may not be soon.
Thanks _________________ Adrian Jansen
Computer language is a framework for creativity |
|
Back to top |
|
|
AdrianJ
Joined: 16 Jan 2006 Posts: 2483 Location: Queensland
|
Posted: Mon Jun 26, 2006 5:02 am Post subject: |
|
|
I finally got to try out the bootloader. Works like a charm from a Kingston 256 Mb card, using an AtMega64 processor. Just set up a hex file, put it on the card using Windoze, insert the card in the target, and presto, new program !. Great ! _________________ Adrian Jansen
Computer language is a framework for creativity |
|
Back to top |
|
|
KenHorse
Joined: 16 Jul 2004 Posts: 523
|
Posted: Sun Jul 02, 2006 7:06 pm Post subject: |
|
|
oe9vfj wrote: | Hi Adrian,
it is possible to flash a M128 or M64 from cd CF or MMC/SD card.
I attache a bootloader, which will load either a BIN or a HEX file to the Flash from a CF or MMC/SD card.
Please check the description in the header of the BAS-File.
Can you please inform me, how it works for you. |
I'm not seeing an attachment and I'd love to have a look at this. |
|
Back to top |
|
|
KenHorse
Joined: 16 Jul 2004 Posts: 523
|
Posted: Sun Jul 02, 2006 7:26 pm Post subject: |
|
|
KenHorse wrote: | oe9vfj wrote: | Hi Adrian,
it is possible to flash a M128 or M64 from cd CF or MMC/SD card.
I attache a bootloader, which will load either a BIN or a HEX file to the Flash from a CF or MMC/SD card.
Please check the description in the header of the BAS-File.
Can you please inform me, how it works for you. |
I'm not seeing an attachment and I'd love to have a look at this. |
Nevermind...... |
|
Back to top |
|
|
oe9vfj
Joined: 17 Jun 2004 Posts: 269 Location: Austria, Hard
|
Posted: Tue Jul 04, 2006 11:34 am Post subject: |
|
|
You must be logged in to see the attachement _________________ regards Josef
DOS - File System for BASCOM-AVR on http://members.aon.at/voegel |
|
Back to top |
|
|
zolsi
Joined: 24 Jan 2006 Posts: 51
|
Posted: Tue Jul 04, 2006 9:49 pm Post subject: |
|
|
HI adrian,
Could you post your shematic (for a sd card) please? I found many different shematic and i would like to know yours (since i know it works :p)
is there something to change in Dos_boot2.bas? cause i cant compile it. the program cant find the librairies ?!? (CONFIG_AVR-DOS_boot.bas).
Where did you found Config_MMC.bas? same for sd card i suppose...
Thank you for your help ! |
|
Back to top |
|
|
oe9vfj
Joined: 17 Jun 2004 Posts: 269 Location: Austria, Hard
|
Posted: Wed Jul 05, 2006 6:36 am Post subject: |
|
|
Please check http://members.aon.at/voegel section Download. There you find the schematic and the other files for MMC/SD.
What kind of errors do you get at compiling DOS_Boot2.bas? _________________ regards Josef
DOS - File System for BASCOM-AVR on http://members.aon.at/voegel |
|
Back to top |
|
|
AdrianJ
Joined: 16 Jan 2006 Posts: 2483 Location: Queensland
|
Posted: Wed Jul 05, 2006 6:52 am Post subject: |
|
|
I used exactly the schematics as on Josef Voegel site. Hardware SPI on a M64 processor. _________________ Adrian Jansen
Computer language is a framework for creativity |
|
Back to top |
|
|
Webworm
Joined: 10 Jul 2006 Posts: 1
|
Posted: Thu Jul 13, 2006 7:53 am Post subject: |
|
|
Hi,
Will this only work with an MEGA64/128 ? Any chance of this working with a Mega8 ?
Thanks
Stuart |
|
Back to top |
|
|
AdrianJ
Joined: 16 Jan 2006 Posts: 2483 Location: Queensland
|
Posted: Thu Jul 13, 2006 11:11 pm Post subject: |
|
|
Because the bootloader itself uses AVR-DOS, you need at least 1K of RAM for the DOS handler. Also the boot block itself has to contain all the DOS code, nearly 8K. So you cant do this in an Atmega8.
Since processors are so cheap now, you may as well just install an Atmega644 in place of the Atmega8 and use that. _________________ Adrian Jansen
Computer language is a framework for creativity |
|
Back to top |
|
|
zolsi
Joined: 24 Jan 2006 Posts: 51
|
Posted: Fri Jul 14, 2006 9:23 am Post subject: |
|
|
oe9vfj wrote: | Please check http://members.aon.at/voegel section Download. There you find the schematic and the other files for MMC/SD.
What kind of errors do you get at compiling DOS_Boot2.bas? |
the error is : Cant find avr-dos.lib and when i click on it i arrive on Config_avr-dos_boot.bas and a hundred of errors : out of sram space.
The file avr-dos.lbx is in my lib folder but i didnt find any avr-dos.lib file on your site... |
|
Back to top |
|
|
oe9vfj
Joined: 17 Jun 2004 Posts: 269 Location: Austria, Hard
|
Posted: Thu Jul 20, 2006 2:29 pm Post subject: |
|
|
Hi,
You can use AVR-DOS with the AVR-DOS.lbx. It is the precompiled code of the library AVR-DOS.LIB.
The source code of AVR-DOS contained in AVR-DOS.LIB is provided to user who purchased an AVR-DOS License. Check: http://members.aon.at/voegel/License.htm _________________ regards Josef
DOS - File System for BASCOM-AVR on http://members.aon.at/voegel |
|
Back to top |
|
|
Djago
Joined: 23 Nov 2005 Posts: 6 Location: Holland
|
Posted: Wed Jul 26, 2006 5:03 pm Post subject: Atmega644 |
|
|
Hi All,
I would like to implement this bootloader on an Atmega644.
First: is this also possible on this MCU.
Second: what changes need to be made in files/settings for this MCU?
Regards,
Peter
Netherlands |
|
Back to top |
|
|
|