I am using zynq device, trying to transfer data from DRAM to the peripheral of ARM by a piece of standalone program (without OS). In the example code, I found this code to statement the source address and destination address of the transaction.
volatile static u8 SrcBuffer[BUFFER_BYTESIZE] __attribute__ ((aligned (64)));
volatile static u8 DestBuffer[BUFFER_BYTESIZE] __attribute__ ((aligned (64)));
Since there's no OS, what's the value of address from? How can I change it?
You need to define a section a in the linker file and then place the data in it using (for GCC):
__attribute__ (( section ( "your_section" ) ) )
In the linker file (will have other stuff in it already as well) something like: