Part Number: TMDS64EVM
Other Parts Discussed in Thread: SYSCONFIG
This is a continuation of previous thread which had a recent follow up question but may be lost in the ether: AM6422: How to configure PRU GPIO pins - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E support forums . Some of the questions from the original post were answered but others got lost in the exchang.
Latest question:
I am writing C code for ICSSG1_PRU0, and trying to use the RGMII interface to write a simple Ethernet driver (I do not have the option of using the SDK code files for my application due to customer requirements). I am connected to the PRU through CCS XDS110 as described on the "Getting Started" guide for the TMDS64EVM. I need to configure the board pins such that the RGMII interface is enabled.
In the PRU code, I am setting ICSSG_GPCFG0_REG.PR1_PRU0_GP_MUX_SEL = 2 (MII mode). I have PRU code that is also attempting to set the PADCONFIG Mux values for PADCONFIG46, PADCONFIG47, etc to Mux Mode 2 to engage PRG1_RGMII1_R* and PRG1_RGMII1_T* function on those select pins.
1) Am I able to write to the PADCONFIG registers from the PRU code itself?
2) When connected to the PRU for debugging, do I need to write to the pin PADCONFG registers to engage the RGMII function on those pins or is the PRU writing 2 to ICSSG_GPCFG0_REG.PR1_PRU0_GP_MUX_SEL enough?
3) If the PRU can not write to PADCONFIG registers, but the PADCONFIG registers do need to be written to, what other options do I have when connected to and debugging from the PRU, since there is no code running on the Arm core?