Forum Discussion
Hello Embeded_Guy,
Well my question is related to below code:
//void* tx_data = (void*) 0x00030000; /* pointer to data to send */
//void* rx_buffer = (void*) 0x00040000; /* pointer to rx buffer this can the memory destination base+ user offset */
Instead of fixing the address in C code, is there any better alternative in C to allow the C compiler to pick the free address location based on the transfer size?
If i replace above code with:
void* tx_data = (void*)alt_uncached_malloc (data_size);
void* rx_buffer = (void*)alt_uncached_malloc (data_size);
then both addresses are generated as below upon simulating the same system in modelsim (Log file attached):
# Testing RAM from 0x80024140 to 0x800251A0
How to control the generation of this address in C so that we don't have to provide fixed address in C code?