Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
LeeVu
Level 1
Level 1
First reply posted First question asked Welcome!

We are using CYPD4226-40LQXIT chip and MiniProg3. We want to flash the chip using MiniProg3 SWD(5pin)and Psoc Programmer 3.29.0
Our Programmer configuration is:
Programming mode: reset
Connector: 5p
Protocol: SWD
Voltage: 3.3V
Status Voltage : 5000 mV
On right corner of the window, status shows connected and powered,however when we try to program we observed below error
FAILED! PSoC device is not acquired! Check connection of the chip to the programmer
Please, check the following items:
- the connection between the programmer and the PSoC;
- the correct programming protocol is selected;
- the correct connector option is selected.

Our VDDD 3.3V and VDDIO 3.3V. however Voltage mesured at VCCD is at 1.2V in one Board and 2.5V in another board.
We have also tried Powercycle mode with few changes to the custom board,but the error remains same.
Our questions


1) What it indicates the VCCD voltage at 1.2V ? is it due to non programmed condition of Chip or any of the status Pins/Voltage creating issue?
2) The above error is related to VCCD voltage?
3) Any advice on the Programming and configuration ?

Thanks All,

0 Likes
1 Solution

Hello.

I have to say you are good at debugging!

A couple of suggestions:
In the project, Design Wide Resources, have you set the Operating Conditions to 3.3V?

I suspect you are connecting 5V_AO to Miniprog Vtarg pin.  Instead, can you connect VDD_3V3_PD to Miniprog Vtarg.

Can you attach a screen shot of PSoC Progrogrammer window.

Is it possible that other circuitry is back-powering the CYPD4226?

Can you verify Q619(?) and R795 are not installed at XRES.

Try removing capacitor C599 from XRES signal and replace resistor R647 on XRES with 4.7k (10k Ohms would also do).

You might find something useful in this trouble shooting guide:
Troubleshooting PSoC® 3/4/5LP Programming/Debuggin... - Infineon Developer Community

edit: Can you verify on the pcb layout that EPAD is connected to Ground.

View solution in original post

0 Likes
7 Replies
BiBi_1928986
Level 7
Level 7
First comment on blog 500 replies posted 250 replies posted

Hello.

A few hints.

Vccd is the output of an on-chip 1.8V regulator.  Any other voltage seen at this pin indicates a problem with power supplies (or blown chip).  Vccd should have only a 0.1uF capacitor connected to this pin.  There should not be any other connections to Vccd pin.  Check your schematic and pcb layout for possible errors.

The "Reset" mode can only be used if signal XRES is brought to the 5-pin SWD connector interface.  If XRES is not routed to SWD interface, then must use Power Cycle mode.  You have to make the connections to Miniprog and then press "Toggle Power" (round blue circle icon) along row of PSoC Programmer icons.

The Voltage Status indicates it's measuring 5V for Vtarg.  Is the pcb being powered by an external power supply?  If yes, then the Power Cycle reset mode won't work unless the pcb has a way to turn power off/on under control of Miniprog.  BTW, if all power is sourced from Miniprog, make sure all the 'other' circuitry doesn't exceed around 200mA.  Miniprog was designed to power a PSoC, not a whole circuit board full of parts.

All the issues appear to be power supply related.  Maybe you could attach an image of the power circuitry along with CYPD4226-40LQXIT showing the power/ground/capacitor connections.

0 Likes
lock attach
Attachments are accessible only for community members.

Hi Thanks for the reply, We have routed XRES to SWD interface, Pls find the attached schematic capture around the Power connection. Pls let us know if you suspect any issues in Power Part.

0 Likes

Hello.

Thanks for providing more details.

The signal Vdd_3V3 should not be applied ahead Vddd rail.  Vdd_3V3 is not derived from this schematic page so hard to say if Vdd_3V3 is simultaneous with Vddd or not.  That's something you should check.

At the programming header, it's good that you have XRES available for connecting to Miniprog.  What I don't see is a Ground connection at the programming header.  Miniprog won't work properly without it.

