Closed sonijprashant91 closed 3 years ago
You are using the library completely wrong way.
You don't need to recreate device descriptor in task_read_TCA_Channels()
every cycle. Create it once and then call tca9546_set_channels()
repeatedly in cycle. See examples how to do this.
Also your custom driver for MS5837 may be incompatible with i2cdev
and conflicts with tca9546
and ina219
if they are connected to the same I2C bus.
Device type
Framework version
Describe the bug Is it possible to use the libraries in two different tasks (1 Task und 1 Interrupt routine)? I'm using a TC95xx to mux 4 different I2C devices in a periodic task(freertos - task_read_TCA_Channels()). Additional if some gpio sets an interrupt I want to go to an Interrupt routine(taskAlertSignal):
Sometimes I got some errors which lead to kernel panic and restart: C:/esp-idf/components/freertos/queue.c:728 (xQueueGenericSend)- assert failed!
abort() was called at PC 0x400894ef on core 1 0x400894ef: xQueueGenericSend at C:/esp-idf/components/freertos/queue.c:728 (discriminator 5)