AnsweredAssumed Answered

HardFault when using IAR 6.50

Question asked by jacob.ariel on Apr 13, 2015
Latest reply on Apr 23, 2015 by jacob.ariel
Noticed an "interesting" issue that I was unable to trackdown.
If I compile the example LwIP_UDPTCP_Echo_Server_Netconn_RTOS using IAR 7.40 everything works fine YET when I compile the same code using IAR 6.50 I get an HardFault.

Tried to track down the cause but in vail...
I need to use 6.50 as thats the license we have, I use size limit with 7.40 (removed TCP to squeeze it in :))

Do you have any idea how to attack this issue?

Starting with Ethernet cable unplugged:
     TaskUDP_ExeStart()
          tcpip_init(NULL, NULL);
          Netif_Config();
               ...
               Enters ethernetif_input - once
                    low_level_input 
               ...
               (netif_is_link_up(&gnetif)) is false
               ...

     (... working fine, LED blinks ...)
     
Plugging in the Ethernet cable:
     ...
     ethernetif_notify_conn_changed()
          (netif_is_link_up(netif)) is True
               netif_set_addr(...)
               netif_set_up(...)
               
     Enters ethernetif_input - many times
          low_level_input, 2x244 bytes 2x187 2x92 244, 243, ...
     
     HardFault_Handler
          while (1)...

Outcomes