Skip to main content
Visitor II
April 2, 2008
Question

Update of ST library (ver 2 Jan 2008) causes ENET to be set in big endian

  • April 2, 2008
  • 2 replies
  • 735 views
Posted on April 02, 2008 at 21:06

Update of ST library (ver 2 Jan 2008) causes ENET to be set in big endian

    This topic has been closed for replies.

    2 replies

    dibacco1Author
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:51

    I just updated the ST library on my project, I have a custom network bootloader in bank 1 that starts an application in bank 0. The network works in the boot loader, but, after it is reinitaialized (ENET_Init, ENET_Start) in the application, the bit (bit 30) that set the endianity in ENET_MCR is 1 meaning that it is working in big endian while during boot it was set to 0.

    What can cause this bit to flip?

    :-[

    dibacco1Author
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:51

    Ok I found something, new ENET_init takes different parameter from previous version, now I passed a valid MAC_config and then I called ENET_SetOperatingMode. But now I have a different problem my ENET_HandleRxPkt always returns an error here:

    if(dmaRxDscrBase[RxBC].dmaPackStatus & ENET_DSCR_RX_STATUS_VALID_MSK)

    {

    return ERROR;

    }

    DMA is not working?