2010-12-01 02:47 AM
question for STM3210C STM32F107_ETH_LwIP_V1.0.0 stm32_eth.c
2011-05-17 05:16 AM
Hi,
Try to use one of these methods:1- use the interrupt :void ETH_IRQHandler(void){ /* Handles all the received frames */ while(ETH_GetRxPktSize() != 0) {ETH_HandleRxPkt(); } /* Clear the Eth DMA Rx IT pending bits */ ETH_DMAClearITPendingBit(ETH_DMA_IT_R); ETH_DMAClearITPendingBit(ETH_DMA_IT_NIS);} 2- Infinite loop (main.c)while (1){
while(ETH_GetRxPktSize() != 0) {
ETH_HandleRxPkt(); }}