[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [lwip-users] LwIP and IAR Workbench
From: |
FreeRTOS.org Info |
Subject: |
RE: [lwip-users] LwIP and IAR Workbench |
Date: |
Tue, 19 Aug 2008 08:07:29 +0100 |
Everywhere there is a macro that aligns a struct you have to add in:
#pragma data_alignment=4
Everywhere there is a macro that packs a struct you have to add in:
#pragma pack(1)
Because they use a # you cannot simply define the macro PACK_STRUCT_STRUCT
to do this for you.
Regards,
Richard.
+ http://www.FreeRTOS.org
17 official architecture ports, more than 6000 downloads per month.
+ http://www.SafeRTOS.com
Certified by TÜV as meeting the requirements for safety related systems.
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On
> Behalf Of Akshat Bisht
> Sent: 19 August 2008 07:31
> To: Mailing list for lwIP users
> Subject: Re: [lwip-users] LwIP and IAR Workbench
>
> @Richard: Yes there were errors in the PACK_STRUCT part,
>
> i changed:
>
> #define PACK_STRUCT_STRUCT __attribute__ ((__packed__))
>
> to
>
> #define PACK_STRUCT_STRUCT
>
> It compiles without errors now, but i seriously doubt if what
> was a solution. Can you provide more guidance?
>
> Regards,
>
> AB
>
>
>
> On Tue, Aug 19, 2008 at 11:49 AM, FreeRTOS.org Info
> <address@hidden> wrote:
>
>
> >
> > I am new to LwIP and am trying to port it into IAR's
> > Workbench.
>
>
> Another thing to watch out for with IAR is the pragmas
> that are required to
> pack and align structures. These cannot be added in
> using the pack/align
> macros so must be edited into the code manually - at
> least this is the only
> way I have found of doing it.
>
> Regards,
> Richard.
>
> + http://www.FreeRTOS.org
> 17 official architecture ports, more than 6000
> downloads per month.
>
> + http://www.SafeRTOS.com
> Certified by TÜV as meeting the requirements for safety
> related systems.
>
>
>
>
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lwip-users
>
>
>
>
- [lwip-users] LwIP and IAR Workbench, Zeder, Stacy, 2008/08/18
- Re: [lwip-users] LwIP and IAR Workbench, Jonathan Larmour, 2008/08/18
- Re: [lwip-users] LwIP and IAR Workbench, Akshat Bisht, 2008/08/18
- RE: [lwip-users] LwIP and IAR Workbench, FreeRTOS.org Info, 2008/08/19
- Re: [lwip-users] LwIP and IAR Workbench, Akshat Bisht, 2008/08/19
- RE: [lwip-users] LwIP and IAR Workbench,
FreeRTOS.org Info <=
- Re: [lwip-users] LwIP and IAR Workbench, Alain M., 2008/08/19
- Re: [lwip-users] LwIP and IAR Workbench, Jonathan Larmour, 2008/08/19
- RE: [lwip-users] LwIP and IAR Workbench, Zeder, Stacy, 2008/08/19
- Re: [lwip-users] LwIP and IAR Workbench, Jonathan Larmour, 2008/08/19
- Re: [lwip-users] LwIP and IAR Workbench, Akshat Bisht, 2008/08/20
- Re: [lwip-users] LwIP and IAR Workbench, Akshat Bisht, 2008/08/20
- Re: [lwip-users] LwIP and IAR Workbench, Jonathan Larmour, 2008/08/20
- Re: [lwip-users] LwIP and IAR Workbench, Jonathan Larmour, 2008/08/20
- Re: [lwip-users] LwIP and IAR Workbench, Akshat Bisht, 2008/08/20
- Re: [lwip-users] LwIP and IAR Workbench, Jonathan Larmour, 2008/08/20