Content originally posted in LPCWare by krhodesnb on Sun Feb 23 06:40:12 MST 2014
In case it helps anyone else, I successfully used the redlib version in a newlib build. You have to resolve the redlib version of memcpy, with the following:
// this is put here because the spifi_flash library is built with Redlib, not Newlib.
// This means that we must satisfy the linker by providing the redlib version of the memcpy
// function of Redlib
unsigned char * __aeabi_memcpy4(unsigned char *dest, unsigned char *src, int len)
{
return(memcpy(dest, src, len));
}
Once you do this, the project builds and can successfully program the SPIFI-based flash.