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

Cypress Programmer error using PMG1-S0 device – KBA236833

Cypress Programmer error using PMG1-S0 device – KBA236833

Infineon_Team
Moderator
Moderator
Moderator
5 replies posted First solution authored First comment on KBA

Cypress Programmer error using PMG1-S0 device – KBA236833

Community Translation: PMG1-S0デバイスを使ったCypress Programmerのエラー - KBA236833

Version: **

Problem: When trying to program the PMG1-S0 device using Cypress Programmer version 4.1, it displays an error "Invalid platform chosen."

Solution: Use the OpenOCD CLI tool from the Cypress Programmer package to program the PMG1-S0 device using the command line:

  1. Attach your PMG1 kit to the USB port.
  2. Open a console (e.g., "cmd" on Windows) and go to the default location of the OpenOCD executable in Cypress Programmer installation. For example:

cd "C:\Program Files (x86)\Cypress\Cypress Programmer 4.1\openocd\bin"

  1. Use the following command to program the hex file onto the target device:

openocd -s "../scripts" -f "interface/kitprog3.cfg" -c "set PSOC4_USE_ACQUIRE 2" -f "target/psoc4.cfg" -c "init; reset init; program <PATH>/pmg1_img.hex; reset run; shutdown"

Where <PATH> is the proper path to your hex file.

Note: Use Unix-style slashes in your hex file path on Windows.

  1. Invoke openocd; check the output to ensure programming was successful.

You should observe a "* Programming Finished *" message in the output logs.

0 Likes
68 Views