Write a block of data using a LIBMEM driver.
Note that the address range being written to cannot span multiple LIBMEM drivers.
const unsigned char buffer[8] = { 1, 2, 3, 4, 5, 6, 7, 8 };
int res;
res = libmem_write((uint8_t *)0x10000000, buffer, sizeof(buffer));
if (res == LIBMEM_STATUS_SUCCESS)
printf("libmem_write : success\n");
else
printf("libmem_write : failed (%d)\n", res);