M
Michael
Hi, all,
I want to keep the address of one static array in some place in order
to access the content of this array in other module. Which way should
I use?
I try it in this way: find one DRAM address, e.g. 0xff000000, and do
the following:
*(unsigned int *)0xff000000 = (unsigned int *)DataArray;
but it can not pass the compile process and there is a warning:
warning: assignment makes integer from pointer without a cast
I wonder if the compile can not know the exact address of DataArray at
this time and can not do this step. If so, does this mean that no way
to keep the address of DataArray in DRAM or Register?
Thank you very much for your suggestion!
Michael
I want to keep the address of one static array in some place in order
to access the content of this array in other module. Which way should
I use?
I try it in this way: find one DRAM address, e.g. 0xff000000, and do
the following:
*(unsigned int *)0xff000000 = (unsigned int *)DataArray;
but it can not pass the compile process and there is a warning:
warning: assignment makes integer from pointer without a cast
I wonder if the compile can not know the exact address of DataArray at
this time and can not do this step. If so, does this mean that no way
to keep the address of DataArray in DRAM or Register?
Thank you very much for your suggestion!
Michael