error #10234-D: unresolved symbols remain

Hi there,

I am trying to run a very basic program (LED blinck) on VisSim but I am facing an error while compiling the code. Could someone figure out what is the reason for this error???



F280Xcl.bat HelloWorld 1024 512 so F28027F sr 0

C:\VisSim90\cg>set USER_OBJS=

C:\VisSim90\cg>set LCF=so

C:\VisSim90\cg>set MTGT=F28027F

C:\VisSim90\cg>set FPU=

C:\VisSim90\cg>if "so" == "sfo" set LCF=f

C:\VisSim90\cg>if "so" == "fo" set LCF=f

C:\VisSim90\cg>if "so" == "o" set LCF=""

C:\VisSim90\cg>if "so" == "so" set LCF=""

C:\VisSim90\cg>if "280" == "283" set FPU=u

C:\VisSim90\cg>if "2802" == "28M3" set FPU=u

C:\VisSim90\cg>if "F2802" == "F2806" ( if not "F28027F" == "F2806" set FPU=u if "F28027F" == "F28069M" set FPU= )

C:\VisSim90\cg>if "F28027F" == "F28015" set MTGT=F2801

C:\VisSim90\cg>if "F28027F" == "F28016" set MTGT=F2801

C:\VisSim90\cg>dsp28xcl F280X HelloWorld 1024 512 28 "" sr 0

C:\VisSim90\cg>rem Copyright (c) 1989-2014 Visual Solutions Inc

C:\VisSim90\cg>rem F280X=full target name,HelloWorld=file path,1024=heap,512=sta ck,28=CPU class,""=app type(standalone v debug,flash v RAM),sr=[sr],0=Opt level

C:\VisSim90\cg>call setdsp2x

C:\VisSim90\cg>Rem set path to TI C Compiler

C:\VisSim90\cg>if "C:\VisSim90" == "" set VS_DIR=\vissim90

C:\VisSim90\cg>rem set compiler path

C:\VisSim90\cg>if not "" == "" set C_DIR=

C:\VisSim90\cg>if exist .\dosrun24.bat call dosrun24.bat

C:\VisSim90\cg>set CG5DIR=C:\CCStudio_v3.3\C2400\cgtools

C:\VisSim90\cg>if EXIST "C:\CCStudio_v3.3\C2400\cgtools" set PATH="C:\CCStudio_v 3.3\C2400\cgtools\bin\";C:\Program Files (x86)\Qucs\bin;C:\ProgramData\Oracle\Ja va\javapath;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Progr am Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C: \Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C: \Program Files (x86)\Windows Live\Shared;C:\Program Files\Java\jdk1.7.0_79\bin;C :\Files_for_Qt\Android\android-SDK\tools;C:\Files_for_Qt\Android\android-SDK\pla tform-tools;C:\Qt\5.4\mingw491_32\bin;C:\Apps\Skype\Phone\;C:\Apps\MATLAB_x64\R2 013a\runtime\win64;C:\Apps\MATLAB_x64\R2013a\bin;C:\texlive\2015\bin\win32

C:\VisSim90\cg>if EXIST "C:\CCStudio_v3.3\C2400\cgtools" SET C2400_C_DIR=C:\CCSt udio_v3.3\C2400\cgtools\lib;C:\CCStudio_v3.3\C2400\cgtools\include

C:\VisSim90\cg>if EXIST "C:\CCStudio_v3.3\C2400\cgtools" SET DSP_C_DIR=C:\CCStud io_v3.3\C2400\cgtools\lib;C:\CCStudio_v3.3\C2400\cgtools\include

C:\VisSim90\cg>if exist .\dosrun28.bat call dosrun28.bat

C:\VisSim90\cg>rem set CG5DIR=C:\TI\ccsv5\tools\compiler\c2000_6.2.4

C:\VisSim90\cg>set CG5DIR=C:\ti\ccsv6\tools\compiler\ti-cgt-c2000_15.12.1.LTS

