Automatiser le lancement du programme

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

cross mob
LuMi_4830051
Level 1
Level 1

Bonjour,

je cherche à lancer par le biais d'un fichier .bat l'ouverture ainsi que le lancement d'un programme par PSoC Programmer.

Le but est que lorsque je branche mes appareils je puisse par la suite lancer mon test par l'intermédiaire de mon fichier .bat.

Dans ce fichier .bat, j'ai mis le lien qui pointe vers l'exécutable de PSoC Programmer.

Je voudrais par la suite pouvoir lancer le programme sans avoir à cliquer sur le bouton "program" représenté par une flèche qui pointe vers le bas.

le programme s'accompagne d'un fichier .HEX qui est indispensable au lancement du processus.

Existe-t-il un fichier contenant l'adresse de ce bouton ?

La version de mon logiciels est la 3.28.6.4409.

0 Likes
1 Solution
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi LuMi_4830051​,

You cannot run the PSoC Programmer exe using a bat script and command-line options. But there are a few things that you can try out to achieve this:

1. Using PPCLI. You can create a script and run the script to program your device. Please refer to PSoC Programmer Command-Line Interface Guide​ for more details regarding this.

2. Using PPCOM. You can develop a simple CLI tool based on your requirements that you can run using the bat script. Please refer to PSoC Programmer Component Object Model (COM) Interface Guide​ and the examples provided in the following directory - <PSoC Programmer installation directory>\Examples\Programming\

By default the PSoC Programmer Installation directory is - C:\Program Files (x86)\Cypress\Programmer\

Hope this helps,

Thanks and Regards,

Rakshith M B

Bonjour LuMi_4830051​​,

Vous ne pouvez pas exécuter l'exe PSoC Programmer à l'aide d'un script bat et d'options de ligne de commande. Mais il y a quelques choses que vous pouvez essayer pour y parvenir:

1. Utilisation du PPCLI. Vous pouvez créer un script et exécuter le script pour programmer votre appareil. Veuillez consulter le Guide de l'interface de ligne de commande du programmeur PSoC pour plus de détails à ce sujet.

2. Utilisation de PPCOM. Vous pouvez développer un outil CLI simple basé sur vos besoins que vous pouvez exécuter à l'aide du script bat. Reportez-vous au guide d'interface COM (Component Object Model) de PSoC Programmer et aux exemples fournis dans le répertoire suivant - <répertoire d'installation de PSoC Programmer> \ Examples \ Programming \

Par défaut, le répertoire d'installation de PSoC Programmer est - C: \ Program Files (x86) \ Cypress \ Programmer \

J'espère que cela t'aides,

Merci et salutations,

Rakshith M B

Thanks and Regards,
Rakshith M B

View solution in original post

0 Likes
1 Reply
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi LuMi_4830051​,

You cannot run the PSoC Programmer exe using a bat script and command-line options. But there are a few things that you can try out to achieve this:

1. Using PPCLI. You can create a script and run the script to program your device. Please refer to PSoC Programmer Command-Line Interface Guide​ for more details regarding this.

2. Using PPCOM. You can develop a simple CLI tool based on your requirements that you can run using the bat script. Please refer to PSoC Programmer Component Object Model (COM) Interface Guide​ and the examples provided in the following directory - <PSoC Programmer installation directory>\Examples\Programming\

By default the PSoC Programmer Installation directory is - C:\Program Files (x86)\Cypress\Programmer\

Hope this helps,

Thanks and Regards,

Rakshith M B

Bonjour LuMi_4830051​​,

Vous ne pouvez pas exécuter l'exe PSoC Programmer à l'aide d'un script bat et d'options de ligne de commande. Mais il y a quelques choses que vous pouvez essayer pour y parvenir:

1. Utilisation du PPCLI. Vous pouvez créer un script et exécuter le script pour programmer votre appareil. Veuillez consulter le Guide de l'interface de ligne de commande du programmeur PSoC pour plus de détails à ce sujet.

2. Utilisation de PPCOM. Vous pouvez développer un outil CLI simple basé sur vos besoins que vous pouvez exécuter à l'aide du script bat. Reportez-vous au guide d'interface COM (Component Object Model) de PSoC Programmer et aux exemples fournis dans le répertoire suivant - <répertoire d'installation de PSoC Programmer> \ Examples \ Programming \

Par défaut, le répertoire d'installation de PSoC Programmer est - C: \ Program Files (x86) \ Cypress \ Programmer \

J'espère que cela t'aides,

Merci et salutations,

Rakshith M B

Thanks and Regards,
Rakshith M B
0 Likes