Updating firmware with protected bootloader.
Posted: Tue Jun 01, 2010 10:19 pm
This procedure describes how to load an encrypted MegaDrum firmware over MIDI or USB.
To use this procedure a couple of pre-requisite must be met.
1. MegaDrum must be programmed with the protected bootloader.
2. The procedure must be done on a Windows PC or Mac OS X.
Here is description of the procedure
1. Download and unzip the firmware update utility called mdfwupdate.
(Updated on 23/12/2011 to add Mac OS X version).
2. Download the latest encrypted MegaDrum firmware and choose a file matching your MegaDrum version, e.g. for MegaDrum on Atmega644 the file will be called megadrum644_20111213.bin where 20111213 is firmware version date.
3. Power MegaDrum up while holding the key LEFT pressed. If you connect over USB and it is the first time you connect your MegaDrum to your PC, let Windows install drivers. While keeping the key LEFT pressed the MIDI LED will be blinking indicating that it is entering the bootloader mode. When you release the key LEFT the LCD will show (on Atmega based MegaDrum):
or (on ARM based MegaDrum):
4. From a command line run the utility, e.g. on Windows:
On Mac OS X;
5. First it will prompt you to choose which MIDI output port to use. Type a number corresponding to the MegaDrum MIDI port and press Enter. It will now prompt you to choose which MIDI input port to use. Type a number corresponding to the MegaDrum MIDI port (don't press Enter yet).
6. Skip this step on an ARM based MegaDrum. In MegaDrum select correct frequency for your Atmega crystal by pressing the key UP. Each time you press UP it will cycle one step through 16MHz-20MHz-24MHz-12MHz. If you use a 16MHz crystal for Atmega, you don't need to press UP since 16MHz is a default start up frequency for the bootloader.
7. Skip this step on an ARM based MegaDrum. In MegaDrum press the key DOWN. It will display 'StartUpdateOnPC'.
8. On the PC press Enter. Note, on Mac OS X this must be done within 1 second after step 7 otherwise MegaDrum bootloader will reset itself.
9. It will now start updating the firmware and after a couple of minutes it will finish. While doing the update it will show progress on the command line and on the LCD. On the LCD it will look like this:
10. When update has finished, the utility will show
and MegaDrum will reboot and will start with new firmware.
This is a screenshot of the whole procedure on the command line:
To use this procedure a couple of pre-requisite must be met.
1. MegaDrum must be programmed with the protected bootloader.
2. The procedure must be done on a Windows PC or Mac OS X.
Here is description of the procedure
1. Download and unzip the firmware update utility called mdfwupdate.
(Updated on 23/12/2011 to add Mac OS X version).
2. Download the latest encrypted MegaDrum firmware and choose a file matching your MegaDrum version, e.g. for MegaDrum on Atmega644 the file will be called megadrum644_20111213.bin where 20111213 is firmware version date.
3. Power MegaDrum up while holding the key LEFT pressed. If you connect over USB and it is the first time you connect your MegaDrum to your PC, let Windows install drivers. While keeping the key LEFT pressed the MIDI LED will be blinking indicating that it is entering the bootloader mode. When you release the key LEFT the LCD will show (on Atmega based MegaDrum):
- Code: Select all
FwSUpdater 16MHz
DOWN-ok.UP-clock
or (on ARM based MegaDrum):
- Code: Select all
FwSUpdaterSTM32b
StartUpdateOnPC
4. From a command line run the utility, e.g. on Windows:
- Code: Select all
mdfwupdate.exe megadrum644_20111213.bin
On Mac OS X;
- Code: Select all
./mdfwupdate megadrum644_20111213.bin
5. First it will prompt you to choose which MIDI output port to use. Type a number corresponding to the MegaDrum MIDI port and press Enter. It will now prompt you to choose which MIDI input port to use. Type a number corresponding to the MegaDrum MIDI port (don't press Enter yet).
6. Skip this step on an ARM based MegaDrum. In MegaDrum select correct frequency for your Atmega crystal by pressing the key UP. Each time you press UP it will cycle one step through 16MHz-20MHz-24MHz-12MHz. If you use a 16MHz crystal for Atmega, you don't need to press UP since 16MHz is a default start up frequency for the bootloader.
7. Skip this step on an ARM based MegaDrum. In MegaDrum press the key DOWN. It will display 'StartUpdateOnPC'.
8. On the PC press Enter. Note, on Mac OS X this must be done within 1 second after step 7 otherwise MegaDrum bootloader will reset itself.
9. It will now start updating the firmware and after a couple of minutes it will finish. While doing the update it will show progress on the command line and on the LCD. On the LCD it will look like this:
- Code: Select all
88886>ater 16MHz
StartUpdateOnPC
10. When update has finished, the utility will show
- Code: Select all
Transferring.. 100% done.
MegaDrum updated successfully.
and MegaDrum will reboot and will start with new firmware.
This is a screenshot of the whole procedure on the command line: