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.

eZdsp 28335 compilation error

Dear All,

Today, I have joined this forum to get participants active support. I am working on eZdspF28335 board and I am coming across following linking error:

---------------------------------------------------------

"../28335_RAM_lnk.cmd", line 125: error: placement fails for object ".text",

size 0x1386 (page 0). Available ranges:

RAML1 size: 0x1000 unused: 0x1000 max hole: 0x1000

error: errors encountered during linking; "test.out" not built

-------------------------------------------------------------------------

I thought it could be demo version compiler problem (compiler received with eZdspF28335) so I have downloaded CCS V4.0 with Days restriction instead of code restriction.  but still the same error occurs.

Could you please guide for the same as my work is stalled due to this problem?

Thanks in advance.

Tushar

 

 

  • Tushar,

    Which project are you trying to build? Is it a "Hello World" or similar project with printfs? If so this error is expected because the default linker command file 28335_RAM_lnk.cmd does not contain enough memory in RAM that is required when linking C I/O routines such as printf. Please refer to: http://tiexpressdsp.com/index.php/C2000_Getting_Started_with_Code_Composer_Studio_v4#Errors_with_.22hello_world.22_project_using_F281x_Devices

    It is written for F281x devices but the same applies to F2833x.

  • Aarati,

    We are working on CCSv4.0.1. We have developed our code for LCD and keyboard  and trying to download  it into SARAM where it was giving stated error.Earlier linker fiile used is 28335_RAM_lnk.cmd we used this file from (Sprc530_c2823X_header) which we downloaded from the TI website. Only LCD driver was working fine. we are able to run code from RAM. As our code size increase we are gtting the above error. The .out file is 134KB.

     

    We changed the linker file  to (F28335.cmd) and the code gets build properly. But F28335.cmd file is for boot from flash.  we used  this from((Sprc530_c2823X_header)Now code is getting build. After connecting ezDSP board, it showing that its flash is erasing and loading but we can't see run option in the CCS.  connect and disconnect option is also not enabled.In tools, On chip flash options are disabled.

                                   So please let us know how to download code into flash and run it?

    And if  i want to run code form RAM which cmd file should i use.

     

  • Tushar,

    You are getting the error with the 28335_RAM_lnk.cmd file because your code size is too large for the pre-defined memory section for code (.text).

    In the 28335_RAM_lnk.cmd file notice:

    Under MEMORY:

      RAML1      : origin = 0x009000, length = 0x001000

    Under SECTIONS:

       .text            : > RAML1,     PAGE = 0   // this means your code is allocated to RAML1 memory section (0x1000 words)

    To fix this, you can define a LARGER memory block:

    1. Under MEMORY, combine RAML1 and RAML2 into a single block "RAML1L2" of size 0x2000 (or whatever you want), and delete or comment out "RAML1" and "RAML2" individual definitions"

      RAML1L2      : origin = 0x008000, length = 0x002000

    2. Under SECTIONS, for .text, change allocation to RAML1L2 instead of RAML1:

       .text            : > RAML1L2,     PAGE = 0   // this means your code is allocated to RAML1L2 memory section (0x2000 words)

    ---

    As for your second question -to see connect/disconnect options in CCSv4, you have to be in the Debug Perspective. (Top right corner of the screen, there should be a C/C++ tab and a Debug tab). In CCSv4, if you have a flash project (i.e. with F28335.cmd - and see the SPRC530 quickstart readme to see how to convert from RAM to flash project), whenever you "Load" code, it automatically flashes it into your device. (THere is no longer a separate flash plugin for programming your code - when you are debugging code and it is loaded, flashing automatically happens).

    Please see the CCSv4 Getting Started WIki for more information on CCSV4 questions with C2000 devices: http://tiexpressdsp.com/index.php/C2000_Getting_Started_with_Code_Composer_Studio_v4