cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 6 MCU

New Contributor II

Hello.

I am wondering how can I flash both the PSoC 6 M0+ and M4 cores using CLI ppcli.exe without the need for the PSoC Programmer GUI. I am need to do this to automate the process of flashing devices. I am already able to build the project and generate a hex file for each core using cyprjmgr.exe. The kit is connected through KitProg3, thus SWD Protocol with 10pins.

Thank you

0 Likes
Reply
1 Solution
Moderator
Moderator

Hi MuNa_4652896​,

Please refer to Table 1-1 PSoC Programmer APIs, page 11 in the PSoC Programmer Command Line Interface Guide. You can refer to Example 1 on page 85 for reference.

You can also program the device using the example scripts provided in this directory - <PSoC Programmer installation directory>\Examples\Programming\PSoC6\SWD

Hope this helps,

Thanks and Regards,

Rakshith M B

Thanks and Regards,
Rakshith M B

View solution in original post

5 Replies
Moderator
Moderator

Hi MuNa_4652896​,

Please refer to Table 1-1 PSoC Programmer APIs, page 11 in the PSoC Programmer Command Line Interface Guide. You can refer to Example 1 on page 85 for reference.

You can also program the device using the example scripts provided in this directory - <PSoC Programmer installation directory>\Examples\Programming\PSoC6\SWD

Hope this helps,

Thanks and Regards,

Rakshith M B

Thanks and Regards,
Rakshith M B

View solution in original post

Honored Contributor

MuNa,

Did you create your code using PSoC Creator or ModusToolbox?

If you used ModusToolbox, that are CLI utilities to do program both cores.

Len

Len
"Engineering is an Art. The Art of Compromise."
0 Likes
Reply
New Contributor II

I use PSoC Creator

0 Likes
Reply
Honored Contributor

MuNa,

I believe as Rakshith indicated the PSoC Programmer executable has a CLI interface that can be used in a script.

Len

Len
"Engineering is an Art. The Art of Compromise."
0 Likes
Reply
New Contributor II

Yes. Thanks for all your help.

0 Likes
Reply
Top labels