Yahoo Groups archive

Lpc2000

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

Message

Re: How to declare RAM functions in GCC

2005-01-15 by sig5534

> Try calling it indirectly:
> 
> static void (*pramfunc)(void) = IAP_Test;
> (*pramfunc)();
> 
> Karl Olsen

Karl, you're close but no cigar yet.  I tried it, and the compiler 
took it, but when the call gets made I get a PreFetch Abort Excep 
error.

The IAP_Test() func got put in RAM correctly.  It is right at 
0x40000000.  But the long call methodology is not quite right.  
The "sjo" person mentioned something about another long call method.  
But I'm not quite sure how he meant to set that up with the pragmas.

It's almost there.  Anymore ideas on making the long call?

Thanks,  Chris.

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.