AnsweredAssumed Answered

help ! memcpy causes hardfault

Question asked by karakaya.mehmet on Dec 10, 2012
Latest reply on Dec 22, 2012 by karakaya.mehmet

hello forum ,
I am trying to run a TCP/IP demo on a Olimex STM32F4 board
with eclipse + yagarto
however I cannot connect to the board with LAN
when I stop the demo with JTAG to look where it hangs
it shows below code

I tried to set up breakpoint before the memcpy function
as shown in the attached picture
It stops at the breakpoint just before the memcpy function
however when I rerun from this point
it ends up at hardfault handler as shown below
please advice how can I proceed ?

void

 

HardFault_Handler(void)

 

{

 

/* Go to infinite loop when Hard Fault exception occurs */

 

 

while (1)

 

{

}

}eclipseerror5.JPG

Outcomes