AnsweredAssumed Answered

LWIP PROBLEM

Question asked by delos_reyes.kristian on Apr 11, 2013
Latest reply on Apr 11, 2013 by delos_reyes.kristian
Hi Guys, after tracing why my programs hangs up.. i finally traced it down to this "Go to infinite loop when Hard Fault exception occurs"
int main(void)
{
  /*!< At this stage the microcontroller clock setting is already configured to
       144 MHz, this is done through SystemInit() function which is called from
       startup file (startup_stm32f4xx.s) before to branch to application main.
       To reconfigure the default setting of SystemInit() function, refer to
       system_stm32f4xx.c file
     */ 
  /*Initialize LCD and Leds */
  LCD_LED_BUTTON_Init();
   
  /* Configure ethernet (GPIOs, clocks, MAC, DMA) */
  ETH_BSP_Config();
      
  /* Initilaize the LwIP stack */
  LwIP_Init();
       
  /* Infinite loop */
  udp_connect();
  while (1)
  
    udp_send();
    /* check if any packet received */
    if (ETH_CheckFrameReceived()) {
      /* process received ethernet packet */
      LwIP_Pkt_Handle();
    }
    /* handle periodic timers for LwIP */
    LwIP_Periodic_Handle(LocalTime);
  }  
}
how do I fix it? I tried researching it says something about the memory...

Outcomes