Merge pull request #482 from bigbrett/aurix-hotfixes

Fix AURIX build error
pull/483/head
David Garske 2024-07-31 12:33:43 -07:00 committed by GitHub
commit 4d18fe837d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -201,13 +201,13 @@ static void RAMFUNCTION programCachedSector(uint32_t sectorAddress,
for (offset = 0;
offset < IFXFLASH_PFLASH_BURST_LENGTH / (2 * sizeof(uint32_t));
offset++) {
bufferIndex =
bufferIdx =
burstIdx * (IFXFLASH_PFLASH_BURST_LENGTH / sizeof(uint32_t))
+ (offset * 2);
IfxFlash_loadPage2X32(UNUSED_PARAMETER,
sectorBuffer[bufferIndex],
sectorBuffer[bufferIndex + 1]);
sectorBuffer[bufferIdx],
sectorBuffer[bufferIdx + 1]);
}
/* Write the page */