I updated my example https://github.com/maxgerhardt/pio-heltec-lorawan-test and that factory test sketch compiles fine. Ofc I have no board to test. Since you’re working with the Heltec board, everything from HELTEC WIFI LORA 32 V3 Compilation Error ESP32 S core issues - #2 by maxgerhardt applies, too.