Page 4 of 4

Re: ESP32 read i2c or i3c in IRQ macro

Posted: Sat May 10, 2025 7:14 pm
by mnfisher
Sorry , I just noticed that you got the wdt issue when writing to i2c in a loop (I hadn't read it as 'just' writing to i2c in a loop at the beginning)

That make it even stranger :-(

Martin

Re: ESP32 read i2c or i3c in IRQ macro

Posted: Tue May 13, 2025 9:22 am
by stefan.erni
Hi Martin
That make it even stranger :-(
Yes, that too: In an almost identical program this works perfectly. I can also write to both IMUs.

Re: ESP32 read i2c or i3c in IRQ macro

Posted: Tue May 13, 2025 9:27 am
by mnfisher
I didn't get an issue with the above example - just multiple writes to i2c as expected.

So what changed?

I notice a comment about the RGB LEDs initialisation not working in a macro too - more weirdness...

Re: ESP32 read i2c or i3c in IRQ macro

Posted: Fri May 16, 2025 4:17 pm
by stefan.erni
Hi Martin

My program works again!
I can set the LSM6 with I2C master and I can read LSM6 with I2C master
I had to set all I2C components to ch2!
With almost the same program on I2C ch1 it works fine...

Thank you very much for your support Martin.

for the RGB Led I wrote a new post:
https://flowcode.co.uk/forums/viewtopic.php?t=3153