All Forums
 Microsoft Windows CE
 eVC Application Development
 Data misalignment errors
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

KnowledgeBase

296 Posts

Posted - 26 Feb 2002 :  13:06:43  Show Profile  Email Poster
Q: I'm getting "Data misalignment" errors. This code worked fine on my NT machine.

One way the ARM architecture protects the integrity of your data and applications is to generate an exception when an application tries to access 16- or 32-bit data on an odd word boundary. You can still access 8-bit data anywhere in the memory space.



------------------
ADS Knowledge Base

ken.yeung

20 Posts

Posted - 12 Sep 2006 :  15:19:21  Show Profile  Email Poster
We have 64MB AGX with CE build 4.20.29 v02. Currently we are running the burn-in test on our devices. The operation sequence of the test is similar to the following cycles:

Reset-suspend-wake-suspend-wake-suspend-wake-reset-...

This is to simulate the normal operation cycles. However, after 60 hours (~330 reset cycles), 3 out of 34 devices showed an unhandled native exception dialog box. The actual time of occurrence is 28, 47 and 49 hours after test started. The dialog boxes showed the same information as follows:

Exception Code: 0x80000002
Exception Address: 0x01814414

After some research on this, I found that this is the "Datatype Misalignment" error. The following link shows the possible problem and fixes.

http://support.microsoft.com/kb/909973

I am wondering whether the above microsoft link is related to our problem and whether ADS has fixed this problem in our current CE build. Please kindly advise.
Go to Top of Page

akidder

1519 Posts

Posted - 12 Sep 2006 :  17:05:46  Show Profile  Email Poster
I took a look at the .plg file for your build, and it looks like this error is occcurring inside the Compact Framework 1.0 code*, which means that there isn't a whole lot we can do about it. I'm open to ideas from anyone else about how Ken might resolve this.

I'm wondering if it would make sense to move to CompactFramework 2.0. You'd have to load CF 2.0 at run-time (or have us rebuild an image with it), and you'd have to recompile your app to link to it instead of CF 1.0.

I'll give you a ring directly and we can figure out what will work best for your deployment.

Cheers,

Drew

* Here's the relevant excerpt from the agx_pro_hive.plg file (included with your build):
...
Module SMC91C111.dll at offset 01871000
Module GPIOALT.dll at offset 01861000
Module mscoree1_0.dll at offset 017d1000
...
Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.03 seconds. Snitz Forums 2000