So I am working on code so that ESP8266 is the master and an Atmega1284 is the slave.
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????
Pete.
I2C Master and Arduino
Re: I2C Master and Arduino
Postby pratik » Tue Aug 02, 2016 1:07 am
Could you solve this problem?
It is just bit-banging so you may be able to track the problem down by viewing the assembler source file at epc1 address.
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 3 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.