Task watchdog triggered after continues i2c burst reads
Posted: Fri Apr 07, 2017 11:36 am
Hi Team,
i am working on sparkfun MAX10305 with sparkfun esp32. Below is the pseudo code which i am running in a task
Issue is the loop executes good for 10 to 15 mins and then task watchdog gets triggered. As i have already given a delay of 1 second there should not be watchdog triggered.
Do i need to specify more delay in the loop. at present this is the only task running
i am working on sparkfun MAX10305 with sparkfun esp32. Below is the pseudo code which i am running in a task
Code: Select all
void taskname(void *pvParameter){
check the part id and revision id // i2c writes and reads
setup max10305 // 6 i2c writes
// loop
while(1){
vTaskDelay(1000/ portTICK_PERIOD_MS);
1. start I2C burst read and store the value // for red
2. start I2C burst read and store the value // for IR
3. start I2C burst read and store the value // for green
}
}
Do i need to specify more delay in the loop. at present this is the only task running
Code: Select all
- IDLE (CPU 0)
Tasks currently running:
CPU 0: taskname
CPU 1: IDLE