C:\VisSim90\cg>if EXIST "C:\ti\ccsv6\tools\compiler\ti-cgt-c2000_15.12.1.LTS" se t PATH="C:\ti\ccsv6\tools\compiler\ti-cgt-c2000_15.12.1.LTS\bin\";C:\Program Fil es (x86)\Qucs\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common Fi les\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\W indows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shar ed;C:\Program Files\Java\jdk1.7.0_79\bin;C:\Files_for_Qt\Android\android-SDK\too ls;C:\Files_for_Qt\Android\android-SDK\platform-tools;C:\Qt\5.4\mingw491_32\bin; C:\Apps\Skype\Phone\;C:\Apps\MATLAB_x64\R2013a\runtime\win64;C:\Apps\MATLAB_x64\ R2013a\bin;C:\texlive\2015\bin\win32

C:\VisSim90\cg>if EXIST "C:\ti\ccsv6\tools\compiler\ti-cgt-c2000_15.12.1.LTS" SE T C2000_C_DIR=C:\ti\ccsv6\tools\compiler\ti-cgt-c2000_15.12.1.LTS\lib;C:\ti\ccsv 6\tools\compiler\ti-cgt-c2000_15.12.1.LTS\include

C:\VisSim90\cg>set TGT=F280X

C:\VisSim90\cg>set FILE=HelloWorld

C:\VisSim90\cg>set CPU=28

C:\VisSim90\cg>if not "28" == "" set CPU=28

C:\VisSim90\cg>set LCF=""

C:\VisSim90\cg>set SMALL_RAM=

C:\VisSim90\cg>if not "sr" == "-" set SMALL_RAM=sr

C:\VisSim90\cg>set OPT=0

C:\VisSim90\cg>if not "0" == "" set OPT=0

C:\VisSim90\cg>if """" == "sfo" set LCF=fo

C:\VisSim90\cg>if """" == "sf" set LCF=f

C:\VisSim90\cg>if """" == "so" set LCF=o

C:\VisSim90\cg>if """" == "s" set LCF=

C:\VisSim90\cg>if "F28027F" == "" set MTGT=F280X

C:\VisSim90\cg>if "F28027F" == "F28023" set MTGT=F28027

C:\VisSim90\cg>if "F28027F" == "F28025" set MTGT=F28027

C:\VisSim90\cg>if "F28027F" == "F28022" set MTGT=F28026

C:\VisSim90\cg>if "F28027F" == "F28024" set MTGT=F28026

C:\VisSim90\cg>if "F28027F" == "F28032" set MTGT=F28027

C:\VisSim90\cg>if "F28027F" == "F28033" set MTGT=F28027

C:\VisSim90\cg>if "F28027F" == "F28034" set MTGT=F28035

C:\VisSim90\cg>if "F28027F" == "F28068" set MTGT=F28069

C:\VisSim90\cg>if "F28027F" == "F28067" set MTGT=F28069

C:\VisSim90\cg>if "F28027F" == "F28064" set MTGT=F28065

C:\VisSim90\cg>set CFLAG=-O0 -pds=112 -pds=377 -pds=179 -pden -D_F28027F_ -g

C:\VisSim90\cg>rem set CFLAG=-pds=112 -pds=377 -pds=179 -pden -D_F28027F_ --symd ebug:none

C:\VisSim90\cg>if "28027" == "28M35" ( set CFLAG=-O0 -pds=112 -pds=377 -pds=179 -pden -D_F28027F_ -g -D_CONCERTO_ set MTGT=F28M35H )

C:\VisSim90\cg>if "28027" == "28M36" ( set CFLAG=-O0 -pds=112 -pds=377 -pds=179 -pden -D_F28027F_ -g -D_CONCERTO_ set MTGT=F28M36P )

