MegaLoad
Please try the new MegaLoadU Version
History
MegaLoad is a Windows based boot loader for all Atmel ATMega microcontrollers that support the Bootloader function. MegaLoad is a solution for everybody who wants fast loading (~8k in 3 seconds) and easy software upgrade via MCU RS232 port.
MegaLoad is written in Visual C# and the source code is available for 100$usd that can be pay via paypal at bibi@microsyl.com
Features
- support device larger than 128k flash
- Small Bootloader code. Only 256 words if only flash program is need (512 word if flash & EEPROM)
- Only embedded requirement is RS232 connector like a MAX232.
- Communicates at 9600,19200,38400,57600,115200bps on Com1 to 20
- Simple Monitor window is available to help you to debug your code
- Checksum everywhere to secure data
- Automatic page retry, if error in flash programming
- Automatic byte retry, if error in EEPROM programming
- Manual set & clear DTR,RTS if need.
- Reset button
System Requirements
- Windows, .NET framework 2.0 runtime
- RS232
- ATMega
Picures
Download
Megaload Bootloader Code for ICCAVR
Megaload Bootloader for CodeVision
83 Comments to “MegaLoad”
Post comment
Please note
Categories
- All projects
- Audio
- Clock
- Electric Train
- Gadjet
- General Posting
- Laser
- Lastes News
- LED
- Library
- Sensor
- Software
- Work Bench Tools
Blogroll
Electronic Links
Tags
AGC
Anemometer
AVR
AVR Bootloader
Bootloader
Capacitence
Capacitor
Clock
Color
Control
DCC
Debugger
Devices
Digital
driver
Function Generator
High Gain Microphone
Humidity
Inductance
Inductor
Laser
LCD
LED 3W
Library
Lightning Detector
MegaLoad
Meter
Moodlight
Mood Light
MS5534
Nixie
OscilloScope
projector
Rain Fall Sensor
rgb
RGB LED
Scop
Sensor
SHT75
Temperature
Terminal
Tipping Bucket
Train Modeling
Vintage
Water Detector

admin

