From 13c6e05741a3fa04c3e628f57637ec389aefe337 Mon Sep 17 00:00:00 2001 From: Sebastian Romero Date: Thu, 1 Jun 2023 16:53:31 +0200 Subject: [PATCH] Fix memory fault in example sketch --- .../flash-optimized-key-value-store/content.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/content/hardware/04.pro/boards/portenta-h7/tutorials/flash-optimized-key-value-store/content.md b/content/hardware/04.pro/boards/portenta-h7/tutorials/flash-optimized-key-value-store/content.md index 3daff4e06c..7900f0addb 100644 --- a/content/hardware/04.pro/boards/portenta-h7/tutorials/flash-optimized-key-value-store/content.md +++ b/content/hardware/04.pro/boards/portenta-h7/tutorials/flash-optimized-key-value-store/content.md @@ -161,11 +161,15 @@ void setup() srand(micros()); // Initialize the flash IAP block device and print the memory layout - blockDevice.init(); - Serial.printf("FlashIAP block device size: %llu\r\n", blockDevice.size()); - Serial.printf("FlashIAP block device read size: %llu\r\n", blockDevice.get_read_size()); - Serial.printf("FlashIAP block device program size: %llu\r\n", blockDevice.get_program_size()); - Serial.printf("FlashIAP block device erase size: %llu\r\n", blockDevice.get_erase_size()); + blockDevice.init(); + Serial.print("FlashIAP block device size: "); + Serial.println(blockDevice.size()); + Serial.print("FlashIAP block device read size: "); + Serial.println(blockDevice.get_read_size()); + Serial.print("FlashIAP block device program size: "); + Serial.println(blockDevice.get_program_size()); + Serial.print("FlashIAP block device erase size: "); + Serial.println(blockDevice.get_erase_size()); // Deinitialize the device blockDevice.deinit();