diff Discovery/Src/externCPU2bootloader.c @ 53:f64cf099a7f5

Allow RTE binaries > 64k size
author Ideenmodellierer
date Sun, 05 Aug 2018 12:57:23 +0200
parents 5f11787b4f42
children 5ca177d2df5d
line wrap: on
line diff
--- 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;