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.

Compiler/CC3100BOOST: Want to use cc3100sdk example with current compiler TI v16.9.0LTS. Original example uses msp430 TI v4.3.1 Suggestions on approach?

Part Number: CC3100BOOST
Other Parts Discussed in Thread: CC3100SDK, MSP430F5529

Tool/software: TI C/C++ Compiler

Hi, I've successfully modified an example from the msp430f5529lp platform in the cc3100sdk with CCS 7, however, I had to install the 4.3.1 compiler in CCS to do it. What steps should I take to migrate the existing example to TI's most recent compiler? I know I saw documentation from TI that showed how to build an application in CCS using the simplelink host driver but I cannot find it now. I do have the User's Guide (swru368a) but not the one specifically addressing development within CCS. Anyone know where that documentation is?

Thanks for any help you can provide.

Nick

  • Ok, I've found the porting guide again at (software-dl.ti.com/.../index.html). So I'm still wondering what library has already been compiled in the example software provided with the sdk when using one of the examples in the platform/msp430f5529lp that forces me to use the old TI compiler.
  • So now I have tried to migrate an existing example project from the cc3100-sdk/platform/msp430f5529lp by first importing it into CCS7 then in General tab of properties of ccs7, I select the current TI compiler v16.9.0 and output format of eabi (ELF). Output format had originally defaulted to legacy COFF and initially got a warning on this properties tab that if my project needs COFF ABI support to use an older compiler.

    When I build the http_client example project I get the following error indicating Symbol__TI_int41 has already been defined. Can anyone point me to where I could correct this error? I am aware that object files and libraries should be of the same output format as eabi and would like to see if it is a relatively simple task to accomplish this migration.

    Thanks!

    truncated build console output...

    'Building file: C:/ti/CC3100SDK_1.2.0/cc3100-sdk/platform/msp430f5529lp/board.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.0.LTS/bin/cl430" -vmspx --data_model=restricted --use_hw_mpy=F5 --include_path="C:/ti/ccsv7/ccs_base/msp430/include" --include_path="C:/ti/CC3100SDK_1.2.0/cc3100-sdk/netapps" --include_path="C:/ti/CC3100SDK_1.2.0/cc3100-sdk/examples/common" --include_path="C:/ti/CC3100SDK_1.2.0/cc3100-sdk/simplelink/include" --include_path="C:/ti/CC3100SDK_1.2.0/cc3100-sdk/simplelink/source" --include_path="C:/ti/CC3100SDK_1.2.0/cc3100-sdk/platform/msp430f5529lp" --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-msp430_16.9.0.LTS/include" --define=__MSP430F5529__ --define=__SL__ --define=__CCS__ --define=_USE_CLI_ -g --printf_support=full --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="board/board.d" --obj_directory="board" "C:/ti/CC3100SDK_1.2.0/cc3100-sdk/platform/msp430f5529lp/board.c"
    1 Assembly Error, No Assembly Warnings

    >> Compilation failure
    board/subdir_rules.mk:9: recipe for target 'board/board.obj' failed
    "C:/ti/CC3100SDK_1.2.0/cc3100-sdk/platform/msp430f5529lp/board.c", line 675: warning #225-D: function "incrSecondsCounter" declared implicitly
    "C:/ti/CC3100SDK_1.2.0/cc3100-sdk/platform/msp430f5529lp/board.c", line 74: warning #179-D: function "enable_button_s1_irq" was declared but never referenced
    "C:/ti/CC3100SDK_1.2.0/cc3100-sdk/platform/msp430f5529lp/board.c", line 96: warning #179-D: function "disable_button_s1_irq" was declared but never referenced
    "C:\Users\User\AppData\Local\Temp\0782410", ERROR! at line 32: [E0300] Symbol __TI_int41 has already been defined
    .intvec ".int41", Trap_ISR


    Errors in Source - Assembler Aborted
    gmake: *** [board/board.obj] Error 1
    gmake: Target 'all' not remade because of errors.
  • For the record, this error occurred because I previously modified board.c to use the RTC_A and this caused a resource conflict.

    So far, the selection of output format of eabi was the only additional configuration change in the project properties needed (along with changing to the new compiler). So, to summarize... To use the 3100sdk examples with the more recent compiler v16.9.0.LTS just change output format in the advanced settings of the general tab from COFF to eabi.
  • Thanks Nick for sharing the outcome of this :)

    -Aaron