CE4.2 Bluetooth crashes (data misalignement)
From: Anthony Pellerin (apellerin_at_adeneo.adetelgroup.com)
Date: 03/01/05
- Next message: ksmith: "Re: READ_PORT_UCHAR and COM2"
- Previous message: Tweeeek: "Re: SANDISK Compact FLash"
- Next in thread: Dean Ramsier: "Re: CE4.2 Bluetooth crashes (data misalignement)"
- Reply: Dean Ramsier: "Re: CE4.2 Bluetooth crashes (data misalignement)"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 1 Mar 2005 17:14:59 +0100
Hi,
I'm working with the WindowsCE 4.2 bluetooth protocol stack on an ARM based
board and I've just experimented a data abort when calling the
BthGetBasebandConnections function (located in the btdrt.cxx private file).
After running the code step by step, I discovered that there was a data
misalignement issue when trying to access the baAddress field of the first
element in the structure filled through the
BT_IOCTL_BthGetBasebandConnections. Actually, this field is word-aligned and
the processor expects it to be int-aligned (changing the address to an
int-aligned avoid the crash).
Has anyone ever experienced this kind of problem?
If this happen here, I think that this can happen elsewhere in the stack.
Any idea on how to avoid this?
Thanks a lot
----------------------------------------------------------------
Anthony Pellerin
ADENEO (ADESET)
Windows Embedded Consultant
apellerin AT adeneo DOT adetelgroup DOT com>
http://www.adeneo.adetelgroup.com
Tél : +33 (0)4.72.18.57.77
Fax : +33 (0)4.72.18.57.78
----------------------------------------------------------------
- Next message: ksmith: "Re: READ_PORT_UCHAR and COM2"
- Previous message: Tweeeek: "Re: SANDISK Compact FLash"
- Next in thread: Dean Ramsier: "Re: CE4.2 Bluetooth crashes (data misalignement)"
- Reply: Dean Ramsier: "Re: CE4.2 Bluetooth crashes (data misalignement)"
- Messages sorted by: [ date ] [ thread ]