How do I compile DM firmware for different DDR memory address spaces in the AM62X?
How do I build custom DM firmware?
This FAQ mainly explains how to compile DM firmware for different DDR memory sizes.
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.
How do I compile DM firmware for different DDR memory address spaces in the AM62X?
How do I build custom DM firmware?
This FAQ mainly explains how to compile DM firmware for different DDR memory sizes.
Currently, in the AM62X, 2GB of DDR is mounted or available on EVMs, and approximately 11 MB of memory is allocated for R5F DM and Applications in Linux.
Path: kernel arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi
Similar to R5F DM and Application, the same memory is allocated in the Liker cmd file in MUC+SDK.
Path: C:\ti\mcu_plus_sdk_am62x_08_06_00_29\examples\drivers\ipc\ipc_rpmsg_echo_linux\am62x-sk\r5fss0-0_freertos\ti-arm-clang
So, if you are planning to use other than 2 GB of DDR memory in your custom HW, First, you have to update which memory region should be selected for R5F DM and R5F Application in the k3-am62x-sk-common.dtsi file.
Next step is that the same memory region should be defined in the Liker cmd file in MUC+SDK.
You should follow the below steps to compile the R5F DM application for other than 2 GB of DDR memory in MCU+SDK.
Step 1: Update the linker command file based on the DDR memory size allocated for R5F DM and Applications, which is specified on the Linux side in the ipc_rpmsg_echo_linux_am62x-sk-lp_r5fss0-0_freertos_ti-arm-clang project.
C:\ti\mcu_plus_sdk_am62x_08_06_00_29\examples\drivers\ipc\ipc_rpmsg_echo_linux
Step 2: Compile the ipc_rpmsg_echo_linux_am62x-sk-lp_r5fss0-0_freertos_ti-arm-clang project.
Step 3: After compilation, you will get an updated DM bin file, which is available in a below folder.
Step 4: Replace your DM file with a new updated file.