Hello all,
I am currently facing challenges while attempting to build the PPPoS client library with the latest Espressif32 version 6.4.0. Below, I have outlined the platform and environment setup
Platform and Environment Configuration:
[env:esp32dev]
platform = espressif32
board = esp32dev
board_build.partitions = min_spiffs.csv
framework = arduino
monitor_speed = 115200
lib_deps =
lib/PPPOSClient
build_flags =
-DCONFIG_LWIP_PPP_SUPPORT=1
-DCONFIG_LWIP_PPP_CHAP_SUPPORT=1
Error log :
c:/users/noush/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/esp32dev/libfe7/libPPPOSClient.a(PPPOS.c.o):(.literal.pppos_client_task+0xc): undefined reference to `pppos_input_tcpip'
c:/users/noush/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/esp32dev/libfe7/libPPPOSClient.a(PPPOS.c.o):(.literal.PPPOS_start+0x10): undefined reference to `pppapi_set_default'
c:/users/noush/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/esp32dev/libfe7/libPPPOSClient.a(PPPOS.c.o):(.literal.PPPOS_start+0x14): undefined reference to `pppapi_set_auth'
c:/users/noush/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/esp32dev/libfe7/libPPPOSClient.a(PPPOS.c.o):(.literal.PPPOS_start+0x18): undefined reference to `pppapi_connect'
c:/users/noush/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/esp32dev/libfe7/libPPPOSClient.a(PPPOS.c.o):(.literal.PPPOS_start+0x1c): undefined reference to `pppapi_pppos_create'
c:/users/noush/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/esp32dev/libfe7/libPPPOSClient.a(PPPOS.c.o):(.literal.PPPOS_stop+0x0): undefined reference to `pppapi_close'
c:/users/noush/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/esp32dev/libfe7/libPPPOSClient.a(PPPOS.c.o):(.literal.PPPOS_stop+0x8): undefined reference to `pppapi_free'
c:/users/noush/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/esp32dev/libfe7/libPPPOSClient.a(PPPOS.c.o): in function `pppos_client_task':
C:\Users\noush\OneDrive\Documents\PlatformIO\Projects\bolt_esp32_ocpp_V4/lib/PPPOSClient/src/PPPOS.c:171: undefined reference to `pppos_input_tcpip'
c:/users/noush/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/esp32dev/libfe7/libPPPOSClient.a(PPPOS.c.o): in function `PPPOS_start':
C:\Users\noush\OneDrive\Documents\PlatformIO\Projects\bolt_esp32_ocpp_V4/lib/PPPOSClient/src/PPPOS.c:215: undefined reference to `pppapi_set_default'
c:/users/noush/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\noush\OneDrive\Documents\PlatformIO\Projects\bolt_esp32_ocpp_V4/lib/PPPOSClient/src/PPPOS.c:216: undefined reference to `pppapi_set_auth'
c:/users/noush/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\noush\OneDrive\Documents\PlatformIO\Projects\bolt_esp32_ocpp_V4/lib/PPPOSClient/src/PPPOS.c:218: undefined reference to `pppapi_connect'
c:/users/noush/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\noush\OneDrive\Documents\PlatformIO\Projects\bolt_esp32_ocpp_V4/lib/PPPOSClient/src/PPPOS.c:209: undefined reference to `pppapi_pppos_create'
c:/users/noush/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: .pio/build/esp32dev/libfe7/libPPPOSClient.a(PPPOS.c.o): in function `PPPOS_stop':
C:\Users\noush\OneDrive\Documents\PlatformIO\Projects\bolt_esp32_ocpp_V4/lib/PPPOSClient/src/PPPOS.c:229: undefined reference to `pppapi_close'
c:/users/noush/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld.exe: C:\Users\noush\OneDrive\Documents\PlatformIO\Projects\bolt_esp32_ocpp_V4/lib/PPPOSClient/src/PPPOS.c:232: undefined reference to `pppapi_free'
**collect2.exe: error: ld returned 1 exit status**
***** [.pio\build\esp32dev\firmware.elf] Error 1**
I had no issues integrating the library with Espressif32 version 4.0.0.
Any help or advice would be greatly appreciated.