lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] ip_addr_copy alignment issue


From: Ran Shalit
Subject: Re: [lwip-users] ip_addr_copy alignment issue
Date: Mon, 25 Sep 2017 10:28:57 +0300

I've found that IAR use similiar flag; --no_unaligned_access.
So, now I get progressed , and see packes recieved and send.
Yet, for some reason althoyugh everything looks without errors in
wireshark, I get "request time out" for ping from PC.
I tried to ping from several PC but it didn't help.
Can you see the attached pcap if anything can explain this behaviour ?
Wireshark shows no errors, that's the strange thing. I see request and replies.
The response time is ~40msec so I tried to change to ping -w 200 , but
I see the same results.
https://drive.google.com/file/d/0B22GsWueReZTZ0hfU2dRdE9rR2s/view?usp=sharing

Thank you for any suggestion.
Ran

On Mon, Sep 25, 2017 at 9:45 AM, Dirk Ziegelmeier <address@hidden> wrote:
> Can't help you with IAR, but maybe you can tell your processor to handle
> unaligned access. Depending on your CPU type (following example is
> Cortex-A9, Altera Cyclone V) your startup code may look like this (gcc asm):
>
> Reset_Handler:
>         MRC     p15, 0, r0, c1, c0, 0       /* ; Read CP15 System Control
> register */
>         BIC     r0, r0, #(0x1 << 12)        /* ; Disable I Cache */
>         BIC     r0, r0, #(0x1 << 11)        /* ; Disable branch predictor
> */
>         BIC     r0, r0, #(0x1 <<  2)        /* ; Disable D Cache */
>         BIC     r0, r0, #(0x1 <<  1)        /* ; Disable Alignment checks */
>         BIC     r0, r0, #(0x1 <<  0)        /* ; Disable MMU     */
>         MCR     p15, 0, r0, c1, c0, 0       /* ; Setup mode */
>
> Ciao
> Dirk
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/lwip-users



reply via email to

[Prev in Thread] Current Thread [Next in Thread]