I adapted the SAM7 web server example (FreeRTOS V1.7.0) to my at91sam7x512/DP83848i based board (deRFgateway by Dresden Electronic). (Basically, I only had to adjust the memory size defines) The example runs so far, but there's a problem during the initialization of the PHY (DP83843i): the while loop which waits for end of hw reset
Code:
while( !( AT91C_BASE_RSTC->RSTC_RSR & AT91C_RSTC_NRSTL ) ) { __asm volatile ( "NOP" ); }
will loop endlessly. The problem does NOT occur when the SAM-ICE JTAG interface is connected! In fact, even when starting without SAM-ICE and connecting it after a while will end the loop. Afterwards, everything works fine (i.e. the EMAC).
I double checked low lever initialization etc. but couldn't find any problem there.
Any idea how to fix this?
Thanks!