Eliminating Multiple Button Clicks while Programming – KBA89459 | Cypress Semiconductor
Support & Community
Eliminating Multiple Button Clicks while Programming – KBA89459
PSoC ® CreatorTM asks you to click ‘Port Acquire’ every time you make software changes and reprogram. Why does it do this? Is there a way it eliminate multiple clicks while programming?
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:
- If you have selected GPIO as the Debug Select option (see System tab in the .cydwr window)
- 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/?docID=44489, http://www.cypress.com/?docID=43528, and http://www.cypress.com/?docID=41080 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 PSoC Programmer™ 3.20.0, which is available at http://www.cypress.com/?rID=38050.
But 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.