--- In lpc2000@yahoogroups.com, "Leighton Rowe" <leightonsrowe@y...>
wrote:
>
> > 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.
Hi
Thanks for your help.. but i did get it to work.. but I still dont
know what i was doing wrong.. but this is how i solved it...
for all C-files im using i added "-mthumb-interwork" command to the
gcc-compiler. Then the code that is generated can handel calls
between ARM och THUMB code.
Now i can go home from work today and feel happy =)...
Until next time... bye
/ Fredrik Martinsson, embedded developer, SwedenMessage
Re: I need IAP help...
2004-10-26 by albin_martinsson
Attachments
- No local attachments were found for this message.