公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

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

cross mob
Quello
Level 1
Level 1
5 sign-ins First solution authored First reply posted
How to download the program to PSOC4ps flash? I want to download the program by SWD, but i don't know the process, please help me. Not by download tools, and i want to access the DAP register. Now the SWD is ok, i can access the DP and AP register, i want to know how to erase flash and write flash.
0 点赞
1 解答
Quello
Level 1
Level 1
5 sign-ins First solution authored First reply posted

Hi ADSW,

Thank you very much, i'll have a try.

 

 

 

Best wishes!

在原帖中查看解决方案

0 点赞
6 回复数
ADSW
Moderator
Moderator
Moderator
250 sign-ins 50 solutions authored 25 likes received

Hi @Quello , 

You can connect the Kitprog or miniprog to your PSoC 4 as in the following image. 

ADSW_0-1696844004932.png

And you can download your code through PSoC creator or your compiled .hex files through PSoC Programer. 

Warm regards
ADSW

0 点赞
Quello
Level 1
Level 1
5 sign-ins First solution authored First reply posted

Thanks, but i want to download code by SWD IP. My colleague used FPGA to realize the direct SWD communication between PSOC4 and CPU and I need down code to flash of PSOC4 by using DAP of ARM M0+, i known the debug interface has provided by ARM, but i can't find the process.

0 点赞
lock attach
Attachments are accessible only for community members.
ADSW
Moderator
Moderator
Moderator
250 sign-ins 50 solutions authored 25 likes received

Hi @Quello , 


if what you mean is programming via an external MCU,
You can refer to this document 

But if you are utilizing ppcli, then please refer to this KBA232937 .
You can use PPCLI - API to erase and write the flash

Regards,
ADSW

0 点赞
Quello
Level 1
Level 1
5 sign-ins First solution authored First reply posted

Hi ADSW,

I'm using ZYNQ of Xilinx to download code to PSOC4 and don't use XRES pin. I have known the process, i want know more source code, can you help find the link? Thanks.

 

Best wishes!

0 点赞
lock attach
Attachments are accessible only for community members.
ADSW
Moderator
Moderator
Moderator
250 sign-ins 50 solutions authored 25 likes received

Hello @Quello , 

You can refer to this HSSP sample code, that related with the AN84845

Warm regards,
ADSW

0 点赞
Quello
Level 1
Level 1
5 sign-ins First solution authored First reply posted

Hi ADSW,

Thank you very much, i'll have a try.

 

 

 

Best wishes!

0 点赞