Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
Benzol Regular Member Joined: 07/01/2015 Location: AustraliaPosts: 64
Posted: 07:32pm 11 Jul 2016
Copy link to clipboard
Print this post
I have a problem with the PIC32 prog. I have built the board supplied by Grogster and added the Arduino NANO. Installed the drivers successfully and uploaded the asciiICSP correctly.
Then installed the jumper and ran pic32prog to upload the hex file, but received the error message that "target not found".
When checking why, I found 0v on the supply. In fact 0v on D5, D6 & D7 but 5v on D8.
Can anyone point out what I have done wrong. The NANO is definitely marked as ATMEGA328 and the positioning of the NANO on the board is ok.
regards
db
MicroBlocks Guru Joined: 12/05/2012 Location: ThailandPosts: 2209
Posted: 07:40pm 11 Jul 2016
Copy link to clipboard
Print this post
Open up Teraterm and try typing a question mark.
The response should be 'ascii ICSP v1E'.
If not then you probably have to load the firmware into the NANO or you selected the wrong com port. Teraterm gives you a list of available comports, try to find out which one is the nano but disconnecting and reconnecting it.
If you do get a response you can try different keys, you can then check with a multimeter/scope/logic analyzer.
0 PGD low and a pulse on PGC
1 PGD high and a pulse on PGC
2 MCLR high
3 MCLR low
4 is power off
5 is power on
Microblocks. Build with logic.
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9590
Posted: 10:03pm 11 Jul 2016
Copy link to clipboard
Print this post
It probably does not matter that much, but what target are you trying to program?Smoke makes things work. When the smoke gets out, it stops!
Benzol Regular Member Joined: 07/01/2015 Location: AustraliaPosts: 64
Posted: 11:32pm 11 Jul 2016
Copy link to clipboard
Print this post
Hi Grogster
it is a 28 pin with V4.7 on it. Thought I would update to V5.2.
Microblocks; I'm not getting anything back when using Teraterm but that could also be my ignorance setting it up.
I have tried reloading everything again, all good with the ascii ICSP, but no target found.
robert.rozee Guru Joined: 31/12/2012 Location: New ZealandPosts: 2431
Posted: 02:40am 12 Jul 2016
Copy link to clipboard
Print this post
hi,
it sounds like you have successfully uploaded the firmware to the nano:
C>pic32prog -d ascii:com5 -b3
Programmer for Microchip PIC32 microcontrollers, Version 2.0.174
Copyright: (C) 2011-2015 Serge Vakulenko
(ascii ICSP coded by Robert Rozee)
57600 baud ... synchronized
Signature = 1e950f Device = ATmega328P
############################################
Firmware uploaded to 'ascii ICSP' adapter OK
you have carried out the above step ok? if you have, you will know what comm port the adapter is attached to.
now you should (without any target PIC attached) be able to run teraterm, set the baud rate to 115k, and issue commands to the programmer. as has been said above, first type "?" (no quote marks, no need to press enter) and an ID response will come back.
next, hook up a meter across the 3v3 zener diode. if you type "5" the voltage across the zener should go up to 3.3 volts. if you type "4" it should drop back down to zero.
cheers,
rob :-)Edited by robert.rozee 2016-07-13
Benzol Regular Member Joined: 07/01/2015 Location: AustraliaPosts: 64
Posted: 04:03am 12 Jul 2016
Copy link to clipboard
Print this post
Hi Rob. Thanks for the help.
I have uploaded the firmware OK. Comm port is 5.
I then increased the baud rate to 115k and got a response with '?' ascii ICSP V1. All good.
Meter on the zener reads 0v. nothing changes with 5 or 4. Checked the PGD and MCLR, they vary as above from microblocks. But still no voltage across the zener.
Benzol Regular Member Joined: 07/01/2015 Location: AustraliaPosts: 64
Posted: 04:22am 12 Jul 2016
Copy link to clipboard
Print this post
Hi Rob. I'm now getting nothing on PGD and MCLR. Maybe screwed something up with all my prodding. time to get some shuteye. Maybe look at sourcing another NANO tomorrow.
Thanks for your help.
robert.rozee Guru Joined: 31/12/2012 Location: New ZealandPosts: 2431
Posted: 04:23am 12 Jul 2016
Copy link to clipboard
Print this post
does your assembled board look much like this one?
note the pins that MUST be soldered, indicated by red lines - 7 along one edge, and one on the other edge. the 4 corner (blue line) pins are just for mechanical support. when i first assembled one of grogster's boards i forgot to solder pin 4 and had no end of problems!
also be sure that the zener diode is the correct way round.
Grogster Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9590
Posted: 05:54pm 12 Jul 2016
Copy link to clipboard
Print this post
I solder ALL pins, even though that is not technically required. That saved me having to worry about which ones I needed to do, and which not to bother with. If you solder them all, you are covered no matter what.
My 2c only.Smoke makes things work. When the smoke gets out, it stops!
Benzol Regular Member Joined: 07/01/2015 Location: AustraliaPosts: 64
Posted: 11:19pm 12 Jul 2016
Copy link to clipboard
Print this post
Hi Rob and Grogster
my board looks exactly like that. it's probably a good thing I didn't solder all pins because if I have to change over the nano it's less to unsolder. Or I could use the extra board Grogster sent me. Much appreciated.
I ordered a new board from Banggood today so I will reattempt this when it arrives. $3 as opposed to $29 from Jaycar!!
Thank you for all the help.
robert.rozee Guru Joined: 31/12/2012 Location: New ZealandPosts: 2431
Posted: 01:59am 13 Jul 2016
Copy link to clipboard
Print this post
would you mind posting a photo of the board you have assembled? apart from assembling the nano onto the wrong side of the board (nano goes on side "A", resistors and zener on side "B") there is not much that can go wrong. and the 328p processor itself is pretty tough, so poking around with meter leads is unlikely to cause damage.
cheers,
rob :-)
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10215
Posted: 02:31am 13 Jul 2016
Copy link to clipboard
Print this post
Also, please show the wiring of the PIC32. You do have the VCap in place? and all the connections shown on page 6 of the Micromite manual?