Progamming order?

Discussions related to MegaDrum Hardware

Progamming order?

Postby jamalpiper » Wed Feb 18, 2009 6:42 pm

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?
-[K]
jamalpiper
 
Posts: 79
Joined: Wed Aug 06, 2008 11:05 pm
Location: CA, USA

Re: Progamming order?

Postby dmitri » Wed Feb 18, 2009 6:46 pm

The order doesn't matter. No ill effect.
dmitri
Site Admin
 
Posts: 8706
Joined: Fri Aug 03, 2007 8:05 pm

Re: Progamming order?

Postby jamalpiper » Thu Feb 19, 2009 12:34 am

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.
-[K]
jamalpiper
 
Posts: 79
Joined: Wed Aug 06, 2008 11:05 pm
Location: CA, USA

Re: Progamming order?

Postby dmitri » Thu Feb 19, 2009 9:49 am

You didn't omit resistors from the ICSP cable schematic, did you?
dmitri
Site Admin
 
Posts: 8706
Joined: Fri Aug 03, 2007 8:05 pm

Re: Progamming order?

Postby jamalpiper » Thu Feb 19, 2009 4:43 pm

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:
-[K]
jamalpiper
 
Posts: 79
Joined: Wed Aug 06, 2008 11:05 pm
Location: CA, USA

Re: Progamming order?

Postby dmitri » Thu Feb 19, 2009 4:46 pm

When being programmed, be it PIC or Atmega, it must be power up. Programming cables do not provide power.
dmitri
Site Admin
 
Posts: 8706
Joined: Fri Aug 03, 2007 8:05 pm


Return to MegaDrum Hardware

Who is online

Users browsing this forum: No registered users and 106 guests