Issue in "cy_wcm.h" include in project

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

cross mob
Sachin_Patel
Level 3
Level 3
25 sign-ins 10 questions asked 10 replies posted

Hi ,

I am working on Psoc 6 (EVK CY8CPROTO-062-4343W) and i want to enable  wifi so I include "cy_wcm.h"(In empty project) file and I got this error.

main.c:48:10: fatal error: cy_wcm.h: No such file or directory
48 | #include "cy_wcm.h"

0 Likes
1 Solution
Phanindra_I
Moderator
Moderator
Moderator
250 sign-ins 10 likes given 25 likes received

Hi,

You have to make some changes in the Makefile to enable the code for compilation that is disabled by default. Add the below lines to your project's Makefile.

DEFINES+=MBEDTLS_USER_CONFIG_FILE='"mbedtls_user_config.h"'

DEFINES+=CYBSP_WIFI_CAPABLE

DEFINES+=CY_RTOS_AWARE

COMPONENTS=FREERTOS LWIP MBEDTLS

You can go through the "Quick start" section of the below link for more info 

(https://github.com/Infineon/wifi-mw-core/blob/master/README.md)

You can take a quick look at the Makefile in the below link for reference

(https://github.com/Infineon/mtb-example-anycloud-wifi-scan/blob/master/Makefile)

 

Thanks

View solution in original post

4 Replies
Phanindra_I
Moderator
Moderator
Moderator
250 sign-ins 10 likes given 25 likes received

Hi,

You might not have added the "wifi-connection-manager" (wcm) library to your empty project which can cause an error like this. Make sure you have added the library to your project before including it's header files in your code. You can add any library using the Library Manager in the tools section. Click on the Library Manager and check the library that you want to add and click on "Update" on the bottom of the tab.

Thanks

0 Likes
lock attach
Attachments are accessible only for community members.
Sachin_Patel
Level 3
Level 3
25 sign-ins 10 questions asked 10 replies posted

Hi @Phanindra_I ,

Thanks, I added  "wifi-connection-manager" from library from library manager 1.4 but I get more error.Here I attached log of that error.

Thanks.

0 Likes
Phanindra_I
Moderator
Moderator
Moderator
250 sign-ins 10 likes given 25 likes received

Hi,

You have to make some changes in the Makefile to enable the code for compilation that is disabled by default. Add the below lines to your project's Makefile.

DEFINES+=MBEDTLS_USER_CONFIG_FILE='"mbedtls_user_config.h"'

DEFINES+=CYBSP_WIFI_CAPABLE

DEFINES+=CY_RTOS_AWARE

COMPONENTS=FREERTOS LWIP MBEDTLS

You can go through the "Quick start" section of the below link for more info 

(https://github.com/Infineon/wifi-mw-core/blob/master/README.md)

You can take a quick look at the Makefile in the below link for reference

(https://github.com/Infineon/mtb-example-anycloud-wifi-scan/blob/master/Makefile)

 

Thanks

Sachin_Patel
Level 3
Level 3
25 sign-ins 10 questions asked 10 replies posted

Hi @Phanindra_I ,

Thank you so much.Above solution is working for me.

0 Likes