Embetronicx / STM32-Bootloader

STM32 Custom Bootloader from scratch
76 stars 38 forks source link

ETX_Bootloader_2.0 Problem #5

Closed timurlen44 closed 11 months ago

timurlen44 commented 11 months ago

Hi i saw a problem in "etx_ota_update.c" file at line 369

ret = HAL_FLASH_Program( FLASH_TYPEPROGRAM_BYTE, (ETX_APP_FLASH_ADDR + ota_fw_received_size), data[4+i] );

The error is the "data[4+i]" part. It should be replaced with "data[i]"

Embetronicx commented 11 months ago

Fixed it.