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?
Many thx~ It solved!
But another problem is we need to address the ext. memory (21e00000) in ST91x. I have configured the EMI as follow but still failed~ can you help me?
// those bastards. this one pin out of 24 is on a different alt bus
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_7;
GPIO_InitStructure.GPIO_Alternate = GPIO_OutputAlt3;
GPIO_Init (GPIO7, &GPIO_InitStructure);
// configure SCU
SCU_EMIModeConfig(SCU_EMI_DEMUX);
SCU_EMIBCLKDivisorConfig(SCU_EMIBCLK_Div1); // or SCU_EMIBCLK_Div1;
SCU->GPIOEMI = 1; // enable ports 8 & 9 for EMI