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.

Controller + Target on CC2530

Other Parts Discussed in Thread: CC2530, REMOTI, CC2531

Hi support,

how can I build a controller - target system by using "rnp_cc2530.ewp" workspace on two CC2530 modules?

I have tried to compile the controller project by adding FEATURE_CONTROLLER_ONLY directive on preprocessor. 

If it worked fine, how could I control the RC module by serial interface? Should I send the command FE | 00| 4A | 04 | FCS (?) manually from a serial terminal?

Thanks in advance

Gianluca

  • Hi Gianluca,

    Please check out the Simple Console application. If Linux is your preferred platform then go here RemoTI-Linux.

  • Thank you very much!

    I'll check it out asap

    Best Regards,

    Gianluca

  • Hi Torbjorn,

    despite having followed instructions, I faced some problems.

    1) I started from compiling Simple Console VS C++ Express Prj under Windows XP, as indicated by Application Note AN084 par. 2.1. I get a Windows popup error as soon as I try to compile, without crash of VS Express. In the same paragraph it is indicated that the requirement is Windows 7. Moving to a machine with Windows 7 I am able to compile.

    2) Despite compiling the SimpleConsole project inside the correct RemoTI path, Visual C++ express compiler does not recognize the definition of RTI_WriteItem() inside sample_main_rc.cpp source file.

    3) If I modify the API from the deprecated one to RTI_WriteItemEx(), compilation succeeds with warnings but, while launching SimpleConsole.exe, I get a pop error from Windows indicating "Entry Point Not Found - RTI_WriteItemEx could not be located in dynamic library rtilib.dll. Warnings are:

    1>LINK : warning LNK4098: la libreria predefinita 'LIBCMTD' è in conflitto con l'utilizzo di altre librerie; utilizzare /NODEFAULTLIB:libreria
    1>rtilibinit.lib(rtilibinit.obj) : warning LNK4099: impossibile trovare il PDB 'vc90.pdb' con 'rtilibinit.lib(rtilibinit.obj)' o in 'C:\Texas Instruments\RemoTI-CC253xDK-1.3.1\Tools\SimpleConsole\Debug\vc90.pdb'; oggetto collegato senza informazioni di debug
    1>LINK : warning LNK4098: la libreria predefinita 'LIBCMTD' è in conflitto con l'utilizzo di altre librerie; utilizzare /NODEFAULTLIB:libreria
    1>rtilibinit.lib(rtilibinit.obj) : warning LNK4099: impossibile trovare il PDB 'vc90.pdb' con 'rtilibinit.lib(rtilibinit.obj)' o in 'C:\Texas Instruments\RemoTI-CC253xDK-1.3.1\Tools\SimpleConsole\Debug\vc90.pdb'; oggetto collegato senza informazioni di debug
    1> SimpleConsole.vcxproj -> C:\Texas Instruments\RemoTI-CC253xDK-1.3.1\Tools\SimpleConsole\Debug\SimpleConsole.exe

    Any suggestion will be accepted.

    Thanks in advance!

    Gianluca

  • Hi Gianluca,

    Unfortunately it looks like the source is outdated. Please try the attached code.

    4721.RemoTI-1.3.1 Simple Console Application Note.zip

  • HI Torbjorn,

    I have used the source files in the zip archive but the problem remains.

    I have started by compiling the project with only "sample_main_rc.cpp" included in compilation. the problem seems to rise in the rtilib.dll, but it comes with the "RemoTI-CC253xDK-1.3.1" folder, so it should be ok.

    Thanks again for any other suggestion you could give me,

    Gianluca

  • Hello everyone.

    I am also running into a similar problem with my friend. Specifically, we can now compile the code thanks to the new source code provided by Torbjorn. However, when we try to run the program, we get the error:

    The procedure entry point RTI_WriteItemEx could not be located in the dynamic link library rtilib.dll.

    We think this may be due to either an outdated dll or bad compiler options in Visual Studio. Has anyone been able to circumvent this problem?

    Thanks :)

  • Hi,

    There are two versions of the rtilib.dll in the installer. Please try to change from what you have. The two locations are:

    C:\Texas Instruments\RemoTI-CC253xDK-1.3.1\Tools

    C:\Texas Instruments\RemoTI-CC253xDK-1.3.1\bin

  • We tried this and then got the error:

    LINK : fatal error LNK1181: cannot open input file 'rtilibinit.lib'

    since there was no lib file in the directory C:\Texas Instruments\RemoTI-CC253xDK-1.3.1\bin. Then, we simply moved the rtilib.dll from \bin to \Tools and built the solution again. Now, the program runs, but the console window closes almost immediately. However, it displays the message:

    Failed to start RTI library module

    before closing. Any suggestions? Thanks for your help so far

  • Hi Sophia,

    Did you provide a COM port as argument? You must have either a CC2531 programmed with "C:\Texas Instruments\RemoTI-CC253xDK-1.3.1\bin\RNP-CC2531F256.hex" connected to a USB port, or a CC2533EM programmed with "C:\Texas Instruments\RemoTI-CC253xDK-1.3.1\bin\RNP-CC2533F96.hex" mounted on the RemoTI Target Board which then must be connected to a USB port. They will both come up as virtual serial ports.

  • I got it. Thank you for your attention and patience :)