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.

C2000 Renewable Energy Kit - Basic Project Setup

Hi,

I'm using the Renewable Energy Kit with an TMS320 F28035 DSP and the Blackhawk USB2000 Controller. I wanted to built a basic setup with an emtpy main( ) routine, just to get a starting bundle with all important files.

I used the 2803x C/C++ Header Files and Peripheral Examples Quick Start document and did the setup as told.

Included are the files shown in this picture

I'm not sure about which cmd file I should use, because there are the F28035_lnk.cmd and 28035_RAM_lnk.cmd files

At the moment I get this console output:

 

**** Build of configuration Debug for project Basis ****

D:\Programme\Texas Instruments\ccsv4\utils\gmake\gmake -k all
'Building target: Basis.out'
'Invoking: C2000 Linker'
"D:/Programme/Texas Instruments/ccsv4/tools/compiler/c2000/bin/cl2000" -z -m"Basis.map" --warn_sections -i"D:/Programme/Texas Instruments/ccsv4/tools/compiler/c2000/lib" -i"D:/Programme/Texas Instruments/ccsv4/tools/compiler/c2000/include" --reread_libs --rom_model -o "Basis.out"  "./basis_main.obj" "./DSP2803x_GlobalVariableDefs.obj" -l"rts2800_ml.lib" "../28035_RAM_lnk.cmd" "../DSP2803x_Headers_BIOS.cmd"
<Linking>

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
warning: creating ".stack" section with default size of 0x400; use the -stack
   option to change the default size
"../28035_RAM_lnk.cmd", line 118: error: run placement fails for object
   ".stack", size 0x400 (page 1).  Available ranges:
   RAMM1        size: 0x380        unused: 0x380        max hole: 0x380    
"../DSP2803x_Headers_BIOS.cmd", line 101: warning: memory range not found:
   PIEVECT on page 1
"../DSP2803x_Headers_BIOS.cmd", line 101: error: run placement fails for object
   "UNION_1", size 0x100 (page 1)
build.c:1949:internal fatal error #10251:
   ("EmuKeyVar:DSP2803x_GlobalVariableDefs.obj")

INTERNAL ERROR: D:\Programme\Texas Instruments\ccsv4\tools\compiler\c2000\bin\lnk2000.exe aborted


This is a serious problem.  Please contact Customer
Support with this message and a copy of the input file
and help us to continue to make the tools more robust.


>> Compilation failure
D:\Programme\Texas Instruments\ccsv4\utils\gmake\gmake: *** [Basis.out] Error 1
D:\Programme\Texas Instruments\ccsv4\utils\gmake\gmake: Target `all' not remade because of errors.
Build complete for project Basis

  • I used the non bios header now and got this console output.

    <Linking>
    warning: creating ".stack" section with default size of 0x400; use the -stack
       option to change the default size
    "../28035_RAM_lnk.cmd", line 118: error: run placement fails for object
       ".stack", size 0x400 (page 1).  Available ranges:
       RAMM1        size: 0x380        unused: 0x380        max hole: 0x380    
    error: errors encountered during linking; "Basic.out" not built

    >> Compilation failure
    D:\Programme\Texas Instruments\ccsv4\utils\gmake\gmake: *** [Basic.out] Error 1
    D:\Programme\Texas Instruments\ccsv4\utils\gmake\gmake: Target `all' not remade because of errors.
    Build complete for project Basic

     

    where can i get informations about editing the size and possible problems.

    Pat

  • Hi,

    I just set the length of RAMM1 from 0x380 to 0x400 (I had a look, if 0x380 to 0x400 wasn't in use before)

    and I set the stack size under Project - Properties - Build Settings - C2000 Linker - Basic Options -> Stack to 400 

     

    Is this the right way as I did? Or could I get any problems caused by the two changes mentioned above during my project?