How to remap ethernet pins for a custom board based on F2838x in Simulink?

27 visualizzazioni (ultimi 30 giorni)
Hi,
I have a custom boarb, based on the uc F2838x, that I need to communicate with the host computer using ethernet. Unfortunatelly, some of the pins used for the ethernet communication are different compared with the development board TMDSCNCD28388D. You can see the diferences here:
Custom Board Development board
ENET_MII_TX_DATA2: GPIO 73 GPIO 123
MII_TX_EN: GPIO 45 GPIO 118
ENET_MII_RX_DATA3: GPIO 66 GPIO 117
ENET_MII_RX_CLK: GPIO 67 GPIO 111
How can I remap these pins in Simulink so I can use the ethernet communication?

Risposte (1)

Satyam
Satyam il 15 Ott 2025 alle 19:39
This topic has been discussed in a similar post earlier. You can refer to the detailed explanation provided here: https://www.mathworks.com/matlabcentral/answers/2021606-how-to-change-pin-mapping-in-embedded-coder-for-the-c2000
To summarize the key points from that discussion:
  • Integration of TI SysConfig with the C2000 Microcontroller Blockset is not supported.
  • The GPIO configuration required for Ethernet communication is automatically handled by the C2000 Blockset during code generation. Hence, manual remapping or configuration outside the Simulink model is not needed.
  • According to the F2838x Technical Reference Manual (TRM), not all GPIO pins can be muxed for Ethernet functionality. For example, there is no muxing capability for GPIO131 as an Ethernet signal. It is recommended to ensure that the chosen GPIO pins correspond to the supported Ethernet pin mapping as defined in the TRM.
I hope it solves your query.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by