Program Atmega324 via ISP cable

Discussions related to MegaDrum Hardware

Program Atmega324 via ISP cable

Postby The_JinJ » Tue Mar 02, 2010 5:10 pm

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
The_JinJ
 
Posts: 38
Joined: Fri Feb 12, 2010 12:36 am

Re: Program Atmega324 via ISP cable

Postby dmitri » Tue Mar 02, 2010 5:34 pm

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.
dmitri
Site Admin
 
Posts: 8718
Joined: Fri Aug 03, 2007 8:05 pm

Re: Program Atmega324 via ISP cable

Postby The_JinJ » Tue Mar 02, 2010 8:16 pm

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
The_JinJ
 
Posts: 38
Joined: Fri Feb 12, 2010 12:36 am

Re: Program Atmega324 via ISP cable

Postby dmitri » Tue Mar 02, 2010 9:05 pm

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?
dmitri
Site Admin
 
Posts: 8718
Joined: Fri Aug 03, 2007 8:05 pm

Re: Program Atmega324 via ISP cable

Postby The_JinJ » Tue Mar 02, 2010 9:59 pm

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!!)
The_JinJ
 
Posts: 38
Joined: Fri Feb 12, 2010 12:36 am

Re: Program Atmega324 via ISP cable

Postby dmitri » Tue Mar 02, 2010 11:56 pm

dmitri
Site Admin
 
Posts: 8718
Joined: Fri Aug 03, 2007 8:05 pm

Re: Program Atmega324 via ISP cable

Postby The_JinJ » Wed Mar 03, 2010 12:22 am

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!
The_JinJ
 
Posts: 38
Joined: Fri Feb 12, 2010 12:36 am


Return to MegaDrum Hardware

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 546 guests