User Tools

Site Tools


projects:a4sim:troubleshooting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
projects:a4sim:troubleshooting [2020/03/13 20:10]
dwheele [Solution]
projects:a4sim:troubleshooting [2020/05/07 05:13] (current)
dwheele [Solution]
Line 32: Line 32:
  
 These resistors are soldered to the Arduino Mega 2560 Channel 46. These resistors are soldered to the Arduino Mega 2560 Channel 46.
 +
 +**Additional Solution**: In Arduino code, the I2C handler is looking for a fixed number of bytes on the inbound message. If it doesn't receive that many bytes, misbehaving code will just print an error message and go on. Was able to get the code to work by calling ''Wire.read()'' to read off the errored number of bytes. 
 +
 +With code like this:
 +
 +<code c>
 +    // Read off all of the bytes
 +    for (i = 0; i < numBytes; i++) {
 +      byteBuffer[0] = Wire.read();
 +    }
 +</code>
  
 ===== Arduino Mega 2560 Stopped working ===== ===== Arduino Mega 2560 Stopped working =====
Line 52: Line 63:
  
 [3/13/2020] [3/13/2020]
 +
 +===== Malloc error for two-OLED Display implementation =====
 +
 +Worked on getting two OLED displays to work at the same time connected to an SoftI2CMaster I2C implementation. This was caused because the byte buffer each took about 1K of memory, but there is only 2K of Dynamic RAM. Solved the problem by reusing the buffer between the two displays.
 +
 +[5/5/2020]
  
projects/a4sim/troubleshooting.1584130244.txt.gz · Last modified: 2020/03/13 20:10 by dwheele