I am trying to setup PlatformIO debugging for Tasmota. I have an Olimex ARM-USB-OCD-H connected to a WROOM32 module and previously have debugged ESP32 projects.
With the Tasmota project, I can successfully upload through the Olimex but when I try to start the debugger, PIO recompiles and links the project but fails with this error:
Linking .pio\build\tasmota32_base\firmware.elf
lto-wrapper.exe: warning: using serial compilation of 17 LTRANS jobs
lto-wrapper.exe: note: see the '-flto' option documentation for more information
C:\Users\PATRIC~1\AppData\Local\Temp\cc2RknzJ.ltrans7.ltrans.o: in function `XlgtCall(unsigned lon
g)':
C:/Projects/tasmota_poe/Tasmota-development/Tasmota-development/tasmota/tasmota_xx2c_global/xlgt_i
nterface.ino:110:(.text+0x372b): dangerous relocation: windowed longcall crosses 1GB boundary; ret
urn may fail: *UND*
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\tasmota32_base\firmware.elf] Error 1