- Moved the menu texts to dedicated file to support future language switch option
- split the menu into core, elements as generic modules git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@270 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
@@ -115,7 +115,6 @@ ErrorStatus InternalFlash_write(const struct InternalFlash* self, uint32_t* buff
|
||||
{
|
||||
// Start address is NOT OK
|
||||
returnValue = ERROR;
|
||||
LOGGER_DEBUG(mainLog, "StartAddress error %X (%X %X)", _address, self->startAddress, self->endAddress);
|
||||
}
|
||||
}
|
||||
if (returnValue == SUCCESS)
|
||||
@@ -125,7 +124,6 @@ ErrorStatus InternalFlash_write(const struct InternalFlash* self, uint32_t* buff
|
||||
{
|
||||
// End address is NOT OK
|
||||
returnValue = ERROR;
|
||||
LOGGER_DEBUG(mainLog, "EndAddress error %X (%X)", _endAddress, self->endAddress);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -133,7 +131,6 @@ ErrorStatus InternalFlash_write(const struct InternalFlash* self, uint32_t* buff
|
||||
if (returnValue == SUCCESS)
|
||||
{
|
||||
|
||||
LOGGER_DEBUG(mainLog, "Writing on address %X with length %d until address %X", _address, length *4, _endAddress);
|
||||
|
||||
// Unlock the FLASH bank
|
||||
FLASH_Unlock();
|
||||
@@ -142,14 +139,11 @@ ErrorStatus InternalFlash_write(const struct InternalFlash* self, uint32_t* buff
|
||||
int bufferIndex = 0;
|
||||
while((_address < _endAddress) && (FLASHStatus == FLASH_COMPLETE))
|
||||
{
|
||||
LOGGER_DEBUG(mainLog, "address %X --- Data %d", _address, buffer[bufferIndex]);
|
||||
FLASHStatus = FLASH_ProgramWord(_address, buffer[bufferIndex++]);
|
||||
// 32bit data register requires increment by 4 for next word address
|
||||
_address = _address + 4;
|
||||
vTaskDelay(100);
|
||||
}
|
||||
|
||||
LOGGER_DEBUG(mainLog, "Writing done = flash status is %d", FLASHStatus);
|
||||
// After programming, lock the FLASH
|
||||
FLASH_Lock();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user