Arduino 1.6.7 IDE pic32prog no target found CMOD board

andcvi
Posts: 12
Joined: Fri Oct 31, 2014 11:33 pm

Re: Arduino 1.6.7 IDE pic32prog no target found CMOD board

Post by andcvi » Thu May 26, 2016 4:35 am

Hello majenko,

I connected my saleae logic analyzer to the TX RX and RTS lines to my pic32 Cmod clone board and logged the data for manual and RTS reset using pic32prog and also avrdude RTS reset, if you can download saleae logic analyser software then you can view the data logs in more detail. my saleae version software is 1.1.15.
saleae logic uecide files.zip
(386.43 KiB) Downloaded 24 times
If you look at the image files you can see that with avrdude it sets the RTS line low for about 214ms then high for about 293ms the low again for 4ms then high again, with pic32prog it goes low for 216ms then high for 295ms then stays low for about 3.2 secs thus keeping the PIC32 in reset.

my reset circuit is just a resister and capacitor of 10k to +5v and 0.1uf to ground and the USB FTDI TTL cable RTS line is just connected to the MCLR.
I also removed the 0.1uf capacitor and it made no difference.

hope this helps.
pic32 reset circuit.zip
(171.34 KiB) Downloaded 27 times

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Arduino 1.6.7 IDE pic32prog no target found CMOD board

Post by majenko » Thu May 26, 2016 2:16 pm

Ah. You need a 100nF inline in your RTS signal to convert the signal into a pulse. Check the schematics of the CMOD and other chipKIT boards to see what I mean.

Sent from my SM-T555 using Tapatalk
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

andcvi
Posts: 12
Joined: Fri Oct 31, 2014 11:33 pm

Re: Arduino 1.6.7 IDE pic32prog no target found CMOD board

Post by andcvi » Sat May 28, 2016 1:47 am

Hello majenko,

Inserting a 0.1uf capacitor in line after RTS fixed the problem. pic32prog now works in UECIDE.

I also tried Arduino IDE 1.6.7 and it works as well with pic32prog, I also noticed that in the Arduino IDE pic32prog also verified the upload, but UECIDE did not, is it possible to have a verify check box in preferences to verify the upload, or it is verifying not necessary.

Also thanks for your help with this problem

User avatar
majenko
Site Admin
Posts: 2165
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: Arduino 1.6.7 IDE pic32prog no target found CMOD board

Post by majenko » Sat May 28, 2016 10:51 am

I have found that verifying is never really necessary - and when you're uploading a 2MB sketch to a Wi-Fire board it makes a very long process insanely long.

Yes, an option in preferences can be added, and I will look into it.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

Post Reply