[En-Nut-Discussion] eboot bug fix
Jean Pierre Gauthier
jp.gauthier at wanadoo.fr
Mon Feb 14 14:08:08 CET 2005
eboot assumes that its size is 8K in tftp.c (instead 4K) for 'self' flash
write protection.
Bug appairs when your code crosses over 128-8K limit.
Fix:
Replace 480 (pages of 256 bytes) by 496 in FlashPage sub-routine test.
Jean Pierre
static void FlashPage(u_short page, void *data, u_short len)
{
u_short i;
u_short *wp = data;
if (len > 256)
len = 256;
if (page >= 256) {
if (page >= 496) /* bug fix for 4K, was 480 for 8K eboot */
return;
RAMPZ = 1;
} else
More information about the En-Nut-Discussion
mailing list