Bootloader test

Discussions related to MegaDrum Hardware

Re: Bootloader test

Postby dmitri » Fri Dec 12, 2008 11:12 pm

japi wrote:So what should be done? Configure bits and reflash bootloader? Configure bits only?

Configuration bits only.
dmitri
Site Admin
 
Posts: 8708
Joined: Fri Aug 03, 2007 8:05 pm

Re: Bootloader test

Postby japi » Fri Dec 12, 2008 11:52 pm

Thanks :mrgreen:
japi
 
Posts: 180
Joined: Tue Oct 07, 2008 2:03 pm
Location: Buenos Aires, Argentina

Re: Bootloader test

Postby hartl0602 » Sun Dec 14, 2008 6:28 am

ok, i think i'm doing something wrong; i've programed the atmega with the bootloader and correct fuses, but when i go to midi-ox and send the syx file, my megadrum does not reset, and when i reset it manually all i get on the lcd is 16 solid black boxes along the top portion of the display. when i hit the left button it takes me to the bootloader again...any thoughts? also if i turn off the send sysex option and try and turn it back on i get an error stating "Not enough free memory for sysex out buffer no. 1 for usb audio device. Releasing all output buffers".

sean
hartl0602
 
Posts: 31
Joined: Sat Sep 27, 2008 6:41 pm

Re: Bootloader test

Postby dmitri » Sun Dec 14, 2008 10:43 am

hartl0602 wrote:ok, i think i'm doing something wrong; i've programed the atmega with the bootloader and correct fuses, but when i go to midi-ox and send the syx file, my megadrum does not reset, and when i reset it manually all i get on the lcd is 16 solid black boxes along the top portion of the display. when i hit the left button it takes me to the bootloader again...any thoughts?

Is the MIDI LED flashing twice a second when you send the firmware?
If not, it's not receiving any data because:
1) MIDI-OX is not configured correctly
2) crystal frequency is not correct
3) you choose wrong frequency in the boot menu
4) shorts/bad soldering on the board

also if i turn off the send sysex option and try and turn it back on i get an error stating "Not enough free memory for sysex out buffer no. 1 for usb audio device. Releasing all output buffers".

Cannot reproduce it.
dmitri
Site Admin
 
Posts: 8708
Joined: Fri Aug 03, 2007 8:05 pm

Re: Bootloader test

Postby japi » Sun Dec 14, 2008 12:39 pm

hartl0602 wrote:but when i go to midi-ox and send the syx file, my megadrum does not reset, and when i reset it manually all i get on the lcd is 16 solid black boxes along the top portion of the display. when i hit the left button it takes me to the bootloader again...any thoughts?


I had this very problem and turned out that had my buttons reversed. Check them.
japi
 
Posts: 180
Joined: Tue Oct 07, 2008 2:03 pm
Location: Buenos Aires, Argentina

Re: Bootloader test

Postby hartl0602 » Sun Dec 14, 2008 8:44 pm

dmitri wrote:
hartl0602 wrote:ok, i think i'm doing something wrong; i've programed the atmega with the bootloader and correct fuses, but when i go to midi-ox and send the syx file, my megadrum does not reset, and when i reset it manually all i get on the lcd is 16 solid black boxes along the top portion of the display. when i hit the left button it takes me to the bootloader again...any thoughts?

Is the MIDI LED flashing twice a second when you send the firmware?
If not, it's not receiving any data because:
1) MIDI-OX is not configured correctly
2) crystal frequency is not correct
3) you choose wrong frequency in the boot menu
4) shorts/bad soldering on the board

also if i turn off the send sysex option and try and turn it back on i get an error stating "Not enough free memory for sysex out buffer no. 1 for usb audio device. Releasing all output buffers".

Cannot reproduce it.


i'm not getting any flashing on the led; i also ran some tests on the pic and received the below results; are there similar tests that i should be running on the atmega?

Quote:
Connect the USB and Digital boards together.Without PIC18F2550 in the socket and without applying power (USB is disconnected) confirm the following:
1. Zero resistance between Digital board ground and pins 8 and 19 in the PIC18F2550 socket. yes
2. Zero resistance between VCC of Digital board and pin 20 in the PIC18F2550 socket.with vom set to 2000k i get a reading of 4 (40k?)
3. What is the resistance between pins 19 and 20 in the PIC18F2550 socket? Is it more than 1k?446 vom set to 2000 (just 2000)
4. What is the resistance between pins 19 and 14 in the PIC18F2550 socket? Is it indefinitely high?yes


Quote:
Still without PIC18F2550 in the socket apply power to Digital board.
1. What is the voltage between Digital board ground and pin 19 in the PIC18F2550 socket? Is it 0? yes
2. What is the voltage between Digital board ground and pin 20 in the PIC18F2550 socket? is it +5?5.21
3. What is the voltage between Digital board ground and pin 14 in the PIC18F2550 socket? is it 0?yes

Quote:
Disconnect the power, insert PIC18F2550 into the socket and apply power again.
1. What is the voltage between Digital board ground and pin 19 in the PIC18F2550 socket? Is it 0?yes
2. What is the voltage between Digital board ground and pin 20 in the PIC18F2550 socket? is it +5?5.19
3. What is the voltage between Digital board ground and pin 14 in the PIC18F2550 socket? is it 3.3? Is it really?3.38
hartl0602
 
Posts: 31
Joined: Sat Sep 27, 2008 6:41 pm

Re: Bootloader test

Postby dmitri » Sun Dec 14, 2008 9:49 pm

Why are you trying to debug PIC18F2550 if usb is detected by your PC?
dmitri
Site Admin
 
Posts: 8708
Joined: Fri Aug 03, 2007 8:05 pm

Re: Bootloader test

Postby hartl0602 » Sun Dec 14, 2008 10:11 pm

dmitri wrote:Why are you trying to debug PIC18F2550 if usb is detected by your PC?


i was grasping at straws to be honest with you :)
hartl0602
 
Posts: 31
Joined: Sat Sep 27, 2008 6:41 pm

Re: Bootloader test

Postby dmitri » Sun Dec 14, 2008 11:15 pm

Since you can write the bootloader, I presume you can write the MegaDrum firmware.
Write the MegaDrum firmware and using MIDI-OX make sure that MIDI is working over USB. After that try MegaDrum Config Tool and make sure you can send/receive settings to/from MegaDrum.
Only after you've made sure MIDI is working over USB, write the bootloader firmware and try load the MegaDrum firmware with the bootloader using either MIDI-OX or better MegaDrum Config Tool.
dmitri
Site Admin
 
Posts: 8708
Joined: Fri Aug 03, 2007 8:05 pm

Re: Bootloader test

Postby hartl0602 » Mon Dec 15, 2008 7:34 am

dmitri wrote:Since you can write the bootloader, I presume you can write the MegaDrum firmware.
Write the MegaDrum firmware and using MIDI-OX make sure that MIDI is working over USB. After that try MegaDrum Config Tool and make sure you can send/receive settings to/from MegaDrum.
Only after you've made sure MIDI is working over USB, write the bootloader firmware and try load the MegaDrum firmware with the bootloader using either MIDI-OX or better MegaDrum Config Tool.



ok i have writen the firmware via megadrum config tool, but it didn't reset it self...and when i reset manuallly as the program suggests, i just go back to square one with the boxes, and when i push left all i get is the sysex screen.
hartl0602
 
Posts: 31
Joined: Sat Sep 27, 2008 6:41 pm

PreviousNext

Return to MegaDrum Hardware

Who is online

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