Page 1 of 1

Program Atmega324 via ISP cable

PostPosted: Tue Mar 02, 2010 5:10 pm
by The_JinJ
Hi

Megadrum 20Mhz 32 input
Atmega324

I can sucessfully update the bootlaoder onto my 324 but was wondering if it is possible to update the firmware (using Ponyprog)? I can get the firmware written if I use 'File-->open device file' then 'Command-->Write all', it loads into Megadrum menus but I can't then adjust the clock etc - I can enter the menu but doesn't function properly (not all menus available, autoconfig goes very fast, no VU meters) . If I write the bootloader (Command-->write flash) I get a FW updater message but can't go any further.

If this isn't possible with the cable I will do it over USB (waiting on a replacement crystal - no 3.3v on pin 14) via MCT.

If I'm barking up the wrong tree or you need more details please let me know.

Thanks
Neil

Re: Program Atmega324 via ISP cable

PostPosted: Tue Mar 02, 2010 5:34 pm
by dmitri
You can write the MegaDrum firmware directly without a bootloader. Make sure that you choose the right firmware file, i.e. matching your Atmega/crystal/number of inputs and that Atmega fuses are also programmed correctly.

Re: Program Atmega324 via ISP cable

PostPosted: Tue Mar 02, 2010 8:16 pm
by The_JinJ
dmitri wrote:You can write the MegaDrum firmware directly without a bootloader. Make sure that you choose the right firmware file, i.e. matching your Atmega/crystal/number of inputs and that Atmega fuses are also programmed correctly.


Thanks for the reply.

Just to confirm this is the correct procedure in PonyProg:

File-->Open Device File (megadrum324_20_32_20091217.hex - 324, 20mhz crystal and 32 input)
Hex file shows in window
Command-->Security and Configuration bits (set as per docs)
Command-->Write all

This does write ok but I can't seem to access all menus - only autoconfig and main screen

Re: Program Atmega324 via ISP cable

PostPosted: Tue Mar 02, 2010 9:05 pm
by dmitri
So when press the key RIGHT:
1. first time you see the copyright screen
2. second time you see the firmware version screen
3. third time you see the AutoLoad Conf screen
4. fourth, fifth, sixth (and so on) time you still see the AutoLoad Conf screen

Correct?

Re: Program Atmega324 via ISP cable

PostPosted: Tue Mar 02, 2010 9:59 pm
by The_JinJ
Dmitri - I reloaded the firmware and I can access the menus ok - thanks.

Is the LCD contrast controlled via bootloader? I have attached pin 3 to ground for now so the contrast is high but can't find any setting in firmware to adjust (hopefully not just missing it!!)

Thanks for your help (and great work with Megadrum!!)

Re: Program Atmega324 via ISP cable

PostPosted: Tue Mar 02, 2010 11:56 pm
by dmitri

Re: Program Atmega324 via ISP cable

PostPosted: Wed Mar 03, 2010 12:22 am
by The_JinJ
You can change the LCD contrast pressing keys UP/DOWN or rotating the 'Up/Down' rotary encoder while in the copyright page of the Menu<'Megadrum.info>< © D.Skachkov'>


Missed that! Thanks!