Unaligned memory access through pointer in cortex-m3
- From: kishor <kiishor@xxxxxxxxx>
- Date: Sun, 18 Sep 2011 05:03:31 -0700 (PDT)
Hi friends,
I am using stellaris LM3s6965 micro-controller, Keil (MDK-ARM 4.20) as
IDE.
I want to know the alignment restrictions on using pointer of
following type.
Uint8_t * (unsigned char 8-bit)
Uint16_t * (unsigned 16-bit)
Uint32_t * (unsigned 32-bit)
I need to access 32-bit or 16-bit data from a memory buffer. There is
no guarantee that address will be aligned. In this case what should I
do?
Thanks & regards,
Kishore.
.
- Follow-Ups:
- Re: Unaligned memory access through pointer in cortex-m3
- From: Roberto Waltman
- Re: Unaligned memory access through pointer in cortex-m3
- From: linnix
- Re: Unaligned memory access through pointer in cortex-m3
- From: Arlet Ottens
- Re: Unaligned memory access through pointer in cortex-m3
- Prev by Date: Re: RANT: Embedded Devlopers And Stinky Documentation
- Next by Date: Re: Unaligned memory access through pointer in cortex-m3
- Previous by thread: race condition? between relays and 89C51 uC
- Next by thread: Re: Unaligned memory access through pointer in cortex-m3
- Index(es):
Relevant Pages
|