CY8CKIT-145-40XX PSoC 4000S uploading programs

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

cross mob
alalc_4280501
Level 1
Level 1

1.PNG

2.PNG

3.PNG

4.PNG

5.PNG

6.PNG

All programs installed.PNG

Cntrl + f5.PNG

I just wrote a simple program of one LED light blinking at 500 milliseconds delay. I would like to upload this program to the Psoc board, but am unable to upload the program. I try to do this with 2 methods.

1 - Is seen in the image titled "Cntrl + f5". I simply click on the program, but nothing is appearing in the menu.

2 - Is seen in the image "6" through the bootloader. I'm unable to find the .cyacd file in the debug folder of the project nor at the .dep folder.

I hope I could clearly tell you my problem. Please don't hesitate to ask further details. I also showed what programs I have installed.

0 Likes
1 Solution
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

Almost a couple of weeks has passed since you posted this question.

I hope that you have figured out how to do it and have proceeded,

so that you did not have to come back here again.

But just in case you are still stopping there,

as I could use CY8CKIT-145 today, I tried to trace your steps.

Before starting, please make sure that

(1) You have downloaded and installed and updated PSoC Creator v4.2

     https://www.cypress.com/downloadcreator

(2) You have installed PSoC Programmer (Mine is 3.28.3, there may be newer version available)

https://www.cypress.com/documentation/software-and-drivers/psoc-programmer-archive

(3) You have downloaded and installed CY8CKIT14540XXSetupOnlyPackage_RevSA.exe from

https://www.cypress.com/documentation/development-kitsboards/cy8ckit-145-40xx-psoc-4000s-capsense-pr...

(4) SW4 (SWD SELECT) is in the PSoC 4000S position

DIP_SW_Setting.JPG

I created a project tracing your step, and drew schematic as below,

the point is it has only 1 Digital Output (LED)

001-schematic.JPG

The pin assignment is

002-pin-assign.JPG

As I noted in the schematic, BLUE LED connected to the PSoC 4000S is connected via P2[5]

Then  edited main.c (except comment lines, I traced your code)

003-main_c.JPG

I compiled the program using menu Build > Clean and Build <project_name>

004-compile.JPG

The project was built without problem

005-compiled.JPG

Then I selected the debug target by Menu Debug > Select Debug Target...

006-select-debug-target.JPG

I selected PSoC 4000S CY8C4045AZI-S413 then selected [ OK / Connect ]

008-select-PSoC.JPG

Then to start the debugger, I selected the "Debug" icon

009-Debug-icon.JPG

After loading the binary to the device, the debugger started

010-Debugger-started.JPG

Starting the program by selecting by selecting "Resume Execution" Icon.

011-Start.JPG

At this point, I could observe that the BLUE LED on the board is blinking.

Please note, to be in the safer side, I did not use "Function Keys" such as F5 etc,

as they could be configured differently for each PC system.

moto

View solution in original post

0 Likes
4 Replies
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi

In some other topic installing PSoC Programmer helped the problem like this.

How about trying install PSoC Programmer?

moto

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

This morning I encountered a quite similar situation with my CY8CKIT-149.

After struggling a while, I noticed that I was playing with the EZ-BLE,

so SW4 was set to EZ-BLE position.

Although this may not apply to your case,

but trying to switch SW4 of CY8CKIT-145 to PSoC 4 position

may affect the situation.

moto

0 Likes

Please download the latest PSoC Programmer from here​. Once installed, restart PSoC Creator and then try again.

Regards,
Dheeraj

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

Almost a couple of weeks has passed since you posted this question.

I hope that you have figured out how to do it and have proceeded,

so that you did not have to come back here again.

But just in case you are still stopping there,

as I could use CY8CKIT-145 today, I tried to trace your steps.

Before starting, please make sure that

(1) You have downloaded and installed and updated PSoC Creator v4.2

     https://www.cypress.com/downloadcreator

(2) You have installed PSoC Programmer (Mine is 3.28.3, there may be newer version available)

https://www.cypress.com/documentation/software-and-drivers/psoc-programmer-archive

(3) You have downloaded and installed CY8CKIT14540XXSetupOnlyPackage_RevSA.exe from

https://www.cypress.com/documentation/development-kitsboards/cy8ckit-145-40xx-psoc-4000s-capsense-pr...

(4) SW4 (SWD SELECT) is in the PSoC 4000S position

DIP_SW_Setting.JPG

I created a project tracing your step, and drew schematic as below,

the point is it has only 1 Digital Output (LED)

001-schematic.JPG

The pin assignment is

002-pin-assign.JPG

As I noted in the schematic, BLUE LED connected to the PSoC 4000S is connected via P2[5]

Then  edited main.c (except comment lines, I traced your code)

003-main_c.JPG

I compiled the program using menu Build > Clean and Build <project_name>

004-compile.JPG

The project was built without problem

005-compiled.JPG

Then I selected the debug target by Menu Debug > Select Debug Target...

006-select-debug-target.JPG

I selected PSoC 4000S CY8C4045AZI-S413 then selected [ OK / Connect ]

008-select-PSoC.JPG

Then to start the debugger, I selected the "Debug" icon

009-Debug-icon.JPG

After loading the binary to the device, the debugger started

010-Debugger-started.JPG

Starting the program by selecting by selecting "Resume Execution" Icon.

011-Start.JPG

At this point, I could observe that the BLUE LED on the board is blinking.

Please note, to be in the safer side, I did not use "Function Keys" such as F5 etc,

as they could be configured differently for each PC system.

moto

0 Likes