Unaligned problem when porting rtems for arm

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Apr 24 13:43:25 UTC 2013


On 04/24/2013 03:32 PM, Peng Fan wrote:
> The compiler options in make/custom/*.cfg file is:
>
> CPU_CFLAGS = -mstructure-size-boundary=32 -mcpu=arm1176jzf-s -mfpu=vfp
> -float-abi=soft -DCPU_S3C6410
> # optimize flag: typically -O2
> CFLAGS_OPTIMIZE_V = -O2 -g
>
> I will try older gcc versions or remove the -O2 option.

Which GCC version do you use?

Are you sure that you have a ARM1176JZF core?  This core has support for 
unaligned data access.  Is this enabled and supported in your hardware?

In case you use (hopefully) the EABI based tool chain, then remove the 
-mstructure-size-boundary=32 and -mfpu=vfp.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list