LWIP PROBLEM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2013-04-11 12:56 AM
Posted on April 11, 2013 at 09:56
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...
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2013-04-11 2:22 AM
Posted on April 11, 2013 at 11:22
solved... there is a library named udp_echoclient.c and that tells everything how to use the library,
