This project built with no errors a few times, then I started getting this. All includes are copied, not linked, since I have never ending problems when they are linked. I get two "undefined symbol" errors.
Any idea how i can fix this?
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.
This project built with no errors a few times, then I started getting this. All includes are copied, not linked, since I have never ending problems when they are linked. I get two "undefined symbol" errors.
Any idea how i can fix this?
Hi,
Try including:
//########################################################################### // // FILE: F2806x_Gpio.c // // TITLE: F2806x General Purpose I/O Initialization & Support Functions. // //########################################################################### // $TI Release: F2806x C/C++ Header Files and Peripheral Examples V136 $ // $Release Date: Apr 15, 2013 $ //########################################################################### #include "F2806x_Device.h" // F2806x Headerfile Include File #include "F2806x_Examples.h" // F2806x Examples Include File //--------------------------------------------------------------------------- // InitGpio: //--------------------------------------------------------------------------- // This function initializes the Gpio to a known (default) state. // // For more details on configuring GPIO's as peripheral functions, // refer to the individual peripheral examples and/or GPIO setup example. void InitGpio(void) { EALLOW; // Each GPIO pin can be: // a) a GPIO input/output // b) peripheral function 1 // c) peripheral function 2 // d) peripheral function 3 // By default, all are GPIO Inputs GpioCtrlRegs.GPAMUX1.all = 0x0000; // GPIO functionality GPIO0-GPIO15 GpioCtrlRegs.GPAMUX2.all = 0x0000; // GPIO functionality GPIO16-GPIO31 GpioCtrlRegs.GPBMUX1.all = 0x0000; // GPIO functionality GPIO32-GPIO47 GpioCtrlRegs.GPBMUX2.all = 0x0000; // GPIO functionality GPIO48-GPIO63 GpioCtrlRegs.AIOMUX1.all = 0x0000; // Dig.IO funct. applies to AIO2,4,6,10,12,14 GpioCtrlRegs.GPADIR.all = 0x0000; // GPIO0-GPIO31 are GP inputs GpioCtrlRegs.GPBDIR.all = 0x0000; // GPIO32-GPIO63 are inputs GpioCtrlRegs.AIODIR.all = 0x0000; // AIO2,4,6,10,12,14 are digital inputs // Each input can have different qualification // a) input synchronized to SYSCLKOUT // b) input qualified by a sampling window // c) input sent asynchronously (valid for peripheral inputs only) GpioCtrlRegs.GPAQSEL1.all = 0x0000; // GPIO0-GPIO15 Synch to SYSCLKOUT GpioCtrlRegs.GPAQSEL2.all = 0x0000; // GPIO16-GPIO31 Synch to SYSCLKOUT GpioCtrlRegs.GPBQSEL1.all = 0x0000; // GPIO32-GPIO47 Synch to SYSCLKOUT GpioCtrlRegs.GPBQSEL2.all = 0x0000; // GPIO48-GPIO63 Synch to SYSCLKOUT // Pull-ups can be enabled or disabled. GpioCtrlRegs.GPAPUD.all = 0x0000; // Pullup's enabled GPIO0-GPIO31 GpioCtrlRegs.GPBPUD.all = 0x0000; // Pullup's enabled GPIO32-GPIO44 //GpioCtrlRegs.GPAPUD.all = 0xFFFF; // Pullup's disabled GPIO0-GPIO31 //GpioCtrlRegs.GPBPUD.all = 0xFFFF; // Pullup's disabled GPIO32-GPIO44 EDIS; } //=========================================================================== // End of file. //===========================================================================
to your project. Let me know what you observe.
Regards,
Gautam
Aron, the include files have not been attached to project properly. Now ""DSP2833x_usDelay.asm" seems to be missing! Add this file now:
Also, please check whether you've included required directories in project -> properties.
Regards,
Gautam
The file you need to resolve the symbols for GpioCtrlRegs and GpioDataRegs is F2806x_GlobalVariableDefs.c. Add this file to your project (it can be found in ControlSuite). I can't tell yet if you need any other source files as I don't know all the code you have in main.c, but I would first suggest adding this source file (remove the F2806x_Gpio.c you previously added) and see what errors, if any, are left.
If any unresolved symbol errors remain, you would need to find the source files that define them and add them to the project as well.
Here's where it stands:
I've included F2806x_usDelay.asm and now have this rather entertaining slew of errors that make it appear the compiler has no idea what assembly is. I've now included F2806x_GlobalVariableDefs.c Also, I deleted F2806x_Gpio.h, but that resulted in another error, so I added it back in.
Whats next?
As the creator of the project, you are in the best position to identify which source files are required to be part of your project. If you were working with an example from ControlSuite, we could tell you exactly which source files should be in the project. But since this is your own project you should be able to determine which source files are required (the examples in ControlSuite are usually a good reference as a starting point).
Basically I see that you started simply with a main.c and several header files. Depending on the code in main.c (and which routines it calls/references) you would need to include the appropriate source/header files that define those routines (these files can usually be found in ControlSuite). There are a few source files that get included in almost all ControlSuite examples. Taking a closer look at one of the example should hopefull help you identify which ones you would need for yours.
The F2806x_usDelay.asm assembler source file isn't meant to be #included in a C source file, since that causes the C compiler to report syntax errors.Aron Koscho said:I've included F2806x_usDelay.asm and now have this rather entertaining slew of errors that make it appear the compiler has no idea what assembly is.
Instead, the F2806x_usDelay.asm assembler source file is supposed to be added as a source file to the CCS project, and CCS will then use the assembler to build it.
My main.c is kept simple for the sake of learning how to properly configure everything else.
#include "F2806x_Device.h" #include "F2806x_Examples.h" void main(void) { EALLOW; GpioCtrlRegs.GPAMUX1.bit.GPIO14 = 0; GpioCtrlRegs.GPADIR.bit.GPIO14 = 1; EDIS; while(1) { GpioDataRegs.GPASET.bit.GPIO14=1; GpioDataRegs.GPACLEAR.bit.GPIO14=1; } }
Thanks Chester, that makes sense, but i'm not seeing how to add it as a source file. If I right click>>add files it shows up with all the other includes. I can't find an option specifically allowing me to add it to the source. How can I do that?
Thanks,
Aron
If you just copy the F2806x_usDelay.asm file into the directory containing the CCS project, CCS should automatically detect the new assembler source file as part of the project and then use the assembler to build it when you build the projectAron Koscho said:Thanks Chester, that makes sense, but i'm not seeing how to add it as a source file. If I right click>>add files it shows up with all the other includes. I can't find an option specifically allowing me to add it to the source. How can I do that?
[Just tested with CCSv6 and the F2806x_usDelay.asm file attached above by Gautam]
Chester, that was my initial thought, but when I went into the source folder to paste it in I noticed it was already there. Following your reply, I deleted it, then pasted it in again, but to no avail. This is what the source folder currently looks like:
Is there an option some where that determines how the .asm file is handled?
One of your previous screen shots of the CCS project showed the F2806x_usDelay.asm with the ".S" icon which means CCS should have automatically detected it as an assembler source file.Aron Koscho said:Is there an option some where that determines how the .asm file is handled?
For the avoidance of doubt, in CCS perform a "Rebuild Project" and then post the complete output of the CCS Console.
Here is an example of the successful output of building F2806x_usDelay.asm:
'Building file: ../F2806x_usDelay.asm'
'Invoking: C2000 Compiler'
"C:/ti_ccs6_0/ccsv6/tools/compiler/c2000_6.2.5/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --include_path="C:/ti_ccs6_0/ccsv6/tools/compiler/c2000_6.2.5/include" -g --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="F2806x_usDelay.pp" "../F2806x_usDelay.asm"
'Finished building: ../F2806x_usDelay.asm'
' '
The output file is quite large, so i've used the code tool to display it.
**** Build of configuration Debug for project OLED_Write **** "c:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 'Building file: ../4087.F2806x_Gpio.c' 'Invoking: C2000 Compiler' "c:/ti/ccsv6/tools/compiler/c2000_6.2.5/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --include_path="c:/ti/ccsv6/tools/compiler/c2000_6.2.5/include" -g --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="4087.F2806x_Gpio.pp" "../4087.F2806x_Gpio.c" "..\F2806x_usDelay.asm", line 1: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 2: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 3: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 4: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 5: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 6: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 7: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 8: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 9: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 10: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 11: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 12: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 13: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 14: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 15: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 16: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 17: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 18: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 19: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 20: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 21: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 22: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 23: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 24: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 25: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 26: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 27: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 28: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 29: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 30: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 31: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 32: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 33: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 34: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 35: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 36: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 37: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 38: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 39: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 40: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 41: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 42: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 43: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 44: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 45: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 46: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 47: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 48: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 49: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 50: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 51: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 52: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 53: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 54: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 55: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 57: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 58: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 59: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 60: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 61: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 62: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 63: error #171: expected a declaration "..\F2806x_usDelay.asm", line 68: error #10: "#" not expected here "..\F2806x_usDelay.asm", line 69: warning #12-D: parsing restarts here after previous syntax error "..\F2806x_usDelay.asm", line 69: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 69: error #78-D: this declaration has no storage class or type specifier "..\F2806x_usDelay.asm", line 69: error #66: expected a ";" "..\F2806x_usDelay.asm", line 72: warning #12-D: parsing restarts here after previous syntax error "..\F2806x_usDelay.asm", line 72: error #20: identifier "There" is undefined "..\F2806x_usDelay.asm", line 72: error #66: expected a ";" "..\F2806x_usDelay.asm", line 73: error #20: identifier "takes" is undefined "..\F2806x_usDelay.asm", line 73: error #66: expected a ";" "..\F2806x_usDelay.asm", line 74: error #20: identifier "the" is undefined "..\F2806x_usDelay.asm", line 74: error #66: expected a ";" "..\F2806x_usDelay.asm", line 75: error #78-D: this declaration has no storage class or type specifier "..\F2806x_usDelay.asm", line 75: error #20: identifier "LoopCount" is undefined "..\F2806x_usDelay.asm", line 76: error #78-D: this declaration has no storage class or type specifier "..\F2806x_usDelay.asm", line 76: error #28: expression must have a constant value >> Compilation failure "..\F2806x_usDelay.asm", line 77: error #20: identifier "The" is undefined "..\F2806x_usDelay.asm", line 77: error #66: expected a ";" "..\F2806x_usDelay.asm", line 79: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 80: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 81: warning #383-D: extra ";" ignored 16 errors detected in the compilation of "../4087.F2806x_Gpio.c". gmake: *** [4087.F2806x_Gpio.obj] Error 1 'Building file: ../F2806x_GlobalVariableDefs.c' 'Invoking: C2000 Compiler' "c:/ti/ccsv6/tools/compiler/c2000_6.2.5/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --include_path="c:/ti/ccsv6/tools/compiler/c2000_6.2.5/include" -g --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="F2806x_GlobalVariableDefs.pp" "../F2806x_GlobalVariableDefs.c" 'Finished building: ../F2806x_GlobalVariableDefs.c' ' ' 'Building file: ../F2806x_usDelay.asm' 'Invoking: C2000 Compiler' "c:/ti/ccsv6/tools/compiler/c2000_6.2.5/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --include_path="c:/ti/ccsv6/tools/compiler/c2000_6.2.5/include" -g --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="F2806x_usDelay.pp" "../F2806x_usDelay.asm" 'Finished building: ../F2806x_usDelay.asm' ' ' 'Building file: ../main.c' 'Invoking: C2000 Compiler' "c:/ti/ccsv6/tools/compiler/c2000_6.2.5/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --include_path="c:/ti/ccsv6/tools/compiler/c2000_6.2.5/include" -g --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="main.pp" "../main.c" "..\F2806x_usDelay.asm", line 1: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 2: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 3: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 4: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 5: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 6: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 7: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 8: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 9: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 10: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 11: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 12: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 13: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 14: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 15: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 16: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 17: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 18: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 19: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 20: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 21: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 22: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 23: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 24: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 25: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 26: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 27: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 28: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 29: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 30: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 31: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 32: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 33: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 34: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 35: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 36: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 37: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 38: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 39: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 40: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 41: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 42: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 43: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 44: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 45: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 46: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 47: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 48: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 49: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 50: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 51: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 52: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 53: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 54: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 55: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 57: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 58: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 59: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 60: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 61: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 62: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 63: error #171: expected a declaration "..\F2806x_usDelay.asm", line 68: error #10: "#" not expected here "..\F2806x_usDelay.asm", line 69: warning #12-D: parsing restarts here after previous syntax error "..\F2806x_usDelay.asm", line 69: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 69: error #78-D: this declaration has no storage class or type specifier "..\F2806x_usDelay.asm", line 69: error #66: expected a ";" "..\F2806x_usDelay.asm", line 72: warning #12-D: parsing restarts here after previous syntax error "..\F2806x_usDelay.asm", line 72: error #20: identifier "There" is undefined "..\F2806x_usDelay.asm", line 72: error #66: expected a ";" "..\F2806x_usDelay.asm", line 73: error #20: identifier "takes" is undefined "..\F2806x_usDelay.asm", line 73: error #66: expected a ";" "..\F2806x_usDelay.asm", line 74: error #20: identifier "the" is undefined "..\F2806x_usDelay.asm", line 74: error #66: expected a ";" "..\F2806x_usDelay.asm", line 75: error #78-D: this declaration has no storage class or type specifier "..\F2806x_usDelay.asm", line 75: error #20: identifier "LoopCount" is undefined "..\F2806x_usDelay.asm", line 76: error #78-D: this declaration has no storage class or type specifier "..\F2806x_usDelay.asm", line 76: error #28: expression must have a constant value "..\F2806x_usDelay.asm", line 77: error #20: identifier "The" is undefined "..\F2806x_usDelay.asm", line 77: error #66: expected a ";" "..\F2806x_usDelay.asm", line 79: warning #383-D: extra ";" ignored "..\F2806x_usDelay.asm", line 80: warning #383-D: extra ";" ignored >> Compilation failure "..\F2806x_usDelay.asm", line 81: warning #383-D: extra ";" ignored 16 errors detected in the compilation of "../main.c". gmake: *** [main.obj] Error 1 gmake: Target `all' not remade because of errors. **** Build Finished ****
Based upon the Console output, CCS is correctly building F2806x_usDelay.asm as a standalone assembler source file:
Aron Koscho said:'Building file: ../F2806x_usDelay.asm' 'Invoking: C2000 Compiler' "c:/ti/ccsv6/tools/compiler/c2000_6.2.5/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --include_path="c:/ti/ccsv6/tools/compiler/c2000_6.2.5/include" -g --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="F2806x_usDelay.pp" "../F2806x_usDelay.asm" 'Finished building: ../F2806x_usDelay.asm'
However, the problem appears to be that 4087.F2806x_Gpio.c and main.c are still #including 2806x_usDelay.asm since attempting to build those source files results in:
Aron Koscho said:'Building file: ../4087.F2806x_Gpio.c' 'Invoking: C2000 Compiler' "c:/ti/ccsv6/tools/compiler/c2000_6.2.5/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --include_path="c:/ti/ccsv6/tools/compiler/c2000_6.2.5/include" -g --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="4087.F2806x_Gpio.pp" "../4087.F2806x_Gpio.c" "..\F2806x_usDelay.asm", line 1: warning #383-D: extra ";" ignored
Aron Koscho said:'Building file: ../main.c' 'Invoking: C2000 Compiler' "c:/ti/ccsv6/tools/compiler/c2000_6.2.5/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --include_path="c:/ti/ccsv6/tools/compiler/c2000_6.2.5/include" -g --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="main.pp" "../main.c" "..\F2806x_usDelay.asm", line 1: warning #383-D: extra ";" ignored
Can you try removing any #include of F2806x_usDelay.asm from 4087.F2806x_Gpio.c and main. (or from anyside any .c file they include) and see if that fixes the errors.
Thanks Chester. Commenting it out of F2806x_Examples.h fixed the problem. Interestingly, it also appeared to have no affect on the DELAY_US function.