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.

SimpleLink Example error on IAR tool

Other Parts Discussed in Thread: CC3200SDK, CC3200

Hi

I have ported the SimpleLink.eww workspace to the IAR tool and I rebuilt the hole example. but it gives me error regarding:

 

Fatal Error[Pe1696]: cannot open source file "../source/nonos.h" C:\Program Files\IAR Systems\Embedded Workbench 6.5\arm\inc\simplelink.h 372
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.5\arm\inc\"
            searched: "C:\ti\CC3200SDK_1.0.0\cc3200-sdk\simplelink\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.5\arm\inc\c\"

I have checked the file in the aforementioned directory. The file is there but I don't know why it gives me this error.

Is there any specific document for IAR configuration guide to help to re adjust the IAR debugger, trance, etc..?

 It is appreciated if you help me to Run the example program.

Thanks

  • Hi,

     

    The IAR projects created in CC3200SDK 1.0.0 are using IAR version 7.2. There could be issues while porting an IAR7.2 project to IAR6.5.

    Can you please check if the macro "SL_PLATFORM_MULTI_THREADED" is defined while building SimpleLink for OS.

    The above macro has to be undefined while building SimpleLink for NONOS. 

     

    Regards,

    Prathyusha Teja.I

  • Dear Prathyusha

    Thank you for replying me. Despite of OS or NON OS mode I receive the same error. I also checked the "SL_PLATFORM_MULTI_THREADED" it was defined while building the code for OS.

    Thanks

    Mehran

  • Hi Mehran,

    Looks like the project file didn't got ported properly. It would be better if you create a fresh project in IAR 6.5 IDE itself

    • File->New->Workspace

    • Project->Create New Project (Tool Chain = ARM, Project Templates = 'C')

    • Goto project Options->General Options->Target->Core->Cortex M4

    • Save the workspace and project in cc3200-sdk\simplelink\ewarm

    For Simplelink.eww library project you will need to set the following include paths:

    $PROJ_DIR$\..\
    $PROJ_DIR$\..\source\
    $PROJ_DIR$\..\include\
    $PROJ_DIR$\..\..\inc\
    $PROJ_DIR$\..\..\driverlib
    $PROJ_DIR$\..\..\oslib

    And define following MACROS : (Options->C/C++ Compilier->Define Symbols)

    SL_FULL
    ewarm
    SL_PLATFORM_MULTI_THREADED   - > Required only If building for OS

     

    For building an application pls refer to section 5.3.1 CC3200-Programmers_Guide.pdf in cc3200-sdk/docs folder. 

    And for the first step, on IAR 6.5 choose Core->Cortex M4 instead of TexasInstruments CC3200 (You will not find this option on IAR 6.5 )

    Thanks and Reagrds,

    Praveen

  • Hi Praveen


    I followed the Instruction and I double checked to be match with you post. Good news is that error does not exist any more however, I got new error. it seems it is related to Linker but I am not sure what it is !!!

    I have added the library directories to the linker as instruction:

    $PROJ_DIR$\..\..\oslib\ewarm\ti_rtos\Exe\ti_rtos.a
    $PROJ_DIR$\..\..\driverlib\ewarm\Release\Exe\driverlib.a
    $PROJ_DIR$\..\..\simplelink\ccs\OS\simplelink.a

    but no cure, Appreciate your help

    Thanks Mehran

  • Hi Mehran,

    Simplelink is a library thus no main. You need to go to Project->Options->General Options->Output and select Library instead of Executable.

     

    Thanks and Regards,

    Praveen

  • Hi Mehran,

    I am closing the thread, if issue still exist please open a new thread and add a link to this one for reference.

    Best regards,

    Naveen

  • Hi Naveen

    Actually, the Issue still exists, and I really don't have any Idea to what to do with it any more, would you provide General instruction about porting TI project to IAR in addition to the configuration setting for IAR 6.5.

    I followed all the instruction in documentation several times although it was brief. but still it gives me error that tBoolean is undefended.

    It would be great if we could have one document about IAR. I believe this question exist for most of TI customers.

    Thanks  

  • Hi Mehran,

    Let me try to answer your query in 2 parts:

    1. Regarding the issue that you see

    It looks like driverlib file "hw_types.h" is not included in the file leading to the undefined error. Are you trying to use an SDK example as is or are you executing you own code?

    2. Regarding the document about IAR

    IAR being one of the supported IDEs to build our examples, we only briefly describe the most relevant steps in the build process. IAR has elaborate documentation on compiling and building projects that you may refer to.

    If you could use IAR version 7.2, all the project files should work as is.

    In case you need to continue to use IAR version 6.5, you could use the *.ewp files in the examples as reference and ensure that all the dependent files (source files, preprocessor definitions, include paths, libraries...) are included in your project.

    Best regards,

    Naveen