Assuming Mosfet transistor Q619(?) and R795 are not installed at XRES.  They will not interfere with XRES operation by Miniprog.

I see 5V_AO at programming header.  Is this voltage sourced by Miniprog or by external power supply?  It explains why Miniprog shows Voltage Status as 5V (instead of 3.3V).

BTW, if you have a cable running between pcb and Miniprog, it should not be longer than 5cm-10cm in length.  The SWD signal quality falls off badly if longer.  And that includes the Ground signal wire.

Vccd looks good (from schematic perspective).

You should check the current requirements of the 5V and 3V3 regulators if sourcing the 5V from Miniprog (don't exceed 200mA).  You could also set the programming voltage in PSoC Programmer to 5V.  SWD pins are 5 volt tolerant.

Using the Reset mode, you can still click on the Toggle Power icon (blue circle next to Download icon) and see if that helps.

Make some voltage measurements at the chip to see if you have 3V3 and 5V where expected.  Vcc_DCN is another mystery voltage that generates the 3V3 along with the USB ports (Vbus 5V).  Vcc_DCN (or Vbus1 or Vbus2) should be the first applied voltage to CYPD4226.  You mentioned Vccd was not reading 1.8V.  That's still a concern.  The ARM core runs off Vccd  1.8V and runs SWD protocol.  You need to get Vccd working properly first.

0 Likes

Hello thanks for input on the schematic.

1) The signal Vdd_3V3 not applied ahead Vddd rail, as this Voltage come much later in the power sequence, and this stage of board bring up it is in off state.
2) 5V_AO at programming header, this voltage sourced by external power supply i.e from custom board.
3) We have a cable running between pcb and Miniprog of 2cm length.
4)We tried using the Reset mode, click on the Toggle Power icon, No difference.
5) We reverified Voltage at the chip,3V3 and 5V where expected and clean.
6) Vcc_DCN is the first Voltage applied to Board.VDD_3V3_PD triggers 5V_AO
7) We have 3 boards assembled, 2 Boards shows Vccd at 1.2V and one board at 2.5V. So our assumption chip blown might not be the cause ,though can't be ruled out.
Appreciate if any clue to fix Vccd issue.

0 Likes

Hello.

I have to say you are good at debugging!

A couple of suggestions:
In the project, Design Wide Resources, have you set the Operating Conditions to 3.3V?

I suspect you are connecting 5V_AO to Miniprog Vtarg pin.  Instead, can you connect VDD_3V3_PD to Miniprog Vtarg.

Can you attach a screen shot of PSoC Progrogrammer window.

Is it possible that other circuitry is back-powering the CYPD4226?

Can you verify Q619(?) and R795 are not installed at XRES.

Try removing capacitor C599 from XRES signal and replace resistor R647 on XRES with 4.7k (10k Ohms would also do).

You might find something useful in this trouble shooting guide:
Troubleshooting PSoC® 3/4/5LP Programming/Debuggin... - Infineon Developer Community

edit: Can you verify on the pcb layout that EPAD is connected to Ground.

0 Likes

Hi, Thanks for the input , your advice "replace resistor R647 on XRES with 4.7k " worked. We could able to program. and after programming Vccd is at 1.8V now. thank you very much.

0 Likes

Good to hear it's working for you now.

Although the PSoC device have an internal ~5k Ohm pull-up resistor on XRES, I've never found it to be reliable.  Hence, always works with an external resistor.

I suspect Miniprog could not reset PSoC because of the 0.1uF capacitor on XRES and the non-functional internal resistor.  The capacitor was charged up thru the external 100k Ohm resistor.  This charging time-constant is too slow for Miniprog and Miniprog times out waiting.  With the 4.7k Ohm resistor, the charging time-constant is much quicker and Miniprog doesn't time out.  Hence, a succesful PSoC reset cycle and Miniprog can acquire the chip.

It's still a bit of a mystery why Vccd is not 1.8V right from the start (prior to FLASH programming).  As long as it's working, that's the main thing.

Good luck with your project.

0 Likes