Page 1 of 3

USB

PostPosted: Mon Oct 13, 2008 6:26 pm
by efbe
Synthex,

First thanks for the great job, the PCB was fun to solder.

Everything work from the first time, but now I suddenly get following message.
(See USB.jpg)

LCD works, Midi led and MIDI out works.

Can I use, when needed, USB as alimentation and MIDI out for signal??
Could it be the PIC 18F2550 ?

Also following question.
Which version of the Firmware shoud I use with the ATMEGA32 16 PU

Megadrum32_16_date
Megadrum32_16_32_date
Megadrum32_20_date
Megadrum32_20_32_date

I don't know for sure, with the 20mHZ cristal..

And what is the correct procedure ??

EFBE

Re: USB

PostPosted: Tue Oct 14, 2008 12:21 pm
by Juze
I don't know about that USB-issue, but that's Effin nice build!

-Juze aka Ghroath

Re: USB

PostPosted: Tue Oct 14, 2008 5:00 pm
by Synthex
Very very nice !! :)

efbe wrote:Can I use, when needed, USB as alimentation and MIDI out for signal ?

Yes you can.

efbe wrote:Could it be the PIC 18F2550 ?

It can be a short-circuit around the PIC, or a bad USB cable, ...

efbe wrote:Which version of the Firmware shoud I use with the ATMEGA32 16 PU

If you use a 20MHz cristal on my board : Megadrum32_20_32_date

efbe wrote:And what is the correct procedure ?

All is here : http://www.megadrum.info/forums/viewtopic.php?f=3&t=111

"After you programmed the bootloader into Atmega32, reset MegaDrum while holding the key LEFT. It'll ask you to press the key DOWN. If you changed you mind you can reset MegaDrum again without holding any keys and it will boot an old firmware. If you press the key DOWN, it'll erase the old firmware and will wait for the Sysex with a new firmware. Now in MIDI-OX go to Actions->Send->SysEx File... and choose the firmware *.syx file you've prepared beforehand. The update will take around 5 seconds and after it's finished MegaDrum will reset itself and boot the new firmware. "

Re: USB

PostPosted: Tue Oct 14, 2008 6:10 pm
by dmitri
And don't forget this:
dmitri wrote: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.

Re: USB

PostPosted: Tue Oct 14, 2008 6:32 pm
by efbe
efbe wrote:Could it be the PIC 18F2550
It can be a short-circuit around the PIC, or a bad USB cable, ...?


I tried 2 different cables, replaced the USB connector, use the connector direct on the board, and this on 2 different PC's.
Always the same message.

Now working with ext. alimentation and MIDI out.

The strange thing is that it worked before...


EFBE

Re: USB

PostPosted: Tue Oct 14, 2008 6:46 pm
by dmitri
Can you take Amega32 out of it's socket and try connecting to a USB port after that?

Re: USB

PostPosted: Tue Oct 14, 2008 8:36 pm
by efbe
dmitri wrote:Can you take Amega32 out of it's socket and try connecting to a USB port after that?


Yes I did that and without the Atmega32, no error message.
I see in the list of MIDI devices the Megadrum. ??


When I put it back in again, Iget thr error message back.

EFBE

Re: USB

PostPosted: Tue Oct 14, 2008 9:32 pm
by dmitri
Replace your 20Mhz crystal with a 16MHz one and update with a corresponding firmware.

Re: USB

PostPosted: Tue Oct 14, 2008 10:09 pm
by efbe
dmitri wrote:Replace your 20Mhz crystal with a 16MHz one and update with a corresponding firmware.


I have to buy one first, and try it.

It funny because it worked before.

EFBE

Re: USB

PostPosted: Wed Oct 15, 2008 3:36 pm
by efbe
efbe wrote:
dmitri wrote:Replace your 20Mhz crystal with a 16MHz one and update with a corresponding firmware.


I have to buy one first, and try it.

It funny because it worked before.

EFBE


I did this and now I try to up-date the firmware with Atmega32_16_32_200909. But no go.
In sysex I configured "low Level output buffers" to 40000 and 60000 but no update. Pass sysex is marked.
What to do with "num", which value to put in there ?

Could it have something to do with VISTA, i gone try on another PC running on XP.

EFBE