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.

TMS320F28377S GPIO setting (usage)

Other Parts Discussed in Thread: CONTROLSUITE

 This is selahadin  a new Ti user from Korea. Recently I tried writing a code for externally connected LED on breadboard yet my failures.

So I was wondering if anyone could help me or suggest me anything to read so that it would help me on using my Ti dev kit through ccs as well as on my future project (running it on Mac ^^).  Thank you.

Here is how i tried writing the code

void main()

{

  setup_adc(ADC_OFF);

  setup_oscillator(OSC_4MHZ);

//

while(1)

  {

   output_high(GPIO_23);

   delay_ms(500);

   output_low(GPIO_23);

   delay_ms(500);

  }

}

Regards,

  • Hi Kurtu,


    If you have installed controlSUITE software to your system then please go through the example projects for the target. Below is the controlSUITE path for examples

    ":\ti\controlSUITE\device_support\F2837xS\v180\F2837xS_examples_Cpu1\"

    controlSUITE software is not installed in you system, then please install the same and try. Below is the web address for controlSUITE software download

    "www.ti.com/.../controlsuite"

    Regards

    Aditya

  • Hello,

    I saw in your other thread that you got a "No source available" error. This isn't a critical error--it just means that the debugger can't find the source code for the portion of the code you've halted at. You can read up on it more here:

    processors.wiki.ti.com/.../Debug_Handbook_for_CCS

    What examples have you tried running? "blinky" is usually a good one to start with.

    Since you're new to the C2000, you may want to try going through one of our workshops. Here's one for the F2837xD (if you're using the F2837xS some things may not apply to you, but should be pretty similar):

    processors.wiki.ti.com/index.php

    Whitney

  • Hi Whitney,
    Thank you for the reply. Yes I started with blinky one. I will try to go through all what you recommended. Thank you.
    Regards,
  •  Hello Witney,

    I got all the files  and extracted the compressed file using wineskin in order to use it on my mac. Followed all the instruction provided the

    previous links you provided me, which was all helpful. Sadly I still could not build the very basic project Blinky one :( . I could not figure out what went wrong. Thank you again. Here are the details ;

    Description Resource Path Location Type

    #10009 no input files Blink C/C++ Problem   =====>error

    ==============================================================

    **** Build of configuration Debug for project Blink ****

    /Applications/vindinstaller.app/ccsv6/utils/bin/gmake -k all

    Building target: Blink.out

    Invoking: C2000 Linker

    "/Applications/vindinstaller.app/ccsv6/tools/compiler/ti-cgt-c2000_6.4.7/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -g --diag_warning=225 --display_error_number --diag_wrap=off -z -m"Blink.map" --stack_size=0x200 --warn_sections -i"/Applications/vindinstaller.app/ccsv6/tools/compiler/ti-cgt-c2000_6.4.7/lib" -i"/Applications/vindinstaller.app/ccsv6/tools/compiler/ti-cgt-c2000_6.4.7/include" --reread_libs --display_error_number --diag_wrap=off --xml_link_info="Blink_linkInfo.xml" --rom_model -o "Blink.out" "../28377S_FLASH_lnk.cmd"  -l"libc.a"

    <Linking>

    >> Compilation failure

    warning #10211-D: cannot resolve archive /Applications/vindinstaller.app/ccsv6/tools/compiler/ti-cgt-c2000_6.4.7/lib/libc.a to a compatible library, as no input files have been encountered

    makefile:134: recipe for target 'Blink.out' failed

    fatal error #10009: no input files

    gmake: *** [Blink.out] Error 1

    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****

    =====================================================================================

    C28xx_CPU1: GEL: Encountered a problem loading file: /Users/selahadinyousuf/Documents/workspace/Blink/Debug/Blink.out Could not open file

    ****** Debug error******

    Regards,

  • Hi Aditya,
    Thanks for the reply. I did download the controlsuit and extracted the zip file using wineskin for my mac. I still could not build up blink
    project and have uploaded all the details on my previous post thanks for your help. Thank you.
    Regards,
  • Hi Kurtu,

    as per your build log, Linker is unable to link any of .obj files. It means, During compilation there is no object file created.

    Please have a look on C2000 compiler setting->Include Options->

    whether source file path is included or not?


    If project source file path is included, then during compilation source oject files will be created. Those object files are required during linking.

    Regards

    Aditya

  • Hi Kurtu,

    As per above uploaded image, project source files are not included in the project directory.
    Please load proper project and then try to build.

    regards
    Aditya
  • After importing Blinky project to CCS, the window should be as shown below

    regards

    Aditya

  •  Hi Aditya,

    Thanks for the reply. I was wondering if the procedure I followed was wrong. Here is how I did it .  I created a free blank project named blink on code composer. After that went to my wineskin controlsuite file . From the device selection I picked my device and down there from code examples selected Blinky followed by clicking on " click to copy file" and selected my code composer as a target destination. Having done that went back to code composer from file=>open selected my blinky folder to import it to ccs, thats how I did it. Below I have attached how my wineskin looks. I was wondering if you could suggest me what to do to solve what went wrong. Thank you.

    Regards,

  • Hi Kurtu,

    Please follow below link to import CCS project.

    http://processors.wiki.ti.com/index.php/Importing_Projects_into_CCS

    While importing the project, please provide the control suit path as below

    HD Drive:\ti\controlSUITE\device_support\F2837xS\v180\F2837xS_examples_Cpu1\blinky

    If your control suit is installed properly then automatically blink project will be seen on the CCS window once you import.

    regards

    Aditya

  • Hello,

    I just wanted to check in and see if your issue was resolved. Are you able to successfully build and run examples now?

    Thanks,
    Whitney
  • Hello,
    I would like to apologise for the late reply. Thank you so much for the concern. Well about my project I tried importing the projects yet it could not load them all, I guess it is because control suit is installed through wineskin. So I am stuck there trying to solve that any suggestions are still
    highly appreciated. Thank you.
  • Kurtu,

    Could you verify that you followed the steps below and still continue to get a build error? If so, please provide details on the build error.
    1. Start a new workspace
    2. As Aditya provided through the wiki, in CCS, go to Project and select import existing project (Don't use resource explorer to import the project)
    3. Navigate to the F2837xS blinky example in device support and make sure "Copy projects into workspace" is NOT checked. We don't want to copy them. Then import blinky.
    4. Build and provide the results (if it doesn't build).

    Best Regards,
    Chris
  • In addition to Chris' question, can you tell us what version of CCS you're using? Is it the native Mac beta? Or did you install the standard version through Wine?

    Thanks,
    Whitney