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

PSoC™ 6 Forum Discussions

Sachin_Patel
Level 2
10 sign-ins 5 questions asked 5 replies posted
Level 2

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
PRI
Moderator
Moderator 50 sign-ins 25 replies posted 10 solutions authored
Moderator

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
PRI
Moderator
Moderator 50 sign-ins 25 replies posted 10 solutions authored
Moderator

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
Sachin_Patel
Level 2
10 sign-ins 5 questions asked 5 replies posted
Level 2

Hi @PRI ,

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
PRI
Moderator
Moderator 50 sign-ins 25 replies posted 10 solutions authored
Moderator

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 2
10 sign-ins 5 questions asked 5 replies posted
Level 2

Hi @PRI ,

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

0 Likes