CY8CPROTO-064B0S3 PSoC 64 "Secure Boot" Prototyping Kit Guide, Doc. # 002-29505 Rev. *B
25
Running Code on PSoC 64 “Secure Boot” MCUs
4.3
Provision the Device
1. Navigate to your ModusToolbox application directory folder in a command-line program:
For Windows users, use the command line program “modus-shell” instead of a standard
Windows command line application. Modus shell provides access to all ModusToolbox tools
including “CySecureTools” that is used to provision a device. You can access modus-shell by
typing “modus-shell” in the Windows search box in the Windows menu.
For example, in Windows if you created your ModusToolbox application in
“
C:/ModusWorkspaces/mtw/Secure_Blinky_LED_FreeRTOS
” then navigate to the folder.
2. Setup your project workspace for “CySecureTools”.
What does this step do?
“CySecureTools” provides a default policy which can be used to quickly setup the chip with a
set of development parameters like leaving the CM4 DAP (Debug Access Port) open to
reprogram the chip. Based on the selected target, this step sets up all the necessary files in
your workspace that are used for subsequent steps.
The --target option for “CySecureTools” functions can either be the family name “cyb06xx5” or
the kit name “cy8cproto-064b0s3”.
Run the following command:
cysecuretools --target cyb06xx5 init
After running this step, the project workspace will have an added 'policy' directory with multiple
template policies in it. This step also creates the keys, packets, and prebuilt directories. For more
information on the policies, please refer to the
Figure 4-6. Project Workspace having a new 'policy' directory
The four template policy files shown for this example are:
policy_multi_CM0_CM4_smif.json - Multiple application images, serial memory interface enabled
policy_multi_CM0_CM4.json - Multiple application images, serial memory interface disabled
policy_single_CM0_CM4_smif.json - Single application image, serial memory interface enabled
policy_single_CM0_CM4.json - Single application image, serial memory interface disabled