Friday, December 15th 2017, 8:51pm UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

fubo73

Beginner

Date of registration: Sep 26th 2017

Posts: 2

1

Tuesday, September 26th 2017, 10:50am

[SOLVED] How get value of a pointer in a variable in Ozone script

Hi all,

I would want to load in an Ozone script variable the value or address of a symbol defined in elf file. Something like:

C/C++ Source code

1
var = Elf.GetVal("&variable")

Is it possible?

Thanks in advance.

This post has been edited 1 times, last edit by "fubo73" (Sep 26th 2017, 10:51am)


SEGGER - Johannes

Super Moderator

Date of registration: Aug 31st 2012

Posts: 366

2

Wednesday, September 27th 2017, 4:21pm

Hi,

Yes, it is possible with this command:

C/C++ Source code

1
var = Elf.GetExprValue("&variable");


Regards
Johannes

fubo73

Beginner

Date of registration: Sep 26th 2017

Posts: 2

3

Wednesday, September 27th 2017, 6:14pm

Thanks, it worked!