Firmware upgrade disaster!!!

Discussions related to MegaDrum Hardware

Re: Firmware upgrade disaster!!!

Postby dmitri » Sat Jun 20, 2009 7:50 pm

el-dr wrote:kurtus420,

forget about messing around with winpic settings and checking the cable again and again. I got fed up with this and set up the oldest machines I found in the house: one with Win98, one with WinME installed. Followed the instructions and it was done in 1 minute. Then I connected MD to the new machine, it recognized it as a new device (this indicated to me that the firmware was successful). Then the resistor came and that was it.

--------------------------------------

However, this was only a momentary state of happiness, because I discovered that the MD doesn't transmit Note On messages via USB. According to MIDI-OX, when I hit the piezo, it transmits tons of Program Changes, Pitch Bend and some Note Off messages, but not a single Note On.

When I open MCT, all messages indicate that data can be sent and received with no errors between MCT and MD, but actually nothing works. What make it even more confusing, the MIDI LED lights up when I transmit sg from MCT, which shows that the connection is present.

When I use the standard MIDI Out, MD transmits Note On, Note Off and FC as expected.

I updated the PIC with the pic18f2550usb_12MHz.hex file, the resistor between pins 3-6 at the PIC ICSP is 33kOhm, the MCU is Atmega 644 @ 20MHz, firmware is 20090617.
Here's the firmware that I read back from the PIC after the update:
dumpeda.hex


Honestly, I'm not having much fun at all. :x

That is a simple mistake of mismatching crystal frequency and firmware frequency.
dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: Firmware upgrade disaster!!!

Postby kurtus420 » Sat Jun 20, 2009 8:23 pm

heres a new read on a different comp, just so were clear my crystal is 12mgz for my pic18f2550 so the pic firmware should be 12mhz right not 16mhz as thats my atmegas crystal size.
You do not have the required permissions to view the files attached to this post.
56 input Megadrum644, Tama Iron Cobra, Taye, Sonor, Roland, Yamaha, Gibraltar, Tascam.
kurtus420
 
Posts: 222
Joined: Tue May 26, 2009 12:51 am
Location: Nanaimo, Vancouver Island, Canada

Re: Firmware upgrade disaster!!!

Postby dmitri » Sat Jun 20, 2009 8:27 pm

kurtus420 wrote:heres a new read on a different comp, just so were clear my crystal is 12mgz for my pic18f2550 so the pic firmware should be 12mhz right not 16mhz as thats my atmegas crystal size.

Same thing as in http://www.megadrum.info/forums/viewtop ... 9389#p9389
dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: Firmware upgrade disaster!!!

Postby kurtus420 » Sat Jun 20, 2009 8:36 pm

I guess it is just a bum pic then as there is no way my cable is incorrect, I have configured just as the guide says, tried 2 different computers and still the same outcome everytime. I will try to program the pic that I have coming and start from scratch in a lil bit. For what it's worth I do have some experiance with electronics as I did it for a good 3 years in school so my soldering skills are great, I've worked with much smaller circuitry than this. I can only conclude that the programming pin(s) are toast.
56 input Megadrum644, Tama Iron Cobra, Taye, Sonor, Roland, Yamaha, Gibraltar, Tascam.
kurtus420
 
Posts: 222
Joined: Tue May 26, 2009 12:51 am
Location: Nanaimo, Vancouver Island, Canada

Re: Firmware upgrade disaster!!!

Postby el-dr » Sat Jun 20, 2009 9:10 pm

dmitri wrote:
el-dr wrote:kurtus420,

forget about messing around with winpic settings and checking the cable again and again. I got fed up with this and set up the oldest machines I found in the house: one with Win98, one with WinME installed. Followed the instructions and it was done in 1 minute. Then I connected MD to the new machine, it recognized it as a new device (this indicated to me that the firmware was successful). Then the resistor came and that was it.

--------------------------------------

However, this was only a momentary state of happiness, because I discovered that the MD doesn't transmit Note On messages via USB. According to MIDI-OX, when I hit the piezo, it transmits tons of Program Changes, Pitch Bend and some Note Off messages, but not a single Note On.

When I open MCT, all messages indicate that data can be sent and received with no errors between MCT and MD, but actually nothing works. What make it even more confusing, the MIDI LED lights up when I transmit sg from MCT, which shows that the connection is present.

