Comm_SMBus.h:no such file or directory
It looks like you did not point to the MZeroSketchbook folder within Arduino IDE. Refer to the setup instructions in:
LTC4162_SDK -> LTC4162-LAD -> c_code -> README.txt
The section called "LTC4162-LAD_example_mzero.ino" explains how to set up the project.
I have the same problem and have set up the Arduino environment the same as the description in the readme (I think). I am just downloading the 1.85 version of Arduino instead of the latest version to see if that helps. I am worried now as I can't seem to use the program restor function from the GUI to put the origional firmware back on the device (I have raised a ticket for this - https://ez.analog.com/power/f/q-a/113620/ltc4162-sad-demo-circuit-2038a-programming-problem
I also forgot to ask, what is the difference between the Linduino version (LTC4162-SAD_example_linduino.ino) and the Mzeros version (LTC4162-SAD_example_mzero.ino)?
Which is the version that is loaded onto the DC2038A kit as standard (out of the box demo that works with the GUI)???
I have tried this with Arduino version 1.8.5 and still no joy Error says:
Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Zero (Programming Port)"
Build options changed, rebuilding allC:\Program Files (x86)\LTC\LTC4162 Python\LTC4162-SAD\c_code\examples\dc2038a\LTC4162-SAD_example_mzero\LTC4162-SAD_example_mzero.ino:92:10: fatal error: Comm_SMBus.h: No such file or directory
exit status 1Error compiling for board Arduino/Genuino Zero (Programming Port).
This report would have more information with"Show verbose output during compilation"option enabled in File -> Preferences.
Here are my IDE settings (which I think should match the readme.txt requirements:
Note - there seems to be two options for the Arduino /Genuino board types - Native USB Port & Programming Port - Which should be chosen? (I have tried both types and as expected it does not help with the error of not being able to locate the file or directory for "#include "Comm_SMBus.h"
It's all in the README, take another careful look. Here's the breakdown:
To load onto DC2038A, you want the MZero example. To load onto a Linduino, you want the Linduino example. The board types are different for each one and detailed in the README. The Sketchbook Location (set in Preferences) are also different for each one and detailed in the README.
The issue with finding Comm_SMBus.h is a sketchbook location issue, so double-check that.
None of this firmware is loaded onto the DC2038A by default. These are simple example projects whereas the default firmware is a communication scheme used to pass data to/from the GUI. You can restore the GUI communication through the GUI (which you can still launch manually with no board connected, though QuikEval will not launch the GUI if the board's firmware has changed).