Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > Programming PSoC5 with miniprog3 using 5pin connector

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Programming PSoC5 with miniprog3 using 5pin connector
Moderator:
ANCY

Post Reply
Follow this topic



Programming PSoC5 with miniprog3 using 5pin connector

adrian_ posted on 05 Mar 2012 4:21 AM PST
Top Contributor
26 Forum Posts

Hello, i am trying to program PSoC5 CY8C5566AXI-061 on a custom made PCB using 5pin connector, with miniprog3  (active protocol: SWD). The CY8C5566AXI-061 is detected correctly in PSoC Creator. In PSoC programmer is detected as CY8C5586AXI-061. The board is powered from external source.

Anyways, when i try to program it from PSoC Creator i get the error (same happens from  PSoC Programmer): 

Error: dbg.M0023: There was an error while programming the device: PSoC Programmer reported error (100 - FAILED! SWD respond packet contains Failed status!)

(I tryed to lower the clock speed but nothing changed)

The settings from PSoC Creator are:

Active Protocol: SWD

Clock speed: 1.6MHz

Power: External

Acquire mode: Reset

Connector: 5pin

 

The settings from PSoC Programmer are:

Programmer: MiniProg3

Programming mode: Reset

Auto detection: OFF

Protocol: SWD

Voltage: 5V

Connector: 5p

Clock Speed: 1.5MHz

Device: CY8C5566AXI-061

 

The pin connectios from MiniProg3 to PSOC5 (on the custom made PCB) are:

VTARG - VDDDIO1 

GND - GND

XRES - XRES (on pin 15)

SCLK - P1[1] (on pin 21)

SDAT - P1[0] (on pin 20)

Thanks in advance.

 




Re: Programming PSoC5 with miniprog3 using 5pin connector

U2 posted on 05 Mar 2012 09:40 AM PST
Cypress Employee
589 Forum Posts

Since power is set to external, make sure that VDDD, VDDA and VDDIOs are all powered. Try to also ensure that the voltage setting in the programmer setting and on the board match.



Re: Programming PSoC5 with miniprog3 using 5pin connector

U2 posted on 05 Mar 2012 09:42 AM PST
Cypress Employee
589 Forum Posts

 Ensure that all the hardware connections are right. Also if, the 5 pin connection does not work, flip to 10 pin connection setting , but keep the wiring such that SWD lines are correct.



Re: Programming PSoC5 with miniprog3 using 5pin connector

SpiderKenny posted on 08 Mar 2012 02:21 PM PST
Top Contributor
83 Forum Posts

 Also, with the miniprog3 - if you set the power to 'external' because your device is self-powered, you MUST route that power to the  VTARG pin of the 5-pin connector. The miniprog3 always checks that there is the correct voltage there, whether it is powered from the miniprog or from the board.

Also, the connection from the miniprog3 to the psoc must be as short as possible. I once made up a small ribbon cable to reduce strain on my miniprog3 which was less than 2cm long - but it was enough to make all attempts to program the device fail.

 



Re: Programming PSoC5 with miniprog3 using 5pin connector

adrian_ posted on 09 Mar 2012 03:31 AM PST
Top Contributor
26 Forum Posts

 I made the PCB again, and i still got the same error, i've changed the external supply to 3.3V.

Error: dbg.M0023: There was an error while programming the device: PSoC Programmer reported error (100 - FAILED! SWD respond packet contains Failed status!)

I am not sure if i powered correctly the PSoC:

pin 10, 12, 13 and 14 to GND (i found this in CY8C55 Family Data sheet, page8)

pin26 (VDDIO1) to 3.3V (this connect to VTARG of the 5 pin connector from Miniprog3 too)

pin37 (VDDD) to 3.3v 

pin38 (VSSD) to GND

pin39 (VCCD) to pin86(VCCD) (there are no connections with other pins), this is the internal 1.8V regulator, i can measure this voltage when the board is powered 

pin50(VDDIO3) to 3.3V 

pin63 (VCCA) connected with a capacitor to GND (there are no connections with other pins), this is the other internal 1.8V regulator, and i can measure this voltage when the board is powered

pin64 (VSSA) to GND

pin65(VDDA) to 3.3V

pin66(VSSD) to GND

pin75(VDDIO0) to 3.3V 

pin86 (VCCD) to pin39(VCCD) (there are no connections with other pins), this is the internal 1.8V regulator, i can measure this voltage when the board is powered 

pin87(VSSD) to GND

pin88(VDDD) to 3.3V

pin100(VDDIO2) to 3.3V

The programmer is configured as i sad in the previous post, i changed the voltage to 3.3V in the Programmer Characteristics tab.(because i changed the external power supply to 3.3V).

I have a CY8CKIT-001 dev board, and i managed to program the PSoC5 (which came with the dev board) with the 5pin connector(i used the breadboard for this). So, MiniProg3 is not broken or something. 

I didn't try to program my board with the 10 pin connector, i don't have the connectors yet.



Re: Programming PSoC5 with miniprog3 using 5pin connector

adrian_ posted on 09 Mar 2012 04:23 AM PST
Top Contributor
26 Forum Posts

 The reset is active on 0 on PSoC5, so i guess a pull-up resistor is necessary on XRES pin. But i should be able to pogram with succes without the pull-up resistor, is that correct? And in the worst case, the PSoC is in reset mode even after programming it.



Re: Programming PSoC5 with miniprog3 using 5pin connector

kmmankad posted on 11 Mar 2012 11:48 PM PST
Top Contributor
268 Forum Posts

I encountered similar issues while working on a custom design,and its most likely due to improper connections with the power pins,i.e noisy supply,not enough storage/decoupling caps,or shorts between VDDD and ground,or not all the VDDIOs being powered.

