Eliminating Multiple Button Clicks While Programming - KBA89459

Version: *B

 

Question:

PSoC® Creator™ asks you to click ‘Port Acquire’ every time you make software changes and reprogram. Why does it do this? Is there a way to eliminate multiple clicks while programming?

 

Answer:

You can choose settings for Debug Select in PSoC Creator that will control whether you are prompted with Port Acquire. PSoC Creator will ask you to click ‘Port Acquire’ every time you program in the following situations: 

  1. If you have selected GPIO as the Debug Select option (see System tab in the .cydwr window)
  2. If you have checked the ‘Enable Device Protection’ option

PSoC Creator does this because you cannot access the internal Debug Access Port (DAP), but to program the chip, you need to gain access to that port. DAP allows the programmer to write the data into a buffer, whose contents will be written into the flash eventually. Refer to programming specifications available at http://www.cypress.com/file/44676/download, http://www.cypress.com/file/136281/download, and http://www.cypress.com/file/119651/download for PSoC 3, PSoC 4, and PSoC 5LP, respectively.

Clicking the ‘Port Acquire’ button when selecting the target for programming sends a key to the chip and allows the programmer to communicate with the DAP. In this case, you can only program the chip, not debug it. This ensures that your firmware is not available to others after final production. For programming, use the latest version of PSoC Programmer™, which is available at http://www.cypress.com/node/105911.

However, if the Debug Select is set as SWD/JTAG, then you do not need to send a key to access the internal port. Therefore, you will not need to click ‘Port Acquire’ each time.