Hello everybody,
I am currently using IMXRT1050-EVKB eval board with IMXRT1052DVL6B microcontroller with MCUXpresso IDE.
I use it for telemetry sending to Google IoT Core backend.
For getting-to-know with the IDE, the board and the SW, I used the SDK builder and built the SDK with components appropriate for my purposes (version 2.8.6).
When I import the Google IoT Core ETH example (google_iot_hello_enet), it builds normally.
However, when I add SNVS_HP driver (SDK Management -> Manage SDK components) for RTC usage and just try to build the project without adding any additional code, I encounter multiple errors, all in the iotc_bsp_io_net_freertos.h file.
Errors and warnings (simplified and shortened printout):
'AF_INET' undeclared (first use in this function)
'EAGAIN' undeclared (first use in this function)
'EAGAIN' undeclared (first use in this function)
'ECONNRESET' undeclared (first use in this function)
'ECONNRESET' undeclared (first use in this function)
'EINPROGRESS' undeclared (first use in this function); did you mean 'ERR_INPROGRESS'?
'EPIPE' undeclared (first use in this function)
'EPIPE' undeclared (first use in this function)
'errno' undeclared (first use in this function)
'errno' undeclared (first use in this function)
'errno' undeclared (first use in this function)
implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]
implicit declaration of function 'connect' [-Wimplicit-function-declaration]
implicit declaration of function 'freeaddrinfo' [-Wimplicit-function-declaration]
implicit declaration of function 'getaddrinfo' [-Wimplicit-function-declaration]
implicit declaration of function 'getsockopt'; did you mean 'getsubopt'? [-Wimplicit-function-declaration]
implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration]
All the errors and warnings seem to be caused as if the lwip/netdb.h and lwip/sockets.h headers are either missing or these includes are not resolved, but the files are not missing, they are included in the mentioned file and they are accessible from the mentioned file.
I tried:
- Removing the SNVS_HP driver support, refreshing SDK components and cleaning the project
- Index -> Rebuild and Index -> Freshen All Files
- Tools -> Fixup parsers
- Enable indexer in preferences is checked, Use active build configuration is selected
- Restarting IDE
- Deleting the project and re-doing the whole process
None of it has solved the problem.
What could be the possible cause of this problem and how to fix it?
Thank you for any kind of help.