Topic
  • 2 replies
  • Latest Post - ‏2013-10-04T13:54:05Z by RangaReddy
addry
addry
1 Post

Pinned topic Is it possible to manipulate the address of the variable in RTRT?

‏2013-09-13T12:14:29Z |

Hello,

For example I have the following code:

/* a and b have to be taken from the linker file where for example a= 0x0004F300 and b = 0x0004F700 */
extern uint32 a;
extern uint32 b;
volatile uint32 start_address;
volatile uint32 end_address;


start_address = &a ;
end_address   = &b ;

I have to test a zone of memory where  a represents  the start address and b represents  the end address of the memory.

The addresses of the variables a and b have to be inputs in my test.Is it possible to manipulate these addresses  in RTR?

Or how can I read the addresses from the linker file?

Thank you!

  • rminnich
    rminnich
    1 Post

    Re: Is it possible to manipulate the address of the variable in RTRT?

    ‏2013-10-01T16:42:52Z  

    It depends on the compiler.  You either need to locate a and b using the linker or using a pragma.  You can probably use the pragma (if the compiler supports it) in your .ptu file to declare the variable.

  • RangaReddy
    RangaReddy
    59 Posts

    Re: Is it possible to manipulate the address of the variable in RTRT?

    ‏2013-10-04T13:54:05Z  

    If you declare a and b as extern in your source file, then you can manipulate the addresses of these variable in RTRT script.