aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Drivers/flash_ram/FlashProgram.c
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2020-02-02 13:18:56 +0200
committerShlomo Hecht <shlomo@twine-s.com>2020-02-02 13:18:56 +0200
commitad179a57384aeb2e2f1e8913a393ed6b470a5328 (patch)
treecef7de158883d2712df01329db93ed4825549ac9 /Software/Embedded_SW/Embedded/Drivers/flash_ram/FlashProgram.c
parent713b1b6eddd5c4ee900d5c1cb138849608940c7f (diff)
downloadTango-ad179a57384aeb2e2f1e8913a393ed6b470a5328.tar.gz
Tango-ad179a57384aeb2e2f1e8913a393ed6b470a5328.zip
improve flash and memory handling, reduce size of app flash
Diffstat (limited to 'Software/Embedded_SW/Embedded/Drivers/flash_ram/FlashProgram.c')
-rw-r--r--Software/Embedded_SW/Embedded/Drivers/flash_ram/FlashProgram.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Software/Embedded_SW/Embedded/Drivers/flash_ram/FlashProgram.c b/Software/Embedded_SW/Embedded/Drivers/flash_ram/FlashProgram.c
index 9167a33d2..37c2280c9 100644
--- a/Software/Embedded_SW/Embedded/Drivers/flash_ram/FlashProgram.c
+++ b/Software/Embedded_SW/Embedded/Drivers/flash_ram/FlashProgram.c
@@ -104,10 +104,9 @@ uint32_t ReadAppAndProgram(uint32_t ui32FlashStart,uint32_t ui32FileSize,void* b
// block passed to the flash function must be divisible by 4.
//
- status = FlashProgram((uint32_t *)ui32BufferAddr, ui32ProgAddr,
- (ui32DataSize + 3) & ~3);
+ status = FlashProgram((uint32_t *)ui32BufferAddr, ui32ProgAddr,(ui32DataSize + 3) & ~3);
if (status)
- LOG_ERROR(status,"ROM_FlashProgram");
+ Report("FlashProgram Error", __FILE__,status,ui32FlashStart , RpMessage, (ui32DataSize + 3) & ~3, 0);
//
// If there is more image to program, then update the programming