title: warning: passing argument 1 of ‘memcpy’ makes pointer from integer without a cast
body: <p>I am working on a c code which is to be run on embedded linux. I have to copy the contents of an array to a block of memory. I have defined the base address of the memory as:</p>
  
  <pre><code>#define BASE_ADDRESS 0x40000000
  </code></pre>
  
  <p>Now when I memcpy the contents of an array onto the base address, I get the warning of making a pointer from integer without a cast. How do I remove this warning? This is my code:</p>
  
  <pre><code>unsigned int rx1_arr[64] = {0}; //some data is added to this array before memcpy
  memcpy(BASE_ADDRESS, &amp;rx1_arr, 64*sizeof(int));
  </code></pre>