2010-12-02 05:59 AM
Hello everyone,
I've just purchased an evaluation board (iNemo STEVAL-MKI062V2) and I'm trying to run an application in Visual Studio 2010 Professional in C++. Here are my doubts:
- As user guide I just found the pdf (Application Note AN3144) but I've realised that this is for the Version1 (STEVAL-MKI062V1). Is there any difference between V1 and V2?
- Then, I've tried to use the help manual for version 1 and create a program. But I can't connect the board.
in the line:
iNEMO_Return = INEMO_SDK_ConnectFunction(''PL_001:COM12, BD115200'');
the iNEMO_Return variable, returns me an 8 (which means CMD_TIMEOUT)
Then, Visual studio says:
iNEMO_SDK.dll', Cannot find or open the PDB file
PL_001.dll', Cannot find or open the PDB file
even though I have both files in the Project folder
Any idea to solve this? Cause by now I couldn't connect.
I have to say that the iNEMO application works fine.
Thanks in advance.
Oriol
#sdk #inemo #visual-studio-2010-professional-c++ #stevalmki062v2 #mems-inemo #visual-studio #stevalmki062v12010-12-02 08:40 AM
Hi Oriol,
You need to download and install the iNemo Suite v2.0.0 from the following url (http://www.st.com/internet/evalboard/product/250367.jsp
Ã
“Design Supportâ€�Ã
“Software & Development Toolsâ€�Ã
“iNEMO GUI and firmware�). This is an application that works with your device connected.In the installation path under ''Redistrib'' folder you will find the iNEMO2_SDK.dll and its dependencies TL_002.dll and PL_001.dll for developing your own application (you need to have these dlls where your application runs to access the STEVAL-MKI062V2).
You will found also in ''Redistrib'' folder the iNEMO2_SDK.h for win32 applications and the INEMO2_SDK_Wrapper.cs for C# application (in .NET). You can use this to access the inemo2_sdk.dll API.
Best RegardsiNEMOâ„¢ Team
2010-12-03 07:19 AM
Thanks Fabio.
I've found everything you've told me but still with the STEVAL-MKI062V1 exists an application code document that you can see here:
I just want to make sure that it doesn't exist with the STEVAL-MKI062V2 cause by now I'm trying to use the first version to implement the functions of the iNEMO2_SDK.h and it would be easier to have the Version 2
Thanks
2010-12-09 01:27 AM
I just wanted to say Fabio that I've already manage to use the functions and get the data from the iNEMO
STEVAL-MKI062V2. So thanks for your information.
Oriol
2011-02-16 07:37 AM
Hi Oriol,
during latest weeks i developed a Matlab application working with iNemo STEVAL-MKI062V2 which estimate the device orientation.
Now i'm trying to implement the algorithm in MS Visual C++ 2008 Express Edition, but i'm having some problems: even though the code is compiled correctly and executed without exceptions, i can't get any result and the return variables of the iNemo commands are setted to 1. I've attached the source code of the function described.
How did you resolve the connection problem using C++?
Thanks in advance.
Daniele
2011-02-16 10:13 AM
Ciao Daniele,
Attached one ccp as example for get data from 2 boards connected to the same pc.
Now you can create the application consolle on Visual Studio 2005/08/10 and import the file.
Pay attention in order to have the dependencies (redistribution folder of iNEMO) in the same folder where the executable is launched.
A prestoiNEMOâ„¢ Team
2011-02-16 12:50 PM
Thanks for the quick reply
I have created a new console app with the required dependencies, compiled it successfully and then launched. I'm still having errors during the connection; the com port is setted to the correct value (COM5 as in Matlab), but the handled device number is 4294967295 (2^32 -1) and i get the application error message (Failed to connect to iNEMO......).
I've attached the source code.
Where am i wrong?
Grazie mille Fabio...
2011-02-18 11:18 AM
Hi,
i have resolved the connection problems; they were due to the usage of the not correct libraries (they were not the latest versions). Once i've downloaded the latest versions of the iNemo Suit and DfuSe i've been able to connect to the device with the same C++ file (now i can also use the AHRS mode).
Grazie Fabio!
2011-02-22 05:58 AM
...i'm pleased for good news!
Just to highlight that inside the SDK file, you can find an example that show the loading sequence for SDK file into Visual Studio 2005.
Ciao Fabio