diff --git a/README.md b/README.md index 7b39698..73b7aac 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ ## Table of Contents +* [Important Notes for Portenta_H7](#important-notes-for-portenta_h7) * [Why do we need this MultiResetDetector_Generic library](#why-do-we-need-this-multiresetdetector_generic-library) * [Features](#features) * [Currently supported Boards](#currently-supported-boards) @@ -114,6 +115,18 @@ * [Contributing](#contributing) * [License](#license) * [Copyright](#copyright) + +--- +--- + +### Important Notes for Portenta_H7 + +The LittleFS of the new **Portenta_H7** board currently tested OK with only **maximum 8 files**. The files, from 9 and up, somehow strangely can't be written and / or read. This is possibly a bug in the [`ArduinoCore-mbed mbed_portenta core`](https://github.com/arduino/ArduinoCore-mbed). The same behaviour is observed from core v2.0.0 up to v2.4.1. + +If LittleFS size is reduced to 1024KB, test is OK with only **maximum 4 files**. + +Beware and keep cheking for updates. + --- --- @@ -594,7 +607,7 @@ This is terminal debug output when running [minimal](examples/minimal) on ***Ada ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS Flag read = 0xfffe0001 multiResetDetectorFlag = 0xfffe0001 @@ -616,7 +629,7 @@ ClearFlag write = 0xfffe0001 ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS Flag read = 0xfffe0001 multiResetDetectorFlag = 0xfffe0001 @@ -633,7 +646,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS Flag read = 0xfffd0002 multiResetDetectorFlag = 0xfffd0002 @@ -650,7 +663,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS Flag read = 0xfffc0003 multiResetDetectorFlag = 0xfffc0003 @@ -667,7 +680,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS Flag read = 0xfffb0004 multiResetDetectorFlag = 0xfffb0004 @@ -684,7 +697,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS Flag read = 0xfffa0005 multiResetDetectorFlag = 0xfffa0005 @@ -708,7 +721,7 @@ This is terminal debug output when running [minimal](examples/minimal) on ***Tee ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- EEPROM size = 1080, start = 0 @@ -726,7 +739,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- EEPROM size = 1080, start = 0 @@ -741,7 +754,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- EEPROM size = 1080, start = 0 @@ -756,7 +769,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- EEPROM size = 1080, start = 0 @@ -771,7 +784,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- EEPROM size = 1080, start = 0 @@ -786,7 +799,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- EEPROM size = 1080, start = 0 @@ -808,7 +821,7 @@ This is terminal debug output when running [minimal](examples/minimal) on ***SAM ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- multiResetDetectorFlag = 0xffff0000 lowerBytes = 0x0, upperBytes = 0x0 @@ -823,7 +836,7 @@ ClearFlag write = 0xfffe0001 ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- multiResetDetectorFlag = 0xfffe0001 lowerBytes = 0x1, upperBytes = 0x1 @@ -836,7 +849,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- multiResetDetectorFlag = 0xfffd0002 lowerBytes = 0x2, upperBytes = 0x2 @@ -849,7 +862,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- multiResetDetectorFlag = 0xfffc0003 lowerBytes = 0x3, upperBytes = 0x3 @@ -862,7 +875,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- multiResetDetectorFlag = 0xfffb0004 lowerBytes = 0x4, upperBytes = 0x4 @@ -875,7 +888,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- multiResetDetectorFlag = 0xfffa0005 lowerBytes = 0x5, upperBytes = 0x5 @@ -895,7 +908,7 @@ This is terminal debug output when running [minimal](examples/minimal) on ***Ard ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- multiResetDetectorFlag = 0xffffffff lowerBytes = 0xffff, upperBytes = 0x0 @@ -911,7 +924,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- multiResetDetectorFlag = 0xfffe0001 lowerBytes = 0x1, upperBytes = 0x1 @@ -924,7 +937,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- multiResetDetectorFlag = 0xfffd0002 lowerBytes = 0x2, upperBytes = 0x2 @@ -937,7 +950,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- multiResetDetectorFlag = 0xfffc0003 lowerBytes = 0x3, upperBytes = 0x3 @@ -950,7 +963,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- multiResetDetectorFlag = 0xfffb0004 lowerBytes = 0x4, upperBytes = 0x4 @@ -963,7 +976,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- multiResetDetectorFlag = 0xfffa0005 lowerBytes = 0x5, upperBytes = 0x5 @@ -983,7 +996,7 @@ This is terminal debug output when running [minimal](examples/minimal) on **STM3 ``` MultiResetDetector minimal Example Program on NUCLEO_F767ZI -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- (Emulated-)EEPROM size = 16384, start = 0 @@ -1001,7 +1014,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on NUCLEO_F767ZI -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- (Emulated-)EEPROM size = 16384, start = 0 @@ -1016,7 +1029,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on NUCLEO_F767ZI -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- (Emulated-)EEPROM size = 16384, start = 0 @@ -1031,7 +1044,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on NUCLEO_F767ZI -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- (Emulated-)EEPROM size = 16384, start = 0 @@ -1046,7 +1059,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on NUCLEO_F767ZI -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- (Emulated-)EEPROM size = 16384, start = 0 @@ -1061,7 +1074,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on NUCLEO_F767ZI -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- (Emulated-)EEPROM size = 16384, start = 0 @@ -1083,7 +1096,7 @@ This is terminal debug output when running [minimal](examples/minimal) on **RASP ``` MultiResetDetector minimal Example Program on RASPBERRY_PI_PICO -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- Loading MRD file failed @@ -1107,7 +1120,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on RASPBERRY_PI_PICO -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS Flag read = 0xfffe0001 multiResetDetectorFlag = 0xfffe0001 @@ -1124,7 +1137,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS Flag read = 0xfffd0002 multiResetDetectorFlag = 0xfffd0002 @@ -1141,7 +1154,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on RASPBERRY_PI_PICO -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS Flag read = 0xfffc0003 multiResetDetectorFlag = 0xfffc0003 @@ -1158,7 +1171,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on RASPBERRY_PI_PICO -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS Flag read = 0xfffb0004 multiResetDetectorFlag = 0xfffb0004 @@ -1175,7 +1188,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on RASPBERRY_PI_PICO -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS Flag read = 0xfffa0005 multiResetDetectorFlag = 0xfffa0005 @@ -1199,7 +1212,7 @@ This is terminal debug output when running [minimal](examples/minimal) on **Nano ``` MultiResetDetector minimal Example Program on Nano RP2040 Connect -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS size (KB) = 64 LittleFS Mount OK @@ -1224,7 +1237,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on Nano RP2040 Connect -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS size (KB) = 64 LittleFS Mount OK @@ -1243,7 +1256,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on Nano RP2040 Connect -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS size (KB) = 64 LittleFS Mount OK @@ -1262,7 +1275,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on Nano RP2040 Connect -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS size (KB) = 64 LittleFS Mount OK @@ -1281,7 +1294,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on Nano RP2040 Connect -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS size (KB) = 64 LittleFS Mount OK @@ -1300,7 +1313,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on Nano RP2040 Connect -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS size (KB) = 64 LittleFS Mount OK @@ -1326,7 +1339,7 @@ This is terminal debug output when running [minimal](examples/minimal) on **MBED ``` MultiResetDetector minimal Example Program on RaspberryPi Pico -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS size (KB) = 64 LittleFS Mount OK @@ -1351,7 +1364,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on RaspberryPi Pico -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS size (KB) = 64 LittleFS Mount OK @@ -1370,7 +1383,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on RaspberryPi Pico -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS size (KB) = 64 LittleFS Mount OK @@ -1389,7 +1402,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on RaspberryPi Pico -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS size (KB) = 64 LittleFS Mount OK @@ -1408,7 +1421,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on RaspberryPi Pico -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS size (KB) = 64 LittleFS Mount OK @@ -1427,7 +1440,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on RaspberryPi Pico -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS size (KB) = 64 LittleFS Mount OK @@ -1453,7 +1466,7 @@ This is terminal debug output when running [minimal](examples/minimal) on **MBED ``` MultiResetDetector minimal Example Program on Nano 33 BLE -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS size (KB) = 64 LittleFS Mount OK @@ -1483,7 +1496,7 @@ ClearFlag write = 0xfffe0001 ``` MultiResetDetector minimal Example Program on Nano 33 BLE -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS size (KB) = 64 LittleFS Mount OK @@ -1502,7 +1515,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on Nano 33 BLE -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS size (KB) = 64 LittleFS Mount OK @@ -1526,7 +1539,7 @@ ClearFlag write = 0xfffe0001 ``` MultiResetDetector minimal Example Program on Nano 33 BLE -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS size (KB) = 64 LittleFS Mount OK @@ -1545,7 +1558,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on Nano 33 BLE -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS size (KB) = 64 LittleFS Mount OK @@ -1564,7 +1577,7 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on Nano 33 BLE -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- LittleFS size (KB) = 64 LittleFS Mount OK @@ -1592,13 +1605,11 @@ This is terminal debug output when running [minimal](examples/minimal) on **MBED ``` MultiResetDetector minimal Example Program on PORTENTA_H7_M7 -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- Flash Size: (KB) = 2048.00 -FlashIAP Start Address: 0x8080000 -New FlashIAP Start Address: 0x8100000 -Max FlashIAP Size (KB): 1536.00 -Current FlashIAP Size(KB): 1024 +FlashIAP Start Address: = 0x8080000 +LittleFS size (KB) = 1536.00 LittleFS Mount OK Loading DRD file failed multiResetDetectorFlag = 0xd0d04321 @@ -1626,13 +1637,11 @@ ClearFlag write = 0xfffe0001 ``` MultiResetDetector minimal Example Program on PORTENTA_H7_M7 -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- Flash Size: (KB) = 2048.00 -FlashIAP Start Address: 0x8080000 -New FlashIAP Start Address: 0x8100000 -Max FlashIAP Size (KB): 1536.00 -Current FlashIAP Size(KB): 1024 +FlashIAP Start Address: = 0x8080000 +LittleFS size (KB) = 1536.00 LittleFS Mount OK LittleFS Flag read = 0xfffe0001 multiResetDetectorFlag = 0xfffe0001 @@ -1649,13 +1658,11 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on PORTENTA_H7_M7 -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- Flash Size: (KB) = 2048.00 -FlashIAP Start Address: 0x8080000 -New FlashIAP Start Address: 0x8100000 -Max FlashIAP Size (KB): 1536.00 -Current FlashIAP Size(KB): 1024 +FlashIAP Start Address: = 0x8080000 +LittleFS size (KB) = 1536.00 LittleFS Mount OK LittleFS Flag read = 0xfffd0002 multiResetDetectorFlag = 0xfffd0002 @@ -1672,13 +1679,11 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on PORTENTA_H7_M7 -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- Flash Size: (KB) = 2048.00 -FlashIAP Start Address: 0x8080000 -New FlashIAP Start Address: 0x8100000 -Max FlashIAP Size (KB): 1536.00 -Current FlashIAP Size(KB): 1024 +FlashIAP Start Address: = 0x8080000 +LittleFS size (KB) = 1536.00 LittleFS Mount OK LittleFS Flag read = 0xfffc0003 multiResetDetectorFlag = 0xfffc0003 @@ -1695,13 +1700,11 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on PORTENTA_H7_M7 -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- Flash Size: (KB) = 2048.00 -FlashIAP Start Address: 0x8080000 -New FlashIAP Start Address: 0x8100000 -Max FlashIAP Size (KB): 1536.00 -Current FlashIAP Size(KB): 1024 +FlashIAP Start Address: = 0x8080000 +LittleFS size (KB) = 1536.00 LittleFS Mount OK LittleFS Flag read = 0xfffb0004 multiResetDetectorFlag = 0xfffb0004 @@ -1718,13 +1721,11 @@ No Multi Reset Detected ``` MultiResetDetector minimal Example Program on PORTENTA_H7_M7 -MultiResetDetector_Generic v1.7.1 +MultiResetDetector_Generic v1.7.2 ----------------------------------- Flash Size: (KB) = 2048.00 -FlashIAP Start Address: 0x8080000 -New FlashIAP Start Address: 0x8100000 -Max FlashIAP Size (KB): 1536.00 -Current FlashIAP Size(KB): 1024 +FlashIAP Start Address: = 0x8080000 +LittleFS size (KB) = 1536.00 LittleFS Mount OK LittleFS Flag read = 0xfffa0005 multiResetDetectorFlag = 0xfffa0005 @@ -1760,6 +1761,7 @@ You can also see how [`ESP_DoubleResetDetector`](https://github.com/khoih-prog/E 17. [Ethernet_Manager](https://github.com/khoih-prog/Ethernet_Manager) 18. [Ethernet_Manager_STM32](https://github.com/khoih-prog/Ethernet_Manager_STM32) 19. [ESP_WiFiManager_Lite](https://github.com/khoih-prog/ESP_WiFiManager_Lite) +20. [WiFiManager_Portenta_H7_Lite](https://github.com/khoih-prog/WiFiManager_Portenta_H7_Lite) and the list is growing fast. diff --git a/changelog.md b/changelog.md index d4367a5..779ecab 100644 --- a/changelog.md +++ b/changelog.md @@ -12,6 +12,7 @@ ## Table of Contents * [Changelog](#changelog) + * [Releases v1.7.2](#releases-v172) * [Releases v1.7.1](#releases-v171) * [Major Releases v1.7.0](#major-releases-v170) * [Major Releases v1.6.0](#major-releases-v160) @@ -27,6 +28,10 @@ ## Changelog +### Releases v1.7.2 + +1. Back to using auto LittleFS size to fix bug and to permit 8 LittleFS files instead of 4 in previous release. There is a bug somewhere in the [`ArduinoCore-mbed mbed_portenta core`](https://github.com/arduino/ArduinoCore-mbed) and we have to live with it. + ### Releases v1.7.1 1. Change the default and minimum LITTLEFS_PORTENTA_H7_SIZE_KB to 1024KB, instead at maximum available size. This is done to avoid the cases where the code size is larger, and LittleFS size has to be changed, reformatted, leading to data loss. diff --git a/examples/minimal/minimal.ino b/examples/minimal/minimal.ino index a5eb136..05527a8 100644 --- a/examples/minimal/minimal.ino +++ b/examples/minimal/minimal.ino @@ -12,7 +12,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/MultiResetDetector_Generic Licensed under MIT license - Version: 1.7.1 + Version: 1.7.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -25,6 +25,7 @@ 1.6.0 K Hoang 29/08/2021 Add support to MBED Nano_33_BLE, Nano_33_BLE_Sense, etc. using LittleFS 1.7.0 K Hoang 10/09/2021 Add support to MBED Portenta_H7 using LittleFS 1.7.1 K Hoang 13/09/2021 Select fix LittleFS size of 1024KB + 1.7.2 K Hoang 14/09/2021 Back to using auto LittleFS to fix bug *****************************************************************************************************************************/ /**************************************************************************************************************************** This example will open a configuration portal when the reset button is pressed twice. diff --git a/library.json b/library.json index 8d64590..2442f5e 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "MultiResetDetector_Generic", - "version": "1.7.1", + "version": "1.7.2", "keywords": "device, control, flashstorage-samd, flashstorage-stm32, nano-rp2040-connect, nano-33-ble, samd, stm32, nRF52, portenta-h7, rp2040, multi-reset, flashstorage, mbed-portenta, portenta-h7, portentah7, dueflashstorage, littlefs, spiffs, mbed-portenta, teensy, sam-due, mbed, rpi-pico, raspberry-pico, flashstorage-rtl8720, eeprom, reset, detector, data", "description": "Library to detect a multi reset, using EEPROM, DueFlashStorage, FlashStorage_SAMD, FlashStorage_RTL8720, FlashStorage_STM32 or LittleFS/InternalFS. For AVR, Teensy, SAM DUE, SAMD, STM32F/L/H/G/WB/MP1, nRF52, RP2040-based Nano_RP2040_Connect, RASPBERRY_PI_PICO, RTL8720DN, MBED nRF52840-based Nano_33_BLE, Portenta_H7, etc. boards. Now using efficient FlashStorage_STM32 library and supporting new RP2040-based Nano_RP2040_Connect, RASPBERRY_PI_PICO and STM32 core v2.0.0", "authors": diff --git a/library.properties b/library.properties index a50fb6c..0155228 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=MultiResetDetector_Generic -version=1.7.1 +version=1.7.2 author=Khoi Hoang maintainer=Khoi Hoang license=MIT diff --git a/platformio/platformio.ini b/platformio/platformio.ini index 902ce9c..3cdd380 100644 --- a/platformio/platformio.ini +++ b/platformio/platformio.ini @@ -38,11 +38,11 @@ upload_speed = 921600 lib_deps = ; PlatformIO 4.x ; FlashStorage_STM32@>=1.1.0 -; FlashStorage_SAMD@>=1.1.0 +; FlashStorage_SAMD@>=1.2.0 ; FlashStorage_RTL8720@>=1.0.0 ; PlatformIO 5.x ; khoih.prog/FlashStorage_STM32@>=1.1.0 -; khoih.prog/FlashStorage_SAMD@>=1.1.0 +; khoih.prog/FlashStorage_SAMD@>=1.2.0 ; khoih.prog/FlashStorage_RTL8720@>=1.0.0 build_flags = diff --git a/src/MultiResetDetector_Generic.h b/src/MultiResetDetector_Generic.h index f4154aa..3f2d208 100644 --- a/src/MultiResetDetector_Generic.h +++ b/src/MultiResetDetector_Generic.h @@ -13,7 +13,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/MultiResetDetector_Generic Licensed under MIT license - Version: 1.7.1 + Version: 1.7.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -26,6 +26,7 @@ 1.6.0 K Hoang 29/08/2021 Add support to MBED Nano_33_BLE, Nano_33_BLE_Sense, etc. using LittleFS 1.7.0 K Hoang 10/09/2021 Add support to MBED Portenta_H7 using LittleFS 1.7.1 K Hoang 13/09/2021 Select fix LittleFS size of 1024KB + 1.7.2 K Hoang 14/09/2021 Back to using auto LittleFS to fix bug ************************************************************************************************************************************/ #pragma once @@ -33,7 +34,7 @@ #ifndef MultiResetDetector_Generic_H #define MultiResetDetector_Generic_H -#define MULTIRESETDETECTOR_GENERIC_VERSION "MultiResetDetector_Generic v1.7.1" +#define MULTIRESETDETECTOR_GENERIC_VERSION "MultiResetDetector_Generic v1.7.2" #if ( defined(ESP32) || defined(ESP8266) ) #error Please use ESP_MultiResetDetector library (https://github.com/khoih-prog/ESP_MultiResetDetector) for ESP8266 and ESP32! @@ -377,15 +378,6 @@ #include "BlockDevice.h" #include "mbed_portenta/FlashIAPLimits.h" - - #if !defined(LITTLEFS_PORTENTA_H7_SIZE_KB) - #define LITTLEFS_PORTENTA_H7_SIZE_KB 1024 - #warning Force LITTLEFS_PORTENTA_H7_SIZE_KB to 1024 (KB) - #elif (LITTLEFS_PORTENTA_H7_SIZE_KB < 1024) - #undef LITTLEFS_PORTENTA_H7_SIZE_KB - #define LITTLEFS_PORTENTA_H7_SIZE_KB 1024 - #warning Correct LITTLEFS_PORTENTA_H7_SIZE_KB to 1024 (KB) - #endif #if !defined(FORCE_REFORMAT) #define FORCE_REFORMAT false @@ -641,24 +633,12 @@ class MultiResetDetector_Generic // Get limits of the the internal flash of the microcontroller _flashIAPLimits = getFlashIAPLimits(); - if (_flashIAPLimits.available_size < LITTLEFS_PORTENTA_H7_SIZE_KB * 1024) - { - #if (MRD_GENERIC_DEBUG) - Serial.print("Too small Max LittleFS size (KB) = "); Serial.println(_flashIAPLimits.available_size / 1024.0); - #endif - return; - } - - uint32_t deltaSize = _flashIAPLimits.available_size - LITTLEFS_PORTENTA_H7_SIZE_KB * 1024; - Serial.print("Flash Size: (KB) = "); Serial.println(_flashIAPLimits.flash_size / 1024.0); - Serial.print("FlashIAP Start Address: 0x"); Serial.println(_flashIAPLimits.start_address, HEX); - Serial.print("New FlashIAP Start Address: 0x"); Serial.println(_flashIAPLimits.start_address + deltaSize, HEX); - Serial.print("Max FlashIAP Size (KB): "); Serial.println(_flashIAPLimits.available_size / 1024.0); - Serial.print("Current FlashIAP Size(KB): "); Serial.println(LITTLEFS_PORTENTA_H7_SIZE_KB); - - blockDevicePtr = new FlashIAPBlockDevice(_flashIAPLimits.start_address + deltaSize, LITTLEFS_PORTENTA_H7_SIZE_KB * 1024); + Serial.print("FlashIAP Start Address: = 0x"); Serial.println(_flashIAPLimits.start_address, HEX); + Serial.print("LittleFS size (KB) = "); Serial.println(_flashIAPLimits.available_size / 1024.0); + blockDevicePtr = new FlashIAPBlockDevice(_flashIAPLimits.start_address, _flashIAPLimits.available_size); + if (!blockDevicePtr) { #if (MRD_GENERIC_DEBUG) diff --git a/src/mbed_portenta/FlashIAPLimits.h b/src/mbed_portenta/FlashIAPLimits.h index 45ba4e5..066d61f 100644 --- a/src/mbed_portenta/FlashIAPLimits.h +++ b/src/mbed_portenta/FlashIAPLimits.h @@ -14,7 +14,7 @@ Built by Khoi Hoang https://github.com/khoih-prog/MultiResetDetector_Generic Licensed under MIT license - Version: 1.7.1 + Version: 1.7.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -27,6 +27,7 @@ 1.6.0 K Hoang 29/08/2021 Add support to MBED Nano_33_BLE, Nano_33_BLE_Sense, etc. using LittleFS 1.7.0 K Hoang 10/09/2021 Add support to MBED Portenta_H7 using LittleFS 1.7.1 K Hoang 13/09/2021 Select fix LittleFS size of 1024KB + 1.7.2 K Hoang 14/09/2021 Back to using auto LittleFS to fix bug *****************************************************************************************************************************/ #pragma once