DiyLightAnimation

Hardware => Lynx EtherDongle => Topic started by: dgreen on October 21, 2012,

Title: Help Programmin
Post by: dgreen on October 21, 2012,
Hey guys,
I finished my 16 Lynx Expresses and Halloween is running so all is well.
for Christmas I wanted to add pixels to the mix.
I built my Etherdongle and now I am trying to program it.
I have always used a pickit 2 so I uninstalled all software.
Now I attach my pickit3 and install the PICkit3 programmer (Beta) version 3 0.3.3.0 setupA
Which is the latest.
When I open the utility and click the drop down by device I don’t see the chip PIC32MX795F512L.
What am I missing?
Thanks.
Title: Re: Help Programmin
Post by: jnealand on October 21, 2012,
Open up mplab with your pickit 3 connected and it should ask you to allow an update to the device.  After that you can use the programmer to program the ED.  Do not use mplab to program anything, just allow it to update the pickit3.
Title: Re: Help Programmin
Post by: jnealand on October 21, 2012,
One other thing.  You do not have uninstall the pickit 2 to use the pickit3.  I have both and use both on the same computer with no problems.
Title: Re: Help Programmin
Post by: dgreen on October 21, 2012,
ok, i tried that and it said it needed an update.
i said ok to the update and at the end it said "failed to get device id"
i didnt have the ED plugged in.
I tried it again with the same results when plugged in.
I open PICkit3 programmer and the chip still does not show up.

now i open MPLAB IDE v8.60 and select programmer Pickit3 and here is the output
PICkit 3 detected
Connecting to PICkit 3...
Firmware Suite Version...... 01.26.33
Firmware type......................PIC32MX
PICkit 3 Connected.
Target Detected
PK3Err0035: Failed to get Device ID

thanks again
Title: Re: Help Programmin
Post by: tbone321 on October 21, 2012,
That sounds like there may bw something wrong with the pickit3.  I would contact MicroChip with that error and see wht they tell you to do.
Title: Re: Help Programmin
Post by: dgreen on October 21, 2012,
I can do that, Since it is bran new I thought there was a better chance I was doing something wrong.
Title: Re: Help Programmin
Post by: danozfw on October 21, 2012,
You are not allowed to view links. Register or Login
Hey guys,
I finished my 16 Lynx Expresses and Halloween is running so all is well.
for Christmas I wanted to add pixels to the mix.
I built my Etherdongle and now I am trying to program it.
I have always used a pickit 2 so I uninstalled all software.
Now I attach my pickit3 and install the PICkit3 programmer (Beta) version 3 0.3.3.0 setupA
Which is the latest.
When I open the utility and click the drop down by device I don’t see the chip PIC32MX795F512L.
What am I missing?
Thanks.

I also had problems using the BETA version of the PICkit3 programmer so I loaded the non-beta version available on the WIKI http://ww1.microchip.com/downloads/en/DeviceDoc/PICkit_3_Programmer_1_0_Setup_A.zip and it worked fine.
Title: Re: Help Programmin
Post by: dgreen on October 21, 2012,
ok, I am getting closer.
I tried version 1.0 like you said and the chip shows up but it fails programming with no error.

I downloaded MPLAB v8.88
now when i choose the programmer it says i need to update.
i click ok and get these results

PICkit 3 detected
Connecting to PICkit 3...
Firmware Suite Version...... 01.26.33
Firmware type......................PIC32MX
Downloading RS...
RS download complete
Downloading AP...

It stays stuck on Downloading AP....
there is a bar at bottom that says connecting and just keeps scrolling.

i have tried this on 2 different computers with the same result.
Title: Re: Help Programmin
Post by: chrisatpsu on October 21, 2012,
You are not allowed to view links. Register or Login
Downloading AP...

It stays stuck on Downloading AP....
there is a bar at bottom that says connecting and just keeps scrolling.
I believe that's what I went through last summer, I ended up contacting microchip, we went through a few things, and they replaced mine.
Title: Re: Help Programmin
Post by: injury on October 21, 2012,
Just a thought, might try a different USB cable if you have one with the small end on it from a cell phone or some such.
Title: Re: Help Programmin
Post by: Jeffl on October 21, 2012,
I just programmed mine and it was a little finicky. I think I had to pick Pic32 from the device family.  It then complained I think about downloading an update which it did.  From there I think I was able to pick the actual chip and proceed to open the hex file and download the firmware.

Either way its a bit picky and not as friendly as the Pickit2 but it did work.  I'm test outputting DMX via LOR S3 now. :)
Title: Re: Help Programmin
Post by: chrisatpsu on October 21, 2012,
that kinda reminded me of something...  can you go back and try to program another chip? like an ssc, or express? then go back to the etherdongle.
Title: Help Programmin
Post by: rm357 on October 22, 2012,
Sure, but the pickit 3 has to reload its firmware each time you change device families.
Title: Re: Help Programmin
Post by: chrisatpsu on October 22, 2012,
that's why I was suggesting it...  it might be hung up on something with the one pic
 by switching, and switching back, it might get past that
Title: Re: Help Programmin
Post by: dgreen on October 22, 2012,
I tried,
I went back and programmed my 16 SSC's with no problem.
Then when I switch chips it says it needs to download.
Now it will download and then say operation failed.
I hit write again and get operation failed again.
Title: Re: Help Programmin
Post by: tbone321 on October 22, 2012,
It really sounds to me like the Pickit-3 is bad.  Contact MicroChip with the error code and what's happening and they should walk you thru a few tests to determine the problem and the solution for it which may be to replace the unit.
Title: Re: Help Programmin
Post by: fyb2000 on October 22, 2012,
Make sure when you switch the chip type, you also go back to the power option and power the chip from the pickit.
Title: Re: Help Programmin
Post by: tbone321 on October 22, 2012,
If you are getting download failed make sure that the PC you are trying to flash the PIC from has an internet connction.  Ifit downloads and then says download failed, you probably have defective memory locations in the Pickit-3 that are being hit with the larger programs needed to work with these newer chips. 
Title: Re: Help Programmin
Post by: kevinpickett on October 23, 2012,
Use the Pickit 3 beta program and under Tools menu choose to "revert to MPLab mode" .  it will go through a few process and reload your Pickit 3 back to its original state.

After that process is done, connect to the device (ether dongle) open up the MPLab IDE program

Under the configure menu choose "select device" and set the device to the PIC32MX795F512L. and click OK.

Select Pickit 3 from the 'Programmer" menu ,  and it will tell you that your pickit 3 needs to be updated.  It will then load the pic32 device onto your pickit 3.

After that process close MPLab and open Picit3 ver 1.0 software (available in WIKI) and you should now be able to select the correct 32pic device and load your ether dongle hex firmware and program your ether dongle.

I am posting this from memory. but I believe i have included all the steps.  It might ask you to load the pickit 3 firmware, i'm not sure.  But the firmware is loaded through the MPLab, Programmer, setting, configuration menu, and the firmware is located in the PICKit 3 folder.

I'll confirm this procedure in the morning when I am at my programming PC with my pickit 3 device.

kevin
Title: Re: Help Programmin
Post by: dgreen on October 25, 2012,
Thanks for all the help guys,
the problem ended up being the ED.
The 2 i ordered on this last coop just came in so i built them and they program with no problems.
not sure how to fix this one but it was a spare so i will deal with it after i am up and running.
Thanks again.