2013-04-11 12:56 AM
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...
2013-04-11 02:22 AM
solved... there is a library named udp_echoclient.c and that tells everything how to use the library,