This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OPT3101: SDK

Part Number: OPT3101

Hi Alex,

1. Where am I suppose to compile the SDK code, do I have to download the MSP430 IDE? I am just confused on how I am suppose to upload the code on to the OPT3101.

2. After I upload the code do I need to use a thermal chamber, ambient light source, and a software plotting tool or is there another way to accomplish these steps.

Thanks,

Mesgana

  • Also where can I find the setupapi.lib and the stdio library?

  • Hi Mesgana,

    1) SDK does not run on the OPT3101, it runs on an MCU or PC. You can run it on an MSP430 using code composer studio. It can also run on windows using the free version of visual studio. If you are working with an EVM and want to recalibrate windows is a good option because the SDK has methods defined to work out of the box with our EVM board. If SDK is run on windows you need an MCU or USB to I2C device to do i2c transactions (EVM has an MSP430 on it)

    2) Please refer to the "How to calibrate" document here http://www.ti.com/lit/ug/slau791/slau791.pdf this gives an overview of the procedure. For full calibration, yes you will need these.

    setupapi.lib is windows (you will have if you run in visual studio and the stdio is c++ standard IO lib. You can have this on an MCU for things like printf to console or may not want it because it can make the code bloated or may not fit depending on the MCU.

    Best,

    Alex

  • Hi Alex,

    Thanks for the reply it really helped, I just had a few follow up questions. (I am also using the OPT3101EVM)

    1. Looking at the SDK code most of it seems completed except some values in the enviromentalControl.cpp (setTargetDis..., chamberTemp..., ambientLigh...), is there anything else I am suppose to change to make this code work for calibration? (I am using a PC as a host and already used the configurator tool.)

    2. Can TI-Latte only be used for the default calibration of the OPT3101EVM so afterwards do I have to make my own GUI to display the results or are there some modifications I could do with the GUI?

    Thanks,

    Mesgana

  • Also in a previous post you said that the SDK should run "with the default values in the SDK if the SDK is running on a PC and the EVM connected with a USB cable" which mine is, but I get an error in the register.h file, I am using the windows visual studio like you suggested.

  • Closing this thread as we are handling over email.

    Best,

    Alex