- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Added the necessary libraries based on the example
- Copied the source code from the example, updated the makefile etc..
../mtb_shared/aws-iot-device-sdk-embedded-C/202103.00/libraries/standard/coreHTTP/source/include/core_http_client.h:39:14: fatal error: core_http_config.h: No such file or directory
CY_IGNORE+= $(SEARCH_aws-iot-device-sdk-embedded-C)/libraries/standard/coreHTTP
CY_IGNORE+= libs/aws-iot-device-sdk-embedded-C/libraries/standard/coreHTTP
../mtb_shared/aws-iot-device-sdk-embedded-C/202103.00/libraries/standard/corePKCS11/source/include/core_pkcs11.h:208:5: error: unknown type name 'CK_ATTRIBUTE'
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Please refer suggestions provided in this link - https://community.infineon.com/t5/PSoC-6/Is-there-a-method-to-disable-both-CRYPTO-and-TRNG-from-a-PS...
Thanks
Aditi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
After adding the desired macros, the HTTP issue is resolved. This seems to be coming from another file - core_pkcs11.h. Have you added any custom configurations to this file?
Thanks
Aditi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your response. Please note that CY8C6247FDI-D32 doesn't have the CRYPTO feature.
No, I haven't done any custom configuration to this (core_pkcs11.h) file, but I've some changes to the project makefile and mbedtls user config file based on the solution that was suggested for this other case, so I can get the tcp client working.
Regards,
Srini
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I updated the 'mqtt' libraries to the following
aws-iot-device-sdk-embedded-C 202103.00
aws-iot-device-sdk-port v2.2.2
mqtt v3.4.2
and am able to compile but am getting linker errors:
../mtb_shared/aws-iot-device-sdk-port/release-v2.2.2/source/cy_aws_retry_utils.c:66: undefined reference to `cyhal_trng_generate'
../mtb_shared/aws-iot-device-sdk-port/release-v2.2.2/source/cy_aws_retry_utils.c:122: undefined reference to `cyhal_trng_init'
These are similar errors we saw before we applied the workaround:
Is there another workaround for MQTT library to not use hardware random number generator??
Thanks for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Okay. Thanks for the update. Can you provide the makefile of your project? Also, the host that you've doesn't have the CRYPTO feature, so I don't think you'll be able to use the HW Crypto.
Thanks
Aditi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Correct, We can't use the Crypto on our hardware.
I've attached the Makefile. Few things to note:
The following 2 things were suggested by Infineon Support team to work around the CRYPTO/TRNG problem for our board(that doesn't support CRYPTO) because we saw the same problem when developing a TCP Client that connects to an Access Point (see the below community post). See the solution in the below post:
- Added this to the Makefile DEFINES
- DISABLE_MBEDTLS_ACCELERATION
- Commented out this line in mbedtls_user_config.h
- //#define MBEDTLS_ENTROPY_HARDWARE_ATL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm not clear on why COMPONENT_43907 is required as a define in the makefile. Can you provide the reason for the same? I'll check the thread that you've pointed to in your previous query.
Thanks
Aditi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
COMPONENT_43907 is required to get around the TRNG(True Random Number Generator) linker errors from MBEDTLS library when using hardware that doesn't support CRYPTO(e.g. like the one we are using CY8CKIT6247-FDI). Please see this community post:
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Please refer suggestions provided in this link - https://community.infineon.com/t5/PSoC-6/Is-there-a-method-to-disable-both-CRYPTO-and-TRNG-from-a-PS...
Thanks
Aditi