You are here

PSoC® 4 Pioneer Kit (CY8CKIT-042) Factory Restore Instructions for Programmer and Debugger Functionality - KBA87474 | Cypress Semiconductor

Support & Community

PSoC® 4 Pioneer Kit (CY8CKIT-042) Factory Restore Instructions for Programmer and Debugger Functionality - KBA87474

Last Updated: June 09, 2016
Version: 
*A
Question: 

How can I restore the programmer and debugger functionality of the PSoC 5LP device on my PSoC 4 Pioneer Kit?

Answer: 

The PSoC 4 Pioneer Kit (CY8CKIT-042) features the KitProg - PSoC 5LP device that comes factory-programmed as the onboard Programmer and Debugger for the target PSoC 4 device.

In addition to creating applications for the PSoC 4 device, you can also create custom applications for the PSoC 5LP device on this kit. You can either create a Bootloadable or a Standard application for the PSoC 5LP device. For details, please see section 6.3 of the PSoC 4 Pioneer Kit User Guide. Note that doing either of these will erase the factory program on the PSoC 5LP, which means yo u would lose the ability to use it as the on-board programmer/debugger for the PSoC 4 device. Please follow the instructions below to restore the factory program on KitProg (PSoC 5LP) to restore its programmer and debugger functionality.

Restoring the Factory Program on KitProg (PSoC 5LP)

If you programmed the PSoC 5LP with a Bootloadable application, you can restore the factory program by using one of the following two methods.

  1. Restore KitProg (PSoC 5LP) factory program using PSoC Programmer
    1. ​Launch PSoC Programmer 3.24 from the Cypress > PSoC Programmer start menu.
      Click to enlarge
    2. Plug in the PSoC 4 Pioneer Kit into the computer’s USB Port. A “KitProg/XXXXXX” device will now appear in the Port Selection window of PSoC Programmer. Click on the KitProg device to connect to it.
      Click to enlarge
    3. Once connected to the KitProg device, a warning message about the outdated programmer firmware is displayed. Click OK to continue.
      Click to enlarge
    4. Switch to the Utilities tab and click the Upgrade Firmware button. This starts the KitProg firmware upgrade process.
      Click to enlarge
    5. After programming has completed, you will see the following message: “Firmware Update Finished at ”.
      Click to enlarge
    6. You have now successfully restored the factory program on the PSoC 5LP. It can now be used as the Programmer/Debugger for the PSoC 4 device on the Pioneer Kit.
  2. Restore KitProg (PSoC 5LP) factory program using the USB Host Tool 
    1. Launch the Bootloader Host tool from within the Cypress > PSoC Creator start menu.
      Click to enlarge
    2. After the Bootloader Host tool has launched, using the File > Open menu, load the Kit Prog.cyacd file installed with the kit software. The default location for this file is:
      C:\Program Files (x86)\Cypress\CY8CKIT-042 PSoC 4 Pioneer Kit\1.0\Firmware\Programmer\KitProg\KitProg.cyacd
      Click to enlarge
    3. Pioneer Kit Service Mode: While holding down the reset button (SW1 Reset) on the bottom-left of the board, connect the PSoC 4 Pioneer Kit to your computer using the included USB cable (USB A to USB Mini B). This puts the PSoC 5LP into Service mode, which is indicated by a blinking green LED on the top-left corner of the board (D10 Status).
    4. In the Bootloader Host tool, you will now observe a USB Human Interface Device port appear in the Ports list. Choose that port by clicking on it. Verify that you see the port information as shown in the following figure (VID: 04B4, PID: F13B):
      Click to enlarge
    5. You are ready to restore the factory program by Bootloading it onto the PSoC 5LP on the Pioneer Kit. To do this, press the Program button (or menu item Actions > Program). 
    6. After programming has completed, you will see the following message: “Programming Finished Successfully”.
      Click to enlarge
    7. You have successfully restored the factory program on the PSoC 5LP. It can now be used as the Programmer/Debugger for the PSoC 4 device on the Pioneer Kit.

If you programmed the PSoC 5LP with a Standard application, you can restore the factory program by using the following method.

  1. Launch PSoC Programmer 3.18 from within the Cypress > PSoC Programmer start menu.
    Click to enlarge
  2. After PSoC Programmer has launched, use the File > Open menu to load the KitProg.hex factory program HEX file that is shipped with the kit. The default location for this file is:
    C:\Program Files (x86)\Cypress\CY8CKIT-042 PSoC 4 Pioneer Kit\1.0\Firmware\Programmer\KitProg
  3. Connect a MiniProg3 (CY8CKIT-002 – not included, sold separately) to your computer. The 10-pin connector cable on the MiniProg3 plugs into the header [J7]. Note that this header is unpopulated. Refer to the Appendix section of the PSoC 4 Pione er Kit User Guide for more details. 
  4. Ensure that the MiniProg3 is the selected port in PSoC Programmer and the 10p Connector option is selected as shown in the following figure. If the board is not powered over USB, you will also need to select Power Cycle as the Programming Mode.
    Click to enlarge
  5. When ready, press the Program button (or menu item File > Program) to program the PSoC 5LP device. 
  6. After programming has completed, you will see the following message: “Program Finished at <time>”.
    Click to enlarge
  7. You have successfully restored the factory program on the PSoC 5LP. It can now be used as the Programmer/Debugger for the PSoC 4 device on the Pioneer Kit.

Provide feedback on this article

Browse KB By Product

Browse KB by Type