|
Forum Index : Microcontroller and PC projects : pic32prog help needed
| Author | Message | ||||
| PeterB Guru Joined: 05/02/2015 Location: AustraliaPosts: 655 |
G'Day All. The fundamental problem is, how do I install pic32prog.exe into the nano? I had all this working a year ago with no problems but something has changed so I'm going back to the beginning. In formulating a reply please assume you are dealing with an elderly idiot. Peter |
||||
| robert.rozee Guru Joined: 31/12/2012 Location: New ZealandPosts: 2466 |
hi peter, the simplest way (under windows) is to use p32p_gui from here: http://www.thebackshed.com/docregister/ViewDoc.asp?DocID=21 ensure that "pic32prog.exe" and "P32P GUI.exe" are both in the same folder, along with any .hex firmware file you wish to upload to your pic32. double-click on "P32P GUI.exe" to launch the program. select the comm port that the nano is attached to from the dropdown menu, then click on the 'flsh NANO' button. all going well, the 'ascii icsp' firmware should be uploaded to the nano (ensure that there is no jumper on the nano's RESET pin). now you can use the 'select file' button to select the .hex file to write to the pic32, then click on the 'flash PIC32' button to upload it. cheers, rob :-) |
||||
| PeterB Guru Joined: 05/02/2015 Location: AustraliaPosts: 655 |
G'Day Rob Thanks for that. I don't know what the time is there but it is my bed time now so I'll give it a try tomorrow. I know that I'm old and the brain is a bit soggy but pic32prog did work and then it or I stopped. It comes as a bit of a shock when things stop working. Peter |
||||
| Tinine Guru Joined: 30/03/2016 Location: United KingdomPosts: 1646 |
Hmmm, I need to revisit this. Didn't work with the Bypic firmware when I tried it last year. In retrospect I might have been having a senior moment. Been using the PicKit 4 instead. |
||||
| PeterB Guru Joined: 05/02/2015 Location: AustraliaPosts: 655 |
G'Day Rob & Tinine. Rob, you can add "AND BAR" to your Sainthood Peter |
||||
| phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 2828 |
TassyJim also has an excellent Windows front end for Pic32prog.EXE, called MMFlash. Click on the "MMedit" link at the end of any of his posts. In addition to a nano MMflash can also use a MicroMite as programmer by loading Pic32prog.BAS to it. Pic32prog.EXE is included in the ZIP. Follow robert.rozee's procedure. |
||||
| phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 2828 |
An unrelated question about pic32prog. It is usual to use ICSP port 1 on the target (eg pins 4 & 5 for PGD & PGC on 28 pin MX170), but is it possible to persuade pic32prog to use ICSP port 2 (pins 2 & 3)? I just get target not found. Some circuits have these wired to the ICSP header, so I assume MPLab / PICKit can use other ports, but I don't have a PICKit. Edited 2021-03-27 17:22 by phil99 |
||||
| PeterB Guru Joined: 05/02/2015 Location: AustraliaPosts: 655 |
G'Day phil. If you look at Rob's circuit which I have just built 2 off, it uses pins 2 & 3 on a NANO. I frequently get "target not found" it is always some bit of stupidity on my part. The most recent was having to unplug/plug the USB cable while holding my right foot off the ground. Actually, the foot may not have been necessary. Good luck Peter |
||||
| robert.rozee Guru Joined: 31/12/2012 Location: New ZealandPosts: 2466 |
"target not found" is often a sign of: 1. a missing Vcap, 2. one of the ground or Vcc pins left floating (all must be connected, including AVcc and AGnd), 3. extra circuitry connected to the PGC or PGD pins, 4. the PIC32 and other attached circuitry drawing more than 50mA (the maximum that the arduino can supply to the device being programmed). in theory any pair of ICSP pins on the PIC32 can be used (there are 3 pairs on the 28-pin MX170), but you can not use a clock pin from one pair and a data pin from another. the device being programmed monitors all 3 pairs for activity, so just connect wires to whichever pair is most convenient. once the arduino firmware has been uploaded, you can jumper the arduino's -RESET pin to Vcc for faster startup. but if you do this, do NOT press the arduino's reset button as it will short out the USB power. cheers, rob :-) Edited 2021-03-27 23:06 by robert.rozee |
||||
| phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 2828 |
Thank you Peter and Robert. When it didn't work in circuit I unplugged the MX170 and put it on a breadboard, with all necessary pins connected, and got the same result. I then moved PGD & PGC from pins 2 & 3 to 4 & 5 and it worked. That's what led me to the assumption that pic32prog was the issue, but it must just be poor connections on both boards, or sinking deeper into senility. I will will check everything and try again. Edit Re-soldered IC socket and ICSP header, now fine. Don't know what I did wrong on the breadboard. Edited 2021-03-28 10:22 by phil99 |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |