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.

CCS V6 SEARCH OPTION IN WHOLE PROJECT

Hello All,

                   Am working on OMAPL137 and am using CCS V6.  So, i wanted to search a register name in the  entire project and give me results. But, am not able to find the search option for all the files included in my project. Am finding option to search only in file. So, can anyone please let me know the search option in the whole project??

Also, i have attached the file where am able to find the search option to find register name / variable name for only file in the entire project. But, i want to find the search option to find register name / variable name   in all the files of the entire project.

Waiting for your valuable inputs at the earliest.

Thanks & Regards

Naveen Chandra

  • Hi,

    Select the string that need to search, then do right click -> Search text option -> project or workspace

  • Hi Titus,
    Thanks for your quick reply. Your answer gave me an idea to search the used variables. But, i want to search it manually. Suppose i have a register name 'Y' which is available in the datasheet. Also, i want to check the same register name 'Y' in my project(in all the files) whether it is available or not???

    Your inputs willbe helpful.

    To be very clear about my requirement.

    Am using OMAPL137 where am making use only my DSP core and disabling my ARM9 core.As am using OMAPL137 in my project which does not have an internal flash memory. This external flash memory device is used to store my ELF or hex file or image file. So, am using an external SPI flash to dump my Image file. Then my DSP will transfer the image file contents to SDRAM while execution starts. So, i have the DSP UBL code with me but, am not able to find the EMIFB Base Controller Registers list in my project. !! So, where will i find this information in the project. ??

    Waiting for your reply at the earliest.!!

    Thanks & Regards
    Naveen Chandra
  • Hi Naveen,

    Thanks for your quick reply. Your answer gave me an idea to search the used variables. But, i want to search it manually. Suppose i have a register name 'Y' which is available in the datasheet. Also, i want to check the same register name 'Y' in my project(in all the files) whether it is available or not???
    As Titus suggested, able to find out the text that you are searching ?
    You may not find the exact name in project code as used in data sheet since developer might have used different name for some meaning in register and variable.
    So try to find out with some different names.
    Also, you can import the dependent projects & libraies and do search with option search in "workspace"
    ----------------------
  • Hi Naveen,


    Am using OMAPL137 where am making use only my DSP core and disabling my ARM9 core.As am using OMAPL137 in my project which does not have an internal flash memory. This external flash memory device is used to store my ELF or hex file or image file. So, am using an external SPI flash to dump my Image file. Then my DSP will transfer the image file contents to SDRAM while execution starts. So, i have the DSP UBL code with me but, am not able to find the EMIFB Base Controller Registers list in my project. !! So, where will i find this information in the project. ??

    Which project/example are you using ?

     

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

  • Hi Shankari,

                                Am using OMAPL137-ARM-LED example code.  I have downloaded the project folder using in the link mentioned below. Am using only the DSP folder  inside that folder.

       processors.wiki.ti.com/.../Boot_Images_for_OMAP-L137

    Thanks & Regards

    Naveen Chandra

  • Hi Naveen,Thanks.
    Actually that code is not running on SDRAM so, EMIFB initialization was not done in that code. It is using internal memories.
    You can also load the code and run on the SDRAM (EMIFB) and initilization can be done through gel file.
    But when you run the code stand-alone (from flash i.e without emulator) you may need EMIFB initalization in DSP UBL code which should has EMIFB init code & runs on internal RAM for running application code on EMIFB SDRA<.
    You can also configure and initialize the EMIFB SDRAM through AISGen tool.
    ----------------------
  • Hi Shankari,
    Thanks for the input. I just want to tell you my understanding regarding the DSP UBL. So, please correct me if am wrong ok.

    AISgen tool acts as an interface between CCS studio V6 and external SPI Flash.!!! Am i right??Waiting for your input!!

    Step 1 : Build the DSP code by using main.c , device.c and device.h!!
    Step 2: After building compiler will give me file_name.out!!
    Step 3: Load this file_name.out into the AISgen tool in the appication column by selecting the file path.
    Step 4: In the files option select configure for EVM and then the AISgen tool genrates .bin file.
    Step 5: Load this .bin file to UartHost tool which will generate image file.
    step 6: Load this image file to SDRAM using the emulator.

    This is my understanding .. Please correct me if am wrong!! Waiting for your input!!

    So, now i have couple of questions for you.

    1. How do i do EMIFB initilization through gel file?? Please let me know the steps..!! what exactly do you mean by gel file??
    2. How do i configure and initialize the EMIFB SDRAM through AISGen tool??? Please let me know the steps. Or any link which will understand this very well.


    Waiting for your valuable inputs as early as possible.

    Thanks & Regards
    Naveen Chandra
  • Hi Shankari,
    I hope my questions are clear to you. Can i manually configure and initialize EMIFB settings?? Also, how do i make use of this gel file.

    Please give me your inputs as soon as possible. As your inputs will be really helpfull for the development of my project.

    Thanks & Regards
    Naveen Chandra
  • Hi Naveen,


     AISgen tool acts as an interface between CCS studio V6 and external SPI Flash.!!!


     
     No, AISgen tool is used to create boot images for flash based devices.
     Also it would do initialization before your application starts.
     

    Step 1 : Build the DSP code by using main.c , device.c and device.h!!
    Step 2: After building compiler will give me file_name.out!!
    Step 3: Load this file_name.out into the AISgen tool in the appication column by selecting the file path.
    Step 4: In the files option select configure for EVM and then the AISgen tool genrates .bin file.
    Step 5: Load this .bin file to UartHost tool which will generate image file.
    step 6: Load this image file to SDRAM using the emulator.

    How do you want to boot ?
    Boot from flash (NAND or NOR or SPI) or UART boot ?

    Upto step4, its fine.
    Then you have to flash this *.bin to flash (NAND or NOR or SPI) as per your settings used in AISgen tool.
    After that set correspond boot mode to  boot your application.


     1. How do i do EMIFB initilization through gel file?? Please let me know the steps..!! what exactly do you mean by gel file??
      I hope my questions are clear to you. Can i manually configure and initialize EMIFB settings?? Also, how do i make use of this gel file.

    If you are using EVM board then you no need to worry about anything, by defaut EMIFB initialization had been done in gel file.
    Please refer to the gel file "Setup_EMIFB();"
    If you want to boot from SDRAM (EMIFB) just configure the linker command file (*.cmd) of that DSP project.

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

  • Hi Shankari,
    Thanks for your quick response. I have my OMAPL137 in which am using only the DSP core. Apart from this i have externally
    interfaced SPI flash device which has 4MB memory and also i have used external SDRAM .

    I want to flash the image file in my SPI flash memory. SPI flash memory is my external device.

    How do you want to boot ?
    I want to boot it from my SDRAM which is also a external device.

    Also, am not using EVM board. Am making a custom board for my application!!

    Please refer to the gel file "Setup_EMIFB();"
    where do i find this function call in my project?? Where do i find this content??

    If you want to boot from SDRAM (EMIFB) just configure the linker command file (*.cmd) of that DSP project!!
    how do i configure the linker command file(*.cmd)??? Where it will be available.


    Waiting for reply at the earliest!!!

    Thanks & Regards
    Naveen Chandra
  • Hi Shankari,
    I hope my questions are clear to you. Please correct me if am wrong or let me know if i have missed out any details.

    Waiting for your reply at the earliest!!

    Thanks & Regards
    Naveen Chandra
  • Hi Naveen,

    I want to flash the image file in my SPI flash memory. SPI flash memory is my external device.

    How do you want to boot ?

    I want to boot it from my SDRAM which is also a external device.

    You want to boot from SPI and should run on SDRAM right ?

    If you want to boot from SDRAM (EMIFB) just configure the linker command file (*.cmd) of that DSP project!!

    how do i configure the linker command file(*.cmd)??? Where it will be available.

    You have linker command file in your project which has .cmd extension, it will declare the code where to  execute whether its from SDRAM or internal RAM (L2RAM, shared RAM etc.,)

    Ex:

    The following linker command file (*.cmd) tells to compiler that the code going to run on internal L2 RAM.

    -lrts64plus.lib
    
    -stack          0x00001000 /* Stack Size */  
    
    MEMORY
    {
    	L2RAM		org=0x80010000 len=0x00010000 /* L2 RAM/Cache */
    }
    
    SECTIONS
    {
    	.text       > L2RAM
    	.const      > L2RAM
    	.bss        > L2RAM
    	.far		> L2RAM
    	.switch		> L2RAM
    	.stack      > L2RAM
    	.data       > L2RAM
    	.cinit		> L2RAM
    	.sysmem		> L2RAM
    	.cio		> L2RAM
    }

    Ex:

    The following linker command file (*.cmd) tells to compiler that the code going to run on external RAM (SDRAM).

    -lrts64plus.lib
    
    -stack          0x00001000 /* Stack Size */  
    
    MEMORY
    {
    	L2RAM		org=0x80010000 len=0x00010000 /* L2 RAM/Cache */
        EMIFBSDRAM   org = 0xC0000000  len = 0x10000000     /* 256MB SDRAM Data */                   
    
    }
    
    SECTIONS
    {
    	.text       > EMIFBSDRAM
    	.const      > EMIFBSDRAM
    	.bss        > EMIFBSDRAM
    	.far		> EMIFBSDRAM
    	.switch		> EMIFBSDRAM
    	.stack      > EMIFBSDRAM
    	.data       > EMIFBSDRAM
    	.cinit		> EMIFBSDRAM
    	.sysmem		> EMIFBSDRAM
    	.cio		> EMIFBSDRAM
    }


    Please refer to the gel file "Setup_EMIFB();"
    where do i find this function call in my project?? Where do i find this content??

    You don't find it in your project, it will be available in gel file which you are using before loading the program through emulator.

    C:\ti\ccsv5\ccs_base\emulation\boards\evmomapl137\gel\evmomapl137_dsp.gel

    I hope this helps.

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

  • Hi Shankari,
    Question : You want to boot from SPI and should run on SDRAM right ?
    Answer : Your 100% right.

    AS4C16M16SA-6TAN (256Mb / 16M x 16 bit Synchronous DRAM (SDRAM). This is the part number used for the external SDRAM in my project.!!!!

    M25P32-VMW3TGB (M25P32 32Mb 3V NOR Serial Flash). This is the part number used for the external SPI Flash deivce.


    This is the file which i have found inside that OMAPL137-ARM-LED folder. I mean inside the DSP folder. I got this file when i included my device.c and device.h file into the CCS V6 workspace by creating the project name.


    MEMORY
    {
    #ifdef DSP_CORE /* DSP exclusive memory regions */

    DSPL2ROM o = 0x00700000 l = 0x00100000 /* 1MB L2 DSP local ROM */
    DSPL2RAM o = 0x00800000 l = 0x00040000 /* 256kB L2 DSP local RAM */
    DSPL1PRAM o = 0x00E00000 l = 0x00008000 /* 32kB L1 DSP local Program RAM */
    DSPL1DRAM o = 0x00F00000 l = 0x00008000 /* 32kB L1 DSP local Data RAM */

    #endif

    SHDSPL2ROM o = 0x11700000 l = 0x00100000 /* 1MB L2 Shared Internal ROM */
    SHDSPL2RAM o = 0x11800000 l = 0x00040000 /* 256kB L2 Shared Internal RAM */
    SHDSPL1PRAM o = 0x11E00000 l = 0x00008000 /* 32kB L1 Shared Internal Program RAM */
    SHDSPL1DRAM o = 0x11F00000 l = 0x00008000 /* 32kB L1 Shared Internal Data RAM */
    EMIFASDRAM o = 0x40000000 l = 0x08000000 /* 64MB SDRAM Data (CS0) */
    EMIFACS2 o = 0x60000000 l = 0x02000000 /* 32MB Async Data (CS2) */
    EMIFACS3 o = 0x62000000 l = 0x02000000 /* 32MB Async Data (CS3) */
    EMIFACS4 o = 0x64000000 l = 0x02000000 /* 32MB Async Data (CS4) */
    EMIFACS5 o = 0x66000000 l = 0x02000000 /* 32MB Async Data (CS5) */
    SHRAM o = 0x80000000 l = 0x00020000 /* 128kB Shared RAM */



    EMIFBSDRAM o = 0xC0000000 l = 0x10000000 /* 256MB SDRAM Data */ // I feel i will interested in this line as it says about that the start and end address of the external SDRAM. And ur also talking the about the same thing




    #ifndef DSP_CORE /* ARM exclusive memory regions */

    ARMROM o = 0xFFFD0000 l = 0x00010000 /* 64kB ARM local ROM */
    ARMRAM o = 0xFFFF0000 l = 0x00002000 /* 8kB ARM local RAM */

    #endif
    }

    SECTIONS
    {
    .text > SHRAM
    .stack > SHRAM
    .bss > SHRAM
    .cio > SHRAM
    .const > SHRAM
    .data > SHRAM
    .switch > SHRAM
    .sysmem > SHRAM
    .far > SHRAM
    .args > SHRAM
    .ppinfo > SHRAM
    .ppdata > SHRAM

    /* TI-ABI or COFF sections */
    .pinit > SHRAM
    .cinit > SHRAM

    /* EABI sections */
    .binit > SHRAM
    .init_array > SHRAM
    .neardata > SHRAM
    .fardata > SHRAM
    .rodata > SHRAM
    .c6xabi.exidx > SHRAM
    .c6xabi.extab > SHRAM
    }




    You don't find it in your project, it will be available in gel file which you are using before loading the program through emulator.

    C:\ti\ccsv5\ccs_base\emulation\boards\evmomapl137\gel\evmomapl137_dsp.gel

    I hope this helps.



    I hope you remember as per our previous conversation. You told me that there are no sample programs for OMAPL137. I mean the starter ware is not available for OMAPL137. So, can i port OMAPL137 sample programs to my target device(OMAPL137)????

    Also, i found this below path on system!! Will this be hepful to me??

    C:\ti\ccsv6\ccs_base\emulation\boards\evmomapl138\gel


    Waiting for your reply at the earliest!!


    Thanks & Regards
    Naveen Chandra
  • Hi Shankari,
    Am waiting for your inputs for my above queries. Also, i wanted to know whether we can port SYS/BIOS for DSP core of OMAPL137 and linux os for ARM9 core?? As i was going through the datasheet it says DSP/BIOS will support for OMAPL137 and SYS/BIOS is the new version of DSP/BIOS.

    Waiting for your inputs regarding the same as early as possible!!

    Thanks & Regards
    Naveen Chandra
  • Hi Naveen,

    Naveen said:
    Am waiting for your inputs for my above queries. Also, i wanted to know whether we can port SYS/BIOS for DSP core of OMAPL137 and linux os for ARM9 core?? As i was going through the datasheet it says DSP/BIOS will support for OMAPL137 and SYS/BIOS is the new version of DSP/BIOS.

    Yes, your understanding is right here.Yes, you can run SYS/BIOS on DSP core and Linux on ARM core.

    I have a feeling that you are repeatedly asking multiple questions on a same thread, which will get defocus on your orignial question.

    For OMAPL137, there is a QuickStartOMAPL1x rCSL package. There is a detailed TI WIKI for it: , Please go through it completely.

    Open up a new query as appending questions on the same thread will get least priority compared to new threads.

    ----

  • Hi Shankari,
    Thanks for your input. Also, i will make sure that i will ask single question on single thread.

    Thanks & Regards
    Naveen Chandra