Esp32c3 Time out when connecting via i2C

Hi all.
I have xiao esp32c3 and want to connect to bno085(edit: from adafruit, shouldn't require pullups) via I2C. Both parts are working as I can do bluetooth connection with xiao and when I connect the bno sensor to arduino board, it works. When I connect them together, I am not able to establish a connection. In rare occasions it connects and then I can do the readings without any problem, even under a lot of movement. So there isnt a problem with the wiring.

I am trying to run this simple code:

#include <Adafruit_BNO08x.h>

Adafruit_BNO08x  bno08x(-1);
sh2_SensorValue_t sensorValue;

void setup(void) {
    Serial.begin(115200);
    while (!Serial) delay(10); 

    Serial.println("Adafruit BNO08x test! ");
    delay(1000);
      while (!bno08x.begin_I2C()) {
            Serial.println("Failed to find BNO08x chip ");
            delay(500);
      }
      Serial.println("BNO08x Found!");

I get this error message:
I2C hardware timeout detected
probe device timeout. Please check if xfer_timeout_ms and pull-ups are correctly set up

I tried

Wire.setClock(40000); 

and a lot of other stuff recomended by chatgpt and what I thought would work. For example changing and specifying adresses but, I can run the same code without problem when using arduino mega.
Any ideas how to increase the timeout?

A wiring diagram is needed. A simple photo of a hand drawn will work fine. Does the XIAO need pullups? I ask because I see it mentioned in the error message. I have never heard of xfer_timeout_ms

Give this a try: Wire.setWireTimeout(3000 /* us /, true / reset_on_timeout */); // Wire.setClock ( 400000L ) ; This is from code I currently am working on. Also check this link: https://docs.arduino.cc/language-reference/en/functions/communication/wire/setWireTimeout/
If that does not get it for you follow @sonofcy suggestion and post an annotated schematic showing exactly how you have wire it. Be sure to note all power sources etc.

I saw this solution, but my board doesnt support this function. If I set Xiao esp32c3 board, the code with this function doesnt compile. With different board it does.
I am using xiaoesp32c3 from esp32 library (v 3.2.0.) from Espressif Systems

It is the most simple wiring. Basically this

I also tried adding pullup resistors to only SDA and then too both SDA and SLA.

The sensor has to be powered at logic level voltage, 3.3V in your case.

I tried that. Doesn't help. It works if I power it with 5V from arduino mega.

I fixed my problem by switching to UART, but i am still curious about how to solve it in general.

The sensor needs to be powered at logic level voltage, 3.3V with Esp and 5V with mega.
Independently from your issue.
Also, you have seen this, right?

Lol that would have saved me a lot of time. I have not seen that, where is it from?

From Adafruit you mentioned on OP.

Hii could you help me implement it. I've to exact same components and same error