Keil Logo Arm Logo

LOCATING A STRING IN MEMORY

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
George Mylonas
Posted
29-Sep-2000 18:48 GMT
Toolset
C166
New! LOCATING A STRING IN MEMORY
Hi there,

I'm using uVision2 and trying to initialize and locate a string
at memory address 0x50000 in order to perform some calculations later on.

So, I put the string in the file MYSTRING.C which now contains:

unsigned char mystring[]={0x1C,0x1F,0x21,0x2F,0x36,0x39,0x39,....etc};


Then, I use the linker to try locate it at address 0x50000.
In the User Sections space I put
?FD?MYSTRING (0x50000)

When I compile my files I get the following error message:

linking...
*** ERROR 110: CANNOT FIND SECTION OR REGBANG
SECTION: ?FD?MYSTRING
CLASS:


Can you please tell me what I'm doing wrong?

Regards
George
Read-Only
Author
Keil Support
Posted
1-Oct-2000 01:16 GMT
Toolset
C166
New! RE: LOCATING A STRING IN MEMORY
Change your user sections from:

?FD?MYSTRING (0x50000)

to the following:

?FD?MYSTRING%FDATA (0x50000)

And it should work.

Keil Support

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.