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.

[TDA4M] memory map & EMIF Tool

Other Parts Discussed in Thread: TDA2

Hi

I have two questions.

I am preparing for a TDA4M bringup. We use RTOS and Linux. We probably to prepare two OS version(RTOS and RTOS-Linux)

First, I can't find the location of the memory map source. In TDA2, we modified the *.xs files in the following location

vision_sdk/apps/build/tda2px/mem_segment_definition_bios.xs --> RTOS

vision_sdk/apps/build/tda2px/mem_segment_definition_linux.xs --> Linux

Please provide the location of the same file as the *.xs files in the TDA4 source.
Second, I want to get the EMIF TOOL of TDA4.(DDR)
We are designing a customer board.
So, I want to receive the TDA4 EMIF tool. I wonder if in the future provide guidance that is provided When will be.
Thanks
  • hello,

    .xs file is no longer supported.

    A equivalent method is to modify in a .py file, located here

    vision_apps/apps/basic_demos/app_tirtos/tirtos_linux/gen_linker_mem_map.py

    To use this you need to do below once,

    1.
    install python3 and pip3.
    use 'sudo apt install python3-pip' to install pip, see google on how to install python3, mostly likely python3 should already be installed.

    2.
    cd vision_apps/tools/PyTI_PSDK_RTOS

    pip install -e .

    You should see something like below,
    kedar@ubuntu:/ti/j7presi/workarea/vision_apps/tools/PyTI_PSDK_RTOS$ pip3 install -e .
    Obtaining file:///ti/j7presi/workarea/vision_apps/tools/PyTI_PSDK_RTOS
    Installing collected packages: ti-psdk-rtos-tools
      Running setup.py develop for ti-psdk-rtos-tools
    Successfully installed ti-psdk-rtos-tools

    Now goto below folder and run he python file,

    cd vision_apps/apps/basic_demos/app_tirtos/tirtos_linux

    ./gen_linker_mem_map.py (you may need to edit the first line of this file depending on the python version installed on your machine)

    This generates linker command files, .h files and Linux dts snippets based on memory map defined in gen_linker_mem_map.py

    It also outputs a system_memory_map.html in the same folder, open this file to see the memory map.

    You can update the .py files and generate a new memory map.

    After this step, some manual steps are still needed to copy the dts file snippets to Linux kernel dts files.

    Also some tweaking of MCU2-1 memory map is needed in the file vision_apps/apps/basic_demos/app_tirtos/tirtos_linux/mcu2_1/r5_mpu.xs

    See this note in above file /* make APP_LOG_MEM_ADDR, TIOVX_OBJ_DESC_MEM_ADDR, IPC_VRING_MEM_ADDR as non-cache */

    We will document this in detail in next release update.

    How much DDR memory will be available in your system ? We assume atleast 2GB DDR is available, if you have 2GB DDR then no need to modify memory map.

    regards
    Kedar

  • Kyungtae,


    I will contact you via the private message tab to help with your EMIF tool question.

    Thanks,

    Kyle

  • Hello,

    Thank you for your answer.

    I check the .py file and find the memory file. I will test It.

    We will use 4GiB as the reference schematic.

    regards

    kyungtae