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/TMS320C40: Build using makefiles

Part Number: TMS320C40


Tool/software: TI C/C++ Compiler

I am trying to create a makefile to build my project instead of using CCS. I am having a difficult time with using the xdc tools to build sys/bios. Is there any documentation, resources or examples that would help?

-Walt

  • Hi Walt,

    What device and version of SYS/BIOS are you using?

    I've attached a makefile that builds an application  (for an M4 device) that uses SYS/BIOS. It assumes you are using TI's compiler. It assumes the .cfg name is the same as the directory name it's in. For example in the blah/mutex directory there is a mutex.cfg. Also that all the source files are in the makefile's directory (or subdicectory).

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/81/makefile

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/81/makedefs

    You can also refer to the "configuro" option in XDCtools documentation.

    Todd

  • Hi Todd,

    Here's what I'm using:
    Processor: F28335
    TI compiler: C2000_6.2.11
    Sys/bios: 6.35.04.50
    xdc tools: 3.24.06.63
    make: gmake 4.1

    Thanks for the examples and documentation reference, I'll see what I can learn from them. If you can think of anything else that might be helpful it would be much appreciated.

    -Walt
  • If you are using a C28xx device, you might want to grab TI-RTOS for C2000 to look to see how to build the C28 examples via makefiles. I don't recommend using TI-RTOS for C2000 for development though...stick with the stand-alone SYS/BIOS. TI-RTOS for C2000 is really more focused for Concerto devices (M3 + C28). So there are no C28335 examples. TI-RTOS for C2000 adds high level drivers for the M3 side...not for the C28 core. So basically for non-Concerto  (e.g. F28335) customers, TI-RTOS for C2000 has less functionality (no examples) than SYS/BIOS does.

    Here's a makefile example you could use. Note: the makefiles are pretty generic (and therefore more complicated) than you probably need:)

  • Great, thanks Todd!
  • I'm going to mark this as resolved, but it you have more related questions, just make a reply post (within 30 days) and the thread will get opened back up.
  • Hi Todd,

    How do I build the benchloop project? I tried 'gmake' and get

    C:\ti\tirtos_c2000_2_16_01_14\tirtos_c2000_2_16_01_14_examples\C2000_C28\TI\TMDXDOCK28M36_C28\benchloop>gmake
    process_begin: CreateProcess(NULL, pwd, ...) failed.
    gmake: makefile:45: pipe: No error
    process_begin: CreateProcess(NULL, pwd, ...) failed.
    gmake: makefile:69: pipe: No error
    gmake: Circular ../makedefs.out <- ../makedefs dependency dropped.
    gmake: Circular makefile.out <- makefile dependency dropped.
    gmake: Circular all.out <- all dependency dropped.
    gmake: Circular benchloop.cfg.out <- benchloop.cfg dependency dropped.
    process_begin: CreateProcess(NULL, echo Running Configuro..., ...) failed.
    make (e=2): The system cannot find the file specified.
    makefile:54: recipe for target 'benchloop/linker.cmd' failed
    gmake: *** [benchloop/linker.cmd] Error 2

  • Walt,

    Use the gmake in xdctools.

    Todd
  • Todd,

    Just curious why that is? Is it an older version of gmake? A proprietary version?

    Thanks,
    Walt
  • We built the standard gmake with a option or two changed. I don't know the full history though.