Sign in

username:

password:



Not a member?

Search lpc2000



Search tips

Subscribe to lpc2000



lpc2000 by Keywords

2106 | ADC | ARM7 | Atmel | Bootloader | CAN | CrossStudio | CrossWorks | DDS | ECos | Ethernet | ETM | FIFO | FLASH | FPGA | GCC | GDB | GNU | GNUARM | GPIO | I2C | IAP | IAR | JTAG | Kickstart | LCD | Linux | LPC | LPC-E2294 | LPC2000 | LPC2100 | LPC2104 | Lpc2106 | Lpc210x | LPC2114 | LPC2119 | LPC2124 | LPC2129 | Lpc2138 | LPC213x | LPC21xx | LPC2210 | LPC2212 | LPC2214 | LPC2292 | LPC2294 | LPC2xxx | LPC3128 | MCB2100 | Olimex | Philips | PWM | Rowley | RTC | RTOS | SPI | SSP | UART | UART0 | UART1 | ULINK | USB | Watchdog | Wiggler

Ads

Discussion Groups

Discussion Groups | LPC2000 | Keil RAM function problem

Discussion group dedicated to the Philips LPC2000 family of ARM MCUs

Keil RAM function problem - beastkiki - Apr 20 6:29:39 2006

Hi all,
I use Keil uVision 3 with LPC2212.
I must write one function in assembler and execute it from internal
RAM on LPC2212.
How can I do that?

I am trying:
AREA ?PR?RAMFunc, ERAM
RSEG ?PR?RAMFunc

PUBLIC RAMFunc?A
PUBLIC RAMFunc?T
; veneer code for Thumb entry
RAMFunc?T PROC CODE16
bx r15
nop
ENDP

RAMFunc?A PROC CODE32

stmfd sp!,{r0-r12,lr}

ldr r0,=ioclr0

........
ENDP

But I received error SYNTAX ERROR on AREA line.:(
What is the problem?
I really need help!



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )


Re: Keil RAM function problem - Ken Wada - Apr 20 12:30:27 2006

Try putting double quoutes around ERAM... as follows:
AREA ?PR?RAMFunc, "ERAM"

This should work.

By the way...why don't you use the __ram directive, (and code your
function in C...you can still use in-line assembly if you want...)
that Keil gives you? This is far easier to do, and works very well!

Ken Wada

--- In l...@yahoogroups.com, "beastkiki" wrote:
>
> Hi all,
> I use Keil uVision 3 with LPC2212.
> I must write one function in assembler and execute it from internal
> RAM on LPC2212.
> How can I do that?
>
> I am trying:
> AREA ?PR?RAMFunc, ERAM
> RSEG ?PR?RAMFunc
>
> PUBLIC RAMFunc?A
> PUBLIC RAMFunc?T
> ; veneer code for Thumb entry
> RAMFunc?T PROC CODE16
> bx r15
> nop
> ENDP
>
> RAMFunc?A PROC CODE32
>
> stmfd sp!,{r0-r12,lr}
>
> ldr r0,=ioclr0
>
> ........
> ENDP
>
> But I received error SYNTAX ERROR on AREA line.:(
> What is the problem?
> I really need help!
>



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )