Bootloader test

Discussions related to MegaDrum Hardware

Re: Bootloader test

Postby Synthex » Mon Feb 11, 2008 11:35 am

dmitri wrote:Can you post the screenshot of the fuses settings in PonyProg and a dump of the flash memory?
You do not have the required permissions to view the files attached to this post.
Synthex
 
Posts: 1471
Joined: Fri Oct 12, 2007 6:06 am
Location: France

Re: Bootloader test

Postby dmitri » Mon Feb 11, 2008 11:55 am

Weird... it seems alright to me. It should jump to bootloader on reset. I'll double check it tonight.
dmitri
Site Admin
 
Posts: 8706
Joined: Fri Aug 03, 2007 8:05 pm

Re: Bootloader test

Postby Synthex » Mon Feb 11, 2008 12:35 pm

I do it one more time ... and now it works ... :roll:
Synthex
 
Posts: 1471
Joined: Fri Oct 12, 2007 6:06 am
Location: France

Re: Bootloader test

Postby Synthex » Fri Mar 21, 2008 3:04 pm

Is it possible to get the bootloader for Atmega644 in 20MHz and 24MHz ?
Thanks
Synthex
 
Posts: 1471
Joined: Fri Oct 12, 2007 6:06 am
Location: France

Re: Bootloader test

Postby dmitri » Wed Jun 18, 2008 11:24 pm

Here is a new version of the bootloader:
see latest version down this thread

This version is "multiclock" capable.
As before:
To enter the bootloader - hold key LEFT pressed while powering up.
While in the bootloader:
To select MCU clock - press key UP. The selection is between 12/16/20/24MHz (16MHz by default). The selected clock will be displayed on an LCD.
To cancel the firmware update - power cycle without pressing any other key.
To start the firmware update - press key DOWN. It will erase an old firmware and wait for Sysex with a new firmware.

And this is the bootloader source code:
BootloaderSysex.zip
You do not have the required permissions to view the files attached to this post.
dmitri
Site Admin
 
Posts: 8706
Joined: Fri Aug 03, 2007 8:05 pm

Re: Bootloader test

Postby Synthex » Thu Jun 19, 2008 7:22 pm

Good news for fools of overclocking ! ;)
Synthex
 
Posts: 1471
Joined: Fri Oct 12, 2007 6:06 am
Location: France

Re: Bootloader test

Postby dmitri » Wed Oct 08, 2008 6:57 pm

This is an updated version of the Bootloader for Atmega32, Atmega324 and Atmega644:
Bootloader_20081008.zip


This is the source code:
BootloaderSysex.zip


In this version when sysex firmware is being sent to MegaDrum the MIDI LED is flashing with every ROM page write (around 20 flashes).

Note on overclocking. I'm doing most of the development and testing with Atmega32. Although overclocked to 20Mhz it appears to work fine with MegaDrum firmware.
But when I try to program it using the bootloader, most of the time it either fails to finish a firmware update or some regions of ROM become corrupted after an update. I guess the same may happen with Atmega324 and Atmega644 if overclocked to 24MHz. Be warned.
You do not have the required permissions to view the files attached to this post.
dmitri
Site Admin
 
Posts: 8706
Joined: Fri Aug 03, 2007 8:05 pm

Re: Bootloader test

Postby dmitri » Wed Oct 08, 2008 7:00 pm

And also note the buffer size change from 40000 to 60000 in the first post:
Now you can upload this file using MIDI-OX. But before doing this you MUST set 'Low Level Output Buffers' to at least 60000 (in MIDI-OX menu go Options->Configure Buffers and set Output, NOT Input, Buffers to 60000).
dmitri
Site Admin
 
Posts: 8706
Joined: Fri Aug 03, 2007 8:05 pm

Re: Bootloader test

Postby japi » Thu Nov 27, 2008 2:44 am

I couldn't make the bootloader to work. I uploaded the bootloader as per the instructions, that worked, but when rebooting megadrum with left pressed, the screen would not show anything. If I press right it would show the "up: clock speed / down:ok" thing. Pressed down and sent firmware with midi ox but not luck. Buffers are at 60000 as suggested here. I tried with MD config tool but no luck either, it would say that couldn't send the file.

After a few tries, sometimes it would lock and no response to any button and had to upload the bootloader again.
Any thought?
japi
 
Posts: 180
Joined: Tue Oct 07, 2008 2:03 pm
Location: Buenos Aires, Argentina

Re: Bootloader test

Postby Synthex » Thu Nov 27, 2008 9:24 am

Do you set configuration fuses for the Atmega ?
Synthex
 
Posts: 1471
Joined: Fri Oct 12, 2007 6:06 am
Location: France

PreviousNext

Return to MegaDrum Hardware

Who is online

Users browsing this forum: Google [Bot] and 52 guests