Skip to content

Commit e28dd9e

Browse files
committed
wifi: fix memory mapped firmware write loop
1 parent 264de24 commit e28dd9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libraries/STM32H747_System/examples/QSPIFormat/QSPIFormat.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ void flashWiFiFirmwareMapped() {
219219
while (byte_count < file_size) {
220220
if (byte_count + chunk_size > file_size)
221221
chunk_size = file_size - byte_count;
222-
int ret = root->program(wifi_firmware_image_data, offset + byte_count, chunk_size);
222+
int ret = root->program(&wifi_firmware_image_data[byte_count], offset + byte_count, chunk_size);
223223
if (ret != 0) {
224224
Serial.println("Error writing memory mapped firmware");
225225
break;

libraries/STM32H747_System/examples/WiFiFirmwareUpdater/WiFiFirmwareUpdater.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void setup() {
112112
while (byte_count < file_size) {
113113
if(byte_count + chunck_size > file_size)
114114
chunck_size = file_size - byte_count;
115-
int ret = root.program(wifi_firmware_image_data, offset + byte_count, chunck_size);
115+
int ret = root.program(&wifi_firmware_image_data[byte_count], offset + byte_count, chunck_size);
116116
if (ret != 0) {
117117
Serial.println("Error writing firmware data");
118118
break;

0 commit comments

Comments
 (0)