We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4621cd5 commit 7098d4cCopy full SHA for 7098d4c
ports/esp32s2/mpconfigport.h
@@ -45,9 +45,11 @@
45
// 20kB is statically allocated to nvs, but when overwriting an existing
46
// item, it's temporarily necessary to store both the old and new copies.
47
// Additionally, there is some overhad for the names and values of items
48
-// in nvs. So, set the size at 9/20ths of the allocated space
+// in nvs, and alignment to 4kB flash erase boundaries may give better
49
+// performance characteristics (h/t @tannewt). This implies we should select an
50
+// 8kB size for CircuitPython'ns NVM.
51
#ifndef CIRCUITPY_INTERNAL_NVM_SIZE
-#define CIRCUITPY_INTERNAL_NVM_SIZE (9 * 1024)
52
+#define CIRCUITPY_INTERNAL_NVM_SIZE (8 * 1024)
53
#endif
54
55
#endif // __INCLUDED_ESP32S2_MPCONFIGPORT_H
0 commit comments