- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I need to program PSOC 5 components in production. I am attempting to use a Windows 10 command shell to program the devices. Presently I have been using the following commands:
OpenPort KitProg/100E0F6202037400 "C:\Program Files (x86)\Cypress\Programmer"
HEX_ReadFile "D:/Scrap/PSOC-CLI/Stepper.hex"
SetAcquireMode "Power"
SetProtocolConnector 1
SetProtocol 8
SetProtocolClock 224
SetPowerVoltage 5.0
PowerOn
AcquireChipWithDelay 0x0FA0
Calibrate
EraseAll
Program
Verify
VerifyProtect
Protect
CheckSum 0
HEX_ReadChecksum
ClosePort
Which I place in a text file and then execute from the command line
"c:\Program Files (x86)\Cypress\Programmer\ppcli.exe" "--runfile Stepper.txt"
The results are:
OpenPort KitProg/100E0F6202037400 "C:\Program Files (x86)\Cypress\Programmer"
<
0 OK
HEX_ReadFile "D:/Scrap/PSOC-CLI/Stepper.hex"
<0x00040000
0 OK
SetAcquireMode "Power"
<
0 OK
SetProtocolConnector 1
<
0 OK
SetProtocol 8
<
1 OK
SetProtocolClock 224
<
0 OK
SetPowerVoltage 5.0
<
0 OK
PowerOn
<
0 OK
AcquireChipWithDelay 0x0FA0
E
Device is not in ISSP mode.
AcquireChipWithDelay 0x0FA0 returned 80004005
80004005 OK
Calibrate
E
Device is not in ISSP mode.
Calibrate returned 80004005
80004005 OK
EraseAll
E0x775bbf34
Device is not in ISSP mode.
EraseAll returned 80004005
80004005 OK
Program
E
Device is not in ISSP mode.
Program returned 80004005
80004005 OK
Verify
E
Device is not in ISSP mode.
Verify returned 80004005
80004005 OK
VerifyProtect
E
Device is not in ISSP mode.
VerifyProtect returned 80004005
80004005 OK
Protect
E
Device is not in ISSP mode.
Protect returned 80004005
80004005 OK
CheckSum 0
E0xffffffff
Device is not in ISSP mode.
CheckSum 0 returned 80004005
80004005 OK
HEX_ReadChecksum
<0x56f6
0 OK
ClosePort
<
0 OK
<
0 OK
I've tried replacing the "AcquireChipWithDelay 0x0FA0" with a simple Acquire and DAP_Acquire; I've tried both "Reset" and "Power" as the SetAcquireMode parameter - has not changed the results.
Side notes -
There does not seem to be any delay with the AcquireChipWithDelay, I've increased its delay to a couple seconds and it does not seem to change the time it takes to fail.
The HEX_ReadFile requires a strange format for the file name which is not in the documentation. Through experimentation I've determined that Unix "/" path delimiters work as well as "\\" as used with normal expressions but it might be worth noting in the documentation.
Solved! Go to Solution.
- Labels:
-
PSoC Creator Software
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
'AcquireChipWithDelay, Program, ... ' are not a valid CLI command for PSoC5.
Please check the C:\Program Files (x86)\Cypress\Programmer\Documents\PSoC Programmer CLI User Guide.pdf
Table 1-1. PSoC Programmer APIs
for the correct APIs.
Thanks
Jobin GT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
'AcquireChipWithDelay, Program, ... ' are not a valid CLI command for PSoC5.
Please check the C:\Program Files (x86)\Cypress\Programmer\Documents\PSoC Programmer CLI User Guide.pdf
Table 1-1. PSoC Programmer APIs
for the correct APIs.
Thanks
Jobin GT