aws iot sdk core config files missing

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
senfrost
Level 1
Level 1
First like received 10 sign-ins 5 questions asked

Hi, I am using ModusToolBox library manager to add the aws iot sdk but when I compile I am getting an issue saying

In file included from ../mtb_shared/aws-iot-device-sdk-embedded-C/202011.00/libraries/standard/coreHTTP/source/core_http_client.c:31:
../mtb_shared/aws-iot-device-sdk-embedded-C/202011.00/libraries/standard/coreHTTP/source/include/core_http_client.h:39:14: fatal error: core_http_config.h: No such file or directory
39 | #include "core_http_config.h"
| ^~~~~~~~~~~~~~~~~~~~

and I don't know what to do to fix it.

0 Likes
1 Solution
Aditi_B
Moderator
Moderator
Moderator
500 replies posted 5 questions asked 250 replies posted

Hi,

By adding - $(SEARCH_aws-iot-device-sdk-embedded-C)/libraries/standard/coreMQTT
libs/aws-iot-device-sdk-embedded-C/libraries/standard/coreMQTT, it will not include MQTT related relevant files in the compilation process, still your HTTP issue is not resolved. 

You can remove this addition from the .cyignore file and use the following suggestion for error-free build-

Just add these two macros in the defines section of the makefile of your application-

HTTP_DO_NOT_USE_CUSTOM_CONFIG

MQTT_DO_NOT_USE_CUSTOM_CONFIG

Your defines will look something like this -

DEFINES=$(MBEDTLSFLAGS) CYBSP_WIFI_CAPABLE CY_RETARGET_IO_CONVERT_LF_TO_CRLF CY_RTOS_AWARE HTTP_DO_NOT_USE_CUSTOM_CONFIG MQTT_DO_NOT_USE_CUSTOM_CONFIG

Let me know if you still face issues.

Thanks

Aditi

 

View solution in original post

0 Likes
3 Replies
Aditi_B
Moderator
Moderator
Moderator
500 replies posted 5 questions asked 250 replies posted

Hi,

Do you have any .cyignore file in your project folder? If yes, please attach that.

Thanks

Aditi

0 Likes
lock attach
Attachments are accessible only for community members.
senfrost
Level 1
Level 1
First like received 10 sign-ins 5 questions asked

Hi,

I have fixed that problem now by doing the steps in the https-client README file by adding

$(SEARCH_aws-iot-device-sdk-embedded-C)/libraries/standard/coreMQTT
libs/aws-iot-device-sdk-embedded-C/libraries/standard/coreMQTT

but now i am getting errors in other libraries such as  

../mtb_shared/clib-support/release-v1.1.0/TOOLCHAIN_GCC_ARM/cy_newlib_freertos.c:76:9: error: 'errno' undeclared (first use in this function)
76 | errno = ENOMEM;
| ^~~~~

I have attched both my .cyignore and Makefile 

0 Likes
Aditi_B
Moderator
Moderator
Moderator
500 replies posted 5 questions asked 250 replies posted

Hi,

By adding - $(SEARCH_aws-iot-device-sdk-embedded-C)/libraries/standard/coreMQTT
libs/aws-iot-device-sdk-embedded-C/libraries/standard/coreMQTT, it will not include MQTT related relevant files in the compilation process, still your HTTP issue is not resolved. 

You can remove this addition from the .cyignore file and use the following suggestion for error-free build-

Just add these two macros in the defines section of the makefile of your application-

HTTP_DO_NOT_USE_CUSTOM_CONFIG

MQTT_DO_NOT_USE_CUSTOM_CONFIG

Your defines will look something like this -

DEFINES=$(MBEDTLSFLAGS) CYBSP_WIFI_CAPABLE CY_RETARGET_IO_CONVERT_LF_TO_CRLF CY_RTOS_AWARE HTTP_DO_NOT_USE_CUSTOM_CONFIG MQTT_DO_NOT_USE_CUSTOM_CONFIG

Let me know if you still face issues.

Thanks

Aditi

 

0 Likes