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.
hi,
I try to make a proyect that sends a simply character, but i have problems with SimpliciTI.
Here is the include that i use:
#include "bsp.h"
#include "mrfi.h"
#include "bsp_leds.h"
#include "bsp_buttons.h"
#include "nwk_types.h"
#include "nwk_api.h"
#include "nwk_frame.h"
#include "nwk.h"
and in the c/c++ compiler i added all the directory that i need to use.
But when i use instruction like SMPL_Send, the compiler tells me that is not define. In the Linker/extra option i put the path to the nwk_api.c and i have the error "unable to open file.."
Someone know how to configure the SimpliciTi?
Thanks anyway.
Gaston.
What toolchain are you using?
Based on the description of the example project that you are trying to put together, this sounds very similar to the example project provided by the SimpliciTI v1.0.6 release.
This would be found in Projects\Examples\Peer applications\CC2430DB\2 simple end devices with bi-di. However, this uses an IAR Workbench toolchain to pull in the appropriate pieces.
Even if you don't have IAR, you can still open the .ewp file, as it is an XML file, and inspect the project settings which include all of things which are needed to be included.
Include paths for the compiler.
Components which are needed to be added to the project from the bsp, mrfi, nwk, nwk applications and peer applications directories.
OK, i'm using IAR. My question is: in the extra option ( c/c++ compiler) the path that i have to put, is the path to the proyect folder that i make or to the simpliciti installation folder?
I try to put the path to nwk_api.h, in the simpliciti installation folder, but can't compile. The function that us simpliciti the compiler says is "not define".
I must copy the simpliciti folders to my proyect folder and then put the path?
In the examples that you say the extra option have the next path:
-f"$PROJ_DIR$\Configuration\End Device\smpl_config.dat"
-f"$PROJ_DIR$\Configuration\smpl_nwk_config.dat"
The PROJ_DIR$ i guess is the simpliciti folder installation folder? i guess is that.
Thanks Brandon.
Gaston
Gaston said:
My question is: in the extra option ( c/c++ compiler) the path that i have to put, is the path to the proyect folder that i make or to the simpliciti installation folder?I try to put the path to nwk_api.h, in the simpliciti installation folder, but can't compile. The function that us simpliciti the compiler says is "not define".
This has 3 subdirectories:
Components : Includes board support package, Radio specific drivers and the SimpliciTI stack.
Documents : Documentation about SimpliciTI, sample projects, etc.
Projects : Sample projects which are supported on several platforms.
There is documentation in the .\Documents which provides some guidance on the sample applications which are in the .\Projects subdirectory.
In the context of this software release, the example projects are meant to built from the .\Projects directory tree. For example, if I wanted to build the 2 End Devices with Peer-to-Peer, bidirectional communication, I need to load the following
workspace into IAR (8051 version), after chosing a particular platfrom to run it on.
".\Projects\Examples\Peer applications\CC2430DB\2 simple end devices with bi-di\SimpliciTI Ex BiDi.eww"
If you want to not develop in this directory structure, then you need to create (or copy an existing) project in a directory of your choice, but need to include the same files by importing them into IAR. If you copy an existing project into a different
directory structure altogether, then you will need to modify the paths accordingly.
I used the above as an example. Let's say I don't want to develop in the C:\Texas Instruments\SimpliciTI-1.0.6 directory because I want to keep it as a prestine, original copy. But, I want to use one of the example projects as the basis of my new design. I will choose the
"2 simple end devices with bi-di" project as my basis. I will now copy this to a new directory on my host for my development.
1) Use Windows Explorer to copy the "C:\Texas Instruments\SimpliciTI-1.0.6\Projects\Examples\Peer applications\CC2430DB\2 simple end devices with bi-di" directory to "C:\Projects\2 simple end devices with bi-di".
2) Invoke IAR
3) Open workspace C:\Projects\2 simple end devices with bi-di\SimpliciTI Ex BiDi.eww
- Errors occur because IAR is unable to find C:\Projects\2 simple end devices with bi-di\..\..\..\..\..\Components\bsp, etc.
4) Need to edit or modify the workspace to correct the paths to point to C:\Texas Instruments\SimpliciTI-1.0.6\Components\bsp, etc.
At this point, you should have everything you need.
Gaston said:
I must copy the simpliciti folders to my proyect folder and then put the path?
Gaston said:
In the examples that you say the extra option have the next path:-f"$PROJ_DIR$\Configuration\End Device\smpl_config.dat"
-f"$PROJ_DIR$\Configuration\smpl_nwk_config.dat"
The PROJ_DIR$ i guess is the simpliciti folder installation folder? i guess is that.
Thanks Brandon. I make it work before i read this help, but i want to say thanks for help me.
Do you work for Texas? jajaja.
Thanks.
Gaston.
**Attention** This is a public forum