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.

MCU-PLUS-SDK-AM243X: PRU to Core sdfm (gSdfmSampleOutput) and endat (gEnDatChInfo) address

Part Number: MCU-PLUS-SDK-AM243X

Dear Ti Expert

I am using motor_control_sdk_am243x_09_01_00_06

I am planning to use ICSSG0 for both sdfm (PRU0) and Endat (PRU1) module

From examples on sdfm and endat  linker.cmds, I can see both are pointing  gSdfmSampleOutput ( sdfm) and gEnDatChInfo (endat) to same address 

..

/* TCM used by ICSS PRU to write sdfm sample output */
.gSdfmSampleOutput : {} align(4) > R5F_TCMB0

..

/* TCM used by ICSS PRU to write endat channel Info */
.gEnDatChInfo : {} align(4) > R5F_TCMB0

..

R5F_TCMB0 : ORIGIN = 0x41010000 , LENGTH = 0x00008000

How do I modify the either sdfm or endat PRU to use different address for information sharing with R5 Core

Thanks

Alan I

  • Hi Alan,

    How do I modify the either sdfm or endat PRU to use different address for information sharing with R5 Core

    * TCM used by ICSS PRU to write sdfm sample output */
    .gSdfmSampleOutput : {} align(4) >R5F_TCMB0_SDFM_0_0

    ..

    /* TCM used by ICSS PRU to write endat channel Info */
    .gEnDatChInfo : {} align(4) > R5F_TCMB0_ENDAT_0_1

    ..

    R5F_TCMB0_SDFM_0_0 : ORIGIN = 0x41010000 , LENGTH = 0x4000
    R5F_TCMB0_ENDAT_0_1 : ORIGIN = 0x41014000 , LENGTH = 0x4000

    BR, 

    Achala Ram

  • Hi Achala

    From my understanding the linker.cmd is for R5 core compilation

    Don't I need to change the assembly code in the PRU so that the PRU will use new address as well?

    Thank you

    Alan I

  • Hi Alan,

    You do not need to change the assembly code for this.

    Example passes these assigned memory address to PRU firmware and PRU uses the same memory address to store information for EnDAT and SDFM that we assign to gEnDatChInfo and gSdfmSampleOutput structures in the R5 Linker.cmd file.

    Thanks,

    Achala Ram