Hi all:
I'm designing a BootLoader that needs to progrem SREC files to flash, but there's a part of the SREC file as follow. if progrem eight words once,it will break as follow when data is not in one flash page.if progrem one word by one word ,when program next eight words, it will auto change one word which just has progremd.how can I deal with it.
the srec file:
S3150100737C006A006A006A0014001500160054000A1F
program eight words
0x0100737C 006A006A FFFFFFFF FFFFFFFF FFFFFFFF//after program 006A006A it will break
program one words
0x0100737C 006A006A 006A0014 00150016 00000000 /// when program 0x0100738C it will be set to 00000000
sdk code:
for (sourceIndex = 0U; sourceIndex < temp; sourceIndex++)
{
/* Programming write */
*(volatile uint32_t *)dest = *(volatile uint32_t *)source;
/* Update dest, size, source index */
dest += C55_WORD_SIZE;
source += C55_WORD_SIZE;
size -= C55_WORD_SIZE;
/* Is it time to do page programming? */
if(0U == (dest % FLASH_C55_PROGRAMABLE_SIZE))
{
break;////////////////////////////////////////// it will break when data in two pages
}
}
Best Regards,
gong jun
Solved! Go to Solution.
Hi,
here is an explanation of the behavior:
Regards,
Lukas
hi Lukas,
It seems that I can only change the SREC file,Thank you very much!
Best Regards,
gong jun