Page 1 of 1

Progamming order?

PostPosted: Wed Feb 18, 2009 6:42 pm
by jamalpiper
I was reading here:

http://www.megadrum.info/content/programming-mcus

Does it matter in which order I program the MCU's? I somehow skipped over ordering the socket for the atmega so I can't program it (or use my megadrum :x ) till my order comes in.

If I program the PIC now will that negatively effect the programming of the ATMEGA later?

Re: Progamming order?

PostPosted: Wed Feb 18, 2009 6:46 pm
by dmitri
The order doesn't matter. No ill effect.

Re: Progamming order?

PostPosted: Thu Feb 19, 2009 12:34 am
by jamalpiper
Didn't quite work, Now it's my turn to be the noob asking all the questions, I'll try to make this quick.

I accidentally reversed the wiring the first time I tryed to program, Is my PIC likely fryed? Instead of:

Code: Select all
ICSP  DB9
1 ----
2 ----
3 ---- 5
4 ---- 4 - 8
5 ---- 7
6 ---- 3


I had

Code: Select all
ICSP  DB9
1 ----
2 ----
3 ---- 1
4 ---- 2 - 7
5 ---- 8
6 ---- 3


I obviously got the message "ERROR: Programming FAILED" after the attempt with the incorrect wiring.

Now I also get the same message with the correct wiring. I'm following the programming method outlined in the documentation.

I've hit 'Device->Erase' in Winpic.
I'm not sure If that is supposed to wipe the PIC blank, but 'Device->Blank Check' returns that the device is not blank.

Here is the message I get from Winpic after my latest attempt.
Code: Select all
Programming...
Erasing ("bulk" or "chip") ...
Programming CODE, 0x000000..0x001862
Verifying CODE, 0x000000..0x001862
Verifying 0x000000..0x001862
Verify Error: 000004: read 000000, wanted 00FFFF, mask 00FFFF  ==> diff=00FFFF
Verify Error: 000006: read 000000, wanted 00FFFF, mask 00FFFF  ==> diff=00FFFF
Programming CONFIG, 0x300000..0x30000C
Verifying CONFIG, 0x300000..0x30000C
Verifying 0x300000..0x30000C
Verify Error: 300004: read 008000, wanted 0080FF, mask 00FFFF  ==> diff=0000FF
Verify Error: 300006: read 000085, wanted 00FF85, mask 00FFFF  ==> diff=00FF00
ERROR: Programming FAILED !


Info:
I'm using Synthex's All-in-one V2.8 Board
PIC is the only IC attached,
I have checked soldering on the board and have no reason to think anything isn't connected properly
I'm using WinPIc, have USB connected, as described in documentation


thanks, any help is greatly appreciated.

Re: Progamming order?

PostPosted: Thu Feb 19, 2009 9:49 am
by dmitri
You didn't omit resistors from the ICSP cable schematic, did you?

Re: Progamming order?

PostPosted: Thu Feb 19, 2009 4:43 pm
by jamalpiper
dmitri wrote:You didn't omit resistors from the ICSP cable schematic, did you?


No I have 10k ohm resistors in place.

I think I discovered what it might be. I need to have the 'USB Power Switch' jumper, jumped for the PIC to receive power during programming, correct?

In all my attempts I haven't thought about it, so I've left it open. :oops:

Re: Progamming order?

PostPosted: Thu Feb 19, 2009 4:46 pm
by dmitri
When being programmed, be it PIC or Atmega, it must be power up. Programming cables do not provide power.