I send data to the Arduino - and I get data back. I'm having reliability issues in that the RETURN data is ok for one byte - but more than one byte I tend to get bad data - AND the ESP has a tendency to reboot.
So questions for those familiar with the I2CMaster code on the ESP.
1. What could cause the ESP to reboot while receiving data - looking at the I2c code I cannot see anywhere that it can get hung up waiting and cause a watchdog timer timeout... has anyone else had this?
2. In the process of trying to narrow this down, I put a logic analyser on the i2c and noted a whole load of CLOCKS at the start. I went back into the I2c_master code for ESP and noted that even in the latest version of the SDK - the function i2c_master_gpio_init() calls at the end, i2c_master_init() which I would have THOUGHT would merely need to ensure that both clock and data lines are high - but in fact sends out a whole load of stuff including no less than 28 clocks - WHAT is all that about????
It is just bit-banging so you may be able to track the problem down by viewing the assembler source file at epc1 address.
Who is online
Users browsing this forum: No registered users and 4 guests
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!