cancel
Showing results for 
Search instead for 
Did you mean: 

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

dibacco1
Associate II
Posted on April 02, 2008 at 21:06

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

2 REPLIES 2
dibacco1
Associate II
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?

:-[

dibacco1
Associate II
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?