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 application after Ethernet boot

Hi all,

we have an application using Ethernet that works while the chip is configured in 'No boot' mode and the program is downloaded via JTAG.

The same application fails (Ethernet communication does not work) once booted over Ethernet.

I cannot modify the Ethrnet application running on one of the cores, but I can run code on a different core that could reset

the NetCP or DMAs or whatever necessary prior to running the application.

Is this possible? Do you have any suggestions?

Regards,

e

  • Hi Eri,

    I would suggest going over the Ethernet Bootloader on sprugy5a. Depending on the platform you are using (i.e. 6670/6678/6614 EVM) the referencle clk to serdes (sriosgmiiclkp/n) and the pa pll refck will differ. A common pitfall on Ethernet bootloader is setting the wrong reference clocks and sgmii configurations causing the application to fail.

    When succesful, the boot code will let CPSW initialized for 1gpbs ful-duplex operation. NetCP Power domains and clock domains will be up. CPSW will be VLAN unaware and the ALE table will be empty. The application does not need to reset the CPSW, it can just modify the configuration, but it deos not need to reset CPGMAC, SGMII or SERDES. The boot code will also tear down QMSS and PKTDMA so the application needs to set it up along with PA and SA if they are to be used. The Packet Streamkng Interface CPPI TXA/TXB ports connecitons need to be explicitly connected to either CPDMA or PDSP0 (PA) (this will be taken care by PA LLD when calling Pa_create).

    After bootloading can you see any PKTDMA channel enabled, or descriptors in Q900-904?

    Regards,

    Javier

  • Hi Javier,

    I tried running pdk_C6670_1_1_0_3\packages\ti\drv\exampleProjects\PA_simpleExample_exampleProject

    When No boot is set it works.

    When Ethernet boot is set it does not work.

    I added some code to see if DMA channels are on or queues are not empty upon start.

    PA TX DMA channels are on and queue 901 had 16 packets. I turn the channels

    off and pop the packets from the queue.

    Pa_addMac does not returna packet, while Pa_AddIP and Pa_addPort work.

    Does the Ethernet boot code configure the L2 in the PA that causes the configuration

    packet to not be sent back?

    Best regards,

    Eri