Hi,
I use this library for external memory boot loader for Flash Magic.
ProgramPage(...) fubction is called every 256 bytes while receiving
write data via UART3.
With FlashDevice.szPage 16384, ProgramPage does not return.
So I overwrite FlashDevice.szPage 256 after Init().
Then ProgramPage(...) works normally.
Should I use another function?
souarse code:
// programs a page in memory
// returns 0 for OK, 1 for failed
int Memory_ProgramPage
(
unsigned long adr, //
address of page
unsigned long sz, // size
of page
unsigned char *buf // data
to program into page
)
{
uint32_t ret;
ret = ProgramPage(adr, FlashDevice.szPage, buf);
return ret;
}