Skip to main content
Explorer
December 16, 2008
Question

FreeRTOS with ethernet GPIO5

  • December 16, 2008
  • 2 replies
  • 699 views
Posted on December 16, 2008 at 05:00

FreeRTOS with ethernet GPIO5

    This topic has been closed for replies.

    2 replies

    May 17, 2011
    Posted on May 17, 2011 at 09:57

    Dear,

    As mentioned, we need to plug our design board on top of STR91x. But we found a problem, the Ethernet in FreeRTOS on STR91x use the GPIO5 with

    GPIO_Struct.GPIO_Pin = GPIO_Pin_2 | GPIO_Pin_3;

    ......

    ......

    GPIO_InitStructure.GPIO_Alternate = GPIO_OutputAlt2;

    but we need the GPIO5 (Pin 0 and Pin 1) to be our extend memory addressing and must be set as:

    GPIO_InitStructure.GPIO_Alternate = GPIO_OutputAlt1;

    It causes the Ethernet not working at all!! Any solution? Can we use another Pin as Ethernet?

    Rickey Leung

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:57

    Hello,

    If you need only GPIO5_0 & GPIO5_1 pins, it's not a problem because the Ethernet interface doesn't use them. In other words, you can use the pins 0 and 1 from the Port5 while the Ethernet uses the pins 2 & 3, it's not a problem. But the pins 2 & 3 are mandatory for the Ethernet.

    regards

    sword