Missing h file cy_network_mw_core.h

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

cross mob
cedric_roomz
Level 4
Level 4
50 replies posted 50 sign-ins 25 replies posted

Hi,

On our cyw43907 project, I'm trying to update the various libraries which just have been updated. 

It fails to locate cy_network_mw_core.h, in which lib is it included?

 

Thanks,

Cédric

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

Glad to know that the issue is resolved at your end. 

Regarding the other issues encounterd, what are these functions? Can you provide the error logs?

43907 is supported in MTB. You can import the code examples via the library manager. Go to New Application-> Select "AIROC Connectivity BSPs"-> select the code examples that you want to import.

The code example will fetch the required libraries needed to get the project running.

Thanks

Aditi

View solution in original post

0 Likes
4 Replies
Giraffe1492
Level 5
Level 5
25 sign-ins 25 likes received 10 solutions authored

It appears that you are encountering an issue with the CYW43907 project after updating the libraries. The header file cy_network_mw_core.h is part of the Network Middleware library.

You may need to verify if the library is correctly included in your project. Please follow these steps to check and include the library:

  1. Open your project in ModusToolbox or your preferred IDE.
  2. Check your project's include paths to ensure that the Network Middleware library is properly referenced. You can usually find this in the project settings or build options, depending on the IDE you are using.

For ModusToolbox:

  • In the Project Explorer, right-click on your project and select "Properties."
  • Go to "C/C++ Build" > "Settings" > "Tool Settings" tab.
  • Under "GNU ARM Cross C Compiler" > "Includes," check if the path to the Network Middleware library is included.
  1. If the path is not present, you may need to add it manually. You can typically find the library within the following directory:

<path_to_SDK>/libraries/middleware/network

Make sure to replace <path_to_SDK> with the actual path to your SDK installation.

  1. After adding the correct path to your project settings, rebuild your project to see if the issue is resolved.

If you still encounter issues with locating cy_network_mw_core.h, consider checking your SDK installation for any issues or inconsistencies with the library files. You may need to reinstall or update the SDK to ensure all required libraries are present.

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

Hi,

Please make sure you've imported the libraries properly. The file is easily locatable in the project explorer if all the dependecies are imported in MTB.

FYI,  the cy_network_mw_core.h file is located in this path - mtb_shared\lwip-network-interface-integration\release-v1.1.1\include\cy_network_mw_core.h

Thanks

Aditi

0 Likes
cedric_roomz
Level 4
Level 4
50 replies posted 50 sign-ins 25 replies posted

Thanks!


Now that I've added the lib lwip-network-interface-integration this error is ok. However now I get a "multiple definition error" for a few functions which are in both: 

- mtb_shared\wifi-mw-core\release-v3.4.0\lwip-whd-port\cy_lwip.c 

and

- mtb_shared\lwip-network-interface-integration\release-v1.1.2\source\cy_network_mw_core.c

 

Is there an example project for cyw43907 with latest libs that I could use as reference?

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

Glad to know that the issue is resolved at your end. 

Regarding the other issues encounterd, what are these functions? Can you provide the error logs?

43907 is supported in MTB. You can import the code examples via the library manager. Go to New Application-> Select "AIROC Connectivity BSPs"-> select the code examples that you want to import.

The code example will fetch the required libraries needed to get the project running.

Thanks

Aditi

0 Likes