Posting this in case it helps someone else. I got a BNO08x working over SPI on a classic ESP32 with the SparkFun BNO08x library, after beginSPI() hung for a long time.
Setup: DOIT ESP32 DevKit V1 (WROOM), SparkFun BNO08x library 1.0.6, GY-BNO08x-style breakout, PS0 and PS1 tied to 3V3.
SCL→GPIO18, SDA→GPIO19, ADO→GPIO23, CS→GPIO22, RST→GPIO13, INT→GPIO21.
What happened: With INT on GPIO34, beginSPI() never returned. There was no error and no reboot. I saw the same hang with the Adafruit BNO08x library. A raw SPI read with no library returned a valid SHTP header (14 01 00 00) on the same wiring. digitalRead on GPIO34 saw INT go low, so the chip, the wiring and the pin all looked fine. With only INT moved to GPIO21, beginSPI() returned true and I got about 200 events per second.
What I don’t know: the hang happened on arduino-esp32 3.1.1. The working run was on 3.3.12. I changed the core and the INT pin around the same time, so I can’t yet say whether the pin or the core caused it. Someone on this forum reported the same behaviour with INT on GPIO36 on a Thing Plus C, so the input-only pins (GPIO34–39) are my main suspect. I haven’t retested GPIO34 on 3.3.12.
Second issue: an unbounded while (imu.getSensorEvent()) loop starved the rest of loop(), so my serial prints stopped. Capping it at 10 events per pass fixed it.
Full wiring, a no-library SPI probe and the working sketch are here: GitHub - ShammanRahin/Esp32-Bno08x-interfaceSPI · GitHub
Has anyone seen this on other ESP32 boards or core versions?