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-CC32XX-SDK: CC3220SF

Part Number: SIMPLELINK-CC32XX-SDK
Other Parts Discussed in Thread: SYSBIOS

Hello,

         I am Harshal. I have used CC3220 controller for development purpose with TI RTOS integrated. 

I am using Ceedling for Wrting Unity Test cases for the project. I am facing issue in adding the TI compiler 

and Linker into the Ceedling project. When i add the TI Compiler and Linker to Project configuration file

Ceedling is showing the Below Error

H:\HT\Final_SEED_STEM\firmware_rtos\Tests>ceedling test:all                                                                                                                

Traceback (most recent call last):                                                                                                                                             

9: from C:/Ruby27-x64/bin/ceedling:23:in `<main>'                                                                                                                       

8: from C:/Ruby27-x64/bin/ceedling:23:in `load'                                                                                                                         

7: from C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/ceedling-0.31.0/bin/ceedling:278:in `<top (required)>'                                                                   

6: from C:/Ruby27-x64/lib/ruby/2.7.0/psych.rb:577:in `load_file'                                                                                                       

5: from C:/Ruby27-x64/lib/ruby/2.7.0/psych.rb:577:in `open'                                                                                                             

4: from C:/Ruby27-x64/lib/ruby/2.7.0/psych.rb:578:in `block in load_file'                                                                                               

3: from C:/Ruby27-x64/lib/ruby/2.7.0/psych.rb:277:in `load'                                                                                                             

2: from C:/Ruby27-x64/lib/ruby/2.7.0/psych.rb:390:in `parse'                                                                                                           

1: from C:/Ruby27-x64/lib/ruby/2.7.0/psych.rb:456:in `parse_stream'                                                                                             

C:/Ruby27-x64/lib/ruby/2.7.0/psych.rb:456:in `parse': (project.yml): did not find expected key while parsing a block mapping at line 107 column 2 (Psych::SyntaxError)

Below is the Configuration file in the YAML File:

:project:
  :use_exceptionsFALSE
  :use_test_preprocessorFALSE
  :use_auxiliary_dependenciesTRUE
  :build_rootbuild
#  :release_build: TRUE
  :test_file_prefixtest_
  :which_ceedlinggem
  :default_tasks:
    - test:all

#:test_build:
#  :use_assembly: TRUE

#:release_build:
#  :output: MyApp.out
#  :use_assembly: FALSE

:environment:
    :PROJECT:
         #- E:/TI_RTOS_Workspace/SEED_TI_RTOS/**
         #- E:/GitHubFirmware/firmware_rtos/SEED_STEM_RTOS/**
         - H:/HT/Final_SEED_STEM/firmware_rtos/SEED_STEM_RTOS/**
    :path:
        - C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-arm_20.2.2.LTS/**

:extension:
  :executable.out

:paths:
  :test:
    - +:test/**
    - -:test/support
  :source:
    - "#{ENV['PROJECT']}" 
    - +:source/ti/drivers/**
    - +:source/ti/posix/gcc/**
    - +:kernel/tirtos/packages/ti/sysbios/knl/**
    - +:kernel/tirtos/packages/ti/targets/**
    - +:xdctools_3_62_00_08_core/packages/**
    - +:MinGW/include/**
    #- +:ti-cgt-arm_20.2.2.LTS/include/**
  #:include:
    #- +:xdctools_3_62_00_08_core/packages/**
  #:exclude:
    #- +:xdctools_3_62_00_08_core/packages/**
  :support:
    - test/support
  :custom:
    - "#{ENV['PROJECT']}"

:defines:
  # in order to add common defines:
  #  1) remove the trailing [] from the :common: section
  #  2) add entries to the :common: section (e.g. :test: has TEST defined)
  :common&common_defines []
  :test:
    - *common_defines
    - TEST
  :test_preprocess:
    - *common_defines
    - TEST

:cmock:
  :mock_prefixmock_
  :when_no_prototypes:warn
  :enforce_strict_orderingTRUE
  :plugins:
    - :ignore
    - :callback
    - :return_thru_ptr
  :treat_as:
    uint8:    HEX8
    uint16:   HEX16
    uint32:   UINT32
    int8:     INT8
    bool:     UINT8
  :includes:
    - <stdbool.h>
    - <stdint.h>
    - <stdarg.h>
    - <stddef.h>

  :treat_externs:include

# Add -gcov to the plugins list to make sure of the gcov plugin
# You will need to have gcov and gcovr both installed to make it work.
# For more information on these options, see docs in plugins/gcov
:gcov:
    :html_reportTRUE
    :html_report_typedetailed
    :html_medium_threshold75
    :html_high_threshold90
    :xml_reportFALSE

:tools:
# Ceedling defaults to using gcc for compiling, linking, etc.
# As [:tools] is blank, gcc will be used (so long as it's in your system path)
# See documentation to configure a given toolchain for use
 :test_compiler:
    :executablearmcl
    :arguments:
      - -${1}
      - -mv7M4
      - -mcpu=CC32XX
      - -f_cpu=80000000UL
      - -abi=eabi
      - -gcc
      - -c99
      - -I"$"COLLECTION_PATHS_INCLUDE
      - -o ${2}

  :test_linker:
    :executableC:/ti/ccs1020/ccs/tools/compiler/ti-cgt-arm_20.2.2.LTS/armlnk
    :arguments:
      - -mcpu=CC32XX
      - -${1}
      - -o ${2}
      - -z
      - -a
      - -C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-arm_20.2.2.LTS/lib/lib.a

# LIBRARIES
# These libraries are automatically injected into the build process. Those specified as
# common will be used in all types of builds. Otherwise, libraries can be injected in just
# tests or releases. These options are MERGED with the options in supplemental yaml files.
:libraries:
  :placement:end
  :flag"${1}"  # or "-L ${1}" for example
  :test: []
  :release: []

:plugins:
  :load_paths:
    - "#{Ceedling.load_path}"
  :enabled:
    - stdout_pretty_tests_report
    - module_generator
...

Please suggest related solution as I am stuck

Thanks in Advance