Page 1 of 5

My problems' thread...

PostPosted: Thu Jun 26, 2008 6:43 pm
by elrules
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.

Re: My problems' thread...

PostPosted: Thu Jun 26, 2008 6:43 pm
by elrules
More pics

Re: My problems' thread...

PostPosted: Thu Jun 26, 2008 8:21 pm
by dmitri
1. Atmega8515 is not an equivalent of Atmega32.
2. What 'Interface' did you choose in WinPic?

Re: My problems' thread...

PostPosted: Thu Jun 26, 2008 9:42 pm
by elrules
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

Re: My problems' thread...

PostPosted: Thu Jun 26, 2008 9:50 pm
by dmitri
And you of course powered PIC18F2550 over USB while trying to program it, didn't you?

Re: My problems' thread...

PostPosted: Fri Jun 27, 2008 7:47 am
by elrules
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.

Re: My problems' thread...

PostPosted: Fri Jun 27, 2008 11:00 am
by dmitri
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?

Re: My problems' thread...

PostPosted: Fri Jun 27, 2008 2:30 pm
by elrules
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

Re: My problems' thread...

PostPosted: Fri Jun 27, 2008 2:50 pm
by elrules
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):

Re: My problems' thread...

PostPosted: Fri Jun 27, 2008 3:49 pm
by dmitri
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.