Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Non-aligned access?

2005-11-08 by Tom Walsh

ee_gary wrote:

>Hello,
>
>I'm having a problem where my code goes into the bushes after ~10
>seconds.  Running it in the simulator results in a "Non-aligned
>Access" error, ARM Instruction at 00000200H, Memory Access at
>40000241H.  Any idea what that means?  Simple code, just an interrupt
>driven timer and interrupt driven SPI\ufffd
>
>  
>
You can run into this when mixing Thumb with ARM code. When interrupt 
routines are entered, the processor is in ARM mode, either write your 
handlers in ARM or switch to THUMB mode, process the interrupt, then 
exit THUMB mode and return from interrupt.

FWIW, Thumb, and thumb-internetworking, is too much trouble to deal 
with, I run strictly ARM mode.

TomW



-- 
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net, http://cyberiansoftware.com
"Windows? No thanks, I have work to do..."
----------------------------------------------------

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.