When I use the standard MIDI Out, MD transmits Note On, Note Off and FC as expected.

I updated the PIC with the pic18f2550usb_12MHz.hex file, the resistor between pins 3-6 at the PIC ICSP is 33kOhm, the MCU is Atmega 644 @ 20MHz, firmware is 20090617.
Here's the firmware that I read back from the PIC after the update:
dumpeda.hex


Honestly, I'm not having much fun at all. :x

That is a simple mistake of mismatching crystal frequency and firmware frequency.


I thought it was an incorrect fw file, but I don't know what's wrong. The PIC crystal is 12MHz and I used the pic18f2550usb_12MHz.hex file. The label on the PIC is PIC18F2550 I/SP. Which file should I try?

I guess the crystal is OK, otherwise the computer would recognize the MD and the connection wouldn't be stable.
Last edited by el-dr on Sat Jun 20, 2009 9:31 pm, edited 1 time in total.
el-dr
 
Posts: 110
Joined: Thu Apr 30, 2009 9:51 pm

Re: Firmware upgrade disaster!!!

Postby dmitri » Sat Jun 20, 2009 9:30 pm

el-dr wrote:I thought it was an incorrect fw file, but I don't know what's wrong. The PIC crystal is 12MHz and I used the pic18f2550usb_12MHz.hex file. Is there another one I could try?

Please, confirm all of these:
1. you have Atmega644-20PU
2. Atmega's crystal is 20MHz
3. you can now update firmware over USB
4. you loaded megadrum644_20_32_20090617.syx. Are you sure?
5. you get correct MIDI messages from MegaDrum when used over the standard MIDI port. Please check it again.
6. you get incorrect MIDI messages from MegaDrum when used over USB. Please check it again.
7. when you use it over USB you don't have anything connected to the standard MIDI ports.
dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: Firmware upgrade disaster!!!

Postby el-dr » Sat Jun 20, 2009 9:47 pm

dmitri wrote:
el-dr wrote:I thought it was an incorrect fw file, but I don't know what's wrong. The PIC crystal is 12MHz and I used the pic18f2550usb_12MHz.hex file. Is there another one I could try?

Please, confirm all of these:
1. you have Atmega644-20PU

The label on the chip says ATMEGA644 20PU 0808

dmitri wrote:2. Atmega's crystal is 20MHz

The crystal is labeled 20.000

dmitri wrote:3. you can now update firmware over USB

No, I can't

dmitri wrote:4. you loaded megadrum644_20_32_20090617.syx. Are you sure?

The file name was megadrum644_20_32_20090617.syx

dmitri wrote:5. you get correct MIDI messages from MegaDrum when used over the standard MIDI port. Please check it again.

Yes, standard MIDI works with no errors.

dmitri wrote:6. you get incorrect MIDI messages from MegaDrum when used over USB. Please check it again.

Just rubbish, no Note Ons.

dmitri wrote:7. when you use it over USB you don't have anything connected to the standard MIDI ports.

Nothing.

Can you verify that the dump in my previous post is OK? It was created by using the pic18f2550usb_12MHz.hex file.
el-dr
 
Posts: 110
Joined: Thu Apr 30, 2009 9:51 pm

Re: Firmware upgrade disaster!!!

Postby dmitri » Sat Jun 20, 2009 9:54 pm

Very weird. Can you try Atmega32 with a 16MHz crystal.
dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: Firmware upgrade disaster!!!

Postby dmitri » Sat Jun 20, 2009 9:57 pm

And can you dump with Winpic memory content of PIC18F2550 and post it here?
dmitri
Site Admin
 
Posts: 8709
Joined: Fri Aug 03, 2007 8:05 pm

Re: Firmware upgrade disaster!!!

Postby el-dr » Sat Jun 20, 2009 10:18 pm

dmitri wrote:Very weird. Can you try Atmega32 with a 16MHz crystal.


Shit :evil: :evil: It works perfectly. What the heck is going on here??? The 644 has the same fw version as the 32.
el-dr
 
Posts: 110
Joined: Thu Apr 30, 2009 9:51 pm

PreviousNext

Return to MegaDrum Hardware

Who is online

Users browsing this forum: No registered users and 83 guests