My problems' thread...

Discussions related to MegaDrum Hardware

My problems' thread...

Postby elrules » Thu Jun 26, 2008 6:43 pm

Hi, I have finished building megadrum.

I found that my atmega is atmega8515 16PI. They told me it was atmega32 equivalent. Is it valid? For multiplexers I used MC144558BCP. In the electronics shop they told they were MAX equivalent. Are they valid?

More things. I hadn't a 6.2K resistor so I used two in series making a 6.16K resistor. Is that ok?

Another thing. I try to program the PIC18F2550 with WinPic programmer with the config you say (with JDM interface) and it fails when programming. Here are photos of the WinPic interface.
You do not have the required permissions to view the files attached to this post.
Last edited by elrules on Thu Jun 26, 2008 6:48 pm, edited 2 times in total.
elrules
 
Posts: 629
Joined: Thu Nov 29, 2007 4:51 pm
Location: Murcia, Spain, Europe, The World

Re: My problems' thread...

Postby elrules » Thu Jun 26, 2008 6:43 pm

More pics
You do not have the required permissions to view the files attached to this post.
Last edited by elrules on Fri Jun 27, 2008 7:52 am, edited 1 time in total.
elrules
 
Posts: 629
Joined: Thu Nov 29, 2007 4:51 pm
Location: Murcia, Spain, Europe, The World

Re: My problems' thread...

Postby dmitri » Thu Jun 26, 2008 8:21 pm

1. Atmega8515 is not an equivalent of Atmega32.
2. What 'Interface' did you choose in WinPic?
dmitri
Site Admin
 
Posts: 8706
Joined: Fri Aug 03, 2007 8:05 pm

Re: My problems' thread...

Postby elrules » Thu Jun 26, 2008 9:42 pm

Ups, I replaced accidentaly winpic5.jpg with the same image. Here is the interface setup:

PD: forget about the "Error testing the interface" label. I opened the application only to take the screenshop without megadrum connected. When it is connected it says it is ok
You do not have the required permissions to view the files attached to this post.
elrules
 
Posts: 629
Joined: Thu Nov 29, 2007 4:51 pm
Location: Murcia, Spain, Europe, The World

Re: My problems' thread...

Postby dmitri » Thu Jun 26, 2008 9:50 pm

And you of course powered PIC18F2550 over USB while trying to program it, didn't you?
dmitri
Site Admin
 
Posts: 8706
Joined: Fri Aug 03, 2007 8:05 pm

Re: My problems' thread...

Postby elrules » Fri Jun 27, 2008 7:47 am

Of course, I connected it to the first USB of the PC. I also connected the LCD to megadrum and it had light so it is USB powered.
My motherboard didn't have Serial Port directly connected to it. I had to use the optional serial port cable that comes with the motherboard box and has to be connected to the motherboard. Can this affect the problem? anyway, and as I said, when I select the JDM interface with COM1, it checks that connection through serial port is good...

Programming of Pic18F2550 failed when at half of the first programming step.

With PonyProg:
When I tried to program the atmega, even selecting atmega8515 in devices list, ponyprog said it couldn't recognize the device (error -24, abort, retry, ignore...). I suppose I have to use an atmega32 to avoid problems but maybe I am doing something wrong and I will get the same error when I connect a new atmega32. Did anyone get that error (unrecognized device)?

I have double checked all solder points, checking for shorts with neighbour pads, and checking if there were good connection between solder points connected with a circuit track. I think I did the hardware part quite good. So maybe it is a software or interface problem.
elrules
 
Posts: 629
Joined: Thu Nov 29, 2007 4:51 pm
Location: Murcia, Spain, Europe, The World

Re: My problems' thread...

Postby dmitri » Fri Jun 27, 2008 11:00 am

1. Atmega8515 is neither pin nor memory/functions compatible with Atmega32.
2. After the programming of PIC18F2550 fails can you read PIC18F2550 and post the resulting file here?
dmitri
Site Admin
 
Posts: 8706
Joined: Fri Aug 03, 2007 8:05 pm

Re: My problems' thread...

Postby elrules » Fri Jun 27, 2008 2:30 pm

After failing write, I read the pic and I get this dumped.hex
And this config with WinPic programmer.

I also when I read the pic get in winpic800 the same Synthex shows in this thread:
viewtopic.php?f=3&t=119&st=0&sk=t&sd=a&hilit=erase+firmware&start=40
You do not have the required permissions to view the files attached to this post.
elrules
 
Posts: 629
Joined: Thu Nov 29, 2007 4:51 pm
Location: Murcia, Spain, Europe, The World

Re: My problems' thread...

Postby elrules » Fri Jun 27, 2008 2:50 pm

Ok, I tried something I read on another topic. I programmed it using "slow mode" and it programs it ok. The problem now is that I plug it on the usb and nothing happens, nothing detected by my winXP.

(a quick doubt: how are the pins of a female DIN5 midi connector? as I see the pins where I solder cables, i count them as 14253, is that ok? I have seen on some photos like 35241, so Im confused)

Here are compared the begining and ends of the HEX V2 file writen (to the right of the image) and the HEX read after programming (to the left):
You do not have the required permissions to view the files attached to this post.
elrules
 
Posts: 629
Joined: Thu Nov 29, 2007 4:51 pm
Location: Murcia, Spain, Europe, The World

Re: My problems' thread...

Postby dmitri » Fri Jun 27, 2008 3:49 pm

elrules wrote:Ok, I tried something I read on another topic. I programmed it using "slow mode" and it programs it ok. The problem now is that I plug it on the usb and nothing happens, nothing detected by my winXP.

Check USB data lines. Did you connect D+ and D- correctly?


(a quick doubt: how are the pins of a female DIN5 midi connector? as I see the pins where I solder cables, i count them as 14253, is that ok? I have seen on some photos like 35241, so Im confused)

Isn't it the same but counted from different dirrections?

Here are compared the begining and ends of the HEX V2 file writen (to the right of the image) and the HEX read after programming (to the left):

If WinPic said it programmed correctly, then it is programmed correctly.
dmitri
Site Admin
 
Posts: 8706
Joined: Fri Aug 03, 2007 8:05 pm

Next

Return to MegaDrum Hardware

Who is online

Users browsing this forum: No registered users and 90 guests