This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Ethernet Concerto F28M35H52C1

Hi,

Firstly,

I'm working with my new PCB designed and the Control Card. I'm executing the enet_lwip exemple but I have some problems with my new PCB. I changed my pinout configuration in function PortControlSet but it keeps not working

The question is if I need to change something else in code to run if the rest of hardware is the same.

Finally,

Sometimes I have problems to execute both exemples, enet_uip and enet_lwip, suddently they don't work. I believe that is a wrong PC addres assingment or some like this. Can you help me please?

Thanks,

Regards

Macia

  • Macia,

    the example has to be ported onto your new hardware, please make sure the pins are properly configured. which pins are you using now for EMAC? What other peripherals are you configuring in the example, are you running anything on C28x?

    Macia Capo said:

    The question is if I need to change something else in code to run if the rest of hardware is the same

    what do you mean by reset of the hardware is same, same as control card design? 

    Macia Capo said:

    Finally,

    Sometimes I have problems to execute both exemples, enet_uip and enet_lwip, suddently they don't work. I believe that is a wrong PC addres assingment or some like this. Can you help me please?

    again, can you confirm if the examples ever worked on your new PCB or they sometimes work and sometimes don;t? are you trying to look at the EMAC packets on network using a wireshark or other packet sniffer?

    Best Regards

    Santosh Athuru

  • Thanks for your reply. 

    Well, there is no error compiling de projecte. The problem is that when I execute the exemple in my PCB TXCK and RXCK don't work. I observed it in osciloscope. So I think so that I have some problems to initialize the peripheriacal or some like this.

    My new pin configuration is: 

    PortControlSet(void)
    {

    //
    // To begin with, we set the port control values for all the non-EPI
    // peripherals.
    //


    //UART Setup
    GPIOPinTypeUART(GPIO_PORTE_BASE, GPIO_PIN_4 | GPIO_PIN_5);
    GPIOPinConfigure(GPIO_PE4_U0RX);
    GPIOPinConfigure(GPIO_PE5_U0TX);

    //SSI SD Card Setup
    GPIOPinTypeSSI(SDC_GPIO_PORT_BASE, SDC_SSI_TX | SDC_SSI_RX | SDC_SSI_CLK);
    GPIOPinTypeGPIOOutput(SDCARD_CS_BASE, SDCARD_CS_PIN);
    GPIOPadConfigSet(SDC_GPIO_PORT_BASE, SDC_SSI_PINS,
    GPIO_PIN_TYPE_STD_WPU);
    GPIOPadConfigSet(SDCARD_CS_BASE, SDCARD_CS_PIN,
    GPIO_PIN_TYPE_STD_WPU);
    GPIOPinConfigure(GPIO_PE3_SSI1TX);
    GPIOPinConfigure(GPIO_PE2_SSI1RX);
    GPIOPinConfigure(GPIO_PE0_SSI1CLK);
    GPIOPinWrite(SDCARD_CS_BASE, SDCARD_CS_PIN, SDCARD_CS_PIN);

    //Macià
    //Ethernet pin setup
    GPIODirModeSet(GPIO_PORTD_BASE, GPIO_PIN_1|GPIO_PIN_4| GPIO_PIN_5| GPIO_PIN_6| GPIO_PIN_7, GPIO_DIR_MODE_HW);
    GPIOPadConfigSet(GPIO_PORTD_BASE, GPIO_PIN_1|GPIO_PIN_4| GPIO_PIN_5| GPIO_PIN_6| GPIO_PIN_7, GPIO_PIN_TYPE_STD);
    GPIOPinConfigure(GPIO_PD1_MIICOL);
    GPIOPinConfigure(GPIO_PD4_MIITXD3);
    GPIOPinConfigure(GPIO_PD5_MIITXD2);
    GPIOPinConfigure(GPIO_PD6_MIITXD1);
    GPIOPinConfigure(GPIO_PD7_MIITXD0);

    GPIODirModeSet(GPIO_PORTF_BASE, GPIO_PIN_0| GPIO_PIN_2| GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5, GPIO_DIR_MODE_HW);
    GPIOPadConfigSet(GPIO_PORTF_BASE, GPIO_PIN_0| GPIO_PIN_2| GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5, GPIO_PIN_TYPE_STD);
    GPIOPinConfigure(GPIO_PF0_MIIRXCK);
    GPIOPinConfigure(GPIO_PF2_MIIPHYINTRn);
    GPIOPinConfigure(GPIO_PF3_MIIMDC );
    GPIOPinConfigure(GPIO_PF4_MIIMDIO);
    GPIOPinConfigure(GPIO_PF5_MIIRXD3);


    GPIODirModeSet(GPIO_PORTG_BASE,
    GPIO_PIN_3|GPIO_PIN_1|GPIO_PIN_0,
    GPIO_DIR_MODE_HW);
    GPIOPadConfigSet(GPIO_PORTG_BASE,
    GPIO_PIN_3|GPIO_PIN_1|
    GPIO_PIN_0,
    GPIO_PIN_TYPE_STD);
    GPIOPinConfigure(GPIO_PG0_MIIRXD2);
    GPIOPinConfigure(GPIO_PG1_MIIRXD1);
    GPIOPinConfigure(GPIO_PG3_MIICRS);


    GPIODirModeSet(GPIO_PORTG_BASE, GPIO_PIN_5,
    GPIO_DIR_MODE_HW);
    GPIOPadConfigSet(GPIO_PORTG_BASE, GPIO_PIN_5,
    GPIO_PIN_TYPE_STD);
    GPIOPinConfigure(GPIO_PG5_MIITXEN);

    GPIODirModeSet(
    GPIO_PORTH_BASE, GPIO_PIN_7 |
    GPIO_PIN_1| GPIO_PIN_0, GPIO_DIR_MODE_HW);
    GPIOPadConfigSet(
    GPIO_PORTH_BASE, GPIO_PIN_7|
    GPIO_PIN_1| GPIO_PIN_0, GPIO_PIN_TYPE_STD);
    GPIOPinConfigure(GPIO_PH0_MIIPHYRSTn);
    GPIOPinConfigure(GPIO_PH1_MIIRXD0);

    GPIOPinConfigure(GPIO_PH7_MIITXCK);

    GPIODirModeSet(
    GPIO_PORTJ_BASE, GPIO_PIN_1|GPIO_PIN_0
    , GPIO_DIR_MODE_HW);
    GPIOPadConfigSet(
    GPIO_PORTJ_BASE,GPIO_PIN_1|GPIO_PIN_0
    , GPIO_PIN_TYPE_STD);
    GPIOPinConfigure(GPIO_PJ0_MIIRXER);
    GPIOPinConfigure(GPIO_PJ1_MIIRXDV);

    }

    The other code is the same.

    I never got that the enet_lwip work in my PCB. However, I got to work the enet_uip but I had some problems. After I compiled and debbuged the program I hadn't work. Comunication didn't exist (leds of connector were switch off). Nevertheless, after that when I made a power off and power on on PCB the enet_uip worked.

    Finally, If I use wireshark I can only see broadcast from PC messages, so there isn't exist any communication. 

     

    Regards,

    Macià