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 (SDK_2.6.2_EVK-MIMXRT1060-FreeRTOS.zip)
- Project: evkmimxrt1060_lwip_tcpecho_freertos
- Library: Newlib (semihost)