A quick note on linker command files If you are running other software on ICSSG1 PRU0, note that you should make sure that the linker.cmd files that are used for the PRU0 and PRU1 projects do not conflict on their memory allocations. Remember that PRU0 and PRU1 have a slightly different local memory map views - search the AM243x Technical Reference Manual (TRM) PRU chapter for "memory map" for more details. AM64x has the same PRU_ICSSG subsystem as AM243x. I'll include 2 linker command files from AM64x projects as an example for how the linker.cmd file might be different for PRU0 vs PRU1. https://git.ti.com/cgit/pru-software-support-package/pru-software-support-package/tree/examples/am64x/PRU_RPMsg_Echo_Interrupt0/AM64x_PRU0_intc_rscTbl.cmd https://git.ti.com/cgit/pru-software-support-package/pru-software-support-package/tree/examples/am64x/PRU_RPMsg_Echo_Interrupt1/AM64x_PRU1_intc_rscTbl.cmd These lines apply to Linux only, and can be ignored for AM243x: // ignore this part /* Ensure resource_table section is aligned on 8-byte address for ARMv8 (64-bit) kernel */ .resource_table : ALIGN (8) > PRU1_DMEM_1, PAGE 1 .pru_irq_map (COPY) : { *(.pru_irq_map) } Regards, Nick
↧