- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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"
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Phanindra_I ,
Thank you so much.Above solution is working for me.