- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everyone,
I got a Posc64 ,and getting step by step by Getting start with the Cypress CY8CKIT-064S0S2-4343W
(https://docs.aws.amazon.com/freertos/latest/userguide/getting_started_cypress_psoc64.html).
Now, I am in step"Build and run the FreeRTOS Demo project".
I would like to perform " Build aws_demos Application" (use Modustoolbox IDE) on my project (aws_demos) ,
and occur some errors in the below context used bold text,and you can see the errors are similar .
How should I solve this problem?
---------------------------------------------------------------------------------------------------------------------------------------
11:34:32 **** Incremental Build of configuration Debug for project aws_demos ****
"C:\\Users\\Mike\\ModusToolbox\\tools_2.3\\modus-shell\\bin\\make" CY_MAKE_IDE=eclipse CY_IDE_TOOLS_DIR=C:/Users/Mike/ModusToolbox/tools_2.3 CY_IDE_BT_TOOLS_DIR= -j2 all
Tools Directory: C:/Users/Mike/ModusToolbox/tools_2.3
CY8CKIT_064S0S2_4343W.mk: ../../../../../vendors/cypress/boards/CY8CKIT_064S0S2_4343W/aws_demos/application_code/cy_code/CY8CKIT_064S0S2_4343W.mk
Prebuild operations complete
Commencing build operations...
Tools Directory: C:/Users/Mike/ModusToolbox/tools_2.3
CY8CKIT_064S0S2_4343W.mk: ../../../../../vendors/cypress/boards/CY8CKIT_064S0S2_4343W/aws_demos/application_code/cy_code/CY8CKIT_064S0S2_4343W.mk
Initializing build: aws_demos Debug CY8CKIT_064S0S2_4343W GCC_ARM
Auto-discovery in progress...
-> Found 249 .c file(s)
-> Found 42 .S file(s)
-> Found 18 .s file(s)
-> Found 0 .cpp file(s)
-> Found 0 .o file(s)
-> Found 24 .a file(s)
-> Found 600 .h file(s)
-> Found 0 .hpp file(s)
-> Found 0 resource file(s)
Applying filters...
Auto-discovery complete
Constructing build rules...
Build rules construction complete
==============================================================================
= Building application =
==============================================================================
Generating compilation database file...
-> C:/Users/Mike/amazon-freertos/build/cy/aws_demos/compile_commands.json
Compilation database file generation complete
Building 521 file(s)
C:/Users/Mike/ModusToolbox/tools_2.3/gcc/bin/arm-none-eabi-objcopy -R .cy_sflash_user_data -R .cy_toc_part2 C:/Users/Mike/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/aws_demos.elf C:/Users/Mike/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/cm4.elf; C:/Users/Mike/ModusToolbox/tools_2.3/gcc/bin/arm-none-eabi-objcopy -O ihex C:/Users/Mike/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/cm4.elf C:/Users/Mike/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/cm4.hex; cp "../../../../../vendors/cypress/MTB/psoc6/psoc64tfm/COMPONENT_TFM_S_FW/tfm_s_unsigned.hex" "C:/Users/Mike/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/cm0.hex"; cysecuretools --policy "../../../../../vendors/cypress/MTB/psoc6/psoc64tfm/security/policy/policy_multi_CM0_CM4_jitp.json" --target "cy8ckit-064s0s2-4343w" sign-image --hex "C:/Users/Mike/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/cm0.hex" --image-type UPGRADE --image-id 1; cysecuretools --policy "../../../../../vendors/cypress/MTB/psoc6/psoc64tfm/security/policy/policy_multi_CM0_CM4_jitp.json" --target "cy8ckit-064s0s2-4343w" sign-image --hex "C:/Users/Mike/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/cm4.hex" --image-type UPGRADE --image-id 16; cp "C:/Users/Mike/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/cm0_unsigned.hex" "C:/Users/Mike/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/cm0.hex"; cp "C:/Users/Mike/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/cm4_unsigned.hex" "C:/Users/Mike/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/cm4.hex"; cysecuretools --policy "../../../../../vendors/cypress/MTB/psoc6/psoc64tfm/security/policy/policy_multi_CM0_CM4_jitp.json" --target "cy8ckit-064s0s2-4343w" sign-image --hex "C:/Users/Mike/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/cm0.hex" --image-type BOOT --image-id 1; cysecuretools --policy "../../../../../vendors/cypress/MTB/psoc6/psoc64tfm/security/policy/policy_multi_CM0_CM4_jitp.json" --target "cy8ckit-064s0s2-4343w" sign-image --hex "C:/Users/Mike/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/cm4.hex" --image-type BOOT --image-id 16;
2021-06-18 11:34:36,595 : C : ERROR : Validation against schema failed. Check the log for details
2021-06-18 11:34:36,595 : C : ERROR : 'STATUS_PARTITION' is not one of ['SRAM_DAP', 'FLASH_PC1_SPM', 'FLASH_PC2', 'FLASH_PC3', 'FLASH_PC4', 'FLASH_MAIN_CODE', 'FLASH_MAIN_XO', 'FLASH_MAIN_DATA', 'FLASH_SUPERVISORY', 'FLASH_WORK_SECURE', 'FLASH_WORK', 'SRAM_PC0_PRIV', 'SRAM_PC0_PUB', 'SRAM_SPM_PRIV', 'SRAM_SPM_PUB', 'SRAM_PC1_PRIV', 'SRAM_PC2_PRIV', 'SRAM_PC3_PRIV', 'SRAM_PC4_PRIV', 'SRAM_MAIN', 'SMIF_CODE', 'SMIF_XO', 'SMIF_DATA', 'BOOT', 'UPGRADE']
Failed validating 'enum' in schema['properties']['boot_upgrade']['properties']['firmware']['items']['properties']['resources']['items']['properties']['type']:
{'enum': ['SRAM_DAP',
'FLASH_PC1_SPM',
'FLASH_PC2',
'FLASH_PC3',
'FLASH_PC4',
'FLASH_MAIN_CODE',
'FLASH_MAIN_XO',
'FLASH_MAIN_DATA',
'FLASH_SUPERVISORY',
'FLASH_WORK_SECURE',
'FLASH_WORK',
'SRAM_PC0_PRIV',
'SRAM_PC0_PUB',
'SRAM_SPM_PRIV',
'SRAM_SPM_PUB',
'SRAM_PC1_PRIV',
'SRAM_PC2_PRIV',
Error: Failed processing!
'SRAM_PC3_PRIV',
'SRAM_PC4_PRIV',
'SRAM_MAIN',
'SMIF_CODE',
'SMIF_XO',
'SMIF_DATA',
'BOOT',
'UPGRADE'],
'id': 'type',
'required': True,
'type': 'string'}
On instance['boot_upgrade']['firmware'][0]['resources'][3]['type']:
'STATUS_PARTITION'. Check the log for details
2021-06-18 11:34:36,596 : C : ERROR : Policy validation finished with error. Check the log for details
2021-06-18 11:34:37,091 : C : ERROR : Validation against schema failed. Check the log for details
2021-06-18 11:34:37,091 : C : ERROR : 'STATUS_PARTITION' is not one of ['SRAM_DAP', 'FLASH_PC1_SPM', 'FLASH_PC2', 'FLASH_PC3', 'FLASH_PC4', 'FLASH_MAIN_CODE', 'FLASH_MAIN_XO', 'FLASH_MAIN_DATA', 'FLASH_SUPERVISORY', 'FLASH_WORK_SECURE', 'FLASH_WORK', 'SRAM_PC0_PRIV', 'SRAM_PC0_PUB', 'SRAM_SPM_PRIV', 'SRAM_SPM_PUB', 'SRAM_PC1_PRIV', 'SRAM_PC2_PRIV', 'SRAM_PC3_PRIV', 'SRAM_PC4_PRIV', 'SRAM_MAIN', 'SMIF_CODE', 'SMIF_XO', 'SMIF_DATA', 'BOOT', 'UPGRADE']
Failed validating 'enum' in schema['properties']['boot_upgrade']['properties']['firmware']['items']['properties']['resources']['items']['properties']['type']:
{'enum': ['SRAM_DAP',
'FLASH_PC1_SPM',
'FLASH_PC2',
'FLASH_PC3',
'FLASH_PC4',
'FLASH_MAIN_CODE',
'FLASH_MAIN_XO',
'FLASH_MAIN_DATA',
'FLASH_SUPERVISORY',
'FLASH_WORK_SECURE',
'FLASH_WORK',
'SRAM_PC0_PRIV',
'SRAM_PC0_PUB',
'SRAM_SPM_PRIV',
'SRAM_SPM_PUB',
'SRAM_PC1_PRIV',
'SRAM_PC2_PRIV',
'SRAM_PC3_PRIV',
'SRAM_PC4_PRIV',
'SRAM_MAIN',
'SMIF_CODE',
'SMIF_XO',
'SMIF_DATA',
'BOOT',
'UPGRADE'],
'id': 'type',
'required': True,
'type': 'string'}
On instance['boot_upgrade']['firmware'][0]['resources'][3]['type']:
'STATUS_PARTITION'. Check the log for details
2021-06-18 11:34:37,092 : C : ERROR : Policy validation finished with error. Check the log for details
Error: Failed processing!
cp: cannot stat 'C:/Users/Mike/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/cm0_unsigned.hex': No such file or directory
cp: cannot stat 'C:/Users/Mike/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/cm4_unsigned.hex': No such file or directory
2021-06-18 11:34:37,605 : C : ERROR : Validation against schema failed. Check the log for details
2021-06-18 11:34:37,605 : C : ERROR : 'STATUS_PARTITION' is not one of ['SRAM_DAP', 'FLASH_PC1_SPM', 'FLASH_PC2', 'FLASH_PC3', 'FLASH_PC4', 'FLASH_MAIN_CODE', 'FLASH_MAIN_XO', 'FLASH_MAIN_DATA', 'FLASH_SUPERVISORY', 'FLASH_WORK_SECURE', 'FLASH_WORK', 'SRAM_PC0_PRIV', 'SRAM_PC0_PUB', 'SRAM_SPM_PRIV', 'SRAM_SPM_PUB', 'SRAM_PC1_PRIV', 'SRAM_PC2_PRIV', 'SRAM_PC3_PRIV', 'SRAM_PC4_PRIV', 'SRAM_MAIN', 'SMIF_CODE', 'SMIF_XO', 'SMIF_DATA', 'BOOT', 'UPGRADE']
Failed validating 'enum' in schema['properties']['boot_upgrade']['properties']['firmware']['items']['properties']['resources']['items']['properties']['type']:
{'enum': ['SRAM_DAP',
'FLASH_PC1_SPM',
'FLASH_PC2',
'FLASH_PC3',
'FLASH_PC4',
'FLASH_MAIN_CODE',
'FLASH_MAIN_XO',
'FLASH_MAIN_DATA',
'FLASH_SUPERVISORY',
'FLASH_WORK_SECURE',
'FLASH_WORK',
'SRAM_PC0_PRIV',
'SRAM_PC0_PUB',
'SRAM_SPM_PRIV',
'SRAM_SPM_PUB',
'SRAM_PC1_PRIV',
'SRAM_PC2_PRIV',
'SRAM_PC3_PRIV',
'SRAM_PC4_PRIV',
'SRAM_MAIN',
'SMIF_CODE',
Error: Failed processing!
'SMIF_XO',
'SMIF_DATA',
'BOOT',
'UPGRADE'],
'id': 'type',
'required': True,
'type': 'string'}
On instance['boot_upgrade']['firmware'][0]['resources'][3]['type']:
'STATUS_PARTITION'. Check the log for details
2021-06-18 11:34:37,606 : C : ERROR : Policy validation finished with error. Check the log for details
2021-06-18 11:34:38,097 : C : ERROR : Validation against schema failed. Check the log for details
2021-06-18 11:34:38,097 : C : ERROR : 'STATUS_PARTITION' is not one of ['SRAM_DAP', 'FLASH_PC1_SPM', 'FLASH_PC2', 'FLASH_PC3', 'FLASH_PC4', 'FLASH_MAIN_CODE', 'FLASH_MAIN_XO', 'FLASH_MAIN_DATA', 'FLASH_SUPERVISORY', 'FLASH_WORK_SECURE', 'FLASH_WORK', 'SRAM_PC0_PRIV', 'SRAM_PC0_PUB', 'SRAM_SPM_PRIV', 'SRAM_SPM_PUB', 'SRAM_PC1_PRIV', 'SRAM_PC2_PRIV', 'SRAM_PC3_PRIV', 'SRAM_PC4_PRIV', 'SRAM_MAIN', 'SMIF_CODE', 'SMIF_XO', 'SMIF_DATA', 'BOOT', 'UPGRADE']
Failed validating 'enum' in schema['properties']['boot_upgrade']['properties']['firmware']['items']['properties']['resources']['items']['properties']['type']:
{'enum': ['SRAM_DAP',
'FLASH_PC1_SPM',
'FLASH_PC2',
'FLASH_PC3',
'FLASH_PC4',
'FLASH_MAIN_CODE',
'FLASH_MAIN_XO',
'FLASH_MAIN_DATA',
'FLASH_SUPERVISORY',
'FLASH_WORK_SECURE',
'FLASH_WORK',
'SRAM_PC0_PRIV',
'SRAM_PC0_PUB',
'SRAM_SPM_PRIV',
'SRAM_SPM_PUB',
'SRAM_PC1_PRIV',
'SRAM_PC2_PRIV',
'SRAM_PC3_PRIV',
'SRAM_PC4_PRIV',
'SRAM_MAIN',
'SMIF_CODE',
'SMIF_XO',
'SMIF_DATA',
'BOOT',
'UPGRADE'],
'id': 'type',
'required': True,
'type': 'string'}
On instance['boot_upgrade']['firmware'][0]['resources'][3]['type']:
'STATUS_PARTITION'. Check the log for details
2021-06-18 11:34:38,103 : C : ERROR : Policy validation finished with error. Check the log for details
Error: Failed processing!
make[1]: *** [../../../../../vendors/cypress/MTB/psoc6/psoc6make/make/core/build.mk:556: CY_BUILD_app_postbuild] Error 1
make: *** [../../../../../vendors/cypress/MTB/psoc6/psoc6make/make/core/main.mk:414: secondstage_build] Error 2
"C:/Users/Mike/ModusToolbox/tools_2.3/modus-shell/bin/make CY_MAKE_IDE=eclipse CY_IDE_TOOLS_DIR=C:/Users/Mike/ModusToolbox/tools_2.3 CY_IDE_BT_TOOLS_DIR= -j2 all" terminated with exit code 2. Build might be incomplete.
11:34:38 Build Failed. 6 errors, 0 warnings. (took 5s.266ms)
Solved! Go to Solution.
- Labels:
-
PSoC 6 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @MikeYJ,
I believe the issue is due to the difference in the policy version and the target version used. Can you please share the following files so that we can find the cause of the issue -
1. ../../../../../vendors/cypress/MTB/psoc6/psoc64tfm/security/policy/policy_multi_CM0_CM4_jitp.json
2. ../../../../../vendors/cypress/boards/CY8CKIT_064S0S2_4343W/aws_demos/application_code/cy_code/CY8CKIT_064S0S2_4343W.mk
3. Check if you have a folder called logs. Please share the folder.
4. The version of cysecuretools that is installed.
5. The .cysecuretools file in your application directory.
Rakshith M B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @MikeYJ,
I believe the issue is due to the difference in the policy version and the target version used. Can you please share the following files so that we can find the cause of the issue -
1. ../../../../../vendors/cypress/MTB/psoc6/psoc64tfm/security/policy/policy_multi_CM0_CM4_jitp.json
2. ../../../../../vendors/cypress/boards/CY8CKIT_064S0S2_4343W/aws_demos/application_code/cy_code/CY8CKIT_064S0S2_4343W.mk
3. Check if you have a folder called logs. Please share the folder.
4. The version of cysecuretools that is installed.
5. The .cysecuretools file in your application directory.
Rakshith M B