AnsweredAssumed Answered

unaligned access fault caused by memcpy in lwip

Question asked by JIWON KIM on May 27, 2020
Latest reply on May 28, 2020 by JIWON KIM

I  am trying to add exception handling functionalities in my software and there is a problem of usage fault by unaligned memory access after enabling the exception handler. calling memcpy  inside netifapi_netif_set_up() caused the fault. What should I do to solve this fault? Is it better to disable the unaligned access fault? I tried to use the options -munaligned-access or -mnounaligned-access and none of them solved the issue.


The following are the information of my project environment:

  • Board: imxrt1060 evk
  • SDK: 2.6.2 (
  • Project: evkmimxrt1060_lwip_tcpecho_freertos
  • Library: Newlib (semihost)