That said,if you could post your schematic,it would help us help you,since this is definitlely a design issue,not a software or miniprog one.



Re: Programming PSoC5 with miniprog3 using 5pin connector

kmmankad posted on 11 Mar 2012 11:49 PM PST
Top Contributor
268 Forum Posts

XRES has an internal pullup,so you dont need one externally.However,this has been reported to be 'weak' at times,so adding an ext pullup is worth a shot,though I doubt that is the case here.



Re: Programming PSoC5 with miniprog3 using 5pin connector

U2 posted on 12 Mar 2012 10:58 PM PST
Cypress Employee
589 Forum Posts

 I think adding a pull up should mitigate the problem. Have you tried that ? Is your VDDIO1 connected to VTARG of Miniprog ? Please post your schematic here.



Re: Programming PSoC5 with miniprog3 using 5pin connector

adrian_ posted on 12 Mar 2012 01:58 AM PST
Top Contributor
26 Forum Posts

There is the schematic  .DSN(made in Orcad Schematic 9.2), and the pcb file .PCB (made in Protel2.7.1). 



Re: Programming PSoC5 with miniprog3 using 5pin connector

adrian_ posted on 12 Mar 2012 01:58 AM PST
Top Contributor
26 Forum Posts


Re: Programming PSoC5 with miniprog3 using 5pin connector

adrian_ posted on 12 Mar 2012 02:07 AM PST
Top Contributor
26 Forum Posts


Re: Programming PSoC5 with miniprog3 using 5pin connector

adrian_ posted on 12 Mar 2012 02:48 AM PST
Top Contributor
26 Forum Posts

 The values for capacitors are as mentioned in the CY8C55 Family Datasheet, on page8. I added a 10k pull-up resistor, but nothing changed. 



Re: Programming PSoC5 with miniprog3 using 5pin connector

adrian_ posted on 13 Mar 2012 03:03 PM PST
Top Contributor
26 Forum Posts

 Here is the .dxf for the schematic. I don't know if orcad can generate a .png file or .jpg file for the schematic. Sorry for the inconvenience. You can open .dxf file with SolidWorks eDrawings or other dxf viewer. http://wtrns.fr/nzrp4XaJ1DGXnNM



Re: Programming PSoC5 with miniprog3 using 5pin connector

GIL posted on 14 Mar 2012 11:43 AM PST
Member
10 Forum Posts

I don't know if this comment can "illuminate" something: I discover today  why a customer can't debugger (and download firmware) in a 5588LTI-114 using miniprog3 and 5pin. Creator 1.0 SP2 see perfectly 5588AXI-060 (default micro, micro mounted in kit-001 or kit-050) but if you have mounted LTI part, Creator doesn't see it, although programmer can.
With Creator 2.0 no problem. And in my case, it's not possible change to Creator 2.
 



Re: Programming PSoC5 with miniprog3 using 5pin connector

adrian_ posted on 14 Mar 2012 12:17 PM PST
Top Contributor
26 Forum Posts

 Here i uploaded the schematic in .pdf format. Sorry for the multiple posts, i didn't knew how to simply copy-paste the schematic from orcad to inkscape and " File-> Save as-> Portable Document Format( .pdf)" in inkscape.

I didn't tryied with Creator1 or other version of programmer but i am going to try that too.



Re: Programming PSoC5 with miniprog3 using 5pin connector

adrian_ posted on 14 Mar 2012 12:24 PM PST
Top Contributor
26 Forum Posts

 There is someone who programmed with succes this kind of PSoC on a custom made pcb? Here is the pdf with schematic (in previous post i forgot to write the link http://wtrns.fr/-p1pia1Z13NffA0 ) 



Re: Programming PSoC5 with miniprog3 using 5pin connector

kiku posted on 14 Mar 2012 08:02 PM PST
Cypress Employee
61 Forum Posts

Hi,

 

Instead of using XRES pin, you are using P1.2 in your schematic. Are you enabling the optional XRES for P1.2 in Creator? Instead, you can use the XRES pin (pin no 15) for port acquire.

 

Regards,

Kishore.



Re: Programming PSoC5 with miniprog3 using 5pin connector

Gautam Das posted on 15 Mar 2012 11:59 PM PST
Cypress Employee
742 Forum Posts

Hi adix_pop,

 

As mentioned by Kishore, use dedicated XRES pin (pin 15) for programming the very first time. In the project, you can set the "Use optional XRES" in .cydwr > System > Programming/Debugging section.



Re: Programming PSoC5 with miniprog3 using 5pin connector

adrian_ posted on 15 Mar 2012 06:13 AM PST
Top Contributor
26 Forum Posts

 On the schematic you can see that XRES(pin15) is connected to the Jumper. Before programming the device, i short the jumper first, so that the XRES(pin15) gets on MiniProg3's XRES pin (which will connect to Con programare on the board).

So: XRES(PIN15), pin3(from Con programare to which is attached the miniprog3 programmer), P1[2](pin22) are all shorted if the jumper is shorted.

I used the jumper because i needed as many pins on the external 10 pin connector. And we are going to use the 10 pin connector (from miniprog3) too and is going to be connected to the Con Programare C5. That's why we need XRES on C5. (i know that the 10 pin connector from miniprog 3 won't match with the 10 pin connector Con Programare C5, i will make an adapter or something). 

 



Re: Programming PSoC5 with miniprog3 using 5pin connector

adrian_ posted on 16 Mar 2012 11:24 PM PST
Top Contributor
26 Forum Posts

 Problem solved. P1[2] (pin22) should not be shorted with XRES. So, there was a design problem. 






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20