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.

On AM5728, how to run a program on Cortex m4 core

Hi Shiva,

we are using AM572x General purpose EVM and ti-processor-sdk-linux-am57xx-evm-05.01.00.11-Linux-x86 SDK.

We want to run an standalone code on Cortex_M4 IPU inside AM572x processor(I2C code for example), Kindly

1. Let us know to which location inside processor Linux SDK we need to copy our source code in order to compile the source code.

2. what is the procedure to individually compile and build the source code for Cortex_M4 IPU ?

3. Which location inside Processor SDK is the binary/executable file generated?

4. To which location the binary/executable file to be copied in processor SDK so that this file is loaded directly onto Cortex_M4 IPU during Linux boot-up on AM572x EVM?

5. For the same example, how to give I2C pin access ( Pin Mux) to the slave core (Cortex_M4 IPU) from the master core (Cortex_A15) in Linux?

Thanks and Regards,
Praveen Kumar

  • Hi, Praveen,
    1. Let us know to which location inside processor Linux SDK we need to copy our source code in order to compile the source code.
    2. what is the procedure to individually compile and build the source code for Cortex_M4 IPU ?
    3. Which location inside Processor SDK is the binary/executable file generated?
    You should develop your M4 application per RTOS User's Guide, software-dl.ti.com/.../index.html

    4. To which location the binary/executable file to be copied in processor SDK so that this file is loaded directly onto Cortex_M4 IPU during Linux boot-up on AM572x EVM?
    Please take a look at the IPC Quick Start Guide if you haven't. For your question specifically, read the section of "Run IPC Linux examples".
    software-dl.ti.com/.../Foundational_Components_IPC.html
    Also, the IPC for AM57xx is helpful too.
    software-dl.ti.com/.../Foundational_Components_IPC.html
    Be sure the M4 application works as standalone using CCS before adding IPC to have a good working base.

    5. For the same example, how to give I2C pin access ( Pin Mux) to the slave core (Cortex_M4 IPU) from the master core (Cortex_A15) in Linux?
    Take a look at the section "Update Linux Kernel device tree to remove UART that will be controlled by M4" in IPC for AM57xx.

    Rex