Skip to content

Commit 91c4098

Browse files
authored
Merge pull request #1080 from arduino/sebromero/flash-memfault-fix
Fix bus fault in example sketch
2 parents caa04ab + 13c6e05 commit 91c4098

File tree

1 file changed

+9
-5
lines changed
  • content/hardware/04.pro/boards/portenta-h7/tutorials/flash-optimized-key-value-store

1 file changed

+9
-5
lines changed

content/hardware/04.pro/boards/portenta-h7/tutorials/flash-optimized-key-value-store/content.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,15 @@ void setup()
161161
srand(micros());
162162

163163
// Initialize the flash IAP block device and print the memory layout
164-
blockDevice.init();
165-
Serial.printf("FlashIAP block device size: %llu\r\n", blockDevice.size());
166-
Serial.printf("FlashIAP block device read size: %llu\r\n", blockDevice.get_read_size());
167-
Serial.printf("FlashIAP block device program size: %llu\r\n", blockDevice.get_program_size());
168-
Serial.printf("FlashIAP block device erase size: %llu\r\n", blockDevice.get_erase_size());
164+
blockDevice.init();
165+
Serial.print("FlashIAP block device size: ");
166+
Serial.println(blockDevice.size());
167+
Serial.print("FlashIAP block device read size: ");
168+
Serial.println(blockDevice.get_read_size());
169+
Serial.print("FlashIAP block device program size: ");
170+
Serial.println(blockDevice.get_program_size());
171+
Serial.print("FlashIAP block device erase size: ");
172+
Serial.println(blockDevice.get_erase_size());
169173
// Deinitialize the device
170174
blockDevice.deinit();
171175

0 commit comments

Comments
 (0)