Armega128 bootloader using windows hyper terminal
If you are windows user, there is an easiest solution to program Atmega128 microcontrollers. In http://piconomic.co.za there is nice bootloader binary you can download and use for personal purposes.
First of all you will need to upload bootloader hex file (which is packed in) to Atmega128 and properly program fuses. For my Piconomic board I set fuses like this:
Then plug RS232 cable to computer COM2 (or COM1) port and then from windows select Start->All Programs->Accessories->Communication->HyperTerminal. HyperTerminal is program used for multiple communication purposes like connecting to other computer, telnet, modems and null modems.
Firs of all select connection type – COM2:
After pressing OK you will be taken to COM2 connection properties:
After connection settings are done it is time to start bootloading. I have never thought it can be so easy. Just select Transfer->Send file in HyperTerminal program:
In the opening window select file you want to download. Just remember that binary has to be compiled as BIN not HEX. Second option is to select protocol – how data will be sent to booloader. Bootloader is programmed to support Xmodem protocol:
Press Send button then Hyperterminal starts waiting for bootloader to respond:
Just press “Reset” button on your target board and sending will begin automatically. After sending of bin is finished program starts to execute uploaded program.
The AVR fuse bits have been set so that execution starts from the boot vector address. This means that the bootloader will always be executed first. The bootloader sends a ‘C’ character to start a transfer and waits for 1 second for a valid XMODEM-CRC data packet. If the transfer is not successful, it will jump to address 0×0000 and execute the application. This is why we start sending from Hyperterminal first and then press Reset button.
Blogsphere: TechnoratiFeedsterBloglines
Bookmark: Del.icio.usSpurlFurlSimpyBlinkDigg
RSS feed for comments on this post | TrackBack URI for this post
New on WinAVR Tutorial
Running TX433 and RX433 RF modules with AVR microcontrollers,Sometimes in embedded design you may want to go wireless. Might be you will want to log various readi …Programming AVR ADC module with WinAVR,Most of AVR microcontrollers have Analog to Digital Converter (ADC) integrated in to chip. Such solut … |
New on WinARM Tutorial
What are differences between WinARM and WinAVR,Everyone who is working with AVR microcontrollers knows this powerful tool – WinAVR (http://win …LPC2000 watchdog timer,As in all microcontrollers watchdog timers purpose isto reset microcontroller after reasonable amount … |

January 17th, 2008 at 1:05 am
When you say “In the opening window select file you want to download. Just remember that binary has to be compiled as BIN not HEX”, how did you compile it as a BIN? I am using AVR Studio and can only get a .HEX . . .