- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to build a AWS FreeRTOS demo for the CY8CKIT-064SOS2-4343W board.
The build fails:
Compiling ../../../../../vendors/cypress/boards/CY8CKIT_064S0S2_4343W/ports/wifi/iot_wifi_lwip.c -DCYBSP_WIFI_CAPABLE -DCY_RTOS_AWARE -DCY_RETARGET_IO_CONVERT_LF_TO_CRLF -DCY_USE_LWIP -DCY_TFM_PSA_SUPPORTED -DCONFIG_MEDTLS_USE_AFR_MEMORY -DMBEDTLS_CONFIG_FILE=\"aws_mbedtls_config.h\" -DTFM_MULTI_CORE_MULTI_CLIENT_CALL -DCY_BLE_SUPPORTED -DCY_USING_HAL -DCY_APPNAME_aws_demos -DCYB0644ABZI_S2D44 -DCY_TARGET_DEVICE=CYB0644ABZI_S2D44 -DTARGET_CY8CKIT_064S0S2_4343W -DCY_TARGET_BOARD=CY8CKIT_064S0S2_4343W -DCOMPONENT_4343W -DCOMPONENT_CM4 -DCOMPONENT_CY8CKIT_064S0S2_4343W -DCOMPONENT_FREERTOS -DCOMPONENT_PSOC6HAL -DCOMPONENT_SOFTFP -DCOMPONENT_TFM_NS_FREERTOS_WRAPPER -DCOMPONENT_TFM_NS_INTERFACE -DDEBUG -I. -I../../../../../demos/dev_mode_key_provisioning -I../../../../../demos/dev_mode_key_provisioning/include -I../../../../../demos/https -I../../../../../demos/include -I../../../../../demos/network_manager -I../../../../../demos/tcp -I../../../../../freertos_kernel -I../../../../../freertos_kernel/include -I../../../../../freertos_kernel/portable/GCC/ARM_CM4F -I../../../../../libraries/3rdparty/http_parser -I../../../../../libraries/3rdparty/jsmn -I../../../../../libraries/3rdparty/lwip/src/include -I../../../../../libraries/3rdparty/lwip_osal/include -I../../../../../libraries/3rdparty/mbedtls/include -I../../../../../libraries/3rdparty/mbedtls/include/mbedtls -I../../../../../libraries/3rdparty/mbedtls_config -I../../../../../libraries/3rdparty/mbedtls_utils -I../../../../../libraries/3rdparty/pkcs11 -I../../../../../libraries/3rdparty/tinycbor/src -I../../../../../libraries/3rdparty/unity/extras/fixture/src -I../../../../../libraries/3rdparty/unity/src -I../../../../../libraries/abstractions/ble_hal -I../../../../../libraries/abstractions/ble_hal/include -I../../../../../libraries/abstractions/pkcs11 -I../../../../../libraries/abstractions/pkcs11/include -I../../../../../libraries/abstractions/pkcs11/mbedtls -I../../../../../libraries/abstractions/platform/freertos -I../../../../../libraries/abstractions/platform/freertos/include -I../../../../../libraries/abstractions/platform/freertos/include/platform -I../../../../../libraries/abstractions/platform/include -I../../../../../libraries/abstractions/platform/include/platform -I../../../../../libraries/abstractions/platform/include/types -I../../../../../libraries/abstractions/secure_sockets -I../../../../../libraries/abstractions/secure_sockets/include -I../../../../../libraries/abstractions/wifi -I../../../../../libraries/abstractions/wifi/include -I../../../../../libraries/c_sdk/aws/defender/include -I../../../../../libraries/c_sdk/aws/shadow/include -I../../../../../libraries/c_sdk/aws/shadow/include/types -I../../../../../libraries/c_sdk/standard/ble -I../../../../../libraries/c_sdk/standard/ble/include -I../../../../../libraries/c_sdk/standard/ble/src -I../../../../../libraries/c_sdk/standard/common -I../../../../../libraries/c_sdk/standard/common/include -I../../../../../libraries/c_sdk/standard/common/include/private -I../../../../../libraries/c_sdk/standard/common/include/types -I../../../../../libraries/c_sdk/standard/https -I../../../../../libraries/c_sdk/standard/https/include -I../../../../../libraries/c_sdk/standard/https/include/types -I../../../../../libraries/c_sdk/standard/https/src -I../../../../../libraries/c_sdk/standard/https/src/private -I../../../../../libraries/c_sdk/standard/mqtt -I../../../../../libraries/c_sdk/standard/mqtt/include -I../../../../../libraries/c_sdk/standard/mqtt/include/types -I../../../../../libraries/c_sdk/standard/mqtt/src -I../../../../../libraries/c_sdk/standard/mqtt/src/private -I../../../../../libraries/c_sdk/standard/serializer -I../../../../../libraries/c_sdk/standard/serializer/include -I../../../../../libraries/freertos_plus/aws/greengrass/include -I../../../../../libraries/freertos_plus/aws/greengrass/src -I../../../../../libraries/freertos_plus/standard/crypto -I../../../../../libraries/freertos_plus/standard/crypto/include -I../../../../../libraries/freertos_plus/standard/freertos_plus_posix -I../../../../../libraries/freertos_plus/standard/freertos_plus_posix/include -I../../../../../libraries/freertos_plus/standard/pkcs11 -I../../../../../libraries/freertos_plus/standard/pkcs11/include -I../../../../../libraries/freertos_plus/standard/tls -I../../../../../libraries/freertos_plus/standard/tls/include -I../../../../../libraries/freertos_plus/standard/utils -I../../../../../libraries/freertos_plus/standard/utils/include -I../../../../../vendors/cypress/MTB -I../../../../../vendors/cypress/MTB/clib_support -I../../../../../vendors/cypress/MTB/clib_support/TOOLCHAIN_GCC_ARM -I../../../../../vendors/cypress/MTB/common -I../../../../../vendors/cypress/MTB/ota/mcuboot/sysflash -I../../../../../vendors/cypress/MTB/psoc6 -I../../../../../vendors/cypress/MTB/psoc6/common -I../../../../../vendors/cypress/MTB/psoc6/mw -I../../../../../vendors/cypress/MTB/psoc6/mw/capsense -I../../../../../vendors/cypress/MTB/psoc6/mw/emeeprom -I../../../../../vendors/cypress/MTB/psoc6/mw/objstore -I../../../../../vendors/cypress/MTB/psoc6/psoc64tfm -I../../../../../vendors/cypress/MTB/psoc6/psoc64tfm/COMPONENT_TFM_NS_INTERFACE -I../../../../../vendors/cypress/MTB/psoc6/psoc64tfm/COMPONENT_TFM_NS_INTERFACE/include -I../../../../../vendors/cypress/MTB/psoc6/psoc64tfm/COMPONENT_TFM_NS_INTERFACE/include/os_wrapper -I../../../../../vendors/cypress/MTB/psoc6/psoc64tfm/COMPONENT_TFM_NS_INTERFACE/include/psa -I../../../../../vendors/cypress/MTB/psoc6/psoc64tfm/COMPONENT_TFM_NS_INTERFACE/include/psa_manifest -I../../../../../vendors/cypress/MTB/psoc6/psoc6csp -I../../../../../vendors/cypress/MTB/psoc6/psoc6csp/abstraction -I../../../../../vendors/cypress/MTB/psoc6/psoc6csp/abstraction/resource -I../../../../../vendors/cypress/MTB/psoc6/psoc6csp/abstraction/resource/include -I../../../../../vendors/cypress/MTB/psoc6/psoc6csp/abstraction/rtos -I../../../../../vendors/cypress/MTB/psoc6/psoc6csp/abstraction/rtos/include -I../../../../../vendors/cypress/MTB/psoc6/psoc6csp/abstraction/rtos/include/COMPONENT_FREERTOS -I../../../../../vendors/cypress/MTB/psoc6/psoc6csp/core_lib -I../../../../../vendors/cypress/MTB/psoc6/psoc6csp/core_lib/include -I../../../../../vendors/cypress/MTB/psoc6/psoc6csp/hal -I../../../../../vendors/cypress/MTB/psoc6/psoc6csp/hal/COMPONENT_PSOC6HAL -I../../../../../vendors/cypress/MTB/psoc6/psoc6csp/hal/COMPONENT_PSOC6HAL/include -I../../../../../vendors/cypress/MTB/psoc6/psoc6csp/hal/COMPONENT_PSOC6HAL/include/pin_packages -I../../../../../vendors/cypress/MTB/psoc6/psoc6csp/hal/COMPONENT_PSOC6HAL/include/triggers -I../../../../../vendors/cypress/MTB/psoc6/psoc6csp/hal/include -I../../../../../vendors/cypress/MTB/psoc6/psoc6pdl -I../../../../../vendors/cypress/MTB/psoc6/psoc6pdl/cmsis -I../../../../../vendors/cypress/MTB/psoc6/psoc6pdl/cmsis/include -I../../../../../vendors/cypress/MTB/psoc6/psoc6pdl/devices -I../../../../../vendors/cypress/MTB/psoc6/psoc6pdl/devices/include -I../../../../../vendors/cypress/MTB/psoc6/psoc6pdl/devices/include/ip -I../../../../../vendors/cypress/MTB/psoc6/psoc6pdl/drivers -I../../../../../vendors/cypress/MTB/psoc6/psoc6pdl/drivers/include -I../../../../../vendors/cypress/MTB/whd -I../../../../../vendors/cypress/MTB/whd/inc -I../../../../../vendors/cypress/MTB/whd/resources -I../../../../../vendors/cypress/MTB/whd/resources/firmware -I../../../../../vendors/cypress/MTB/whd/resources/firmware/COMPONENT_4343W -I../../../../../vendors/cypress/MTB/whd/resources/nvram -I../../../../../vendors/cypress/MTB/whd/resources/nvram/TARGET_CY8CKIT_064S0S2_4343W -I../../../../../vendors/cypress/MTB/whd/resources/resource_imp -I../../../../../vendors/cypress/MTB/whd/src -I../../../../../vendors/cypress/MTB/whd/src/bus_protocols -I../../../../../vendors/cypress/MTB/whd/src/include -I../../../../../vendors/cypress/boards/CY8CKIT_064S0S2_4343W/aws_demos/application_code -I../../../../../vendors/cypress/boards/CY8CKIT_064S0S2_4343W/aws_demos/application_code/cy_code -I../../../../../vendors/cypress/boards/CY8CKIT_064S0S2_4343W/aws_demos/application_code/cy_code/GeneratedSource -I../../../../../vendors/cypress/boards/CY8CKIT_064S0S2_4343W/aws_demos/application_code/cy_code/startup -I../../../../../vendors/cypress/boards/CY8CKIT_064S0S2_4343W/aws_demos/config_files -I../../../../../vendors/cypress/boards/CY8CKIT_064S0S2_4343W/ports/ble -I../../../../../vendors/cypress/boards/CY8CKIT_064S0S2_4343W/ports/pkcs11/psa/ -I../../../../../vendors/cypress/boards/CY8CKIT_064S0S2_4343W/ports/wifi -I../../../../../vendors/cypress/lwip -I./ -I./include
Linking output file aws_demos.elf
/Applications/ModusToolbox/tools_2.2/gcc/bin/arm-none-eabi-objcopy -R .cy_sflash_user_data -R .cy_toc_part2 /Users/jjs/Documents/Villanova/CSC9010-Spr2021/ArrowWorkshop/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/aws_demos.elf /Users/jjs/Documents/Villanova/CSC9010-Spr2021/ArrowWorkshop/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/cm4.elf; /Applications/ModusToolbox/tools_2.2/gcc/bin/arm-none-eabi-objcopy -O ihex /Users/jjs/Documents/Villanova/CSC9010-Spr2021/ArrowWorkshop/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/cm4.elf /Users/jjs/Documents/Villanova/CSC9010-Spr2021/ArrowWorkshop/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" "/Users/jjs/Documents/Villanova/CSC9010-Spr2021/ArrowWorkshop/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 "/Users/jjs/Documents/Villanova/CSC9010-Spr2021/ArrowWorkshop/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 "/Users/jjs/Documents/Villanova/CSC9010-Spr2021/ArrowWorkshop/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/cm4.hex" --image-type UPGRADE --image-id 16; cp "/Users/jjs/Documents/Villanova/CSC9010-Spr2021/ArrowWorkshop/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/cm0_unsigned.hex" "/Users/jjs/Documents/Villanova/CSC9010-Spr2021/ArrowWorkshop/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/cm0.hex"; cp "/Users/jjs/Documents/Villanova/CSC9010-Spr2021/ArrowWorkshop/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/cm4_unsigned.hex" "/Users/jjs/Documents/Villanova/CSC9010-Spr2021/ArrowWorkshop/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 "/Users/jjs/Documents/Villanova/CSC9010-Spr2021/ArrowWorkshop/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 "/Users/jjs/Documents/Villanova/CSC9010-Spr2021/ArrowWorkshop/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/cm4.hex" --image-type BOOT --image-id 16;
/bin/bash: cysecuretools: command not found
/bin/bash: cysecuretools: command not found
cp: /Users/jjs/Documents/Villanova/CSC9010-Spr2021/ArrowWorkshop/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/cm0_unsigned.hex: No such file or directory
cp: /Users/jjs/Documents/Villanova/CSC9010-Spr2021/ArrowWorkshop/amazon-freertos/build/cy/aws_demos/CY8CKIT_064S0S2_4343W/Debug/cm4_unsigned.hex: No such file or directory
/bin/bash: cysecuretools: command not found
/bin/bash: cysecuretools: command not found
make: *** [CY_BUILD_bsp_postbuild] Error 127
"/Applications/ModusToolbox/tools_2.2/modus-shell/bin/make CY_MAKE_IDE=eclipse CY_IDE_TOOLS_DIR=/Applications/ModusToolbox/tools_2.2 CY_IDE_BT_TOOLS_DIR= -j15 all" terminated with exit code 2. Build might be incomplete.
If I type cysecuretools in a Mac terminal, the name resolves to an executable. I can get the help info to appear.
Why is the program not found for my Mac.
Running the latest version Mac OS Catalina.
Hints appreciated.
Solved! Go to Solution.
- Labels:
-
ModusToolbox General
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @jjs3579 ,
The issue is probably because the cysecuretools package is installed somewhere else where the make system is not looking for.
Please type the following in the terminal:
>> which cysecuretools
/Library/Frameworks/Python.framework/Versions/3.7/bin/cysecuretools
Then follow these steps to add this path into ModusToolbox:
1. Right-click on the project
2. Select Properties
3. Select C/C++ Build
4. Select Environment
5. Edit PATH variable
6. Insert the output of the above command without cysecuretools in the path for eg: /Library/Frameworks/Python.framework/Versions/3.7/bin/: at the beginning. (don't forget the colon after the path as separator)
7. Save.
Please let me know if it works after these changes 🙂
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @jjs3579 ,
Please check that the defaults on your mac point to Python3 version. The following commands should help you setup this properly.
You can find this information in the Provisioning Guide. Once installed type the following command to verify the package is installed in the right place:
>> pip show cysecuretools
Let me know if it works with these changes.
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This did not help. Same error still. The output of the pip show cysecuretools is:
Name: cysecuretools
Version: 2.1.0
Summary: Cypress secure tools for Python
Home-page: https://github.com/cypresssemiconductorco/cysecuretools
Author: Cypress Semiconductor
Author-email: None
License: Apache 2.0
Location: /usr/local/lib/python3.7/site-packages
Requires: cbor, cryptography, click, python-jose, intelhex, pyocd, imgtool, jsonschema
Required-by:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, my problem has NOT yet been solved!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @jjs3579 ,
The issue is probably because the cysecuretools package is installed somewhere else where the make system is not looking for.
Please type the following in the terminal:
>> which cysecuretools
/Library/Frameworks/Python.framework/Versions/3.7/bin/cysecuretools
Then follow these steps to add this path into ModusToolbox:
1. Right-click on the project
2. Select Properties
3. Select C/C++ Build
4. Select Environment
5. Edit PATH variable
6. Insert the output of the above command without cysecuretools in the path for eg: /Library/Frameworks/Python.framework/Versions/3.7/bin/: at the beginning. (don't forget the colon after the path as separator)
7. Save.
Please let me know if it works after these changes 🙂
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @jjs3579 ,
I have made some changes to my previous post to add some additional information. Please follow the steps carefully and let me know if it works for you.
Regards,
Dheeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Sorry for taking so long to reply.
This suggestion does work to get me past the cysecuretools not found error. But I am getting this warning:
CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
Which is being treated as a non-fatal error. I can still deploy the demo that I build to the Cypress board and it runs as expected.
When I do another part of the instructions I am following, I see this, which is probably related:
jjsretina:security jjs$ cysecuretools --policy ./policy/policy_multi_CM0_CM4_tfm.json --target CY8CKIT-064S0S2-4343W re-provision-device
/usr/local/lib/python3.7/site-packages/jose/backends/cryptography_backend.py:18: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes, int_to_bytes
This is in a terminal on my Mac, not through the IDE. I have a newer version of the python cryptography package apparently. Can this be cleaned up?
Thanks for the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I did a little digging and if I revert to cryptography version 3.3.2 then the these warnings disappear and now the build completes with no errors. I was at 3.4.4 I believe when the non-fatal errors/warnings were reported.