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.

Linker command file conflicting with XDC generated file...what to do?

HI


I am trying to specify a linker command file for the C6748 DSP on the lcdk board. I am using the latest RTOS and xdc package etc. However when I specify a linker command file it conflicts with the auto generated linker commands from the package. I am trying to allocate some buffers in L2 Ram on the DSP. Sounded simple enough to me...but I am mistaken.

Can someone please point me to  some documentation on this? Everything is such a mess with the documentation. The linker commands are stuck in an assembly manual which seems to be an out dated way to do with CCS and xgconfig etc.


 The processor is awesome but the tools are so buggy and the documentation is all over the place. I am spending hours trying to find out bits of information.
I think I am about to throw in the towel on this as we will never get the project done on time. TI has created a monster I think and it will take a good year or two to just to sort out the information and have sufficient information to do something meaningful. I spent over a week debugging a buffer problems with edma and asked for support....none mentioned that it could be cache coherence problem as everything is allocated in DDR. Anyway I find this information stuck in the cache manual. This is such an obvious gotcha for newbies and should have been highlighted in other docs. Now I am trying to allocate memory in L2 which should be a simple task. It seems I will have to wade through tons of docs to find out the required information.

Will try another week or so before giving up. I think I am going to an ARM M4 which has got floating point processor in it. Such a shame as I was having high hopes for this DSP :(((

Regards

Manjula

  • Hi,

    I am trying to specify a linker command file for the C6748 DSP on the lcdk board. I am using the latest RTOS and xdc package etc. However when I specify a linker command file it conflicts with the auto generated linker commands from the package.


    For RTOS project, we can allocate memory through "platform" file and linker command file get generated.
    Also you can add one more linker command file manually but that should not be conflict with automated one, to avoid this conflict, edit the RTOS platform file and remove the entry which you are going to use it in manual linker command file.

    Please refer to the following link.

    rtsc.eclipse.org/.../Memory_Management

    BTW, sorry for the inconvenience in documentation.
  • Thank you Stalin,
    I will have a look at the link as well. More useful info. I am having a ball with all the reading :)
    Apparently specifying linker.cmd file is not for the faint hearted!

    I solved this problem another way:

    // data buffer assigned to a section in memory in the c src file
    #pragma DATA_SECTION(rx_buf1, ".i2data");
    #pragma DATA_ALIGN(rx_buf1, 128);
    int rx_buf1[256];

    //new memory section defined in .cfg file (you have to manually do this with an editor)
    Program.sectMap[".i2data"] = new Program.SectionSpec();
    Program.sectMap[".i2data"].loadSegment = "IRAM";

    Thanks and regards

    Manjula