Post Go back to editing

LTC4162-L(DC2038A) QuikEval测试环境构建问题

参照DC2038A中的描述QuikEval只能识别LTC4162 SDK中DC2038A固件的arduino控制器。

因此对ARDUINO(SAMD21系列)烧写DC2038A固件前,使用ARDUINO IDE(V1.8.9)编译时出现error(已将LTC6142源文件copy至DC2038A例程目录下)

error信息

Comm_SMBus.h:no such file or directory

哪里可以下载到Comm_SMBus.h和Comm_SMBus.c文件或者IDE应该设置到什么路径下?

谢谢

  • Hello,

    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.

    Regards,

    Zack

  • Hi Zack

    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

    Cheers

    Michael

  • Hi Zack,

    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)??? 

    Cheers

    Michael

  • Hi Zack,

    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 all
    C:\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

    #include "Comm_SMBus.h"

    ^~~~~~~~~~~~~~

    compilation terminated.

    exit status 1
    Error 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"

  • Hi Michael,

    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).

    Regards,

    Zack

  • Hi Zack

    感谢你的回复

    根据LTC4162_SDK -> LTC4162-LAD -> c_code -> README.txt中的描述

    1.已将DC2038A工程所需源文件放在同一目录下

    2.将Arduino IDE(version1.8.9)下Tools -> Board: -> Boards Manager中"Arduino SAMD Boards"升级到 version 1.6.21

    3.单击Arduino IDE中File -> Preferences,将Sketchbook location路径设置到步骤1的工程路径下

    4.在Arduino IDE下File -> Sketchbook下“LTC4162-LAD_example_mzero”可见

    5..在Arduino IDE下Tools ->Board/Port选择对应的硬件设备

    6.执行编译仍然提示“Comm_SMBus.h:no such file or directory”

    7.对ARDUINO IDE安装路径/Arduino SAMD Boards路径/LTC4162 SDK路径进行搜索均未发现“Comm_SMBus.h"文件

    对于”readme.txt“的理解上述的步骤1-6操作是否理解正确?针对“Comm_SMBus.h"文件是否需要特殊操作。

  • Hello,

    The problem is in step #3. You need to set the Sketchbook Location to the "MZeroSketchbook" folder included in the SDK. There are instructions in the README file. The README file is found in:

    LTC4162_SDK\LTC4162-LAD\c_code\README.txt

    Also, set to the Board to Arduino/Genuino Zero (Native USB Port). This is also explained in the README file.

    Regards,

    Zack

  • Hello,

    I realized that the SDK online needs to be updated, please use the attached SDK and follow the README file carefully. The MZeroSketchbook folder is located on the top-level directory.

    Regards,

    Zack

    LTC4162_SDK.zip

  • Hi Zack

    经过修正后的软件,编译通过了,写入后,发现还有新的问题,拜托确认。

    现象:

    通过串口调试软件和Demo版连接,发送相应的命令,能够得到Demo版的反馈,而且是正确的。

    但是,按照manual的要求,进行软件更新,连接时,确认是不能识别/打开串口,无法连接。

    该问题按照Manual反复确认,但结果是一致的。

    因此,想确认一下,什么愿意,什么条件下,会出现这样的Error。

  • 你好,

    我不太确定你的意思。您是否正在尝试使用GUI?

    要再次使用GUI,您应该打开GUI并转到 Settings -> Program Default Software。

    如果那不是你的问题,请你澄清一下吗?我认为它在翻译中丢失了。

    问候,

    扎克

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.