Mercurial > public > ostc4
changeset 53:f64cf099a7f5
Allow RTE binaries > 64k size
author | Ideenmodellierer |
---|---|
date | Sun, 05 Aug 2018 12:57:23 +0200 |
parents | d24395f7c939 |
children | 321df89d5710 |
files | Discovery/Inc/externCPU2bootloader.h Discovery/Src/externCPU2bootloader.c |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Discovery/Inc/externCPU2bootloader.h Sun Aug 05 12:56:43 2018 +0200 +++ b/Discovery/Inc/externCPU2bootloader.h Sun Aug 05 12:57:23 2018 +0200 @@ -36,6 +36,6 @@ uint8_t extCPU2bootloader_start(uint8_t *version, uint16_t *chipID); void extCPU2bootloader_continue(void); -uint8_t extCPU2bootloader( uint8_t* buffer, uint16_t length, char* display_text); +uint8_t extCPU2bootloader( uint8_t* buffer, uint32_t length, char* display_text); #endif /* EXTERN_CPU2_BOOTLOADER_H */
--- a/Discovery/Src/externCPU2bootloader.c Sun Aug 05 12:56:43 2018 +0200 +++ b/Discovery/Src/externCPU2bootloader.c Sun Aug 05 12:57:23 2018 +0200 @@ -85,7 +85,7 @@ } -uint8_t extCPU2bootloader_internal(uint8_t* buffer, uint16_t length, char* display_text) +uint8_t extCPU2bootloader_internal(uint8_t* buffer, uint32_t length, char* display_text) { uint8_t version = 0; uint16_t chipID = 0; @@ -96,7 +96,7 @@ return 0; HAL_Delay(100); uint16_t i=0; - uint16_t lengthsave = length; + uint32_t lengthsave = length; uint8_t percent = 0; while(length) @@ -123,7 +123,7 @@ } -uint8_t extCPU2bootloader(uint8_t* buffer, uint16_t length, char* display_text) +uint8_t extCPU2bootloader(uint8_t* buffer, uint32_t length, char* display_text) { uint8_t result = 0;