Author Topic: Ethernet Pins on STM32F1xx  (Read 4308 times)

Offline colinbathe

  • Newbie
  • *
  • Posts: 4
    • View Profile
Ethernet Pins on STM32F1xx
« on: December 14, 2012, 04:07:25 PM »

V1.4.1 stm32.c

fnConfigEthernet()


This code sets up the ethernet pins for STM32F1xx processors using the alternative pin set. However, the processor isn't told to remap the ethernet port pins. _PERIPHERAL_REMAP(ETH_REMAP); sorts this.

(probably sorts this - I don't have ethernet working yet...)

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2974
    • View Profile
    • uTasker
Re: Ethernet Pins on STM32F1xx
« Reply #1 on: December 14, 2012, 05:54:43 PM »
Hi Colin

The STM32F1xx code performs the following remapping as first action:

    _PERIPHERAL_REMOVE_REMAP(MII_RMII_SEL);                              // select MII interface mode rather than RMII
    _PERIPHERAL_REMAP(ETH_REMAP);                                        // remap certain MII pins (PD8:PD9:PD10:PD11:PD12)


The version supports only MII mode.

Since you are working on an alternative for RMII mode for the STM32F1xx it may be that you have a different initialisation there.

Regards

Mark

Offline colinbathe

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Ethernet Pins on STM32F1xx
« Reply #2 on: December 14, 2012, 06:43:23 PM »
Yep my mistake. Wasn't reading the code correctly.

<goes off to get his eyes checked...>