Sign in

username:

password:



Not a member?

Search AT91SAM



Search tips

Subscribe to AT91SAM



Discussion Groups

Discussion Groups | AT91SAM ARM | 2 Byte Operations

For users of the Atmel AT91SAM7 and AT91SAM9 ARM CPU chips. Atmel has taken a new direction by combining on chip flash and ram with the ARM CPU on a single die. This provides low cost devices for small systems using the ARM CPU. This group is to exchange information to help users get started and learn how to use the devices.

2 Byte Operations - "ICLI, Bekir (EXT)" - Jul 8 12:47:49 2008


Hi all,

I have turned on the mmu alignment checks so that I can catch the
misaligned structs.
But strangely the compiler uses always byte-wise operations (strb/ldrb)
for the 2byte read/writes, where, I thought, it would use ldrh/ldrb..
This occurs in a strange point where my destination address is byte-wise
aligned (0x10173545) and I am doing a 2 byte operation..
Normally an exception should be thrown by the mmu, right?
Is there a way of telling the compiler that it should use the
corresponding operation (ldr for 4bytes, ldrh for 2 bytes, ldrb 1bytes)?

Regards,
Bekir



(You need to be a member of AT91SAM -- send a blank email to AT91SAM-subscribe@yahoogroups.com )