Reply by Charles Manning March 25, 20042004-03-25
On Wednesday 24 March 2004 13:37, jpsg123 wrote:
> Hi All,
>
> It seems returning from an IAP call, I need to insert some delays after
> returning from an IAP or else my results would be wrong. Is this because of
> the switch from ARM->THUMB->ARM? For now, I'm just inserting a delay loop.

I can't see how this is part of the ARM->THUMB->ARM transition. The core
switches modes immediately, but the correct 'hand holding' is required for
the transition to work properly.

Is the code you are returning to executing from flash? If so, be aware that
the flash needs to be ready before you can execute from it again. I'd have
expected the IAP to only return once the flash is ready.

Perhaps try turning MAM off, if it is enabled.

-- Charles



An Engineer's Guide to the LPC2100 Series

Reply by jpsg123 March 23, 20042004-03-23
Hi All,

It seems returning from an IAP call, I need to insert some delays after returning from an
IAP or else my results would be wrong. Is this because of the switch from ARM->THUMB-
>ARM? For now, I'm just inserting a delay loop.

-John G-