Do kindly let us know the Command Line Programmer which works with PSoC Programmer 3.18 and 3.19.
The PSoC Programmer Command Line Interface (ppcli.exe) is the only command line interface for PSoC Programmer. Do kindly let us know for what purpose you are developing general code, so that we can give you some suggestions. I wish to let you know that ppcli does not support conditional statements, hence conditional scripts cannot be developed.
I am working in a production company as an intern. The company asked me to make a batch file that can be used in barcode system. The programming process working like this. (Whole process is in-circuit programming)
1.) Read barcode on the PCB via barcode reader
2.) Barcode reader runs PBC's batch file (Windows CMD batch files)
3.) Programming started via batch file
4.) If error occurs show error message, if it passes no problem.
I found some applications in the community (you can see in the attachment) but it is not working for ISSP protocol.
Can you please help me about this situation?
PSoC_cli_apps.rar 559.9 K
The archive you had attached is broken, please re-attach.
You can use ppcli.exe with a file of commands from the command prompt to program PSoC.
c:/Program Files/Cypress/Programmer/ppcli.exe -t "--runfile program-example" --quit
Here the "program-example" file contains commands like this:
OpenPort MINIProg1/848E4756090B “c:/Program Files/Cypress/Programmer”
I have attached the PSoC Programmer CLI User Guide for your quick reference.
The problem is I need to check all steps via patch file. For example, in Calibrate process fails the program must stop. Due to ppcli.exe does not have return value (like ERRORLEVEL etc.) and conditional statement, I cannot check the failed steps.
Also I have multiple MiniProg3, I need to extract specific device ID. The program must be general.
I hope that this clarify my situation.
The PPCLI application returns success or error for all commands, but you need to handle those errors in your application. However I don't think it is easy to handle it in a batch file. Better way is to use Python/Perl script (and redirect the output to batch file/application if need be).
There are couple of PSoC 1 programming examples (for C#, CPP, Perl, Python, etc.) present in the PSoC Programmer installation directory that have error handling implemented.
(Location: C:\Program Files (x86)\Cypress\Programmer\Examples\Programming\PSoC1\ISSP)
See if those can help you. Cheers!
Yes it is really hard to handle errors with batch file. Better use Pyhton/Pearl to run and check the programming.
By the way examples you described are really helpful. Thank you so much for help !!