Compile needs a rebuild to load TTGO LoRa32Esp

steinerrw
Posts: 4
Joined: Wed Dec 27, 2023 1:16 pm

Compile needs a rebuild to load TTGO LoRa32Esp

Postby steinerrw » Wed Dec 27, 2023 1:29 pm

I'm running sketches on a TTGO LoRa32 Esp board...
I have all libraries and boards defined and it works with a catch.
The first compile is OK. Compile again and I get this

Code: Select all

Arduino: 1.8.19 (Linux), Board: "TTGO LoRa32-OLED, TTGO LoRa32 V2, 80MHz, 921600, None, Enabled"

WARNING: Category '' in library ESP Insights is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library ESP RainMaker is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library WiFiProv is not valid. Setting to 'Uncategorized'
panic: runtime error: index out of range [8] with length 8

goroutine 1 [running]:
arduino.cc/builder.(*includeCache).Next(...)
	arduino.cc/builder/container_find_includes.go:209
arduino.cc/builder.findIncludesUntilDone(0x4000100400, 0x400028e4b0, {{0x1452e0, 0x40008b13b0}, {0x400010c10d, 0x7}})
	arduino.cc/builder/container_find_includes.go:321 +0xdec
arduino.cc/builder.(*ContainerFindIncludes).Run(0x4000130180?, 0x4000100400)
	arduino.cc/builder/container_find_includes.go:149 +0x974
arduino.cc/builder.runCommands(0x400008fb78?, {0x40003c7c48?, 0x22, 0x22db8?}, 0x0?)
	arduino.cc/builder/builder.go:191 +0xd4
arduino.cc/builder.(*Builder).Run(0x7fec93f237?, 0x19?)
	arduino.cc/builder/builder.go:124 +0x748
arduino.cc/builder.RunBuilder(...)
	arduino.cc/builder/builder.go:222
main.main()
	arduino.cc/arduino-builder/main.go:338 +0xa58
arduino-builder returned 2
Error compiling for board TTGO LoRa32-OLED.


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Now if I change on of the build options ie. core debug, erase flash, upload speed and compile again it work/uploads...
Can you fix or have a solution.

lbernstone
Posts: 829
Joined: Mon Jul 22, 2019 3:20 pm

Re: Compile needs a rebuild to load TTGO LoRa32Esp

Postby lbernstone » Wed Dec 27, 2023 7:09 pm

Remove and re-install the esp32 board from board manager.

steinerrw
Posts: 4
Joined: Wed Dec 27, 2023 1:16 pm

Re: Compile needs a rebuild to load TTGO LoRa32Esp

Postby steinerrw » Fri Jan 12, 2024 10:50 pm

Thanks for the reply but I forgot to mention that I had done that and it did not fix issues.

lbernstone
Posts: 829
Joined: Mon Jul 22, 2019 3:20 pm

Re: Compile needs a rebuild to load TTGO LoRa32Esp

Postby lbernstone » Sat Jan 13, 2024 5:58 pm

Try reinstalling Arduino IDE, or roll back to 1.8.16 (or roll forward to 2.x). This is pretty certainly an error in the IDE with how they are caching the build files.

Who is online

Users browsing this forum: No registered users and 77 guests