Downloading to on-chip Flash on an STR710RZ device results in the following error messages: Load size error. (Addr:=0x20000000) Unknown Error and popup window display: Cannot Load Flash Programming Algorithm!
so, i create a new Programming Algorithm as follow:
//FlashPrg.c int Init (unsigned long adr, unsigned long clk, unsigned long fnc) { return (0); } int UnInit (unsigned long fnc) { return (0); } int EraseChip (void) { return (0); // Done } int EraseSector (unsigned long adr) { return (0); // Done } int ProgramPage (unsigned long adr, unsigned long sz, unsigned char *buf) { return (0); // Done }
when i use this new Algorithm download my program, it is Done, and get output message: Full Chip Erase Done. Programming Done.
then, i insert a arry in "FlashPrg.c" to make it's code larger:
//FlashPrg.c const int _buff_[30];
the error message is apear again!