Xiao ESP32-C3 Upload Issue

Unable to Upload this Program to Xiao EPS32-C3

Arduino IDE

c:/users/strik/appdata/local/arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/esp-2021r2-patch5-8.4.0/bin/…/lib/gcc/riscv32-esp-elf/8.4.0/…/…/…/…/riscv32-esp-elf/bin/ld.exe: C:\Users\strik\AppData\Local\Temp\arduino-sketch-562BD85FB2E3393C88A3612C75F2732B\libraries\PS4-esp32-master\ps4_l2cap.c.o: in function ps4_l2cap_disconnect_ind_cback': g:\Documents\Arduino\libraries\PS4-esp32-master\src/ps4_l2cap.c:280: undefined reference to L2CA_DisconnectRsp’
c:/users/strik/appdata/local/arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/esp-2021r2-patch5-8.4.0/bin/…/lib/gcc/riscv32-esp-elf/8.4.0/…/…/…/…/riscv32-esp-elf/bin/ld.exe: C:\Users\strik\AppData\Local\Temp\arduino-sketch-562BD85FB2E3393C88A3612C75F2732B\libraries\PS4-esp32-master\ps4_l2cap.c.o: in function ps4_l2cap_config_ind_cback': g:\Documents\Arduino\libraries\PS4-esp32-master\src/ps4_l2cap.c:244: undefined reference to L2CA_ConfigRsp’
c:/users/strik/appdata/local/arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/esp-2021r2-patch5-8.4.0/bin/…/lib/gcc/riscv32-esp-elf/8.4.0/…/…/…/…/riscv32-esp-elf/bin/ld.exe: C:\Users\strik\AppData\Local\Temp\arduino-sketch-562BD85FB2E3393C88A3612C75F2732B\libraries\PS4-esp32-master\ps4_l2cap.c.o: in function ps4_l2cap_connect_ind_cback': g:\Documents\Arduino\libraries\PS4-esp32-master\src/ps4_l2cap.c:193: undefined reference to L2CA_ErtmConnectRsp’
c:/users/strik/appdata/local/arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/esp-2021r2-patch5-8.4.0/bin/…/lib/gcc/riscv32-esp-elf/8.4.0/…/…/…/…/riscv32-esp-elf/bin/ld.exe: g:\Documents\Arduino\libraries\PS4-esp32-master\src/ps4_l2cap.c:196: undefined reference to L2CA_ErtmConnectRsp' c:/users/strik/appdata/local/arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: g:\Documents\Arduino\libraries\PS4-esp32-master\src/ps4_l2cap.c:199: undefined reference to L2CA_ConfigReq’
c:/users/strik/appdata/local/arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/esp-2021r2-patch5-8.4.0/bin/…/lib/gcc/riscv32-esp-elf/8.4.0/…/…/…/…/riscv32-esp-elf/bin/ld.exe: C:\Users\strik\AppData\Local\Temp\arduino-sketch-562BD85FB2E3393C88A3612C75F2732B\libraries\PS4-esp32-master\ps4_l2cap.c.o: in function ps4_l2cap_init_service': g:\Documents\Arduino\libraries\PS4-esp32-master\src/ps4_l2cap.c:150: undefined reference to L2CA_Register’
c:/users/strik/appdata/local/arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/esp-2021r2-patch5-8.4.0/bin/…/lib/gcc/riscv32-esp-elf/8.4.0/…/…/…/…/riscv32-esp-elf/bin/ld.exe: C:\Users\strik\AppData\Local\Temp\arduino-sketch-562BD85FB2E3393C88A3612C75F2732B\libraries\PS4-esp32-master\ps4_l2cap.c.o: in function ps4_l2cap_send_hid': g:\Documents\Arduino\libraries\PS4-esp32-master\src/ps4_l2cap.c:118: undefined reference to L2CA_DataWrite’
c:/users/strik/appdata/local/arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/esp-2021r2-patch5-8.4.0/bin/…/lib/gcc/riscv32-esp-elf/8.4.0/…/…/…/…/riscv32-esp-elf/bin/ld.exe: C:\Users\strik\AppData\Local\Temp\arduino-sketch-562BD85FB2E3393C88A3612C75F2732B\libraries\PS4-esp32-master\ps4_spp.c.o: in function sppCallback': g:\Documents\Arduino\libraries\PS4-esp32-master\src/ps4_spp.c:87: undefined reference to esp_bt_gap_set_scan_mode’
c:/users/strik/appdata/local/arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/esp-2021r2-patch5-8.4.0/bin/…/lib/gcc/riscv32-esp-elf/8.4.0/…/…/…/…/riscv32-esp-elf/bin/ld.exe: g:\Documents\Arduino\libraries\PS4-esp32-master\src/ps4_spp.c:92: undefined reference to esp_spp_start_srv' c:/users/strik/appdata/local/arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: C:\Users\strik\AppData\Local\Temp\arduino-sketch-562BD85FB2E3393C88A3612C75F2732B\libraries\PS4-esp32-master\ps4_spp.c.o: in function sppInit’:
g:\Documents\Arduino\libraries\PS4-esp32-master\src/ps4_spp.c:56: undefined reference to esp_spp_register_callback' c:/users/strik/appdata/local/arduino15/packages/esp32/tools/riscv32-esp-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: g:\Documents\Arduino\libraries\PS4-esp32-master\src/ps4_spp.c:62: undefined reference to esp_spp_init’
collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

