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.
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:
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:
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.
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 ...