C:\VisSim90\cg>if "2802" == "2837" (set CFLAG=-O0 -pds=112 -pds=377 -pds=179 -pd en -D_F28027F_ -g -D_SOPRANO_ ) else if "280" == "283" (set CFLAG=-O0 -pds=11 2 -pds=377 -pds=179 -pden -D_F28027F_ -g -D_DELFINO_ )

C:\VisSim90\cg>if "2802" == "2807" (if not "7F" == "" ( set CFLAG=-O0 -pds=112 -pds=377 -pds=179 -pden -D_F28027F_ -g -D_SOPRANO_ set FPU=u set MTGT=F28075 ) )

C:\VisSim90\cg>if not "" == "" set CFLAG=-O0 -pds=112 -pds=377 -pds=179 -pden -D F28027F -g --float_support=fpu32

C:\VisSim90\cg>if not "sr" == "" set CFLAG=-O0 -pds=112 -pds=377 -pds=179 -pden -D_F28027F_ -g -D_SMALL_RAM

C:\VisSim90\cg>rem set MOTOWAREDIR=.

C:\VisSim90\cg>set CFLAG=-O0 -pds=112 -pds=377 -pds=179 -pden -D_F28027F_ -g -D _SMALL_RAM -iinclude\TIMotorWare

C:\VisSim90\cg>if "F" == "M" ( rem set MOTOWAREDIR=C:\TI\motorware\MotorWare_1_01_00_11 rem -DFLOAT // use to compile 069 with FPU option set CFLAG=-O0 -pds=112 -pds=377 -pds=179 -pden -D_F28027F_ -g -D_SMALL_RAM -ii nclude\TIMotorWare --define=FAST_ROM_V1p6 )

C:\VisSim90\cg>if exist HelloWorld.obj del HelloWorld.obj

C:\VisSim90\cg>cl2000 -O0 -pds=112 -pds=377 -pds=179 -pden -D_F28027F_ -g -D_SM ALL_RAM -iinclude\TIMotorWare -c -fs=tmp -k -ml -mt -v28 -d_DSP -DVERSION_10X=9 0 -d_F28XX_ -d_F280X_ -fsTMP -i"C:\VisSim90"\vsdk\include -i.\include HelloWorld .c "HelloWorld.c", line 18: warning #225-D: function "f280xWriteAnalogVal" declared implicitly

C:\VisSim90\cg>set HEAP=0x400

C:\VisSim90\cg>if not "1024" == "" set HEAP=1024

C:\VisSim90\cg>set STAK=0x400

C:\VisSim90\cg>if not "512" == "" set STAK=512

C:\VisSim90\cg>if not "" == "" set TGT=F280x_fpu

C:\VisSim90\cg>set TGTREGDEF=

C:\VisSim90\cg>if "F280X" == "f28xx" set TGTREGDEF=lib\DSP28_GlobalVariableDefs. obj

C:\VisSim90\cg>rem --diag_suppress=16002 --diag_suppress=16008 --mapfile_content s=sym_defs

C:\VisSim90\cg>lnk2000 --display_error_number --diag_suppress=16008 -c -x -q -m HelloWorld.obj -l lib\ii_F280Xsr.lib -heap 1024 -stack 512 -o HelloWorld.out lib\F28027F""lnk.cmd

undefined first referenced symbol in file --------- ---------------- _f280xWriteAnalogVal HelloWorld.obj

error #10234-D: unresolved symbols remain error #10010: errors encountered during linking; "HelloWorld.out" not built

C:\VisSim90\cg>pause Press any key to continue . . .


Please attach your .vsm file

Please attach your .vsm file you are compiling.

Looking more closely at your

Looking more closely at your DOS log, I notice you are using CCS v3.3. It is quite old now, and VisSim works well with the latest free versions of CCS v6.

After installing CCS, reinstall VisSim so that VisSim can find the new CCS locations.

Reading even deeper into your

Reading even deeper into your script, I see the undefined is "f280xWriteAnalogVal". There is no analog output on most F28 targets, so please remove the analog output block from your diagram. Use a digital output if you want to blink an LED.