Platform IO

c:/users/strik/.platformio/packages/toolchain-riscv32-esp/bin/…/lib/gcc/riscv32-esp-elf/8.4.0/…/…/…/…/riscv32-esp-elf/bin/ld.exe: .pio\build\seeed_xiao_esp32c3\lib298\libsrc.a(ps4_l2cap.c.o): in function ps4_l2cap_disconnect_ind_cback':** **G:\Documents\PlatformIO\Projects\Type 00/lib/src/ps4_l2cap.c:280: undefined reference to L2CA_DisconnectRsp’
c:/users/strik/.platformio/packages/toolchain-riscv32-esp/bin/…/lib/gcc/riscv32-esp-elf/8.4.0/…/…/…/…/riscv32-esp-elf/bin/ld.exe: .pio\build\seeed_xiao_esp32c3\lib298\libsrc.a(ps4_l2cap.c.o): in function ps4_l2cap_config_ind_cback':** **G:\Documents\PlatformIO\Projects\Type 00/lib/src/ps4_l2cap.c:244: undefined reference to L2CA_ConfigRsp’
c:/users/strik/.platformio/packages/toolchain-riscv32-esp/bin/…/lib/gcc/riscv32-esp-elf/8.4.0/…/…/…/…/riscv32-esp-elf/bin/ld.exe: .pio\build\seeed_xiao_esp32c3\lib298\libsrc.a(ps4_l2cap.c.o): in function `ps4_l2cap_connect_ind_cback’:

G:\Documents\PlatformIO\Projects\Type 00/lib/src/ps4_l2cap.c:193: undefined reference to L2CA_ErtmConnectRsp'** **c:/users/strik/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: G:\Documents\PlatformIO\Projects\Type 00/lib/src/ps4_l2cap.c:196: undefined reference to L2CA_ErtmConnectRsp’
c:/users/strik/.platformio/packages/toolchain-riscv32-esp/bin/…/lib/gcc/riscv32-esp-elf/8.4.0/…/…/…/…/riscv32-esp-elf/bin/ld.exe: G:\Documents\PlatformIO\Projects\Type 00/lib/src/ps4_l2cap.c:199: undefined reference to L2CA_ConfigReq'** **c:/users/strik/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: .pio\build\seeed_xiao_esp32c3\lib298\libsrc.a(ps4_l2cap.c.o): in function ps4_l2cap_init_service’:
G:\Documents\PlatformIO\Projects\Type 00/lib/src/ps4_l2cap.c:150: undefined reference to L2CA_Register'** **c:/users/strik/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: .pio\build\seeed_xiao_esp32c3\lib298\libsrc.a(ps4_l2cap.c.o): in function ps4_l2cap_send_hid’:
G:\Documents\PlatformIO\Projects\Type 00/lib/src/ps4_l2cap.c:118: undefined reference to L2CA_DataWrite'** **c:/users/strik/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: .pio\build\seeed_xiao_esp32c3\lib298\libsrc.a(ps4_spp.c.o): in function sppCallback’:
G:\Documents\PlatformIO\Projects\Type 00/lib/src/ps4_spp.c:87: undefined reference to esp_bt_gap_set_scan_mode'** **c:/users/strik/.platformio/packages/toolchain-riscv32-esp/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: G:\Documents\PlatformIO\Projects\Type 00/lib/src/ps4_spp.c:92: undefined reference to esp_spp_start_srv’
c:/users/strik/.platformio/packages/toolchain-riscv32-esp/bin/…/lib/gcc/riscv32-esp-elf/8.4.0/…/…/…/…/riscv32-esp-elf/bin/ld.exe: .pio\build\seeed_xiao_esp32c3\lib298\libsrc.a(ps4_spp.c.o): in function sppInit':** **G:\Documents\PlatformIO\Projects\Type 00/lib/src/ps4_spp.c:56: undefined reference to esp_spp_register_callback’
c:/users/strik/.platformio/packages/toolchain-riscv32-esp/bin/…/lib/gcc/riscv32-esp-elf/8.4.0/…/…/…/…/riscv32-esp-elf/bin/ld.exe: G:\Documents\PlatformIO\Projects\Type 00/lib/src/ps4_spp.c:62: undefined reference to `esp_spp_init’
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\seeed_xiao_esp32c3\firmware.elf] Error 1