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.

Start your own instaspin project and now I have problems

Genius 5910 points
Other Parts Discussed in Thread: MOTORWARE

Hi,

Starting your own project. from motorware is really, really terrible!!!

 I want to remove lab13c out of the motorware three so I can make my own project.

 I used this as guide.

http://e2e.ti.com/support/microcontrollers/c2000/f/902/p/332326/1159207.aspx#1159207

But now I have a lot of errors.

#10010 errors encountered during linking; "Servo.out" not built  
#10099-D</a>  program will not fit into  
#16008-D</a>  file 

I assume it is a linking problem. I manual selected the F28069M_ram_lnk.cmd but that didn 't solve the problem.

 How do I solve this?

Edit: Where is MW_INSTALL_DIR1 defined? I moved the root-dir.

  • Ernst,

    Those errors do indicate a linking problem.  It seems like your project it too large to fit into the available memory.  If you look at the console output it should tell you which memory section is causing the problem.

    The MW_INSTALL_DIR is defined in both the .project file and the .cproject file.  Both of these definitions need to be set the same.

  • Why I'm I trying to hack CCS/Eclipse?  Why Isn't there any information how TI did set it up(not a cookbook). I even got 0 hits on google

    1. Is there any CCS project set-up information for motorware lab projects?

    2. How do I manually setup a instaspin_motion project?

    3. what is wrong with this?

        <variableList>
            <variable>
                <name>MW_INSTALL_DIR</name>
                <value>$%7BPARENT-10-PROJECT_LOC%7D</value>
            </variable>
            <variable>
                <name>MW_INSTALL_DIR1</name>
                <value>I:/workspace</value>
            </variable>
        </variableList>

    4. Where are :

    $%7BPARENT-2-ECLIPSE_HOME%7D

    $%7BPARENT-10-PROJECT_LOC%7D

    defined?

    Edit: This is why I have to change it:

     gmake: *** No rule to make target `C:/ti/motorware/motorware_1_01_00_13/sw/solutions/CremerServo/src/user.c', needed by `user.obj'.

  • To be clear I think I have 2 problems. The path is not correct. It point at the old and new location. and the there is a linker script problem. I manually selected f28069M_ram_lnk.cmd but that didn't make it any better.

     So I ended up with a lot of those:

    error #16008-D: file
       "I:/workspace/sw/modules/fast/lib/32b/f28x/f2806x/2806xRevB_FastSpinROMSymbo
       ls.lib<TMS320x2806x_REVB_boot_rom_out__s4_conf_tmp.obj>" specifies ISA
       revision "C2800", which is not compatible with ISA revision "C2700"
       specified in a previous file or on the command line

    and those:

    warning #10247-D: creating output section ".ebss" without a SECTIONS
       specification
    warning #10247-D: creating output section ".econst" without a SECTIONS
       specification
    warning #10247-D: creating output section ".reset" without a SECTIONS
       specification
    warning #10247-D: creating output section ".switch" without a SECTIONS
       specification
    warning #10247-D: creating output section "IQmath" without a SECTIONS
       specification
    warning #10247-D: creating output section "codestart" without a SECTIONS
       specification
    warning #10247-D: creating output section "ramfuncs" without a SECTIONS
       specification

  • The missing part in the instructions: Check if the directory reference are correct.

     Maybe someone can explain what they mean?

  • ernst van spronsen said:
    manually selected f28069M_ram_lnk.cmd

    Did you already link this cmd file in the Properties? I think you need to mention it there too besides putting the file to the project.

    Best regards,

    Maria

  • Ernst,

    Motorware is entirely based off of relative paths.  I don't understand why you need MW_INSTALL_DIR1.

    Does this file C:/ti/motorware/motorware_1_01_00_13/sw/solutions/CremerServo/src/user.c exist?

    I think what might have happened is that when you created the CremerServo folder you didn't copy all of the files out of the instaspin_motion directory.  

    Those linker errors tend to indicate that you need to add the linker file into the project.  It is located at: C:/ti/motorware/motorware_1_01_00_13/sw/ide/ccs/cmd/f2806x

    I would recommend that you copy the entire InstaSPIN_MOTION directory and rename it to be the directory name that you want.  This should help keep your relative paths correct.  According to the screenshot that you sent it still thinks that your project is in instaspin_motion and not CremerServo.

  • Thanks for the reply.

     Relative to what?

    I did copy the complete tree to an other  location on a other drive. So some files where read from the new and other form the old location. So the new location works fine. Till I move the files to sw\solutions\CremerServo than the problems started. The problems was, the relative pad to the old location weren't valid anymore.

    But the strange part is, why gives this so many linking errors.

     

  • Ernst,

    Everything is relative to either the MotorWare Install directory (MW_INSTALL_DIR) or the Project Location (PROJECT_LOC / PROJECT_ROOT [I can't remember which]).  

    Gotcha, that is probably the issue.  All of your relative paths are looking for files that do not exist.  The linker command file is also a linked file in the project.  It is possible that the project is looking in the wrong place for it.