cancel
Showing results for 
Search instead for 
Did you mean: 

How to get data from a fixed address after startup?

DDing.1
Associate II

I want to take out the data I need from a certain address after startup,

I created an array inside tf-a ( char array [0x200] = {}) , and I read the address of the array printf("%p", (void*) &array), which seems to never be repeated after many compilations The address will be changed, but the question is how do I get the data of this array address after startup?

I tried to change the address in the conf.mk file to the array address. Modify the get_tpm_phys_params() function in the tpm.c file in optee_os to get the character address, and finally get it with the code of xtest1024, but it seems to be unsuccessful. Could you please tell me what is wrong or is there any way to get the data in my address?

0693W00000BZbG5QAL.png

2 REPLIES 2
Uwe Bonnes
Principal III

Create a special linker section for your data.

MM..1
Chief II

I try understand what you do , but cant.

I created an array inside tf-a ???

Simply read data from memory is

*(addrofread)

and ofcourse datatype selection.