Fixed some major issues with RAM shortage. Also moved the cached storage to a MALLOC design instead of fixed memory usage. Using freertos porteds malloc and free required to move to HEAP4 to make sure memory does not get fragmented.
Resized nearly all task stacks Also: - Menu fixes for insertion. Almost done, just need to fix the negative voltage insertion for mcp and cathode - Added Device parameters, must be filled in git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@271 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
@@ -105,7 +105,7 @@ ErrorStatus InternalFlash_write(const struct InternalFlash* self, uint32_t* buff
|
||||
ErrorStatus returnValue = SUCCESS;
|
||||
FLASH_Status FLASHStatus = FLASH_COMPLETE;
|
||||
uint32_t _address = address;
|
||||
uint32_t _endAddress = address + (length * 4) - 1;
|
||||
uint32_t _endAddress = address + length * 4 - 1;
|
||||
if (self->initialized)
|
||||
{
|
||||
if (returnValue == SUCCESS)
|
||||
@@ -151,7 +151,6 @@ ErrorStatus InternalFlash_write(const struct InternalFlash* self, uint32_t* buff
|
||||
else
|
||||
{
|
||||
returnValue = ERROR;
|
||||
LOGGER_ERROR(mainLog, "BOEH");
|
||||
}
|
||||
return returnValue;
|
||||
}
|
||||
@@ -162,7 +161,7 @@ ErrorStatus InternalFlash_read(const struct InternalFlash* self, uint32_t* buffe
|
||||
ErrorStatus returnValue = SUCCESS;
|
||||
|
||||
uint32_t _address = address;
|
||||
uint32_t _endAddress = address + (length * 4);
|
||||
uint32_t _endAddress = address + length * 4 - 1;
|
||||
|
||||
if (self->initialized)
|
||||
{
|
||||
@@ -174,6 +173,7 @@ ErrorStatus InternalFlash_read(const struct InternalFlash* self, uint32_t* buffe
|
||||
// Start address is NOT OK
|
||||
returnValue = ERROR;
|
||||
}
|
||||
|
||||
}
|
||||
if (returnValue == SUCCESS)
|
||||
{
|
||||
@@ -183,6 +183,7 @@ ErrorStatus InternalFlash_read(const struct InternalFlash* self, uint32_t* buffe
|
||||
// End address is NOT OK
|
||||
returnValue = ERROR;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Boundaries OK - Read from FLASH
|
||||
|
||||
Reference in New Issue
Block a user