PDA

View Full Version : problem:print string when ARM is running in ROM only


Zhenhuan Du
08-12-2006, 03:20 AM
Hello,
I have to write a self test routine that was required to run in rom
only(ram is not allowed). For ADS1.2 assembler,how can i define a string
such as "abcd" without using variable? Thanks!

Michael Schnell
08-12-2006, 03:47 AM
Why should you not use the on-chip RAM of the chip ? There is no need to
test same.

If not using ARM at all, you can't use something like variable strings.
Of course you can use pointers to constant strings.

-Michael

Michael Schnell
08-12-2006, 04:36 AM
Why should you not use the on-chip RAM of the chip ? There is no need to
test same.

If not using RAM at all, you can't use something like variable strings.
Of course you can use pointers to constant strings.

-Michael

Dan Henry
08-12-2006, 06:23 PM
On Thu, 07 Dec 2006 21:20:30 +0800, Zhenhuan Du <duzhenhuan@163.com>
wrote:

>Hello,
> I have to write a self test routine that was required to run in rom
>only(ram is not allowed). For ADS1.2 assembler,how can i define a string
>such as "abcd" without using variable? Thanks!

String literals are typically allocated to ROM.

--
Dan Henry

Zhenhuan Du
09-12-2006, 11:27 PM
Zhenhuan Du wrote:
> Hello,
> I have to write a self test routine that was required to run in
> rom only(ram is not allowed). For ADS1.2 assembler,how can i define a
> string such as "abcd" without using variable? Thanks!
thanks you all, using a "DCB" definition in readonly area solved the
problem!