Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > Can't Program PSoC 5

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



Can't Program PSoC 5
Moderator:
ANCY

Post Reply
Follow this topic



Can't Program PSoC 5

MattCoughlin posted on 08 Jun 2012 1:31 PM PST
Senior Member
17 Forum Posts

 

I'm unable to program my board. The project compiles properly, but when I try to program the device, I get a window asking about the target device. I'm using the miniprog3 to program the device, and I've tried configuring it through the target window. I've set it to SWD and made my own connector to wire the miniprog to the proper ports on my board.

However, I can still program my PSoC 3 just fine. The same project will compile and program the PSoC 3.

I've tried 5 pin and 10 pin connections and I've tried changing any and all of the settings I can find for the miniprog in my target window. I just don't what's wrong, or how to fix it.

Any help would be greatly appreciated.




Re: Can't Program PSoC 5

Bob Marlowe posted on 08 Jun 2012 02:50 PM PST
Top Contributor
1768 Forum Posts

Hmmm, a common remark would be:

when there is a chain PC -> USB -> MiniProg3 -> cable -> SWD interface -> PSoC Board -> PSoC

and you can point out where the last part of the chain is that is not changed and works under both configurations the error must be in one of the remaining links.

No other chance as to double check them. As you can see the miniprog does not recognize your device, but is able to see your PSoC3 chip. There is nothing strange with PSoC5s, so there are few parts left.

Bob 



Re: Can't Program PSoC 5

kmmankad posted on 08 Jun 2012 06:22 PM PST
Top Contributor
268 Forum Posts

I dont seem to recall anything special for programming PSoC5s over PSoC3s.

Is yours a custom board? If yes,are the voltage levels okay? Are you sure there are no shorts on power rails or such anomalies?

What kind of programming mode are you using? Power cycle,or Reset?

Are you sure about your programming pins on the PSoC5? Double check those connections.

Are you using the USB SWD pins by any chance? Because when USB SWD pins (P15[6], P15[7]) are used for programming, the unused P1[1] SWDCK pin must be externally connected to ground using external pull-down resistor (100k should be fine). This is required for P15[7] SWDCK signal to be seen by the PSoC 5 internal logic.

 

Just a few thoughts off of the top of my head.



Re: Can't Program PSoC 5

zeta posted on 09 Jun 2012 09:25 PM PST
Top Contributor
174 Forum Posts

if you have a custom board make sure VDDIO1 is conected to the miniprog



Re: Can't Program PSoC 5

MattCoughlin posted on 11 Jun 2012 05:58 AM PST
Senior Member
17 Forum Posts

 I am using a custom board, but I've already checked to be sure it's electrically sound. Everything seemed to be right, and the other boards also seemed fine, but no board I've tried will program.

I've tried both Power Cycle and Reset configurations, as well as External voltage and 3.3 volts.

I'm using pins P1[1], P1[0], P1[3], and nXRES. I checked the pins, and made a new programming cable for the 5 pin interface, since 10 pin wasn't working. The new cable isn't helping, even though I changed programming settings to 5 pin.

I have VDDio1 connected to Vddd, and Vddd is connected to the miniprog.

Thank you, I'm an intern and really appreciate the help.



Re: Can't Program PSoC 5

Bob Marlowe posted on 11 Jun 2012 06:53 AM PST
Top Contributor
1768 Forum Posts

The configuration you used (miniprog, cable) was able to program a PSoC3, wasn't it? So when you now check with a scope (preferrably simultaneously) your PSoC5-board signals / levels against PSoC3 signals / levels will you find any mismatches?

 

Bob



Re: Can't Program PSoC 5

MattCoughlin posted on 11 Jun 2012 12:23 PM PST
Senior Member
17 Forum Posts

 After some trial and error, I'm able to program the PSoC from the PSoC Programmer, but still not the Creator. I'd say this about solved, thank you all for you help.



Re: Can't Program PSoC 5

Bob Marlowe posted on 11 Jun 2012 12:56 PM PST
Top Contributor
1768 Forum Posts

Congratulations!

Now that you can breathe again I would suggest you to create a technical case so that you can solve this nasty issue forever.

Bob






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