Yahoo Groups archive

Lpc2000

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

Message

Re: I need IAP help...

2004-10-26 by Leighton Rowe

> Im not calling the IAP routines from Thumb mode. Do you have to do 
> that. There is a command in the gcc compiler "-mthumb-interwork" 
> that should support calls between ARM and THUMB mode..
> Then... im not so good at writing code in assembler, I can just 
read 
> it so.. any more help is very welcome.

Yes. If you're running ARM code and u need to use the IAP u need 2do 
a thumb instruction.

Though I'm not familiar with your compiler, does GCC have thumb/arm 
directives that u can add-on to fuction definitions? Something 
like...

typdef _thumb void (*IAP)(unsigned int[], unsigned int[])
{
.....
}

If yes, then modifying your IAP call to a thumb function should do 
it.

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.