All my source codes were taken from my personal projects.
I tried with arduinomega with atmega1280. But check the bootloader which does not compile unless I change in assembly.s to (see change of mega1280 to 3rd line instead of 1st line)
.if MEGA64 | MEGA128
SPMCR = 0×68
.elif MEGA324 | MEGA644 | MEGA1280
SPMCR = 0×37
.else
SPMCR = 0×57
.endif
After this change all works fine with arduinomega
Normal
0
21
Hello, I use Megaload with an ATMega32, i have tried some small firmware and everything works fine, bootloader and firmware.
Now I want to load a firmware with megaload, but an error occurred:
Error in Flash Hex File 77
Hex-File:
Row
76 :1004A20093553B56E75698574E580C59D159A25A74
77 :0A04B200815B745C885DD95EA8616F
78 :040000050080012B4B
79 :00000001FF
EOF
Did you know the problem and is there any solution to solve the problem?
Thanks for your help.
Stefan
i found it now in an older comment, i use now pg4uwarc.exe and convert the avrstudion-hex-file to an intel-hex file, thanks to Frik
Hi
I m using mega loader version 7.0 with atmega32. it works well but when i use megaloader with atmega644 it does not work. plz tel me the reason why it happens
waiting for reponse
Your #define in the .c and .s file could be wrong, Maybe it’s not the same for the 64 & 644, Check the datasheet of both MCU
Sylvain
thanks
is can use for encrypt the Flash code too (like application note at Atmel website: AVR230 / AVR231)? Many thanks
No
Hi there. I just installed the latest (6.3), but it sits there awaiting target . The device is sending FF ~every second at 9600 — I can see this on a terminal. The bootloader fw is a few years old now — is 6.3 not backwards compatible perhaps?
Give me your personal email, I will send you the hex file
Sylvain
i had used this one in atmega16L 8pu (0938k) bt is not successful on atmega16L 8pu (1031).
does these numbers matter??????
I don’t understand why, it’s strange???
Does Megaload 7.1 work with Windows 7…..I have used it with Win XP and Vista but in those cases I used the previous versios of Megaload.
I don’t know, if you try it please give me feedback!!
Hi again Sylvian
Ok..sorry I have read a bit more on solving it from other posts..
I have reduced my Comms to 19200 and it seems.
I have also increased the NSHIFTPAGE = 8 not 7 as ZPAGEMSB = PAGEMSB+1 thus 6+1 = 7 and then NSHIFTPAGE = ZPAGEMSB + 1;
Now that I understood that part..it is running like a mouse with sneakers.. I have one question on the RAMPZ to 0×00 in the main.c File and RAMPZ to 0×5B in the "Can128.h" file bothers me..as when I bootload now…it seems to load..as per I axpected…but seems the code does not run… ?
Regards
Hi,
I tried to use your MegaLoad V6.3 with ATmega2561. But I always get the message "Your comm is close".
FuseBits, ComPort and Baudrate should be correct (I did it as you wrote in your tutorial).. Can you help me? Im not really good with this stuff.
Paul
Hi
I don’t know if it’s work with a 2561, I never had feedback on this MCU… and I don’t plan to make new bootloader for new MCU that’s to many hours for me and it give me 0$
Sylvain
Hi Sylvain,
two fixes are necessary for the bootloader on an AT90CAN128 to get it compiled with CVAVR (CodeVision AVR) 2.05.xx:
- Change name of include file in line 591 to “90can128.h”
- Add “#define IVCE 0″ after line 598
Greets,
Kramer
Hello
I was wondering if you have any reports of the successful use of MegaLoad on a Linux system, using mono. If I was reasonably sure that it would work, then I wouldn't mind purchasing the source code.
I don’t know if it’s work or not, but please keep up inform!
I am using a 10'' netbook would it be possible for the screen to be resized to fit these smaller computers
Thanks
The app don’t have this posibility, and I don’t have time to rework this code
Thanks
Sylvain Bissonnette
Seems that latest version available on this site is 6.3, tried to upload flash in 644, but got nowhere, it just sits and waits for target…
I have never try on a 644, maybe the #define is not correct, check with the datasheet
Sylvain
Dear Admin,
Today can run version BootLoader 7.4 with megaload.net 6.3 with ATMEGA32 over win vista 32bit.
I used codivisionavr 2.05.0.
Thanks you for your contribution and help.
For atmega 1281 will be support.
No, I don’t have time to work on new devices
Sylvain
#if (MEGATYPE == Mega1281)
#include "mega1281.h"
#define DeviceID Mega1280
#define FlashSize Flash256k
#define PageSize Page256
#define EEpromSize EEprom4096
#define PageByte 256
#define NSHIFTPAGE 8
#define INTVECREG MCUCR
#if (UART == 0)
#define PULLUPPORT PORTE
#define PULLUPPIN 0×01
#endif
#if (UART == 1)
#define PULLUPPORT PORTD
#define PULLUPPIN 0×04
#endif
#if (UART == 2)
#define PULLUPPORT PORTH
#define PULLUPPIN 0×01
#endif
#if (UART == 3)
#define PULLUPPORT PORTJ
#define PULLUPPIN 0×01
#endif
#endif
atmega 1281is supported
Hey thanks for your work!
Sylvain
Thanks Sylvain, Megaload help me alot.
I work with ATmega1280. The source code for CodevisionAVR miss a define RAMPZ_FLAG, if you use ATmega1280 please add #define RAMPZ_FLAG
Thanks for your work and thanks for your post!
Sylvain
Hi,
I usually use the megaload.Net.exe application for update firmware my machine.
but, Sometimes I find this error message.
"The application failed to initialize properly (0xc000007b) Click on OK to terminate the application."
I don't know why this message is poped up.
ensurely I set up the .net framework 2.0
i really want to know why the message is pope up.
Is that a new message, It was working before? I never saw this error.