Other Parts Discussed in Thread: SYSCONFIG
Hi
Could someone please give me a hint on how to handle this unresolved variable error?
I am trying to build a C++ application, based on the "Hello_world.cpp" example from the resource explorer. I now want to add the TCP functionality and program a simple server.
Therefore I am using the LWIP Stack as also used in the "enet_cpsw_tcpserver_am263x-lp_r5fss0-0_freertos_ti-arm-clang" example. I copied the sysconfig 1:1.
My c++ class can not compile because of this unresolved variable: EnetApp_driverOpen(). Anyhow this object was build in sysconfig I have a "ti_enet_open_close.o" file in my /Debug/syscgf/ folder.
My Network class looks as followed and is compiling as long as the line with "EnatApp_driverOpen" is commented out.
#pragma once #include <stdio.h> #include <stdarg.h> #include <string.h> #include "FreeRTOS.h" #include "task.h" /* lwIP core includes */ #include "lwip/opt.h" #include "lwip/sys.h" #include "lwip/tcpip.h" #include "lwip/dhcp.h" #include <networking/enet/utils/include/enet_apputils.h> #include <networking/enet/utils/include/enet_board.h> #include "ti_board_config.h" #include "ti_drivers_open_close.h" #include "ti_enet_config.h" #include "ti_enet_open_close.h" #include "app_cpswconfighandler.h" #include "ti_enet_lwipif.h" class Network { public: Network() = default; virtual ~Network() = default; int init() { Enet_Type enetType; uint32_t instId; EnetApp_getEnetInstInfo(&enetType, &instId); EnetAppUtils_enableClocks(enetType, instId); const int32_t status = EnetApp_driverOpen(enetType, instId); return 1; } };
I am also not sure if I have to recompile the whole Library with the CPLUSPLUS flag?
Thanks for you support!
Chris