mirror of https://github.com/wolfSSL/wolfBoot.git
commit
4d18fe837d
|
@ -201,13 +201,13 @@ static void RAMFUNCTION programCachedSector(uint32_t sectorAddress,
|
||||||
for (offset = 0;
|
for (offset = 0;
|
||||||
offset < IFXFLASH_PFLASH_BURST_LENGTH / (2 * sizeof(uint32_t));
|
offset < IFXFLASH_PFLASH_BURST_LENGTH / (2 * sizeof(uint32_t));
|
||||||
offset++) {
|
offset++) {
|
||||||
bufferIndex =
|
bufferIdx =
|
||||||
burstIdx * (IFXFLASH_PFLASH_BURST_LENGTH / sizeof(uint32_t))
|
burstIdx * (IFXFLASH_PFLASH_BURST_LENGTH / sizeof(uint32_t))
|
||||||
+ (offset * 2);
|
+ (offset * 2);
|
||||||
|
|
||||||
IfxFlash_loadPage2X32(UNUSED_PARAMETER,
|
IfxFlash_loadPage2X32(UNUSED_PARAMETER,
|
||||||
sectorBuffer[bufferIndex],
|
sectorBuffer[bufferIdx],
|
||||||
sectorBuffer[bufferIndex + 1]);
|
sectorBuffer[bufferIdx + 1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Write the page */
|
/* Write the page */
|
||||||
|
|
Loading…
Reference in New Issue